/* Teacher application page (/teach-with-us). Scoped by the ta- prefix; colours come from the site variables so Brand settings still apply. */
.ta-hero { position: relative; overflow: hidden; padding: 56px 0 34px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 75%, var(--bg)) 0%, var(--bg) 100%); border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.ta-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.ta-hero-bg svg { position: absolute; right: 4%; top: 0; height: 100%; width: min(46%, 520px); }
.ta-hero .container { position: relative; }
.ta-hero .eyebrow { letter-spacing: .16em; text-transform: uppercase; font-weight: 600; font-size: .8rem; color: var(--primary); margin-bottom: 14px; }
.ta-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05; max-width: 14ch; margin-bottom: .45em; }
.ta-hero .lead { max-width: 58ch; margin-bottom: 1.5rem; }
.ta-main { padding: 0 0 56px; margin-top: -4px; }
.ta-layout { display: grid; grid-template-columns: minmax(0, 72fr) minmax(0, 28fr); gap: 24px; align-items: start; max-width: 1200px; margin-inline: auto; padding-top: 28px; }
.ta-formcol { min-width: 0; }
.ta-side { position: sticky; top: 92px; display: grid; gap: 14px; }
.ta-more summary { display: none; }
.ta-more-in { display: grid; gap: 14px; }
.ta-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 18px 40px -30px rgba(28, 45, 36, .35); padding: 20px; }
.ta-card h3 { font-size: 1.05rem; margin: 0 0 12px; }
.ta-form { padding: 0; overflow: hidden; border-radius: 22px; }

/* stepper */
.ta-steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 26px 28px 20px; border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent); counter-reset: x; }
.ta-steps li { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; }
.ta-steps li::before { content: ""; position: absolute; top: 16px; inset-inline-start: calc(-50% + 20px); inset-inline-end: calc(50% + 20px); height: 2px; background: #DAD3BE; }
.ta-steps li:first-child::before { display: none; }
.ta-steps li.done::before, .ta-steps li.cur::before { background: var(--primary); }
.ta-dot { position: relative; width: 32px; height: 32px; border-radius: 50%; border: 0; background: #E5DFCB; color: #7C7F73; font-weight: 700; font-size: .9rem; display: grid; place-items: center; cursor: pointer; z-index: 1; transition: background .2s, color .2s, transform .15s; }
.ta-dot:disabled { cursor: default; }
.ta-dot .c { display: none; width: 16px; height: 16px; } .ta-dot .c svg { width: 16px; height: 16px; }
.ta-steps li.cur .ta-dot { background: var(--primary); color: #fff; box-shadow: 0 0 0 5px color-mix(in srgb, var(--primary) 14%, transparent); }
.ta-steps li.done .ta-dot { background: var(--primary); color: #fff; }
.ta-steps li.done:not(.cur) .ta-dot .n { display: none; } .ta-steps li.done:not(.cur) .ta-dot .c { display: block; }
.ta-dot:not(:disabled):hover { transform: scale(1.06); }
.ta-sl { font-size: .8rem; line-height: 1.25; color: var(--muted); max-width: 10ch; }
.ta-steps li.cur .ta-sl { color: var(--primary); font-weight: 600; }
.ta-sl .l-short { display: none; }

/* step body */
.ta-body { padding: 26px 30px 6px; }
.ta-step { animation: ta-in .28s ease both; }
.ta-step[hidden] { display: none; }
@keyframes ta-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ta-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.ta-hic { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; }
.ta-hic svg { width: 24px; height: 24px; }
.ta-head h2 { margin: 0; font-size: 1.55rem; outline: none; }
.ta-head p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
.ta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.ta-form .field { margin-bottom: 20px; min-width: 0; }
.ta-form .field label, .ta-form .field .lbl { font-size: .9rem; font-weight: 600; margin-bottom: 7px; }
.ta-form .req { color: var(--muted); font-weight: 400; font-size: .8rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ta-form input[type=text], .ta-form input[type=email], .ta-form input[type=tel], .ta-form input[type=number], .ta-form textarea { width: 100%; min-height: 52px; border-radius: 12px; padding: 13px 16px; font-size: 1rem; border: 1.5px solid #D9D2BE; background: #fff; transition: border-color .18s, box-shadow .2s; }
.ta-form textarea { min-height: 128px; line-height: 1.55; }
.ta-form input:hover, .ta-form textarea:hover { border-color: color-mix(in srgb, var(--primary) 38%, #D9D2BE); }
.ta-form input:focus, .ta-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent); outline: 0; }
.ta-form input.invalid, .ta-form textarea.invalid { border-color: #A12B2B; box-shadow: 0 0 0 4px rgba(161, 43, 43, .08); }
.ta-form input::placeholder, .ta-form textarea::placeholder { color: #8B8F86; }
.ta-form .field .err:not(:empty), .ta-form > .ta-body .err:not(:empty) { display: block; margin-top: 8px; padding: 8px 12px; border-radius: 9px; background: #FBECEC; border: 1px solid #EBC4C4; color: #7A1F1F; font-size: .84rem; animation: fx-err .28s ease both; }
.ta-form .hint { margin-top: 6px; font-size: .82rem; color: var(--muted); }
.ta-form .fx-count { text-align: end; font-size: .76rem; color: var(--muted); margin-top: 4px; }
.ta-rh { margin: 26px 0 12px; font-size: 1.15rem; }
#tform-msg { padding: 0 30px; } #tform-msg:not(:empty) { padding-top: 18px; }

/* qualification rows and chips reuse the shared look; the wizard only widens them */
.ta-form .fx-qual { border-radius: 14px; background: #fff; }

/* upload cards */
.ta-ups { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14px; }
.ta-up { border: 1px solid var(--border); border-radius: 16px; background: #fff; padding: 16px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.ta-up-h { display: flex; gap: 12px; align-items: center; }
.ta-up-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; background: color-mix(in srgb, var(--primary) 10%, #fff); color: var(--primary); display: grid; place-items: center; }
.ta-up-ic svg { width: 22px; height: 22px; }
.ta-up-h b { display: block; font-size: .98rem; } .ta-up-h small, .ta-up-fmt { color: var(--muted); font-size: .8rem; }
.ta-up .fx-drop { margin: 0; justify-content: center; min-height: 64px; flex-wrap: wrap; text-align: center; }
.ta-up .fx-files { margin: 0; }
.ta-up .fx-files li { position: relative; flex-wrap: wrap; }
.ta-fic { color: var(--primary); display: inline-flex; } .ta-fic svg { width: 18px; height: 18px; }
.ta-fp { flex-basis: 100%; height: 5px; border-radius: 9px; background: color-mix(in srgb, var(--primary) 12%, #fff); overflow: hidden; }
.ta-fp[hidden] { display: none; } .ta-fp i { display: block; height: 100%; width: 0; background: var(--primary); transition: width .2s; }
.ta-form .fx-files button { width: 36px; height: 36px; }

/* review */
.ta-review { display: grid; gap: 12px; margin-bottom: 22px; }
.ta-rs { border: 1px solid var(--border); border-radius: 14px; background: #fff; padding: 14px 16px; }
.ta-rsh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ta-rsh h4 { margin: 0; font-size: .98rem; }
.ta-edit { border: 0; background: none; color: var(--primary); font-weight: 600; font-size: .86rem; cursor: pointer; text-decoration: underline; padding: 6px; }
.ta-rs dl { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: .9rem; }
.ta-rs dt { color: var(--muted); } .ta-rs dd { margin: 0; overflow-wrap: anywhere; } .ta-rs .none { color: #9A9D92; font-style: italic; }
.ta-form .fx-consent { margin-bottom: 8px; }
.ta-form .fx-consent .check { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid #D9D2BE; border-radius: 12px; background: #fff; cursor: pointer; font-weight: 400; margin: 0; }
.ta-form .fx-consent .check:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 5%, #fff); }

/* buttons bar */
.ta-bar { display: flex; gap: 12px; justify-content: space-between; padding: 16px 30px 8px; }
.ta-bar .btn { min-height: 54px; border-radius: 12px; font-size: 1.02rem; gap: 10px; flex: 1; justify-content: center; }
.ta-bar .ta-back { flex: 0 0 auto; min-width: 140px; }
.ta-bar .btn svg { width: 20px; height: 20px; flex: none; }
.ta-bar [hidden] { display: none !important; }
.ta-bar .btn.is-busy { pointer-events: none; } .ta-bar .btn.is-busy svg { display: none; }
.ta-bar .btn.is-busy::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: fx-spin .7s linear infinite; }
.ta-fine { display: flex; gap: 8px; justify-content: center; align-items: center; margin: 4px 30px 24px; font-size: .82rem; color: var(--muted); text-align: center; }
.ta-fine svg { width: 15px; height: 15px; flex: none; }

/* sidebar */
.ta-pbar { height: 9px; border-radius: 99px; background: color-mix(in srgb, var(--primary) 12%, #fff); overflow: hidden; }
.ta-pbar span { display: block; height: 100%; width: 0; background: var(--primary); border-radius: 99px; transition: width .35s ease; }
.ta-pl { display: flex; justify-content: space-between; margin-top: 8px; font-size: .84rem; color: var(--muted); }
.ta-nextlist { list-style: none; margin: 0; padding: 0; counter-reset: n; display: grid; gap: 14px; }
.ta-nextlist li { position: relative; padding-inline-start: 40px; counter-increment: n; }
.ta-nextlist li::before { content: counter(n); position: absolute; inset-inline-start: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: color-mix(in srgb, var(--primary) 12%, #fff); color: var(--primary); font-weight: 700; font-size: .85rem; display: grid; place-items: center; }
.ta-nextlist b { display: block; font-size: .92rem; } .ta-nextlist small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.4; margin-top: 2px; }
.ta-req { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .88rem; }
.ta-req li { display: flex; gap: 10px; align-items: center; }
.ta-req svg { flex: none; width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--primary); color: #fff; }
.ta-priv { display: flex; gap: 12px; background: color-mix(in srgb, var(--primary) 7%, #fff); }
.ta-priv h3 { margin-bottom: 6px; } .ta-priv p { margin: 0; font-size: .82rem; color: var(--muted); line-height: 1.5; }
.ta-pi { flex: none; color: var(--primary); } .ta-pi svg { width: 30px; height: 30px; }

/* success */
.ta-done { text-align: center; padding: 44px 28px 36px; border-radius: 22px; animation: ta-in .5s ease both; }
.ta-done .tick { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 10%, #fff); color: var(--primary); box-shadow: 0 0 0 8px color-mix(in srgb, var(--primary) 6%, transparent); }
.ta-done .tick svg { width: 38px; height: 38px; }
.ta-done h2 { outline: none; margin-bottom: .4em; } .ta-done > p { max-width: 50ch; margin-inline: auto; }
.ta-done .fx-next { max-width: 480px; }

/* tablet and phone */
@media (max-width: 960px) {
  .ta-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ta-side { position: static; }
  .ta-more { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
  .ta-more summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; font-weight: 600; color: var(--primary); cursor: pointer; list-style: none; min-height: 48px; }
  .ta-more summary::after { content: "+"; font-size: 1.3rem; }
  .ta-more[open] summary::after { content: "\2212"; }
  .ta-more-in { padding: 0 12px 12px; }
  .ta-hero-bg svg { opacity: .55; }
}
@media (max-width: 640px) {
  .ta-hero { padding: 32px 0 22px; } .ta-hero .container { padding-inline: 18px; }
  .ta-hero .lead { font-size: .98rem; }
  .ta-layout .ta-formcol, .ta-main .container { padding-inline: 16px; }
  .ta-main .container { padding-inline: 0; } .ta-layout { padding-inline: 16px; padding-top: 16px; }
  .ta-steps { padding: 18px 10px 14px; } .ta-sl { font-size: .66rem; max-width: 7ch; } .ta-sl .l-long { display: none; } .ta-sl .l-short { display: inline; }
  .ta-dot { width: 30px; height: 30px; } .ta-steps li::before { top: 15px; inset-inline-start: calc(-50% + 18px); inset-inline-end: calc(50% + 18px); }
  .ta-body { padding: 20px 18px 4px; } .ta-head h2 { font-size: 1.3rem; } .ta-hic { width: 42px; height: 42px; }
  .ta-row, .ta-ups { grid-template-columns: 1fr; }
  .ta-form input[type=text], .ta-form input[type=email], .ta-form input[type=tel], .ta-form input[type=number] { min-height: 50px; font-size: 16px; }
  .ta-form textarea { font-size: 16px; }
  .ta-rs dl { grid-template-columns: 1fr; gap: 2px; } .ta-rs dt { margin-top: 8px; }
  .ta-bar { position: sticky; bottom: 0; z-index: 20; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 96%, transparent); border-top: 1px solid var(--border); backdrop-filter: blur(8px); margin-top: 8px; }
  .ta-bar .btn { min-height: 50px; } .ta-bar .ta-back { min-width: 0; flex: 0 0 38%; }
  .ta-fine { margin: 10px 16px 18px; } #tform-msg { padding-inline: 18px; }
}
@media (prefers-reduced-motion: reduce) { .ta-step, .ta-done, .ta-pbar span, .ta-dot { animation: none !important; transition: none !important; } }

/* the free assessment page uses the same wizard */
.ta-steps3 { grid-template-columns: repeat(3, 1fr); }
.ta-chips-top { margin: 26px 0 0; }
.ta-hero-sm { padding-bottom: 28px; }
.ta-hero-sm .ta-hero-bg { background: radial-gradient(circle at 88% 20%, color-mix(in srgb, var(--accent) 22%, transparent) 0, transparent 38%), radial-gradient(circle at 98% 90%, color-mix(in srgb, var(--primary) 8%, transparent) 0, transparent 40%); }
.ta-wa p { font-size: .88rem; color: var(--muted); margin: 0 0 14px; } .ta-wa .btn { width: 100%; justify-content: center; }
main[data-page="assessment"] .page-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 75%, var(--bg)) 0%, var(--bg) 100%); padding: 56px 0 30px; }
main[data-page="assessment"] .page-hero::after { content: ""; position: absolute; right: 6%; top: 0; bottom: 0; width: min(36%, 420px); pointer-events: none; opacity: .7; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 400' preserveAspectRatio='xMaxYMax slice'%3E%3Cpath d='M60 400V190a90 90 0 0 1 180 0v210z' fill='%23F1E9D6' fill-opacity='.8'/%3E%3Cpath d='M85 400V195a65 65 0 0 1 130 0v205z' fill='none' stroke='%23B8975A' stroke-opacity='.35' stroke-width='2'/%3E%3Cpath d='M110 400V200a40 40 0 0 1 80 0v200z' fill='none' stroke='%23B8975A' stroke-opacity='.25' stroke-width='2'/%3E%3C/svg%3E") no-repeat right bottom / contain; }
main[data-page="assessment"] .page-hero .container { position: relative; z-index: 1; }
main[data-page="assessment"] .page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.08; }
@media (max-width: 640px) { main[data-page="assessment"] .page-hero { padding: 32px 0 18px; } main[data-page="assessment"] .page-hero::after { opacity: .35; } .ta-chips-top { margin-top: 16px; } }

.ta-pl b { font-weight: 600; color: var(--primary); }
