body { padding: 32px 16px; }

/* ── Header ──────────────────────────────── */
.header { text-align: center; margin-bottom: 32px; }
.header-logo {
  width: 90px; height: 90px; object-fit: contain; margin-bottom: 12px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.12));
}
.header-school {
  font-size: 1.05rem; font-weight: 700; color: var(--accent);
  letter-spacing: .04em; text-transform: uppercase; margin-bottom: 2px;
}
.header h1 { font-size: 1.75rem; color: var(--brand); font-weight: 700; }
.header-divider {
  width: 48px; height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--gold));
  border-radius: 2px; margin: 10px auto 8px;
}
.header p { color: var(--muted); margin-top: 4px; font-size: 0.92rem; }

/* ── Progress bar ────────────────────────── */
.progress-wrap { max-width: 720px; margin: 0 auto 28px; }
.steps-row {
  display: flex; align-items: center; justify-content: space-between;
  position: relative;
}
.steps-row::before {
  content: ""; position: absolute; top: 18px; left: 0; right: 0;
  height: 3px; background: var(--border); z-index: 0;
}
.step-dot { display: flex; flex-direction: column; align-items: center; gap: 6px; z-index: 1; }
.step-dot .circle {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--card); border: 3px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; color: var(--muted); transition: all .3s;
}
.step-dot.active .circle { border-color: var(--accent); background: var(--accent); color: #fff; }
.step-dot.done   .circle { border-color: var(--success); background: var(--success); color: #fff; }
.step-dot .label {
  font-size: 0.68rem; color: var(--muted); text-align: center;
  max-width: 68px; line-height: 1.2;
}
.step-dot.active .label { color: var(--accent); font-weight: 600; }
.step-dot.done   .label { color: var(--success); }

/* ── Card ────────────────────────────────── */
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
  max-width: 720px; margin: 0 auto; padding: 36px 40px;
}

.step-page { display: none; }
.step-page.active { display: block; }
.step-page h2 { font-size: 1.3rem; color: var(--brand); margin-bottom: 6px; }
.step-page .subtitle { color: var(--muted); font-size: 0.88rem; margin-bottom: 28px; }

/* ── User type grid ──────────────────────── */
.type-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 20px; }
.type-item input { display: none; }
.type-item label {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 28px 16px; border: 2px solid var(--border); border-radius: 12px;
  cursor: pointer; transition: all .2s; height: 100%; text-align: center;
}
.type-item label .icon { font-size: 2.2rem; margin-bottom: 10px; }
.type-item label .title { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.type-item label .sub { font-size: 0.78rem; color: var(--muted); }
.type-item input:checked + label { background: var(--accent); color: #fff; border-color: var(--accent); }
.type-item input:checked + label .sub { color: rgba(255,255,255,.8); }

/* ── Video wrapper ───────────────────────── */
.video-wrap {
  position: relative; padding-bottom: 56.25%; height: 0;
  border-radius: 10px; overflow: hidden; margin: 20px 0;
  background: #000;
}
.video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.video-notice {
  background: #fff8e1; border: 1px solid #f0c030; border-radius: 8px;
  padding: 12px 16px; margin-top: 14px; font-size: 0.85rem; color: #5a4500;
  display: flex; align-items: flex-start; gap: 10px;
}
.video-notice .vi { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }

/* ── Form fields ─────────────────────────── */
.field { margin-bottom: 20px; }
.field label span.req, .req { color: var(--danger); margin-left: 2px; }
.field .error-msg { display: none; color: var(--danger); font-size: 0.78rem; margin-top: 4px; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--danger); }
.field.has-error .error-msg { display: block; }

/* ── Section label ───────────────────────── */
.section-label {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted);
  margin: 24px 0 12px; border-bottom: 1px solid var(--border); padding-bottom: 6px;
}

/* ── Question rows ───────────────────────── */
.question-list { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.question-row {
  border: 1.5px solid var(--border); border-radius: 8px; padding: 14px 16px;
  transition: border-color .2s;
}
.question-row.answered { border-color: var(--success); background: #f6fff9; }
.question-row.error    { border-color: var(--danger);  background: #fff5f5; }
.q-text { font-size: 0.9rem; line-height: 1.45; margin-bottom: 10px; }
.q-text a { color: var(--accent); }
.q-options { display: flex; gap: 10px; flex-wrap: wrap; }

/* Yes-only checkbox */
.opt-check label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border: 1.5px solid var(--border); border-radius: 6px;
  cursor: pointer; font-size: 0.85rem; font-weight: 600; transition: all .2s;
  background: #fff;
}
.opt-check input { display: none; }
.opt-check input:checked + label { background: var(--success); color: #fff; border-color: var(--success); }

/* Yes / N/A radio */
.opt-radio label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border: 1.5px solid var(--border); border-radius: 6px;
  cursor: pointer; font-size: 0.85rem; font-weight: 600; transition: all .2s;
  background: #fff;
}
.opt-radio input { display: none; }
.opt-radio input:checked + label { background: var(--accent); color: #fff; border-color: var(--accent); }
.opt-radio.na input:checked + label { background: var(--muted); border-color: var(--muted); }

/* ── Signature / Name ack ────────────────── */
.sig-box {
  background: var(--bg); border: 2px dashed var(--border); border-radius: 10px;
  padding: 24px; text-align: center; margin-top: 10px;
}
.sig-box p { font-size: 0.85rem; color: var(--muted); margin-bottom: 12px; }
.sig-name-display {
  font-size: 1.5rem; font-style: italic; color: var(--brand);
  font-family: Georgia, "Times New Roman", serif; min-height: 44px; line-height: 44px;
}

/* ── Navigation ──────────────────────────── */
.nav-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 32px; gap: 12px;
}

/* ── Success screen ──────────────────────── */
#success-screen {
  display: none; text-align: center; padding: 40px 20px;
}
#success-screen .s-icon { font-size: 4rem; margin-bottom: 16px; }
#success-screen h2 { color: var(--success); font-size: 1.5rem; margin-bottom: 10px; }
#success-screen p  { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

/* ── Policy blurb box ────────────────────── */
.policy-blurb {
  background: #f0f6ff; border: 1px solid #c0d8f8; border-radius: 8px;
  padding: 14px 16px; margin-bottom: 16px; font-size: 0.85rem; line-height: 1.6;
  color: var(--text);
}
.policy-blurb strong { color: var(--brand); }
.policy-blurb a { color: var(--accent); }

/* ── Coming soon ─────────────────────────── */
.coming-soon {
  text-align: center; padding: 40px 20px;
}
.coming-soon .cs-icon { font-size: 3rem; margin-bottom: 14px; }
.coming-soon h3 { color: var(--brand); font-size: 1.2rem; margin-bottom: 8px; }
.coming-soon p  { color: var(--muted); font-size: 0.9rem; margin-bottom: 20px; }

/* ── HSR Contact Card ────────────────────── */
.hsr-card {
  display: flex; gap: 22px; align-items: flex-start;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 24px; margin: 20px 0;
}
.hsr-photo {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--accent); flex-shrink: 0;
}
.hsr-photo-placeholder {
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--border); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 2.4rem;
}
.hsr-info { flex: 1; }
.hsr-name { font-size: 1.15rem; font-weight: 700; color: var(--brand); margin-bottom: 3px; }
.hsr-role { font-size: 0.82rem; color: var(--accent); font-weight: 600; margin-bottom: 14px; }
.hsr-links { display: flex; flex-direction: column; gap: 7px; }
.hsr-link {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.86rem; color: var(--text); text-decoration: none;
  padding: 7px 12px; border-radius: 7px; border: 1px solid var(--border);
  transition: all .18s; background: #fff;
}
.hsr-link:hover { border-color: var(--accent); color: var(--accent); background: #f5f0ff; }
.hsr-link .link-icon { font-size: 1rem; flex-shrink: 0; }

/* ── Question sub-list ───────────────────── */
.q-sublist {
  margin: 8px 0 0 18px;
  font-size: 0.86rem;
  line-height: 1.5;
}
.q-sublist li { margin-bottom: 3px; }
.q-sublist a { color: var(--accent); }

@media (max-width: 560px) {
  .hsr-card { flex-direction: column; align-items: center; text-align: center; }
  .hsr-links { align-items: stretch; }
}
  .card { padding: 24px 18px; }
  .type-grid { grid-template-columns: 1fr; }
}
