/* /apply: one question per screen. Live brand (styles.css tokens: Outfit
   display, Inter body, periwinkle accent). Kept out of styles.css so the
   redesign branch can merge without conflicts. */
.apply{
  flex:1 0 auto; padding:72px 0 120px;
  background:
    radial-gradient(ellipse 70% 60% at 92% -10%, rgba(108,99,255,.14), transparent 68%),
    radial-gradient(ellipse 55% 45% at -6% 60%, rgba(108,99,255,.09), transparent 70%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}
.apply__wrap{ width:100%; max-width:720px; margin-inline:auto; padding-inline:28px; }
.apply__progress{ height:4px; border-radius:4px; background:var(--line); overflow:hidden; }
.apply__progress span{ display:block; height:100%; width:0; background:var(--accent); border-radius:4px; transition:width .35s cubic-bezier(.2,.7,.3,1); }
.apply__meta{ margin-top:14px; font-size:14px; color:var(--body); }

.wizard{ margin-top:44px; }
.wstep{ margin:0; padding:0; border:0; min-width:0; }
.wstep[hidden]{ display:none; }
.wstep__q{
  padding:0; font-family:var(--display); font-weight:600; letter-spacing:-0.025em;
  font-size:clamp(28px,3.4vw,40px); line-height:1.12; color:var(--ink); text-wrap:balance;
}
.wstep__hint{ margin-top:12px; font-size:16px; color:var(--body); max-width:56ch; }

.wopts{ margin-top:30px; display:grid; gap:10px; }
.wopt{ position:relative; display:block; cursor:pointer; }
.wopt input{ position:absolute; opacity:0; pointer-events:none; }
.wopt span{
  display:flex; align-items:center; gap:14px;
  padding:16px 20px; border:1px solid var(--line); border-radius:12px; background:var(--paper);
  font-size:16.5px; color:var(--ink); transition:border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
/* radio dot / checkbox square, drawn so they match the site */
.wopt span::before{
  content:""; flex:0 0 18px; height:18px; border-radius:50%;
  border:1.5px solid var(--line-2); background:var(--paper); transition:all .15s ease;
}
.wopt--check span::before{ border-radius:5px; }
.wopt:hover span{ border-color:var(--line-2); box-shadow:0 6px 18px rgba(13,17,23,.05); }
.wopt input:checked + span{ border-color:var(--accent); background:var(--brand-soft); }
.wopt input:checked + span::before{ border-color:var(--accent); background:var(--accent); box-shadow:inset 0 0 0 3px var(--paper); }
.wopt--check input:checked + span::before{
  box-shadow:none;
  background:var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1.5 5.2 4.5 8 10.5 1.8' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 11px 9px;
}
.wopt input:focus-visible + span{ outline:2px solid var(--accent); outline-offset:3px; }

.wfield{
  display:block; width:100%; margin-top:8px; padding:14px 16px;
  font:inherit; font-size:16.5px; color:var(--ink);
  background:var(--paper); border:1px solid var(--line); border-radius:12px;
  transition:border-color .15s ease, box-shadow .15s ease;
}
textarea.wfield{ margin-top:28px; resize:vertical; min-height:110px; line-height:1.5; }
.wfield:focus{ outline:none; border-color:var(--accent); box-shadow:0 0 0 4px rgba(108,99,255,.12); }
select.wfield{ appearance:none; -webkit-appearance:none; padding-right:40px; cursor:pointer;
  background:var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%234d5665' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center / 12px 8px; }
.wgrid{ margin-top:28px; display:grid; grid-template-columns:1fr 1fr; gap:18px 18px; }
.wlabel{ font-size:14.5px; font-weight:500; color:var(--ink-2); }
.wcheck{ margin-top:22px; display:flex; align-items:center; gap:12px; font-size:15.5px; color:var(--body); cursor:pointer; }
.wcheck input{ width:18px; height:18px; accent-color:var(--accent); }

.wizard__error{ margin-top:18px; font-size:15px; color:var(--bad); }
.wizard__nav{ margin-top:36px; display:flex; gap:12px; justify-content:flex-end; }
.wizard__nav .btn[hidden]{ display:none; }
.wizard__nav #apply-back{ margin-right:auto; }
.wizard__nav .btn:disabled{ opacity:.6; cursor:progress; transform:none; }

.apply__result{ margin-top:24px; outline:none; }
.apply__result[hidden], .apply__result [hidden]{ display:none; }
.apply__title{
  font-family:var(--display); font-weight:600; letter-spacing:-0.03em;
  font-size:clamp(32px,4.2vw,50px); line-height:1.08; text-wrap:balance;
}
.apply__title em{ display:block; }
.apply__eyebrow{ display:block; margin-bottom:16px; }
.apply__price{
  margin-top:26px; padding:18px 20px; border-radius:var(--r);
  background:var(--brand-soft); border:1px solid var(--line); max-width:56ch;
  font-size:16px; color:var(--ink-2);
}
.apply__price b{ font-family:var(--display); font-weight:600; font-size:18px; color:var(--ink); }
.apply__list{ margin-top:18px; display:grid; gap:10px; max-width:56ch; }
.apply__list li{ position:relative; padding-left:28px; font-size:16.5px; color:var(--body); }
.apply__list li::before{
  content:""; position:absolute; left:2px; top:8px; width:12px; height:7px;
  border-left:2px solid var(--accent); border-bottom:2px solid var(--accent); transform:rotate(-45deg);
}
.apply__actions{ margin-top:30px; display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.apply__actions .btn{ margin-top:0; }
.apply__lede{ margin-top:18px; font-size:17.5px; color:var(--body); max-width:56ch; }
.apply__result .btn{ margin-top:30px; }
.apply__mail{ margin-top:12px; font-size:15px; color:var(--body); }
.apply__mail a{ color:var(--accent-ink); border-bottom:1px solid var(--line-2); }
.apply__cal{ margin-top:30px; min-height:560px; border:1px solid var(--line); border-radius:20px; background:var(--paper); overflow:hidden; }

@media (max-width:760px){
  .apply{ padding:44px 0 88px; }
  .apply__wrap{ padding-inline:20px; }
  .wizard{ margin-top:32px; }
  .wgrid{ grid-template-columns:1fr; }
  .wopt span{ padding:14px 16px; font-size:16px; }
}
