:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --accent: #0ea5e9;
  --border: #dbeafe;
  --danger: #dc2626;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: radial-gradient(circle at top, #e0f2fe, var(--bg));
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 700px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.card-sm {
  max-width: 480px;
}

.staff-body {
  align-items: flex-start;
  background-attachment: fixed;
  background-size: cover;
}

.staff-card {
  max-width: 980px;
  margin: 24px 0;
}

.staff-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.staff-controls {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin: 14px 0 10px;
}

.staff-controls input,
.staff-controls select,
.staff-status-select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px;
  font-size: 0.95rem;
  background: #fff;
}

h1 {
  margin-top: 0;
  font-size: 1.7rem;
}

p {
  color: var(--muted);
  line-height: 1.5;
}

.question {
  margin: 20px 0;
}

.question-subject {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #334155;
  margin-bottom: 6px;
}

.scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(50px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.choice-option {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

label.option {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  font-size: 0.95rem;
}

input[type="radio"] {
  margin-right: 4px;
}

textarea,
input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px;
  font-size: 1rem;
  margin-top: 6px;
  margin-bottom: 14px;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn {
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  padding: 11px 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  margin-right: 8px;
}

.btn-secondary {
  background: #334155;
}

.login-btn {
  margin-top: 14px;
}

.error {
  color: var(--danger);
  margin-bottom: 12px;
  font-weight: 600;
}

.hidden {
  display: none;
}

.inline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  color: var(--text);
}

.reviews-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.review-card {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 14px;
  background: #f8fafc;
}

.review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.review-top h2 {
  margin: 0;
  font-size: 1rem;
  word-break: break-all;
}

.pill {
  background: #0f172a;
  color: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  white-space: nowrap;
  max-width: 100%;
}

.review-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  font-size: 0.95rem;
}

.staff-status-wrap {
  display: grid;
  gap: 6px;
}

.review-section {
  margin-top: 14px;
  border-top: 1px solid #dbeafe;
  padding-top: 12px;
}

.review-section h3 {
  margin: 0;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #334155;
}

.review-note {
  margin-top: 10px;
}

.review-note p {
  margin-bottom: 0;
  white-space: pre-wrap;
  color: #0f172a;
}

@media (max-width: 640px) {
  .row {
    grid-template-columns: 1fr;
  }

  .scale {
    grid-template-columns: repeat(5, minmax(42px, 1fr));
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .review-grid {
    grid-template-columns: 1fr;
  }

  .review-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .staff-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .staff-controls {
    grid-template-columns: 1fr;
  }
}
