/* ============================================================
   TOKENS — pulled from SCDE brand guidelines + design system
   ============================================================ */
:root {
  --slate: #2F3D4C;
  --slate-rgb: 47,61,76;
  --gold: #F1BA55;
  --gold-soft: #FDF6E7;
  --teal: #43718B;
  --teal-soft: #EDF4F8;
  --navy: #234058;
  --cream: #FFEDCC;
  --slate-light: #778BA5;
  --alice: #F0F8FF;

  --bg: #FFFFFF;
  --surface: #F8F9FA;
  --card: #FFFFFF;
  --border: #E4E4E7;
  --text: #1A1A1A;
  --text-secondary: #52525B;
  --text-muted: #6B7280;
  --input-border: var(--slate-light);

  --green: #16A34A;
  --green-soft: #EAF7EF;
  --amber: #D97706;
  --amber-soft: #FEF3E2;
  --red: #DC2626;
  --red-soft: #FDECEC;
  --info: #0EA5E9;

  --radius-sm: 0.25rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.04);
  --shadow-md: 0 2px 8px -2px rgb(0 0 0 / 0.08);

  --font-heading: 'Poppins', -apple-system, sans-serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --ring: var(--teal);
}

/* Dark-mode support for the artifact viewer. The live SCDE site is light-only;
   this block exists so the page behaves correctly if previewed in a dark host. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1B2129;
    --surface: #20262E;
    --card: #242B34;
    --border: #38414C;
    --text: #F2F3F5;
    --text-secondary: #C3C9D1;
    --text-muted: #9AA3AF;
    --alice: #1E2B36;
    --teal-soft: #1C2F3A;
    --gold-soft: #332A17;
    --green-soft: #12291C;
    --amber-soft: #2E2410;
    --red-soft: #331616;
    --ring: #8FC1D4;
  }
}
:root[data-theme="dark"] {
  --bg: #1B2129;
  --surface: #20262E;
  --card: #242B34;
  --border: #38414C;
  --text: #F2F3F5;
  --text-secondary: #C3C9D1;
  --text-muted: #9AA3AF;
  --alice: #1E2B36;
  --teal-soft: #1C2F3A;
  --gold-soft: #332A17;
  --green-soft: #12291C;
  --amber-soft: #2E2410;
  --red-soft: #331616;
  --ring: #8FC1D4;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.hp {
  position:absolute;
  left:-9999px;
  }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--slate); margin: 0; }
p { margin: 0 0 12px; }
a { color: var(--teal); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible,
select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -48px; background: var(--slate); color: #fff;
  padding: 10px 16px; border-radius: var(--radius); z-index: 1000; transition: top .15s ease;
  text-decoration: none; font-family: var(--font-heading); font-size: 14px; font-weight: 600;
}
.skip-link:focus { top: 8px; }

/* ============================================================
   PROTOTYPE NOTICE — remove when handing off to development
   ============================================================ */
.prototype-banner {
  background: var(--amber-soft);
  border-bottom: 1px solid var(--amber);
  color: var(--text);
  font-size: 13px;
  padding: 8px 16px;
  text-align: center;
}
.prototype-banner strong { color: var(--amber); }

/* ============================================================
   SITE CHROME — approximates ed.sc.gov structure (breadcrumb,
   9/3 column layout, sidebar) using illustrative nav content
   ============================================================ */
.util-bar {
  background: var(--slate);
  color: #E6EAEF;
}
.util-bar-inner {
  max-width: 1180px; margin: 0 auto; padding: 6px 20px;
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
  font-size: 12.5px;
}
.util-bar a { color: #E6EAEF; text-decoration: none; }
.util-bar a:hover { color: var(--gold); text-decoration: underline; }
.util-bar-spacer { flex: 1; }

.masthead { background: #fff; border-bottom: 1px solid var(--border); }
.masthead-inner {
  max-width: 1180px; margin: 0 auto; padding: 16px 20px;
  display: flex; align-items: center; gap: 14px;
}
.brand-mark {
  width: 46px; height: 46px; border-radius: 50%; background: var(--slate);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-lockup { line-height: 1.25; }
.brand-lockup .l1 { font-family: var(--font-heading); font-size: 13px; font-weight: 500; color: var(--slate); letter-spacing: 0.02em; }
.brand-lockup .l2 { font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: var(--slate); letter-spacing: -0.01em; }

.main-nav { background: var(--navy); }
.main-nav-inner { max-width: 1180px; margin: 0 auto; padding: 0 20px; display: flex; flex-wrap: wrap; }
.main-nav a {
  color: #fff; text-decoration: none; font-family: var(--font-heading); font-weight: 500;
  font-size: 14px; padding: 12px 16px; display: inline-block; border-bottom: 3px solid transparent;
}
.main-nav a:hover, .main-nav a.active { border-bottom-color: var(--gold); }

.crumb-bar { background: var(--surface); border-bottom: 1px solid var(--border); }
.crumb-inner {
  max-width: 1180px; margin: 0 auto; padding: 10px 20px; font-size: 13px; color: var(--text-secondary);
  list-style: none; display: flex; flex-wrap: wrap; align-items: center;
}
.crumb-inner li { display: inline; }
.crumb-inner a { color: var(--teal); text-decoration: none; }
.crumb-inner a:hover { text-decoration: underline; }
.crumb-sep { margin: 0 6px; color: var(--text-muted); }

.page-shell { max-width: 1180px; margin: 0 auto; padding: 28px 20px 60px; }
.page-title {
  background: var(--slate); color: #fff;
  font-size: 32px; font-weight: 400; letter-spacing: 0.5px; line-height: 1.2;
  margin: 0 0 8px; padding: 18px 28px; border-radius: var(--radius-sm);
}
.page-lede { color: var(--text-secondary); margin-bottom: 28px; }

.layout-row { display: flex; gap: 32px; align-items: flex-start; }
.content-col { flex: 1; min-width: 0; }
.sidebar-col { width: 280px; flex-shrink: 0; }

@media (max-width: 900px) {
  .layout-row { flex-direction: column; }
  .sidebar-col { width: 100%; order: 2; }
}

.side-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 20px; }
.side-box h3 { font-size: 14px; margin-bottom: 10px; }
.side-box p { font-size: 13px; color: var(--text-secondary); }
.side-box hr { border: none; border-top: 1px solid var(--border); margin: 12px 0; }
.side-nav-list { list-style: none; margin: 0; padding: 0; }
.side-nav-list li + li { border-top: 1px solid var(--border); }
.side-nav-list a { display: block; padding: 9px 0; font-size: 13.5px; text-decoration: none; color: var(--navy); }
.side-nav-list a:hover { color: var(--teal); text-decoration: underline; }
.side-note { font-size: 12px; color: var(--text-muted); font-style: italic; }

.site-footer { background: var(--slate); color: #DCE2E8; margin-top: 60px; }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 28px 20px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; }
.footer-inner a { color: #fff; }
.footer-copy { color: #97A3B1; }

/* ============================================================
   WIZARD CARD
   ============================================================ */
.wizard-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* Intro callout (Before You File) */
.callout {
  background: var(--alice);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 0 0 20px;
}
.callout-gold { background: var(--gold-soft); border-left-color: var(--gold); }
.callout-title { font-family: var(--font-heading); font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.callout-gold .callout-title { color: var(--slate); }
.callout p { font-size: 13.5px; color: var(--text-secondary); margin: 0 0 8px; }
.callout p:last-child { margin-bottom: 0; }
.callout ul { margin: 6px 0 0; padding-left: 20px; font-size: 13.5px; color: var(--text-secondary); }
.callout li { margin-bottom: 4px; }

/* Progress stepper (desktop) */
.progress-wrap { background: var(--surface); border-bottom: 1px solid var(--border); padding: 20px 28px; }
.progress-track { display: flex; align-items: flex-start; }
.progress-step { flex: 1; text-align: center; position: relative; }
.progress-step:not(:last-child)::after {
  content: ""; position: absolute; top: 15px; left: 50%; width: 100%; height: 2px;
  background: var(--border); z-index: 0;
}
.progress-step.is-complete:not(:last-child)::after { background: var(--teal); }
.progress-step-btn {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center;
  gap: 6px; background: none; border: none; font-family: var(--font-body); cursor: default; padding: 0;
  width: 100%;
}
.progress-dot {
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #fff; border: 2px solid var(--border); color: var(--text-muted); font-weight: 600; font-size: 13px;
}
.progress-step.is-current .progress-dot { border-color: var(--slate); background: var(--slate); color: #fff; }
.progress-step.is-complete .progress-dot { border-color: var(--teal); background: var(--teal); color: #fff; }
.progress-label { font-size: 11.5px; color: var(--text-muted); max-width: 92px; line-height: 1.3; }
.progress-step.is-current .progress-label { color: var(--slate); font-weight: 600; }
.progress-step.is-complete .progress-label { color: var(--teal); }
.progress-step.is-clickable .progress-step-btn { cursor: pointer; }
.progress-step.is-clickable .progress-dot:hover { border-color: var(--slate); }

.progress-mobile { display: none; padding: 16px 20px; background: var(--surface); border-bottom: 1px solid var(--border); }
.progress-mobile-label { font-family: var(--font-heading); font-size: 13px; font-weight: 600; color: var(--slate); margin-bottom: 8px; }
.progress-mobile-bar { height: 6px; background: var(--border); border-radius: 999px; overflow: hidden; }
.progress-mobile-fill { height: 100%; background: var(--teal); border-radius: 999px; transition: width .2s ease; }

@media (max-width: 720px) {
  .progress-wrap { display: none; }
  .progress-mobile { display: block; }
}

/* Step panels */
.step-panel { display: none; padding: 32px; }
.step-panel.is-active { display: block; }
.step-heading { margin-bottom: 6px; }
.step-heading:focus-visible, .confirm-panel:focus-visible { outline: 2px solid var(--ring); outline-offset: 4px; border-radius: 2px; }
.step-sub { color: var(--text-secondary); font-size: 14px; margin-bottom: 24px; max-width: 62ch; }

.subsection { margin-bottom: 28px; }
.subsection:last-child { margin-bottom: 0; }
.subsection-title {
  font-size: 18px; font-weight: 700; color: var(--slate); font-family: var(--font-heading);
  padding-bottom: 10px; margin-bottom: 18px; border-bottom: 1px solid var(--border);
}

.field-group { margin-bottom: 20px; }
.field-label {
  display: block; font-family: var(--font-heading); font-weight: 600; font-size: 14px;
  color: var(--slate); margin-bottom: 6px;
}
.required-mark { color: var(--teal); margin-left: 2px; }
.field-hint { font-size: 12.5px; color: var(--text-muted); margin: 4px 0 0; }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"], textarea, select {
  width: 100%; font-family: var(--font-body); font-size: 14.5px; color: var(--text);
  padding: 10px 12px; border: 1px solid var(--input-border); border-radius: var(--radius);
  background: #fff; transition: border-color .12s ease, box-shadow .12s ease;
}
select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2352525B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 11px 8px;
}
:root[data-theme="dark"] input, :root[data-theme="dark"] textarea, :root[data-theme="dark"] select { background: var(--surface); color: var(--text); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) input, :root:not([data-theme="light"]) textarea, :root:not([data-theme="light"]) select { background: var(--surface); color: var(--text); }
}

/* ============================================================
   DARK MODE READABILITY FIXES
   ============================================================
   A handful of tokens (--slate, --navy, --teal, --red) are fixed
   hex values with no dark-mode variant, because they were designed
   for the light-only live site. That's fine for the many places
   they sit on an equally-fixed background (white cards, the navy
   nav bar, etc.) — but a few places pair them with a background
   that DOES shift dark (--card/--surface/--red-soft), which made
   the text low-contrast or, in the case of the choice-option pills
   below, invisible (white text on a white background). These rules
   only apply under the existing dark-mode selectors above and do
   not change anything in light mode.
   ============================================================ */
:root[data-theme="dark"] .choice-option:not(.is-checked),
:root[data-theme="dark"] .certify-option:not(.is-checked):not(.is-error),
:root[data-theme="dark"] .progress-step:not(.is-current):not(.is-complete) .progress-dot {
  background: var(--card);
}
:root[data-theme="dark"] select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23C3C9D1' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 11px 8px;
}
:root[data-theme="dark"] .step-heading,
:root[data-theme="dark"] #confirm-heading,
:root[data-theme="dark"] .subsection-title,
:root[data-theme="dark"] .field-label,
:root[data-theme="dark"] .choice-legend,
:root[data-theme="dark"] .progress-mobile-label,
:root[data-theme="dark"] .progress-step.is-current .progress-label,
:root[data-theme="dark"] .confirm-ref,
:root[data-theme="dark"] .callout-title,
:root[data-theme="dark"] .review-group-head h3 {
  color: var(--text);
}
:root[data-theme="dark"] .required-mark,
:root[data-theme="dark"] .crumb-inner a,
:root[data-theme="dark"] .btn-text,
:root[data-theme="dark"] .progress-step.is-complete .progress-label {
  color: #8FC1D4;
}
:root[data-theme="dark"] .progress-step.is-complete:not(:last-child)::after { background: #8FC1D4; }
:root[data-theme="dark"] .progress-step:not(.is-complete):not(:last-child)::after { background: var(--text-muted); }
:root[data-theme="dark"] .error-text,
:root[data-theme="dark"] .error-summary h3,
:root[data-theme="dark"] .error-summary a {
  color: #FCA5A5;
}
:root[data-theme="dark"] .field-group.has-error .field-label { color: #FCA5A5; }
:root[data-theme="dark"] input:focus,
:root[data-theme="dark"] textarea:focus,
:root[data-theme="dark"] select:focus {
  border-color: #8FC1D4;
}
:root[data-theme="dark"] .error-summary:focus-visible { outline-color: #FCA5A5; }
:root[data-theme="dark"] { color-scheme: dark; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .choice-option:not(.is-checked),
  :root:not([data-theme="light"]) .certify-option:not(.is-checked):not(.is-error),
  :root:not([data-theme="light"]) .progress-step:not(.is-current):not(.is-complete) .progress-dot {
    background: var(--card);
  }
  :root:not([data-theme="light"]) select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23C3C9D1' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 11px 8px;
  }
  :root:not([data-theme="light"]) .step-heading,
  :root:not([data-theme="light"]) #confirm-heading,
  :root:not([data-theme="light"]) .subsection-title,
  :root:not([data-theme="light"]) .field-label,
  :root:not([data-theme="light"]) .choice-legend,
  :root:not([data-theme="light"]) .progress-mobile-label,
  :root:not([data-theme="light"]) .progress-step.is-current .progress-label,
  :root:not([data-theme="light"]) .confirm-ref,
  :root:not([data-theme="light"]) .callout-title,
  :root:not([data-theme="light"]) .review-group-head h3 {
    color: var(--text);
  }
  :root:not([data-theme="light"]) .required-mark,
  :root:not([data-theme="light"]) .crumb-inner a,
  :root:not([data-theme="light"]) .btn-text,
  :root:not([data-theme="light"]) .progress-step.is-complete .progress-label {
    color: #8FC1D4;
  }
  :root:not([data-theme="light"]) .progress-step.is-complete:not(:last-child)::after { background: #8FC1D4; }
  :root:not([data-theme="light"]) .progress-step:not(.is-complete):not(:last-child)::after { background: var(--text-muted); }
  :root:not([data-theme="light"]) .error-text,
  :root:not([data-theme="light"]) .error-summary h3,
  :root:not([data-theme="light"]) .error-summary a {
    color: #FCA5A5;
  }
  :root:not([data-theme="light"]) .field-group.has-error .field-label { color: #FCA5A5; }
  :root:not([data-theme="light"]) input:focus,
  :root:not([data-theme="light"]) textarea:focus,
  :root:not([data-theme="light"]) select:focus {
    border-color: #8FC1D4;
  }
  :root:not([data-theme="light"]) .error-summary:focus-visible { outline-color: #FCA5A5; }
  :root:not([data-theme="light"]) { color-scheme: dark; }
}

textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
input:focus, textarea:focus, select:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); outline: none;
}
.field-group.has-error input, .field-group.has-error textarea, .field-group.has-error select {
  border-color: var(--red);
}
.field-group.has-error .field-label { color: var(--red); }
.error-text {
  display: none; align-items: center; gap: 6px; color: var(--red); font-size: 13px; margin-top: 6px; font-weight: 500;
}
.field-group.has-error .error-text { display: flex; }

/* Choice groups (radio / checkbox) */
fieldset.choice-group { border: none; margin: 0; padding: 0; }
.choice-legend {
  display: block; font-family: var(--font-heading); font-weight: 600; font-size: 14px;
  color: var(--slate); margin-bottom: 8px; padding: 0;
}
.choice-list { display: flex; flex-wrap: wrap; gap: 10px; }
.choice-list.is-stacked { flex-direction: column; align-items: flex-start; }
.choice-list.is-stacked .choice-option { width: 100%; }
.choice-option {
  display: flex; align-items: center; gap: 9px; border: 1px solid var(--input-border); border-radius: var(--radius);
  padding: 11px 14px; cursor: pointer; font-size: 14px; color: var(--text); background: #fff;
  min-height: 44px; max-width: 100%; transition: border-color .12s ease, background .12s ease;
}
.choice-option:hover { border-color: var(--slate-light); }
.choice-option input { width: 17px; height: 17px; margin: 0; flex-shrink: 0; accent-color: var(--slate); }
.choice-option.is-checked { border-color: var(--teal); background: var(--teal-soft); }
.choice-option-other { flex-wrap: nowrap; }
.choice-option-other label { display: flex; align-items: center; gap: 9px; cursor: pointer; white-space: nowrap; }
.choice-inline-text { flex: 0 1 240px; min-width: 160px; padding: 14px 12px; }
.choice-inline-text.is-inactive { background: var(--surface); color: var(--text-secondary); }

/* Conditional nested block */
.conditional-block {
  margin-top: 14px; padding: 16px 18px 4px; border-left: 3px solid var(--teal-soft);
  background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0;
}
.conditional-block[hidden] { display: none; }

/* Buttons */
.btn { font-family: var(--font-heading); font-weight: 600; font-size: 14.5px; border-radius: var(--radius); padding: 11px 22px; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--slate); color: #fff; }
.btn-primary:hover { background: #253039; }
.btn-secondary { background: #fff; color: var(--slate); border-color: var(--input-border); }
.btn-secondary:hover { border-color: var(--slate-light); }
.btn-text { background: none; border: none; color: var(--teal); font-family: var(--font-heading); font-weight: 600; font-size: 13.5px; cursor: pointer; padding: 4px 0; }
.btn-text:hover { text-decoration: underline; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============================================================
   DARK MODE — button emphasis
   ============================================================
   In light mode, Continue (solid dark fill) already reads as the
   primary action against the white page, and Back (white fill,
   thin border) recedes. In dark mode those roles inverted: Back's
   background was hardcoded white for readability, which made it
   the single brightest thing on a dark page — outcompeting Continue
   for attention. This restores "forward is the obvious choice" for
   dark mode specifically, without touching the light-mode rules
   above at all.
   ============================================================ */
:root[data-theme="dark"] .btn-primary { background: #8FC1D4; color: var(--slate); }
:root[data-theme="dark"] .btn-primary:hover { background: #7BB0C6; }
:root[data-theme="dark"] .btn-secondary { background: var(--card); color: var(--text); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-primary { background: #8FC1D4; color: var(--slate); }
  :root:not([data-theme="light"]) .btn-primary:hover { background: #7BB0C6; }
  :root:not([data-theme="light"]) .btn-secondary { background: var(--card); color: var(--text); }
}

.wizard-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.wizard-nav .spacer { flex: 1; }

/* Review step */
.review-group { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
.review-group-head { display: flex; justify-content: space-between; align-items: center; background: var(--surface); padding: 12px 16px; }
.review-group-head h3 { font-size: 14px; margin: 0; }
.review-group-body { padding: 14px 16px; }
.review-row { display: flex; gap: 14px; padding: 6px 0; font-size: 13.5px; border-bottom: 1px dashed var(--border); }
.review-row:last-child { border-bottom: none; }
.review-row dt { width: 220px; flex-shrink: 0; color: var(--text-secondary); font-weight: 500; }
.review-row dd { margin: 0; color: var(--text); word-break: break-word; }
.review-empty { color: var(--text-muted); font-style: italic; font-size: 13px; padding: 8px 0; }

.certify-list { display: flex; flex-direction: column; gap: 10px; margin: 0 0 8px; }
.certify-option {
  display: flex; gap: 10px; align-items: center; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px; background: #fff;
}
.certify-option input { width: 18px; height: 18px; margin: 0; flex-shrink: 0; accent-color: var(--slate); }
.certify-option span { font-size: 13.5px; color: var(--text); }
.certify-option.is-checked { border-color: var(--teal); background: var(--teal-soft); }
.certify-option.is-error { border-color: var(--red); background: var(--red-soft); }

.error-summary {
  display: none; background: var(--red-soft); border: 1px solid var(--red); border-radius: var(--radius);
  padding: 14px 16px; margin: 0 32px 0; font-size: 13.5px; color: var(--text);
}
.error-summary.is-visible { display: block; margin: 20px 32px 0; }
.error-summary:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.error-summary h3 { font-size: 14.5px; color: var(--red); margin-bottom: 8px; }
.error-summary ul { margin: 0; padding-left: 20px; }
.error-summary li { margin-bottom: 4px; }
.error-summary a { color: var(--red); font-weight: 600; text-decoration: underline; }

/* Confirmation panel */
.confirm-panel { padding: 56px 32px; text-align: center; }
.confirm-icon {
  width: 64px; height: 64px; border-radius: 50%; background: var(--green-soft); color: var(--green);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
}
.confirm-panel h2 { font-size: 22px; margin-bottom: 10px; }
.confirm-panel p { color: var(--text-secondary); max-width: 52ch; margin: 0 auto 8px; }
.confirm-ref { display: inline-block; margin: 16px 0; padding: 10px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--font-heading); font-weight: 600; color: var(--slate); letter-spacing: 0.02em; }
.confirm-actions { margin-top: 24px; }

@media (max-width: 640px) {
  .step-panel { padding: 22px 18px; }
  .choice-option-other { flex-wrap: wrap; }
  .choice-inline-text { flex: 1 1 100%; min-width: 0; }
  .review-row { flex-direction: column; gap: 2px; }
  .review-row dt { width: auto; }
}