/* ════════════════════════════════════════════════════════════════
   FNF /apply — aesthetic polish layer (drop-in)
   Date: 2026-10-07 · Status: STAGING ONLY · Prod HOLD until Lamin GO
   Load AFTER: tokens.css, base.css, home.css, interior-sections.css,
               interior.css, fnf-chrome.css
     <link rel="stylesheet" href="/css/apply-aesthetic.css?v=apply1" />
   Scope: everything lives under `.page-light .apply-section` so no other
   page is touched. Extends the live classes (.apply-steps, .apply-step,
   .apply-option, .apply-grid, .apply-actions, .apply-agree, .apply-done,
   .btn.btn-primary, .btn-link). New classes are additive helpers only:
   .apply-progress, .apply-card, .field, .field-third, .field-error,
   .apply-yn, .apply-reveal, .apply-done-mark, .apply-next.
   Reused by /careers/apply (Hire) unchanged.
   ════════════════════════════════════════════════════════════════ */

/* ── 1. Local tokens ─────────────────────────────────────────────
   Live bugs fixed here: --paper-line and --on-paper-soft are referenced
   by interior-sections.css but never defined (step rules and option
   hairlines currently render transparent / currentColor). Brand brass is
   re-pinned to the locked #B08A4F inside the form only (.page-light sets
   #C4A05A site-wide — flagged in README, not changed globally). */
.page-light .apply-section {
  --apply-navy:        #00213D;
  --apply-navy-soft:   #1B5A96;
  --apply-ink:         #0E2438;
  --apply-brass:       #B08A4F;   /* fills, borders, focus — not body text on white */
  --apply-brass-bright:#C9A570;
  --apply-brass-deep:  #8C6E3D;   /* text-safe brass on white (4.7:1) */
  --apply-brass-wash:  rgba(176, 138, 79, 0.08);
  --apply-brass-ring:  rgba(176, 138, 79, 0.28);
  --apply-paper:       #F4EFE5;
  --apply-cool:        #F7F9FC;
  --apply-white:       #FFFFFF;
  --apply-hair:        #D5DEE8;
  --apply-hair-strong: #B9C6D4;
  --apply-mute:        #5B6B7C;   /* help text (5.4:1 on white) */
  --apply-danger:      #6B1220;
  --apply-danger-wash: rgba(107, 18, 32, 0.06);
  --apply-success:     #0F6F4F;

  --apply-col:         760px;     /* single reading column for the whole flow */
  --apply-radius:      10px;
  --apply-radius-sm:   6px;
  --apply-field-h:     48px;
  --apply-gap-row:     20px;
  --apply-gap-col:     16px;
  --apply-card-pad:    clamp(20px, 4vw, 40px);
  --apply-shadow:      0 1px 2px rgba(0, 33, 61, 0.04), 0 12px 32px -20px rgba(0, 33, 61, 0.22);
  --apply-ease:        cubic-bezier(0.22, 0.61, 0.36, 1);

  /* back-fill the undefined live tokens so legacy rules resolve */
  --paper-line:     var(--apply-hair);
  --on-paper-soft:  var(--apply-mute);

  /* pin brand brass inside the form only */
  --brass:          var(--apply-brass);
  --brass-bright:   var(--apply-brass-bright);
  --brass-deep:     var(--apply-brass-deep);

  background:
    linear-gradient(180deg, var(--apply-cool) 0%, var(--apply-cool) 60%, #EEF3F8 100%);
  color: var(--apply-ink);
  padding-block: clamp(24px, 4vw, 48px) clamp(48px, 8vw, 96px);
}

/* ── 2. Column — one consistent width for steps, card, actions ── */
.page-light .apply-section .container-narrow,
.page-light .apply-section .apply-shell {
  max-width: var(--apply-col);
  margin-inline: auto;
  padding-inline: max(16px, 3vw);
}

/* ── 3. Progress indicator ─────────────────────────────────────── */
.page-light .apply-section .apply-step-slot { display: contents; }
.page-light .apply-section .apply-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  padding: 0;
  margin: 0 0 12px;
  border: 0;
  list-style: none;
  counter-reset: none;
}
.page-light .apply-section .apply-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--apply-mute);
  white-space: nowrap;
  background: none;
  border: 0;
  padding: 0;
}
.page-light .apply-section .apply-step-num {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--apply-mute);
  background: var(--apply-white);
  border: 1.5px solid var(--apply-hair-strong);
  transition: background-color 200ms var(--apply-ease), border-color 200ms var(--apply-ease), color 200ms var(--apply-ease);
}
.page-light .apply-section .apply-step.is-active { color: var(--apply-navy); }
.page-light .apply-section .apply-step.is-active .apply-step-num {
  background: var(--apply-navy);
  border-color: var(--apply-navy);
  color: var(--apply-white);
  box-shadow: 0 0 0 4px var(--apply-brass-ring);
}
.page-light .apply-section .apply-step.is-done { color: var(--apply-navy); }
.page-light .apply-section .apply-step.is-done .apply-step-num {
  background: var(--apply-brass);
  border-color: var(--apply-brass);
  color: transparent;            /* numeral swapped for a check */
  position: relative;
}
.page-light .apply-section .apply-step.is-done .apply-step-num::after {
  content: "";
  position: absolute;
  width: 10px; height: 6px;
  border: 2px solid var(--apply-navy);
  border-top: 0; border-right: 0;
  transform: translateY(-1px) rotate(-45deg);
}
/* completed steps are clickable (jump back) when rendered as <button> */
.page-light .apply-section button.apply-step.is-done { cursor: pointer; }
.page-light .apply-section button.apply-step.is-done:hover .apply-step-label { text-decoration: underline; text-underline-offset: 3px; }

.page-light .apply-section .apply-step-rule {
  flex: 1 1 16px;
  min-width: 12px;
  height: 1.5px;
  background: var(--apply-hair);
  border-radius: 1px;
}
.page-light .apply-section .apply-step.is-done + .apply-step-rule { background: var(--apply-brass); }

/* thin bar under the steps — set style="--apply-progress: 40%" from JS */
.page-light .apply-section .apply-progress {
  height: 3px;
  margin: 0 0 20px;
  background: var(--apply-hair);
  border-radius: 3px;
  overflow: hidden;
}
.page-light .apply-section .apply-progress > span {
  display: block;
  height: 100%;
  width: var(--apply-progress, 0%);
  background: linear-gradient(90deg, var(--apply-brass-deep), var(--apply-brass));
  transition: width 320ms var(--apply-ease);
}
/* "Step 2 of 5 · Contact" — shown on mobile in place of labels */
.page-light .apply-section .apply-step-caption {
  display: none;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--apply-brass-deep);
  margin: 0 0 8px;
}

@media (max-width: 720px) {
  .page-light .apply-section .apply-step-label { display: none; }
  .page-light .apply-section .apply-step-caption { display: block; }
  .page-light .apply-section .apply-steps { gap: 6px; }
}

/* ── 4. Stage card ─────────────────────────────────────────────── */
.page-light .apply-section .apply-form { padding: 0; }

.page-light .apply-section .apply-stage {
  display: block;
  min-height: 0;                 /* live had 60vh → big empty gaps */
  background: var(--apply-white);
  border: 1px solid var(--apply-hair);
  border-radius: var(--apply-radius);
  box-shadow: var(--apply-shadow);
  padding: var(--apply-card-pad);
  padding-bottom: 0;             /* actions bar supplies the bottom edge */
  animation: apply-stage-in 260ms var(--apply-ease) both;
}
.page-light .apply-section .apply-stage[data-stage="0"],
.page-light .apply-section .apply-stage.apply-done { padding-bottom: var(--apply-card-pad); }

@keyframes apply-stage-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* section head: single column (live .page-light .section-head is a 2-col grid) */
.page-light .apply-section .apply-stage .section-head {
  display: block;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}
.page-light .apply-section .apply-stage .eyebrow {
  display: block;
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--apply-brass-deep);
}
.page-light .apply-section .apply-stage .section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--apply-navy);
  text-wrap: balance;
}
.page-light .apply-section .apply-stage .section-head h2 em {
  font-style: normal;
  color: var(--apply-brass-deep);
}
.page-light .apply-section .apply-stage .section-help {
  margin: 8px 0 0;
  max-width: 58ch;
  font-size: 15px;
  line-height: 1.5;
  color: var(--apply-mute);
}

/* sub-group divider inside a stage (e.g. "Present address", "Co-borrower") */
.page-light .apply-section .apply-group-title {
  grid-column: 1 / -1;
  margin: 8px 0 -4px;
  padding-top: 20px;
  border-top: 1px solid var(--apply-hair);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--apply-navy);
}
.page-light .apply-section .apply-group-title:first-child { border-top: 0; padding-top: 0; margin-top: 0; }

/* ── 5. Field grid — 6-col track so halves AND thirds align ─────
   default cell = half (span 3) · .field-full = span 6 · .field-third = span 2
   City / State / ZIP → three .field-third cells on one row.            */
.page-light .apply-section .apply-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--apply-gap-row) var(--apply-gap-col);
  align-items: start;
}
.page-light .apply-section .apply-grid > * { grid-column: span 3; min-width: 0; }
.page-light .apply-section .apply-grid > .field-full,
.page-light .apply-section .apply-grid > fieldset,
.page-light .apply-section .apply-grid > template + * { grid-column: 1 / -1; }
.page-light .apply-section .apply-grid > .field-third { grid-column: span 2; }

@media (max-width: 640px) {
  .page-light .apply-section .apply-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .page-light .apply-section .apply-grid > * { grid-column: 1 / -1; }
  /* keep State + ZIP side by side on phones; City goes full */
  .page-light .apply-section .apply-grid > .field-third.field-pair { grid-column: span 1; }
}

.page-light .apply-section .field { display: flex; flex-direction: column; gap: 6px; }

/* labels: sentence case, readable — replaces live uppercase mono micro-labels */
.page-light .apply-section .apply-grid label,
.page-light .apply-section .apply-grid legend,
.page-light .apply-section .field > label,
.page-light .apply-section .program-intake > label {
  display: block;
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  color: var(--apply-navy);
}
.page-light .apply-section .req {
  color: var(--apply-brass-deep);
  margin-left: 2px;
  font-weight: 800;
}
.page-light .apply-section .lbl-soft {
  font-family: var(--body);
  font-weight: 400;
  font-size: 13px;
  color: var(--apply-mute);
  opacity: 1;
  text-transform: none;
  letter-spacing: 0;
}
.page-light .apply-section .field-hint {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--apply-mute);
}

/* inputs: boxed, 48px, aligned baseline across the row */
.page-light .apply-section input[type="text"],
.page-light .apply-section input[type="email"],
.page-light .apply-section input[type="tel"],
.page-light .apply-section input[type="url"],
.page-light .apply-section input[type="number"],
.page-light .apply-section input[type="date"],
.page-light .apply-section select,
.page-light .apply-section textarea {
  display: block;
  width: 100%;
  min-height: var(--apply-field-h);
  padding: 12px 14px;
  font-family: var(--body);
  font-size: 16px;               /* ≥16px prevents iOS zoom on focus */
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--apply-ink);
  background: var(--apply-white);
  border: 1px solid var(--apply-hair-strong);
  border-radius: var(--apply-radius-sm);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(0, 33, 61, 0.03);
  transition: border-color 160ms var(--apply-ease), box-shadow 160ms var(--apply-ease), background-color 160ms var(--apply-ease);
  -webkit-appearance: none;
  appearance: none;
}
.page-light .apply-section input::placeholder,
.page-light .apply-section textarea::placeholder { color: #8A97A5; opacity: 1; }

.page-light .apply-section input:hover,
.page-light .apply-section select:hover,
.page-light .apply-section textarea:hover { border-color: var(--apply-navy-soft); }

.page-light .apply-section input:focus,
.page-light .apply-section select:focus,
.page-light .apply-section textarea:focus,
.page-light .apply-section input:focus-visible,
.page-light .apply-section select:focus-visible,
.page-light .apply-section textarea:focus-visible {
  border-color: var(--apply-brass);
  box-shadow: 0 0 0 3px var(--apply-brass-ring);
}
.page-light .apply-section input:disabled,
.page-light .apply-section select:disabled,
.page-light .apply-section textarea:disabled {
  background: var(--apply-cool);
  color: var(--apply-mute);
  cursor: not-allowed;
}
.page-light .apply-section textarea { min-height: 112px; resize: vertical; }

/* native select with a brand chevron */
.page-light .apply-section select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2300213D' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  cursor: pointer;
}
.page-light .apply-section select:invalid,
.page-light .apply-section select option[value=""] { color: #8A97A5; }
.page-light .apply-section select option { color: var(--apply-ink); }

/* money inputs: prefix "$" via wrapper <span class="input-affix" data-prefix="$"> */
.page-light .apply-section .input-affix { position: relative; display: block; }
.page-light .apply-section .input-affix::before {
  content: attr(data-prefix);
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--apply-mute);
  pointer-events: none;
}
.page-light .apply-section .input-affix > input { padding-left: 28px; font-variant-numeric: tabular-nums; }

/* validation */
.page-light .apply-section [aria-invalid="true"],
.page-light .apply-section .is-invalid input,
.page-light .apply-section .is-invalid select,
.page-light .apply-section .is-invalid textarea {
  border-color: var(--apply-danger);
  background: #FFFCFC;
}
.page-light .apply-section [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(107, 18, 32, 0.16); }
.page-light .apply-section .field-error {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--apply-danger);
}
.page-light .apply-section .field-error::before {
  content: "!";
  flex: 0 0 16px;
  height: 16px;
  border-radius: 50%;
  display: grid; place-items: center;
  font: 800 11px/1 var(--display);
  color: var(--apply-white);
  background: var(--apply-danger);
  margin-top: 1px;
}
.page-light .apply-section .apply-error {
  margin: 20px 0 0;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--apply-danger);
  background: var(--apply-danger-wash);
  border: 1px solid rgba(107, 18, 32, 0.22);
  border-left: 3px solid var(--apply-danger);
  border-radius: var(--apply-radius-sm);
}

/* ── 6. S0 tiles (extends .apply-options / .apply-option) ──────── */
.page-light .apply-section .apply-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 640px) {
  .page-light .apply-section .apply-options { grid-template-columns: 1fr; }
}
.page-light .apply-section .apply-option,
.page-light .apply-section .apply-option:last-child { border: 0; }

.page-light .apply-section .apply-option button {
  width: 100%;
  height: 100%;
  min-height: 72px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 16px;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  text-align: left;
  font: inherit;
  color: inherit;
  background: var(--apply-white);
  border: 1.5px solid var(--apply-hair);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 160ms var(--apply-ease), background-color 160ms var(--apply-ease),
              box-shadow 160ms var(--apply-ease), transform 160ms var(--apply-ease);
}
.page-light .apply-section .apply-option button:hover {
  border-color: var(--apply-brass);
  background: var(--apply-white);
  box-shadow: 0 6px 18px -12px rgba(0, 33, 61, 0.35);
  transform: translateY(-1px);
}
.page-light .apply-section .apply-option button:focus-visible {
  outline: none;
  border-color: var(--apply-brass);
  box-shadow: 0 0 0 3px var(--apply-brass-ring);
}
.page-light .apply-section .apply-option.is-selected button,
.page-light .apply-section .apply-option button[aria-checked="true"] {
  border-color: var(--apply-brass);
  background: var(--apply-brass-wash);
  box-shadow: inset 0 0 0 1px var(--apply-brass);
  transform: none;
}
.page-light .apply-section .apply-option .opt-num {
  width: 32px; height: 32px;
  border-radius: 6px;
  display: grid; place-items: center;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--apply-brass-deep);
  background: var(--apply-cool);
  border: 1px solid var(--apply-hair);
}
.page-light .apply-section .apply-option.is-selected .opt-num {
  color: var(--apply-navy);
  background: var(--apply-brass);
  border-color: var(--apply-brass);
}
.page-light .apply-section .apply-option .opt-content { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.page-light .apply-section .apply-option .opt-title {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--apply-navy);
}
.page-light .apply-section .apply-option .opt-body {
  font-family: var(--body);
  font-size: 13px;
  line-height: 1.4;
  color: var(--apply-mute);
}
.page-light .apply-section .apply-option .opt-arrow {
  display: block;
  font-size: 16px;
  color: var(--apply-hair-strong);
  transition: color 160ms var(--apply-ease), transform 200ms var(--apply-ease);
}
.page-light .apply-section .apply-option button:hover .opt-arrow,
.page-light .apply-section .apply-option.is-selected .opt-arrow {
  color: var(--apply-brass-deep);
  transform: translateX(3px);
}
/* "Something else" spans the row so the 10-tile grid ends cleanly */
.page-light .apply-section .apply-option.opt-wide { grid-column: 1 / -1; }

/* S0 never shows an actions bar (auto-advance lock) */
.page-light .apply-section .apply-stage[data-stage="0"] .apply-actions { display: none !important; }

/* ── 7. Y/N segmented control (radios stay native for a11y) ───── */
.page-light .apply-section .apply-yn,
.page-light .apply-section .referral-radio {
  display: inline-flex;
  gap: 0;
  padding: 3px;
  background: var(--apply-cool);
  border: 1px solid var(--apply-hair);
  border-radius: 8px;
}
.page-light .apply-section .apply-yn label,
.page-light .apply-section .referral-radio-row {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 40px;
  margin: 0;
  padding: 0 16px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: var(--apply-mute);
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 160ms var(--apply-ease), color 160ms var(--apply-ease), box-shadow 160ms var(--apply-ease);
}
.page-light .apply-section .apply-yn input[type="radio"],
.page-light .apply-section .referral-radio input[type="radio"] {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.page-light .apply-section .apply-yn label:has(input:checked),
.page-light .apply-section .referral-radio-row:has(input:checked) {
  color: var(--apply-navy);
  background: var(--apply-white);
  box-shadow: 0 1px 2px rgba(0, 33, 61, 0.12), inset 0 0 0 1px var(--apply-brass);
}
.page-light .apply-section .apply-yn label:has(input:focus-visible),
.page-light .apply-section .referral-radio-row:has(input:focus-visible) {
  box-shadow: 0 0 0 3px var(--apply-brass-ring);
}
/* question + control on one row on desktop (declarations, compliance) */
.page-light .apply-section .apply-question {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 24px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--apply-hair);
}
.page-light .apply-section .apply-question > label,
.page-light .apply-section .apply-question > .q-text {
  margin: 0;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 400;
  color: var(--apply-ink);
}
.page-light .apply-section .apply-question > .field-hint,
.page-light .apply-section .apply-question > .field-error {
  grid-column: 1 / -1;
}
@media (max-width: 640px) {
  .page-light .apply-section .apply-question { grid-template-columns: 1fr; }
}

/* conditional reveal (co-borrower block, "If Yes, explain", referred-by) */
.page-light .apply-section .apply-reveal,
.page-light .apply-section .referrer-block {
  grid-column: 1 / -1;
  margin: 0;
  padding: 16px 0 4px 16px;
  border: 0;
  border-left: 2px solid var(--apply-brass);
  animation: apply-stage-in 200ms var(--apply-ease) both;
}
.page-light .apply-section .apply-reveal > .apply-grid { gap: 16px; }

/* ── 8. Consent block (extends .apply-agree) ───────────────────── */
.page-light .apply-section .apply-agree {
  margin: 24px 0 0;
  padding: 4px 16px;
  background: var(--apply-cool);
  border: 1px solid var(--apply-hair);
  border-radius: 8px;
}
.page-light .apply-section .apply-agree .agree-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  font-family: var(--body);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--apply-ink);
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}
.page-light .apply-section .apply-agree .agree-row + .agree-row { border-top: 1px solid var(--apply-hair); }
.page-light .apply-section .apply-agree input[type="checkbox"] {
  width: 18px; height: 18px;
  min-height: 0;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--apply-navy);
  -webkit-appearance: auto;
  appearance: auto;
  box-shadow: none;
}
.page-light .apply-section .apply-agree a {
  color: var(--apply-navy);
  border-bottom: 1px solid var(--apply-brass);
  text-decoration: none;
}
.page-light .apply-section .apply-agree a:hover { color: var(--apply-brass-deep); }
.page-light .apply-section .apply-agree .agree-initials { max-width: 160px; margin: -4px 0 14px 32px; }
.page-light .apply-section .apply-disclaimer {
  margin: 16px 0 0;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--apply-hair);
  border-radius: 8px;
  font-family: var(--body);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--apply-ink);
}

/* review summary (if kept) */
.page-light .apply-section .apply-summary li {
  grid-template-columns: 180px minmax(0, 1fr);
  padding: 10px 0;
  border-bottom: 1px solid var(--apply-hair);
}
.page-light .apply-section .apply-summary li:first-child { border-top: 1px solid var(--apply-hair); }
.page-light .apply-section .apply-summary .sum-label {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--apply-mute);
}
.page-light .apply-section .apply-summary .sum-value { font-size: 15px; color: var(--apply-ink); letter-spacing: 0; }

/* ── 9. Sticky actions bar (S1–S4) ─────────────────────────────── */
.page-light .apply-section .apply-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
  margin: 28px calc(var(--apply-card-pad) * -1) 0;
  padding: 14px var(--apply-card-pad);
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--apply-hair);
  border-radius: 0 0 var(--apply-radius) var(--apply-radius);
}
/* primary always sits right, even when Back is absent */
.page-light .apply-section .apply-actions > .btn-primary,
.page-light .apply-section .apply-actions > [type="submit"] { margin-left: auto; }
.page-light .apply-section .apply-actions .apply-actions-meta {
  font-size: 13px;
  color: var(--apply-mute);
  margin-right: auto;
}

.page-light .apply-section .btn.btn-primary {
  min-height: 48px;
  padding: 0 24px;
  gap: 10px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--apply-navy);
  background: var(--apply-brass);
  border: 1px solid var(--apply-brass);
  border-radius: var(--apply-radius-sm);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 6px 14px -8px rgba(140, 110, 61, 0.7);
  white-space: nowrap;
}
.page-light .apply-section .btn.btn-primary:hover:not(:disabled) {
  background: var(--apply-brass-bright);
  border-color: var(--apply-brass-bright);
}
.page-light .apply-section .btn.btn-primary:focus-visible {
  outline: 2px solid var(--apply-navy);
  outline-offset: 2px;
}
.page-light .apply-section .btn.btn-primary:disabled {
  opacity: 1;
  cursor: not-allowed;
  color: #7A8896;
  background: #E7ECF2;
  border-color: #E7ECF2;
  box-shadow: none;
}
/* Submit (S4) reads as the final, heavier action */
.page-light .apply-section .btn.btn-primary.btn-submit,
.page-light .apply-section .apply-actions > button[type="submit"].btn-primary {
  background: var(--apply-navy);
  border-color: var(--apply-navy);
  color: var(--apply-white);
  box-shadow: 0 6px 14px -8px rgba(0, 33, 61, 0.7);
}
.page-light .apply-section .btn.btn-primary.btn-submit:hover:not(:disabled),
.page-light .apply-section .apply-actions > button[type="submit"].btn-primary:hover:not(:disabled) {
  background: #003A6B;
  border-color: #003A6B;
}
.page-light .apply-section .apply-actions .btn-link {
  min-height: 44px;
  padding: 0 4px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  color: var(--apply-navy);
  background: none;
  border: 0;
  border-bottom: 0;
  text-decoration: underline;
  text-decoration-color: var(--apply-hair-strong);
  text-underline-offset: 4px;
  cursor: pointer;
}
.page-light .apply-section .apply-actions .btn-link:hover { text-decoration-color: var(--apply-brass); color: var(--apply-navy); }

@media (max-width: 640px) {
  .page-light .apply-section .apply-actions {
    position: sticky;
    margin-inline: calc(var(--apply-card-pad) * -1);
    border-radius: 0;
    box-shadow: 0 -8px 20px -14px rgba(0, 33, 61, 0.35);
  }
  .page-light .apply-section .apply-actions > .btn-primary,
  .page-light .apply-section .apply-actions > [type="submit"] { flex: 1 1 auto; justify-content: center; }
}

/* ── 10. Success state (extends .apply-done) ───────────────────── */
.page-light .apply-section .apply-done {
  text-align: center;
  padding: clamp(32px, 6vw, 56px) var(--apply-card-pad);
}
.page-light .apply-section .apply-done .section-head { margin-bottom: 12px; }
.page-light .apply-section .apply-done .section-head h2 { font-size: clamp(24px, 3vw, 32px); }
.page-light .apply-section .apply-done-mark {
  width: 56px; height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--apply-brass-wash);
  border: 1.5px solid var(--apply-brass);
  position: relative;
}
.page-light .apply-section .apply-done-mark::after {
  content: "";
  width: 18px; height: 10px;
  border: 3px solid var(--apply-navy);
  border-top: 0; border-right: 0;
  transform: translateY(-2px) rotate(-45deg);
}
.page-light .apply-section .apply-done .apply-done-body {
  max-width: 52ch;
  margin: 0 auto 12px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--apply-mute);
}
.page-light .apply-section .apply-done .apply-done-body a,
.page-light .apply-section .apply-done .apply-done-body strong { color: var(--apply-navy); font-weight: 700; }
.page-light .apply-section .apply-done .apply-done-body a { border-bottom: 1px solid var(--apply-brass); text-decoration: none; }
.page-light .apply-section .apply-next {
  list-style: none;
  max-width: 440px;
  margin: 24px auto 0;
  padding: 0;
  text-align: left;
  counter-reset: next;
  border-top: 1px solid var(--apply-hair);
}
.page-light .apply-section .apply-next li {
  counter-increment: next;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--apply-hair);
  font-size: 14.5px;
  color: var(--apply-ink);
}
.page-light .apply-section .apply-next li::before {
  content: counter(next, decimal-leading-zero);
  font: 800 12px/28px var(--display);
  color: var(--apply-brass-deep);
}
.page-light .apply-section .apply-done .apply-actions {
  position: static;
  justify-content: center;
  margin: 28px 0 0;
  padding: 0;
  background: none;
  border: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.page-light .apply-section .apply-done .apply-actions > .btn-primary { margin-left: 0; flex: 0 0 auto; }

/* ── 11. Special-program select (live S1 block; moves to S2 per lock) */
.page-light .apply-section .program-intake {
  grid-column: 1 / -1;
  padding: 16px;
  background: var(--apply-cool);
  border: 1px solid var(--apply-hair);
  border-radius: 8px;
}
.page-light .apply-section .program-intake p { margin: 8px 0 0; font-size: 13px; color: var(--apply-mute); }

/* ── 12. Motion + print ───────────────────────────────────────── */
.page-light .apply-section button.apply-step {
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
}
.page-light .apply-section button.apply-step:not(.is-done):not(.is-active) {
  cursor: default;
}

@media (prefers-reduced-motion: reduce) {
  .page-light .apply-section *,
  .page-light .apply-section *::before,
  .page-light .apply-section *::after {
    animation: none !important;
    transition: none !important;
  }
  .page-light .apply-section .apply-option button:hover { transform: none; }
}
@media print {
  .page-light .apply-section .apply-actions { position: static; box-shadow: none; }
  .page-light .apply-section .apply-stage { box-shadow: none; }
}
