/* ============================================================
   Dean Blankfield — 1:1 coaching application. Extends home.css.
   ============================================================ */

.apply { background: var(--paper); min-height: 100vh; }

/* ---- Nav: light variant (for the paper apply hero) ---- */
.nav--light .nav__brand { color: var(--ink); }
.nav--light .nav__links a { color: rgba(28,28,27,0.74); }
.nav--light .nav__links a:hover { opacity: 1; color: var(--ink); }
.nav--light .nav__cta { background: var(--ink); color: #fff; }
.nav--light .nav__cta:hover { opacity: 1; background: #000; }
.nav--light.scrolled .nav__brand { color: #fff; }
.nav--light.scrolled .nav__links a { color: rgba(255,255,255,0.92); }
.nav--light.scrolled .nav__cta { background: #fff; color: var(--brown); }

/* ---- Hero ---- */
.apply-hero { padding: clamp(122px,14vw,168px) 0 clamp(8px,2vw,20px); }
.ah__eb { display: block; color: var(--brown); }
.ah__title { font-family: var(--inter); font-weight: 700; font-size: clamp(34px,4.6vw,58px); line-height: 1.04; letter-spacing: -0.06em; color: var(--ink); margin-top: 14px; max-width: 16ch; text-wrap: balance; }
.ah__sub { margin-top: clamp(16px,2vw,22px); font-size: clamp(16px,1.5vw,19px); line-height: 1.55; letter-spacing: -0.016em; color: var(--muted); max-width: 58ch; text-wrap: pretty; }

/* ---- Stepper ---- */
.stepper { margin: clamp(36px,4.5vw,56px) 0 0; }
.stepper__track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }
.stepper__line { position: absolute; left: 0; right: 0; top: 17px; height: 2px; background: var(--hair); border-radius: 2px; }
.stepper__fill { position: absolute; left: 0; top: 17px; height: 2px; background: var(--brown); border-radius: 2px; width: 0; transition: width .45s var(--ease); }
.snode { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-right: 16px; }
.snode__dot { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; background: var(--cream); border: 2px solid var(--hair); display: grid; place-items: center; font-family: var(--inter); font-weight: 600; font-size: 15px; color: var(--muted2); transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease); }
.snode__dot svg { width: 18px; height: 18px; display: none; }
.snode__txt { line-height: 1.2; }
.snode__t { font-family: var(--inter); font-weight: 600; font-size: 14px; letter-spacing: -0.02em; color: var(--muted2); transition: color .3s var(--ease); }
.snode__d { font-size: 12px; letter-spacing: -0.01em; color: var(--muted2); margin-top: 3px; }
.snode.is-active .snode__dot { background: var(--brown); border-color: var(--brown); color: #fff; }
.snode.is-active .snode__t { color: var(--ink); }
.snode.is-done .snode__dot { background: var(--brown); border-color: var(--brown); color: #fff; }
.snode.is-done .snode__dot span { display: none; }
.snode.is-done .snode__dot svg { display: block; }
.snode.is-done .snode__t { color: var(--ink); }
.stepper__mobile { display: none; font-family: var(--inter); font-weight: 600; font-size: 14px; letter-spacing: -0.02em; color: var(--brown); }

/* ---- Form card ---- */
.apply-form { padding-bottom: clamp(72px,9vw,120px); }
.af-card { background: var(--cream); border: 1px solid var(--hair); border-radius: var(--r); padding: clamp(28px,4vw,52px); margin-top: clamp(28px,3.4vw,40px); box-shadow: 0 40px 80px -64px rgba(22,21,15,0.4); }
.af-step { display: none; }
.af-step.is-active { display: block; animation: afIn .45s var(--ease); }
@keyframes afIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.af-step__h { font-family: var(--inter); font-weight: 600; font-size: clamp(22px,2.2vw,28px); line-height: 1.16; letter-spacing: -0.045em; color: var(--ink); }
.af-step__sub { margin-top: 8px; font-size: clamp(15px,1.4vw,17px); line-height: 1.5; letter-spacing: -0.016em; color: var(--muted); max-width: 56ch; }
.af-body { margin-top: clamp(26px,3vw,36px); display: flex; flex-direction: column; gap: clamp(22px,2.6vw,30px); }

/* fields */
.af-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px,2.4vw,26px); }
.af-q__label { display: block; font-family: var(--inter); font-weight: 600; font-size: clamp(15px,1.4vw,17px); letter-spacing: -0.02em; color: var(--ink); }
.af-q__req { color: var(--brown); }
.af-q__hint { margin-top: 4px; font-size: 14px; letter-spacing: -0.01em; color: var(--muted2); }
.af-q input, .af-q textarea { width: 100%; margin-top: 12px; font-family: var(--inter); font-size: 16px; letter-spacing: -0.016em; color: var(--ink); background: #fff; border: 1px solid var(--hair); border-radius: 12px; padding: 14px 16px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.af-q textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.af-q input::placeholder, .af-q textarea::placeholder { color: var(--muted2); }
.af-q input:focus, .af-q textarea:focus { outline: none; border-color: var(--brown); box-shadow: 0 0 0 3px rgba(106,93,82,0.12); }
.af-q.err input, .af-q.err textarea, .af-q.err .af-opts { border-color: #b4453f; }
.af-q.err input:focus, .af-q.err textarea:focus { box-shadow: 0 0 0 3px rgba(180,69,63,0.14); }
.af-err { display: none; margin-top: 8px; font-size: 13px; letter-spacing: -0.01em; color: #b4453f; }
.af-q.err .af-err { display: block; }

/* radio option cards */
.af-opts { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; border-radius: 12px; }
.af-opt { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--hair); border-radius: 12px; cursor: pointer; transition: border-color .2s var(--ease), background .2s var(--ease); }
.af-opt:hover { border-color: var(--brown); }
.af-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.af-opt__mark { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--hair); display: grid; place-items: center; transition: border-color .2s var(--ease); }
.af-opt__mark::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brown); transform: scale(0); transition: transform .2s var(--ease); }
.af-opt__txt { font-family: var(--inter); font-size: 16px; letter-spacing: -0.016em; color: var(--ink); }
.af-opt:has(input:checked) { border-color: var(--brown); background: #fff; box-shadow: 0 0 0 3px rgba(106,93,82,0.1); }
.af-opt:has(input:checked) .af-opt__mark { border-color: var(--brown); }
.af-opt:has(input:checked) .af-opt__mark::after { transform: scale(1); }

/* investment panel */
.af-invest { background: radial-gradient(130% 130% at 85% 0%, #80715F 0%, var(--brown) 52%, #443A33 100%); color: #fff; border-radius: var(--r); padding: clamp(26px,3vw,38px); }
.af-invest__eb { font-family: var(--inter); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.66); }
.af-invest__lead { margin-top: 12px; font-family: var(--inter); font-weight: 500; font-size: clamp(19px,1.9vw,24px); line-height: 1.3; letter-spacing: -0.035em; color: #fff; max-width: 32ch; text-wrap: balance; }
.af-invest__rows { margin-top: clamp(22px,2.6vw,28px); display: flex; flex-direction: column; gap: 2px; border-top: 1px solid rgba(255,255,255,0.18); }
.af-invest__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.18); }

/* two-step investment sequence */
.af-invest__steps { margin-top: clamp(22px,2.6vw,28px); }
.af-invest__step { display: flex; gap: 16px; }
.af-invest__num { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--inter); font-weight: 700; font-size: 15px; color: #fff; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.3); }
.af-invest__body { flex: 1; padding-bottom: 4px; }
.af-invest__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.af-invest__sub { margin-top: 6px; font-family: var(--inter); font-size: clamp(14px,1.3vw,15px); line-height: 1.5; letter-spacing: -0.01em; color: rgba(255,255,255,0.7); max-width: 38ch; }
.af-invest__bridge { margin: 12px 0 12px 14px; padding: 10px 0 10px 30px; border-left: 1px solid rgba(255,255,255,0.3); font-family: var(--inter); font-style: italic; font-size: clamp(14px,1.3vw,15px); line-height: 1.45; letter-spacing: -0.01em; color: rgba(255,255,255,0.82); }
.af-invest__k { font-family: var(--inter); font-size: clamp(15px,1.4vw,17px); letter-spacing: -0.016em; color: rgba(255,255,255,0.86); max-width: 30ch; }
.af-invest__v { font-family: var(--inter); font-weight: 700; font-size: clamp(20px,2vw,26px); letter-spacing: -0.03em; color: #fff; white-space: nowrap; }
.af-invest__note { margin-top: 16px; font-size: 14px; line-height: 1.5; letter-spacing: -0.01em; color: rgba(255,255,255,0.74); }

/* footer nav of the form */
.af-foot { margin-top: clamp(28px,3.4vw,38px); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.af-back { display: inline-flex; align-items: center; gap: 8px; font-family: var(--inter); font-weight: 600; font-size: 15px; letter-spacing: -0.016em; color: var(--muted); background: transparent; border: none; cursor: pointer; padding: 12px 4px; transition: color .2s; }
.af-back:hover { color: var(--ink); }
.af-back svg { width: 18px; height: 18px; }
.af-back[hidden] { visibility: hidden; }
.af-prog { font-family: var(--inter); font-size: 13px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--muted2); }

/* success */
.af-success { display: none; text-align: center; max-width: 620px; margin: 0 auto; padding: clamp(40px,5vw,64px) 0; }
.af-success.show { display: block; animation: afIn .5s var(--ease); }
.af-success__ic { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto; background: var(--brown); display: grid; place-items: center; color: #fff; }
.af-success__ic svg { width: 34px; height: 34px; }
.af-success__t { font-family: var(--inter); font-weight: 600; font-size: clamp(28px,3.2vw,40px); line-height: 1.12; letter-spacing: -0.05em; color: var(--ink); margin-top: 26px; text-wrap: balance; }
.af-success__d { margin-top: 18px; font-size: clamp(16px,1.5vw,19px); line-height: 1.6; letter-spacing: -0.016em; color: var(--muted); text-wrap: pretty; }
.af-success__note { margin: 22px auto 0; max-width: 460px; display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 14px 16px; background: var(--cream, #f6f1e9); border: 1px solid var(--hair); border-radius: 12px; font-size: 14px; line-height: 1.5; letter-spacing: -0.01em; color: var(--muted); text-wrap: pretty; }
.af-success__note svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--brown); }
.af-success__note strong { color: var(--ink); font-weight: 600; }
.af-typo { color: var(--brown); }
.af-typo__btn { font: inherit; color: var(--brown); background: none; border: none; padding: 0; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.af-typo__btn:hover { opacity: 0.75; }
.af-success__cta { margin-top: 30px; display: inline-flex; }

/* ---- Responsive ---- */
@media (max-width: 760px) {
  .af-grid { grid-template-columns: 1fr; }
  .snode__txt { display: none; }
  .snode { padding-right: 0; }
  .stepper__mobile { display: block; margin-top: 16px; }
  .af-invest__row { flex-direction: column; gap: 4px; }
}
@media (max-width: 600px) {
  .nav--light .nav__links { display: none; }
}
