/* Teacher application, verification and privacy pages. Uses the tokens in site.css. */
.teach-page [hidden] { display: none !important; }

.teach-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(32px, 4vw, 48px); position: relative; overflow: hidden; }
.teach-hero::after {
  content: ""; position: absolute; right: -12vw; top: -30vw; width: 60vw; height: 60vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,165,65,.18), rgba(242,165,65,0) 62%); pointer-events: none;
}
.teach-title {
  font-family: var(--f-display); font-weight: 400; letter-spacing: -0.02em; line-height: 1.02;
  font-size: clamp(42px, 5.4vw + 12px, 88px); max-width: 14ch; margin-bottom: 22px; text-wrap: balance;
}

.apply { padding-bottom: var(--section); }
.apply-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.apply-grid.single { grid-template-columns: minmax(0, 760px); }
.apply-main { max-width: 760px; min-width: 0; }

/* ---- stepper ---- */
.stepper { position: sticky; top: 72px; height: calc(100vh - 72px); max-height: 760px; display: flex; flex-direction: column; justify-content: center; }
.stepper ol { list-style: none; margin: 0; padding: 0; position: relative; }
.stepper ol::before { content: ""; position: absolute; left: 15px; top: 16px; bottom: 16px; width: 1px; background: var(--forest-12); }
.stepper li { display: flex; align-items: center; gap: 14px; padding: 18px 0; color: var(--forest-50); font-size: 15px; position: relative; }
.stepper li.reachable { cursor: pointer; color: var(--forest-70); }
.stepper li.reachable:hover .st { color: var(--forest); }
.stepper .sn {
  width: 31px; height: 31px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--forest-12); font-size: 12px; font-weight: 560; letter-spacing: .02em;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.stepper li.done .sn { background: var(--forest); color: var(--paper); border-color: var(--forest); }
.stepper li[aria-current] { color: var(--forest); font-weight: 520; }
.stepper li[aria-current] .sn { border-color: var(--forest); box-shadow: 0 0 0 4px var(--dawn-soft); }
.stepper-note { margin-top: 22px; font-size: 13px; color: var(--forest-50); line-height: 1.5; max-width: 22ch; }
.stepper.complete li .sn { background: var(--forest); color: var(--paper); }

/* ---- notices ---- */
.notice { background: var(--paper-2); border-radius: 14px; padding: 16px 20px; font-size: 15px; margin-bottom: 28px; }
.notice.bad h2 { font-family: var(--f-display); font-weight: 400; font-size: 28px; margin-bottom: 8px; max-width: none; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--forest); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---- steps ---- */
.apply-form { display: block; }
.fstep { border-top: 1px solid var(--forest-12); padding-top: clamp(28px, 4vw, 40px); }
.fstep + .fstep:not([hidden]) { margin-top: clamp(40px, 5vw, 64px); }
.step-head { margin-bottom: clamp(24px, 3vw, 36px); }
.step-n { font-size: 12.5px; font-weight: 560; letter-spacing: .12em; text-transform: uppercase; color: var(--forest-50); margin-bottom: 10px; }
.step-head h2 { font-size: clamp(30px, 2.2vw + 16px, 44px); max-width: none; outline: none; }

/* ---- questions ---- */
.q { margin: 0 0 30px; padding: 0; border: 0; min-width: 0; }
.q > label:not(.check):not(.dropzone), .q legend, .q .label { display: block; font-weight: 540; font-size: 16.5px; margin-bottom: 10px; padding: 0; line-height: 1.4; }
.q .hint { margin: -4px 0 12px; font-size: 14.5px; color: var(--forest-70); }
.q-opt { font-weight: 400; color: var(--forest-50); }
.q input[type=text], .q input[type=email], .q input[type=tel], .q input[type=url], .q input[type=date], .q input[type=number], .q input:not([type]), .q textarea, .q select {
  width: 100%; font: 400 16.5px/1.4 var(--f-text); color: var(--forest);
  background: #fffdf8; border: 1px solid rgba(19,50,43,.22); border-radius: 12px; padding: 14px 16px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease); appearance: none; -webkit-appearance: none;
}
.q input[type=date] { min-height: 52px; }
.q textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.q input:focus, .q textarea:focus, .q select:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 4px var(--dawn-soft); }
.q input::placeholder, .q textarea::placeholder { color: var(--forest-50); }
.q.narrow input { max-width: 240px; }
.row-2 { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 0 18px; align-items: end; }
.row-2 .q.narrow input { max-width: none; }
.phone-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; }
.phone-row .cc { text-align: center; }
.exp-row { display: flex; gap: 12px; flex-wrap: wrap; }
.unit { position: relative; display: block; width: 160px; }
.unit input { padding-right: 76px !important; }
.unit span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--forest-50); font-size: 15px; pointer-events: none; }
.count { font-size: 13px; color: var(--forest-50); text-align: right; margin-top: 6px; }

/* ---- chips ---- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px;
  border: 1px solid rgba(19,50,43,.22); background: #fffdf8; font-size: 15.5px; line-height: 1.2;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.chip:hover span { border-color: var(--forest); }
.chip input:checked + span { background: var(--forest); color: var(--paper); border-color: var(--forest); }
.chips-q[data-type=checkbox] .chip input:checked + span::before {
  content: ""; width: 10px; height: 6px; border: solid var(--dawn); border-width: 0 0 2px 2px; transform: translateY(-2px) rotate(-45deg);
}
.chip input:focus-visible + span { box-shadow: 0 0 0 4px var(--dawn-soft); border-color: var(--forest); }
.days .chip span { min-width: 64px; justify-content: center; }
.other { margin-top: 12px; max-width: 420px; }

/* ---- checks ---- */
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; margin-top: 12px; font-weight: 400; line-height: 1.5; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border: 1.5px solid rgba(19,50,43,.4); border-radius: 6px; background: #fffdf8; display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; }
.check input::after { content: ""; width: 10px; height: 6px; border: solid var(--paper); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .2s var(--ease); }
.check input:checked { background: var(--forest); border-color: var(--forest); }
.check input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.check input:focus-visible { box-shadow: 0 0 0 4px var(--dawn-soft); outline: none; }
.check.big { font-size: 16px; background: #fffdf8; border: 1px solid var(--forest-12); border-radius: 14px; padding: 18px 20px; margin: 0; }
.check a { color: var(--forest); text-underline-offset: 3px; }
.callout { background: var(--dawn-soft); border-radius: 14px; padding: 18px 20px; font-size: 15px; }

/* ---- files ---- */
.dropzone {
  position: relative; display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 14px;
  border: 1.5px dashed rgba(19,50,43,.3); background: #fffdf8; cursor: pointer; transition: border-color .2s, background .2s;
}
.dropzone:hover, .dropzone.over { border-color: var(--forest); background: var(--paper-2); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone:focus-within { border-color: var(--forest); box-shadow: 0 0 0 4px var(--dawn-soft); }
.drop-icon { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--dawn-soft); display: grid; place-items: center; }
.drop-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--forest); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.drop-text { display: flex; flex-direction: column; font-size: 15.5px; }
.drop-sub { color: var(--forest-50); font-size: 14px; }
.file-list { list-style: none; margin: 10px 0 0; padding: 0; }
.file-list li { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--forest-12); font-size: 15px; }
.file-list .fn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list .fs { color: var(--forest-50); font-size: 13.5px; }

/* ---- errors ---- */
.err { color: #b0341a; font-weight: 520; font-size: 14px; margin-top: 8px; min-height: 0; }
.err:empty { display: none; }
.has-err input:not([type=checkbox]):not([type=radio]), .has-err textarea, .has-err .dropzone { border-color: #a2361f; }
.has-err .chip span { border-color: rgba(162,54,31,.55); }
.has-err .check.big { border-color: #a2361f; }
.form-error { background: #fbe9e3; color: #7e2a18; border-radius: 12px; padding: 14px 18px; margin: 8px 0 20px; font-size: 15px; }

/* ---- nav ---- */
.form-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--forest-12); }
.form-nav [data-next], .form-nav [data-submit] { margin-left: auto; }
.form-nav .btn[disabled] { opacity: .7; cursor: progress; }
.turnstile { margin-top: 8px; min-height: 0; }

/* ---- done ---- */
.done { padding-top: 8px; outline: none; }
.done h2 { max-width: 18ch; margin: 18px 0 16px; }
.done .lead strong { color: var(--forest); font-weight: 600; letter-spacing: .04em; }
.done-sun { width: 120px; height: 70px; fill: none; stroke: var(--forest); stroke-width: 2.2; stroke-linecap: round; }
.done-sun path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s var(--ease-rise) forwards; }
.done-sun path:nth-child(2) { animation-delay: .2s; } .done-sun path:nth-child(3) { animation-delay: .6s; stroke: var(--dawn); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.next { list-style: none; padding: 0; margin: 36px 0; border-top: 1px solid var(--forest-12); }
.next li { display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--forest-12); }
.next li span { font-size: 12.5px; font-weight: 560; color: var(--forest-50); letter-spacing: .08em; padding-top: 3px; }
.done-trust { font-size: 14px; color: var(--forest-70); margin-bottom: 28px; }

/* ---- legal ---- */
.legal { padding-bottom: var(--section); }
.legal-body { max-width: calc(760px + 2 * var(--gutter)); margin: 0; }
.legal-meta { font-size: 14px; color: var(--forest-50); margin-bottom: 36px; border-top: 1px solid var(--forest-12); padding-top: 24px; }
.legal h2 { font-size: clamp(24px, 1.2vw + 18px, 32px); margin: 40px 0 14px; max-width: none; }
.legal p, .legal li { color: var(--forest-70); margin-bottom: 12px; }
.legal p strong { color: var(--forest); font-weight: 560; }
.legal ul { padding-left: 1.2em; margin: 0 0 12px; }
.legal-back { margin-top: 48px; }

@media (max-width: 900px) {
  .apply-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .stepper { position: static; height: auto; max-height: none; display: block; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; }
  .stepper ol { display: flex; gap: 6px; }
  .stepper ol::before { display: none; }
  .stepper li { padding: 4px 10px 4px 0; white-space: nowrap; font-size: 14px; gap: 8px; }
  .stepper li:not([aria-current]) .st { display: none; }
  .stepper .sn { width: 28px; height: 28px; }
  .stepper-note { display: none; }
}
@media (max-width: 560px) {
  .row-2 { grid-template-columns: minmax(0, 1fr); }
  .chip span { padding: 9px 15px; font-size: 15px; }
  .form-nav .btn { --h: 50px; padding: 0 20px; }
  .q.narrow input { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .done-sun path { animation: none; stroke-dashoffset: 0; }
}

.demo-note{margin-top:1rem;font-size:.85rem;opacity:.7}

/* ---- why we ask (rail) ---- */
.stepper-why { margin-top: 28px; padding-left: 16px; border-left: 2px solid var(--dawn); font-family: var(--f-display); font-size: 17px; line-height: 1.45; color: var(--forest); max-width: 24ch; min-height: 5.8em; }
.stepper-why.in { animation: whyIn .5s var(--ease) both; }
@keyframes whyIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---- your teaching week ---- */
.week { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: center; margin: -6px 0 34px; padding: 22px 26px; background: #fffdf8; border: 1px solid var(--forest-12); border-radius: 20px; }
.week-ring { width: 100%; height: auto; display: block; overflow: visible; }
.week-ring .cell { fill: var(--forest-12); fill-opacity: .55; transition: fill .35s var(--ease), fill-opacity .35s var(--ease); }
.week-ring .cell.on { fill-opacity: 1; }
.week-ring .cell.on.s0 { fill: #f7c77f; } .week-ring .cell.on.s1 { fill: var(--dawn); } .week-ring .cell.on.s2 { fill: #d9893a; }
.week-ring .cell.on.s3 { fill: #3d6b5f; } .week-ring .cell.on.s4 { fill: var(--forest); }
.week-ring .hub { fill: var(--paper); stroke: var(--forest-12); }
.week-ring .day { font: 500 11px var(--f-text); fill: var(--forest-50); text-anchor: middle; dominant-baseline: middle; transition: fill .3s; }
.week-ring .day.on { fill: var(--forest); font-weight: 650; }
.week-k { font-size: 12.5px; font-weight: 560; letter-spacing: .12em; text-transform: uppercase; color: var(--forest-50); margin: 0 0 6px; }
.week-n { font-family: var(--f-display); font-size: 44px; line-height: 1.05; margin: 0 0 10px; }
.week-n strong { font-weight: 400; }
.week-n span { font-size: 22px; color: var(--forest-70); }
.week-line { font-size: 15px; color: var(--forest-70); margin: 0 0 14px; max-width: 36ch; }
.week-key { font-size: 12.5px; color: var(--forest-50); margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.week-key span { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.week-key .k-in { background: #f7c77f; } .week-key .k-out { background: var(--forest); margin-left: 8px; }

/* ---- keepsake ---- */
.keepsake { margin: 6px 0 30px; max-width: 420px; }
.ks-card { width: 100%; height: auto; display: block; border-radius: 18px; box-shadow: 0 18px 50px -24px rgba(19,50,43,.45); }
.ks-actions { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.keepsake:not([hidden]) .ks-card { animation: whyIn .7s var(--ease) both; }

@media (max-width: 900px) {
  .stepper-why { display: none; }
  .week { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding: 20px; }
  .week-ring { max-width: 240px; }
  .week-line { margin-left: auto; margin-right: auto; }
  .week-key { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .stepper-why.in, .keepsake:not([hidden]) .ks-card { animation: none; }
  .week-ring .cell { transition: none; }
}
