/* Intake shares the layout proportions of schedule.ioninf.ru.
   Scope overrides so the admin workspace and legal documents keep their layout. */
.intake-page {
  --line: #d8d8dc;
  --orange: #bd4b00;
  --content-width: 1480px;
  min-width: 320px;
  background: var(--canvas);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.48;
}
.intake-page .shell { width: 100%; min-height: 100dvh; margin: 0; border-radius: 0; }
.intake-page .topbar {
  position: sticky; top: 0; z-index: 30;
  min-height: 0; padding: 0;
  border-bottom: 1px solid rgb(29 29 31 / 8%);
  background: rgb(245 245 247 / 88%);
  backdrop-filter: saturate(180%) blur(18px);
}
.intake-page .topbar-inner {
  width: min(var(--content-width), calc(100% - 64px)); min-height: 70px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 auto;
}
.intake-page .brand {
  display: inline-flex; align-items: center; min-height: 48px;
  font-size: 23px; font-weight: 680; letter-spacing: -.055em;
}
.intake-page .brand > span { margin-right: 1px; font-weight: 520; }
.intake-page .help-link {
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 620;
}
.intake-page .help-link:hover { background: #000; }
.intake-page .form-layout {
  width: min(var(--content-width), calc(100% - 64px)); max-width: none;
  min-height: calc(100dvh - 100px);
  grid-template-columns: minmax(360px, .82fr) minmax(580px, 1.18fr);
  gap: clamp(48px, 6vw, 96px); margin: 0 auto; padding: 58px 0 40px;
}
.intake-page .journey { position: sticky; top: 104px; min-width: 0; padding: 0; }
.intake-page .eyebrow { font-size: 12px; font-weight: 650; letter-spacing: .045em; }
.intake-page .journey > .eyebrow { display: block; margin-bottom: 10px; }
.intake-page .journey h1 {
  display: block; max-width: 590px; margin: 0;
  font-size: clamp(44px, 4.2vw, 64px); font-weight: 620; letter-spacing: -.057em; line-height: .98;
}
.intake-page .journey-intro {
  display: block; max-width: 590px; margin: 22px 0 0;
  font-size: 17px; line-height: 1.48; letter-spacing: -.012em;
}
.intake-page .teacher { width: 100%; margin: -34px 0 24px; }
.intake-page .teacher-portrait { width: min(100%, 470px); height: 350px; margin: 0 auto; }
.intake-page .teacher-disc {
  z-index: 1; width: 390px; height: 390px; bottom: -44px; background: #ffd8c2;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 68%), 0 18px 38px rgb(126 68 30 / 9%);
}
.intake-page .teacher img { z-index: 2; width: 265px; filter: drop-shadow(0 14px 11px rgb(35 39 50 / 12%)); }
.portrait-orbits { position: absolute; bottom: -70px; left: 50%; z-index: 0; width: 455px; transform: translateX(-50%); }
.portrait-orbit { fill: none; stroke: rgb(226 93 0 / 18%); stroke-width: 1.2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.portrait-orbit--outer { stroke-dasharray: 45 55; stroke-dashoffset: 9; transform: rotate(-74deg); transform-origin: 260px 260px; }
.portrait-orbit--inner { stroke: rgb(226 93 0 / 10%); stroke-dasharray: 31 69; stroke-dashoffset: 47; transform: rotate(38deg); transform-origin: 260px 260px; }
.intake-page #steps { display: grid; justify-content: stretch; max-width: 530px; margin: 34px 0 0; gap: 0; border-top: 1px solid var(--line); }
.intake-page .journey-step, .intake-page .intro-facts li {
  display: grid; grid-template-columns: 44px 1fr; align-items: center;
  min-height: 48px; padding: 10px 0; gap: 0;
  border-bottom: 1px solid var(--line); color: #3f3f43; font-size: 13px; font-weight: 400;
}
.intake-page .journey-step.active { font-weight: 620; }
.intake-page .journey-step:not(:disabled):hover { color: var(--orange); }
.intake-page .step-number, .intake-page .intro-facts span {
  display: block; width: auto; height: auto; border: 0; border-radius: 0; background: none;
  color: var(--muted); font-size: 11px; font-weight: 400; font-variant-numeric: tabular-nums;
}
.intake-page .journey-step.active .step-number, .intake-page .journey-step.done .step-number { color: var(--orange); }
.intake-page .step-dot { display: none; }
.intake-page .intro-facts { display: grid; padding: 0; margin: 0; list-style: none; }
.intake-page .intro-signature {
  width: fit-content; max-width: 100%; margin: 28px 0 0;
  font-size: clamp(21px, 1.8vw, 27px); line-height: 1.5; transform: rotate(-1deg); transform-origin: left center;
}
.intake-page .time-note { display: block; margin: 20px 0 0; padding: 0; font-size: 12px; }
.intake-page .form-panel {
  overflow: hidden; padding: 0; border: 1px solid rgb(29 29 31 / 7%); border-radius: 18px;
  box-shadow: 0 20px 52px rgb(29 29 31 / 9%), 0 2px 5px rgb(29 29 31 / 3.5%);
  scroll-margin-top: 94px;
}
.form-progress { padding: 22px 34px 18px; border-bottom: 1px solid #e7e7ea; }
.intake-page .progress-meta { font-size: 11px; font-weight: 600; }
.intake-page .progress-meta > span:first-child { color: var(--muted); }
.intake-page .progress-track { height: 2px; margin: 12px 0 0; border-radius: 0; }
.intake-page .progress-track progress { height: 2px; }
.intake-page .progress-track progress::-webkit-progress-bar { background: #f0f0f2; }
.intake-page .progress-track progress::-webkit-progress-value { background: var(--ink); }
.intake-page .progress-track progress::-moz-progress-bar { background: var(--ink); }
.intake-page #intake { padding: 38px 34px 0; }
.intake-page .step-heading { margin-bottom: 32px; }
.intake-page .step-heading > .eyebrow { display: block; margin-bottom: 12px; }
.intake-page .step-heading h2 { font-size: 31px; font-weight: 630; letter-spacing: -.045em; line-height: 1.08; }
.intake-page .step-heading p { max-width: 610px; margin-top: 10px; font-size: 14px; line-height: 1.48; }
.intake-page .fields-grid { gap: 0 16px; }
.intake-page .field { margin-bottom: 24px; }
.intake-page .compact-consents .field { margin-bottom: 0; }
.intake-page .field > label, .intake-page .field > legend { font-size: 13px; font-weight: 620; margin-bottom: 8px; }
.intake-page .field > input, .intake-page .field > select, .intake-page .field > textarea, .intake-page .prefix-input { border-color: var(--line); }
.intake-page .invalid > input, .intake-page .invalid > select, .intake-page .invalid > textarea, .intake-page .invalid > .prefix-input { border-color: var(--error); }
.intake-page .field-help { font-size: 11px; }
.intake-page .form-actions { margin-top: 32px; padding-top: 24px; }
.intake-page .privacy-note { margin: 24px 0 0; padding: 0 34px 28px; text-align: left; }
.intake-page .privacy-note.consent-footer { justify-content: flex-start; margin-top: 14px; padding-bottom: 18px; }
.intake-page .preview-notice { margin: 0 0 28px; }
.intake-page .role-options { gap: 0; border-top: 1px solid var(--line); }
.intake-page .role-option { padding: 26px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.intake-page .role-option:hover { transform: none; background: #fafafa; }
.intake-page .role-option h3 { font-size: 23px; font-weight: 620; letter-spacing: -.025em; }
.intake-page .role-option p { font-size: 15px; }
.intake-page .role-index { width: 24px; flex-shrink: 0; color: var(--muted); }
.intake-page #success { padding: 38px 34px 32px; }
.intake-page .footer { width: min(var(--content-width), calc(100% - 64px)); max-width: none; }

@media (max-width: 1180px) {
  .intake-page .form-layout { grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr); gap: 36px; }
  .intake-page .journey h1 { font-size: 46px; }
  .intake-page .teacher-portrait { height: 320px; }
  .intake-page .teacher img { width: 245px; }
  .intake-page .teacher-disc { width: 360px; height: 360px; }
  .intake-page .portrait-orbits { width: 420px; }
  .intake-page #intake { padding-inline: 28px; }
  .intake-page .form-progress, .intake-page .privacy-note { padding-inline: 28px; }
}
@media (max-height: 960px) {
  .intake-page .journey { position: static; }
}
@media (max-width: 980px) {
  .intake-page .form-layout { display: block; width: min(720px, calc(100% - 36px)); padding-top: 36px; min-height: 0; }
  .intake-page .journey { position: static; }
  .intake-page .journey h1 { font-size: 48px; }
  .intake-page .teacher { margin: -12px 0 24px; }
  .intake-page .teacher-portrait { width: min(100%, 390px); height: 300px; }
  .intake-page .teacher img { width: 225px; }
  .intake-page .teacher-disc { width: 340px; height: 340px; bottom: -58px; }
  .intake-page .portrait-orbits { width: 400px; bottom: -84px; }
  .intake-page #steps { max-width: none; }
  .intake-page #steps:has(.journey-step) { grid-auto-flow: column; grid-auto-columns: 1fr; }
  .intake-page .journey-step { grid-template-columns: 30px 1fr; padding-right: 12px; text-align: left; }
  .intake-page .form-panel { margin-top: 34px; }
  .intake-page .intro-signature { font-size: 25px; }
}
@media (max-width: 640px) {
  .intake-page .topbar-inner { width: calc(100% - 32px); min-height: 66px; }
  .intake-page .brand { font-size: 22px; }
  .intake-page .help-link { min-height: 44px; padding-inline: 15px; font-size: 12px; }
  .intake-page .form-layout { width: calc(100% - 24px); padding-top: 30px; padding-bottom: 32px; }
  .intake-page .journey > .eyebrow, .intake-page .journey h1, .intake-page .journey-intro,
  .intake-page #steps, .intake-page .intro-signature, .intake-page .time-note { margin-left: 8px; margin-right: 8px; }
  .intake-page .journey h1 { font-size: 39px; }
  .intake-page .journey-intro { margin-top: 18px; font-size: 15px; }
  .intake-page #steps { margin-top: 24px; }
  .intake-page .journey-step { grid-template-columns: 1fr; align-content: start; gap: 6px; font-size: 11px; }
  .intake-page .intro-facts li { min-height: 44px; font-size: 12px; }
  .intake-page .intro-signature { font-size: 21px; margin-top: 22px; }
  .intake-page .time-note { margin-top: 14px; }
  .intake-page .form-panel { margin-top: 28px; border-radius: 15px; scroll-margin-top: 82px; }
  .intake-page .form-progress { padding: 20px 18px 16px; }
  .intake-page #intake { padding: 30px 18px 0; }
  .intake-page .step-heading h2 { font-size: 28px; }
  .intake-page .step-heading > .eyebrow { font-size: 11px; }
  .intake-page .step-heading p { font-size: 13px; }
  .intake-page .fields-grid { grid-template-columns: 1fr; gap: 0; }
  .intake-page .field > input, .intake-page .field > select, .intake-page .field > textarea,
  .intake-page .prefix-input input { font-size: 16px; }
  .intake-page .form-actions { gap: 8px; }
  .intake-page .form-actions .button:last-child { min-width: 0; }
  .intake-page .privacy-note { padding: 0 18px 24px; font-size: 10px; }
  .intake-page .privacy-note.consent-footer { font-size: 10px; padding-inline: 18px; }
  .intake-page .role-option { gap: 12px; }
  .intake-page .role-option h3 { font-size: 21px; }
  .intake-page .role-option p { font-size: 14px; }
  .intake-page .role-index { width: 18px; }
  .intake-page .role-arrow { font-size: 21px; }
  .intake-page #success { padding: 30px 18px; }
  .intake-page .footer { width: calc(100% - 40px); }
}
@media (max-width: 390px) {
  .intake-page .teacher-portrait { height: 285px; }
  .intake-page .teacher img { width: 215px; }
  .intake-page .teacher-disc { width: 320px; height: 320px; }
  .intake-page .portrait-orbits { width: 370px; }
}
