:root{
  --page:#F7F7F5; --panel:#fff; --border:#E6E6E3;
  --navy:#1B2A4A; --navy-tint:#EEF1F6; --coral:#FF6B4A;
  --heading:#111; --body:#3A3A3A; --muted:#6B6B6B; --placeholder:#8A8A8A;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--page);color:var(--body);font-family:Inter,system-ui,sans-serif;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none;transition:opacity .3s ease,background .3s ease}
a:hover{opacity:.85}
:focus-visible{outline:2px solid var(--navy);outline-offset:2px}
.sr-only,.hp{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

main{position:relative;overflow:hidden;min-height:100vh;min-height:100dvh;display:flex;justify-content:center;padding:40px 20px 48px}
#dots{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none}
.col{position:relative;width:100%;max-width:480px;display:flex;flex-direction:column;gap:12px}
.card{background:var(--panel);border:1px solid var(--border)}

/* top bar */
.top{display:flex;align-items:center;justify-content:space-between;height:40px;margin-bottom:4px}
.home{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--muted)}
.home svg{flex:none}
.tag{font-size:13px;color:var(--muted)}

/* progress */
.progress{height:3px;background:var(--navy-tint)}
.progress span{display:block;height:100%;width:0;background:var(--navy);transition:width .35s ease}

/* steps */
.step{border:0;margin:0;padding:32px 32px 28px;display:none;flex-direction:column;gap:18px;min-width:0}
.step.active{display:flex;animation:in .35s ease both}
@keyframes in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.count{font-size:13px;color:var(--muted)}
.step h1,.step legend{margin:0;padding:0;font-size:24px;line-height:1.25;font-weight:400;letter-spacing:-.02em;color:var(--heading);text-wrap:balance;outline:none}
.step legend{float:left;width:100%}
.step legend + *{clear:both}
.step p{margin:0;font-size:15px;line-height:1.55;color:var(--muted)}
.list{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:10px;font-size:15px;color:var(--body)}
.list li{display:flex;gap:12px;align-items:baseline}
.list .num{flex:none;width:24px;font-size:13px}

/* choice options */
.choices{display:flex;flex-direction:column;border:1px solid var(--border)}
.choice{position:relative;display:flex;align-items:center;gap:16px;padding:16px 18px;cursor:pointer;color:var(--heading);transition:background .2s ease}
.choice + .choice{border-top:1px solid var(--border)}
.choice:hover{background:var(--page)}
.choice input{position:absolute;opacity:0;pointer-events:none}
.choice .num{flex:none;width:24px;font-size:14px;font-weight:600;color:var(--navy)}
.choice .txt{flex:1 1 auto;display:flex;flex-direction:column;gap:3px}
.choice .t{font-size:16px}
.choice .s{font-size:13px;color:var(--muted)}
.choice .mark{flex:none;width:18px;height:18px;border:1px solid #CFCFCB;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:border-color .2s}
.choice .mark::after{content:"";width:8px;height:8px;border-radius:50%;background:var(--navy);transform:scale(0);transition:transform .2s ease}
.choice:has(input:checked){background:var(--navy-tint)}
.choice:has(input:checked) .mark{border-color:var(--navy)}
.choice:has(input:checked) .mark::after{transform:scale(1)}
.choice:has(input:focus-visible){outline:2px solid var(--navy);outline-offset:-2px}

.choices.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:var(--border)}
.choices.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.choices.grid .choice{background:#fff;border:0;padding:14px 16px;gap:10px}
.choices.grid .choice:hover{background:var(--page)}
.choices.grid .choice:has(input:checked){background:var(--navy-tint)}
.choices.grid .t{font-size:15px}
.choice .mark.sq{border-radius:3px}
.choice .mark.sq::after{border-radius:1px}
@media (max-width:380px){.choices.grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* fields */
.field{display:flex;flex-direction:column;gap:10px}
.field label{font-size:13px;color:var(--muted)}
.field input,.field textarea{width:100%;min-width:0;height:48px;padding:0 14px;border:1px solid var(--border);border-radius:0;background:var(--page);color:var(--heading);font:inherit;font-size:16px;-webkit-appearance:none;appearance:none}
.field textarea{height:auto;min-height:132px;padding:12px 14px;line-height:1.5;resize:vertical}
.field input::placeholder,.field textarea::placeholder{color:var(--placeholder)}
.field input:focus,.field textarea:focus{outline:1px solid var(--navy)}
.field.invalid input,.field.invalid textarea,.choices.invalid{border-color:#C0392B}

/* buttons */
.nav{display:flex;align-items:center;gap:8px;margin-top:4px}
.btn{height:48px;padding:0 22px;border:0;border-radius:0;background:var(--navy);color:#fff;font:inherit;font-size:15px;font-weight:500;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:10px;-webkit-appearance:none;appearance:none}
.btn:disabled{opacity:.6;cursor:default}
.btn.grow{flex:1 1 auto}
.back{height:48px;padding:0 16px;border:1px solid var(--border);background:#fff;color:var(--heading);font:inherit;font-size:15px;cursor:pointer;-webkit-appearance:none;appearance:none}
.error{display:none;margin:0;font-size:13px;color:#C0392B}
.error.show{display:block}
.fine{font-size:12px;color:var(--muted);text-align:center}

/* result page */
.result{padding:36px 32px 32px;display:flex;flex-direction:column;gap:18px}
.result h1{margin:0;font-size:26px;line-height:1.25;font-weight:400;letter-spacing:-.02em;color:var(--heading);text-wrap:balance}
.result p{margin:0;font-size:15px;line-height:1.55;color:var(--muted)}
.badge{align-self:flex-start;display:inline-flex;align-items:center;gap:8px;height:28px;padding:0 10px;background:var(--navy-tint);color:var(--navy);font-size:13px;font-weight:500}
.badge::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--navy)}
.badge.coral::before{background:var(--coral)}
.row{width:100%;display:flex;align-items:center;gap:16px;padding:16px 20px;background:#fff;color:var(--heading)}
.row .tile{flex:none;width:34px;height:34px;display:flex;align-items:center;justify-content:center;background:var(--navy-tint)}
.row .txt{flex:1 1 auto;display:flex;flex-direction:column;gap:3px}
.row .t{font-size:17px}
.row .s{font-size:13px;color:var(--muted)}

footer{margin-top:16px;text-align:center;font-size:12px;color:var(--muted)}

@media (max-width:420px){
  main{padding:16px 16px 40px}
  .step,.result{padding:26px 20px 22px}
  .step h1,.step legend,.result h1{font-size:22px}
  .choice{padding:15px 16px}
}
