/* Application page: hero, one-question card, loading, scheduler and end states. */
.apply { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: clamp(36px, 7vw, 80px) clamp(16px, 4vw, 24px) clamp(48px, 8vw, 96px); display: flex; flex-direction: column; align-items: center; }
.apply .eyebrow { margin-bottom: 14px; }
.apply h1 { margin: 0; max-width: 1000px; text-align: center; font-size: clamp(28px, 3.8vw, 46px); line-height: 1.12; font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; }
.apply h1 .nw { white-space: nowrap; }
/* Niche pages have headlines about twice as long: a bit smaller and wider, so they stay at 3 lines on laptops and compact on phones. */
.apply.niche h1 { max-width: 1060px; font-size: clamp(24px, 3.2vw, 42px); }
.apply .sub { margin: 18px 0 0; max-width: 900px; text-align: center; font-size: clamp(14px, 1.6vw, 19px); line-height: 1.55; opacity: 0.7; text-wrap: pretty; }

.top-progress { width: 100%; margin-top: clamp(32px, 6vw, 56px); }
.top-progress .track { height: 6px; border-radius: 999px; background: rgba(41, 159, 255, 0.14); overflow: hidden; }
.top-progress .fill { height: 100%; border-radius: 999px; background: var(--accent); transition: width 300ms ease; }
.top-progress .label { display: flex; justify-content: flex-end; min-height: 1.4em; margin-top: 10px; font-size: 14px; opacity: 0.7; }

.stage { width: 100%; max-width: 880px; min-height: clamp(320px, 50vw, 440px); display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 5vw, 40px) 0 24px; margin-top: 8px; }
.stage.wide { max-width: 1000px; }

.card { margin-top: -14px; display: flex; flex-direction: column; gap: 28px; padding: clamp(18px, 4vw, 44px); background: var(--surface); border: 1px solid rgba(41, 159, 255, 0.3); border-radius: 16px; box-shadow: 0 24px 60px rgba(41, 159, 255, 0.06); }
.card-head { display: flex; flex-direction: column; gap: 12px; }
.card-head .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; font-weight: 500; }
.card-head .step { opacity: 0.7; min-width: 0; }
.card-head .pct { font-weight: 700; color: var(--accent); }
.bar { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.bar .fill { height: 100%; border-radius: 999px; background: var(--accent); transition: width 300ms ease; }

.q { display: flex; flex-direction: column; gap: 10px; }
.q .title { font-size: clamp(20px, 2vw, 24px); font-weight: 800; letter-spacing: -0.01em; line-height: 1.3; text-wrap: pretty; }
.q .title .rest { font-weight: 500; }
.q .help { font-size: 16px; opacity: 0.7; }

.field { width: 100%; padding: 18px 20px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; background: var(--surface-2); outline: none; font-size: clamp(18px, 1.8vw, 20px); color: var(--ink); transition: border-color 150ms ease, box-shadow 150ms ease; }
.field::placeholder { color: rgba(245, 245, 244, 0.35); opacity: 1; }
.field:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(41, 159, 255, 0.18); }
textarea.field { min-height: 170px; resize: none; display: block; line-height: 1.45; overflow: hidden; }

.money { display: flex; align-items: center; gap: 8px; max-width: 420px; padding: 0 20px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; background: var(--surface-2); transition: border-color 150ms ease, box-shadow 150ms ease; }
.money:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(41, 159, 255, 0.18); }
.money .cur { font-size: clamp(18px, 1.8vw, 20px); font-weight: 600; color: var(--accent); }
.money input { flex: 1; min-width: 0; padding: 18px 0; border: 0; outline: none; background: transparent; font-size: clamp(18px, 1.8vw, 20px); color: var(--ink); }
.money input::placeholder { color: rgba(245, 245, 244, 0.35); opacity: 1; }

.phone { position: relative; display: flex; align-items: stretch; gap: 10px; }
.phone .field { flex: 1; min-width: 0; }
.cc-btn { flex: none; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; background: var(--surface-2); outline: none; cursor: pointer; font-size: clamp(16px, 1.6vw, 18px); font-weight: 500; color: var(--ink); }
.cc-btn:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(41, 159, 255, 0.18); }
.flag { flex: none; width: 30px; height: 20px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; display: flex; }
.flag img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cc-scrim { position: fixed; inset: 0; z-index: 20; }
.cc-menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 21; width: min(360px, 100%); background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 8px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); overflow: hidden; }
.cc-menu input { width: 100%; padding: 14px 16px; border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); outline: none; background: var(--surface); font-size: 16px; color: var(--ink); }
.cc-menu input::placeholder { color: rgba(245, 245, 244, 0.45); }
.cc-list { max-height: 300px; overflow-y: auto; overscroll-behavior: contain; }
.cc-item { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 12px; padding: 10px 16px; border: 0; cursor: pointer; text-align: left; font-size: 15px; color: var(--ink); background: var(--surface); }
.cc-item:hover, .cc-item:focus-visible { background: rgba(41, 159, 255, 0.08); outline: none; }
.cc-item.sel { background: rgba(41, 159, 255, 0.1); }
.cc-item .flag { width: 24px; height: 16px; border-radius: 2px; }
.cc-item .name { flex: 1; min-width: 0; }
.cc-item .dial { flex: none; opacity: 0.65; }
.cc-empty { padding: 14px 16px; font-size: 15px; opacity: 0.6; }
.consent { margin: 18px 0 0; max-width: 720px; font-size: 13px; line-height: 1.6; opacity: 0.7; text-wrap: pretty; }

.options { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.opt { align-self: flex-start; max-width: 100%; min-height: 44px; display: flex; align-items: center; gap: 14px; padding: 16px 22px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; background: var(--surface-2); cursor: pointer; text-align: left; font-size: 17px; font-weight: 500; color: var(--ink); transition: border-color 120ms ease, background 120ms ease; }
.opt:hover, .opt:focus-visible { border-color: var(--accent); outline: none; }
.opt .radio { flex: none; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid rgba(255, 255, 255, 0.3); }
.opt .dot { width: 8px; height: 8px; border-radius: 50%; }
.opt[aria-checked="true"] { border-color: var(--accent); background: rgba(41, 159, 255, 0.12); }
.opt[aria-checked="true"] .radio { border-color: var(--accent); background: var(--accent); }
.opt[aria-checked="true"] .dot { background: #141413; }

.error { font-size: 15px; font-weight: 500; color: var(--error); }
.error:empty { display: none; }

.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.card-foot .btn { margin-left: auto; }
.btn[aria-disabled="true"] { opacity: 0.45; }

.loading { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.spinner { width: 48px; height: 48px; border-radius: 50%; border: 4px solid rgba(41, 159, 255, 0.18); border-top-color: var(--accent); animation: st-spin 0.8s linear infinite; }
@keyframes st-spin { to { transform: rotate(360deg); } }
.loading .msg { font-size: 20px; font-weight: 600; }

.panel { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.panel h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.panel p { margin: 0; max-width: 640px; font-size: 18px; line-height: 1.6; text-wrap: pretty; }
.panel .link-btn { font-size: 13px; padding: 4px 0; }

.sched { display: flex; flex-direction: column; gap: 20px; }
.sched .link-btn { align-self: flex-start; font-size: 13px; padding: 4px 0; }
.sched-title { margin: 0; font-size: clamp(22px, 2.4vw, 28px); font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }
.sched-title strong { font-weight: 800; }
.sched-embed { width: 100%; min-height: 680px; border-radius: 12px; overflow: hidden; }
.sched-loading { padding: 40px 0; }

/* Built-in scheduler: day columns, time zone, time grid, confirm. */
.days { display: grid; gap: clamp(6px, 1.5vw, 12px); }
.day { min-height: 44px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: clamp(12px, 2vw, 18px) 4px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; background: var(--surface-2); color: var(--ink); font-size: 15px; cursor: pointer; transition: border-color 120ms ease, background 120ms ease; }
.day .num { font-size: clamp(22px, 3vw, 28px); font-weight: 800; line-height: 1; }
.day:hover, .slot:hover { border-color: var(--accent); }
.day[aria-checked="true"], .slot[aria-checked="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: rgba(41, 159, 255, 0.12); color: var(--accent); }
.day:focus-visible, .slot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sched-meta { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.sched-meta .dur { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 500; }
.tz-btn { display: inline-block; min-height: 44px; padding: 11px 0; border: 0; background: none; cursor: pointer; text-align: left; font-size: 16px; font-weight: 500; line-height: 1.4; color: var(--accent); }
.tz-btn svg { display: inline; margin-left: 6px; vertical-align: -2px; }
.tz-btn .tz-label { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.tz-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.tz-menu { position: absolute; top: calc(100% + 4px); right: 0; z-index: 21; width: min(380px, 100%); background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 8px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); overflow: hidden; }
.tz-menu input { width: 100%; padding: 14px 16px; border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); outline: none; background: var(--surface); font-size: 16px; color: var(--ink); }
.tz-menu input::placeholder { color: rgba(245, 245, 244, 0.45); }
.tz-list { max-height: 320px; overflow-y: auto; overscroll-behavior: contain; }
.tz-group { padding: 12px 16px 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.5; }
.tz-item { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border: 0; background: var(--surface); color: var(--ink); cursor: pointer; text-align: left; font-size: 15px; }
.tz-item .meta { flex: none; font-size: 13px; opacity: 0.6; text-align: right; }
.tz-item:hover, .tz-item:focus-visible { background: rgba(41, 159, 255, 0.08); outline: none; }
.tz-item.sel { background: rgba(41, 159, 255, 0.1); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 28%), 1fr)); gap: clamp(8px, 1.5vw, 12px); }
.slot { min-height: 44px; padding: clamp(14px, 2vw, 18px) 4px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; background: var(--surface-2); color: var(--ink); font-size: clamp(15px, 2vw, 18px); font-weight: 500; white-space: nowrap; cursor: pointer; transition: border-color 120ms ease, background 120ms ease; }
.sched-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 12px; }
.sched-foot .picked { font-size: 15px; }

.done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.done .check { width: 64px; height: 64px; border-radius: 50%; background: rgba(41, 159, 255, 0.12); display: flex; align-items: center; justify-content: center; }
.done h2 { margin: 0; font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.02em; text-transform: uppercase; overflow-wrap: anywhere; }
.done p { margin: 0; max-width: 560px; font-size: 18px; line-height: 1.6; text-wrap: pretty; }

.hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 759px) {
  .opt { align-self: stretch; }
  .tz-menu { left: 0; right: 0; width: auto; }
  .cc-btn { gap: 8px; padding: 0 12px; }
}
