:root {
  --brand: #1d4ed8;
  --brand-dark: #1e40af;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f1f5f9;
  --card: #ffffff;
  --ok: #16a34a;
  --err: #dc2626;
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(180deg, #eef2ff 0%, var(--bg) 100%);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.shell { max-width: 640px; margin: 0 auto; padding: 20px 16px 40px; }

.topbar { padding: 8px 2px 16px; }
.brand { display: flex; align-items: baseline; gap: 10px; }
.logo { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; color: var(--ink); }
.logo-accent { color: var(--brand); }
.brand-sub { font-size: 13px; color: var(--muted); font-weight: 600; }

.progress { margin-top: 14px; height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), #3b82f6); transition: width .35s ease; border-radius: 999px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 12px 30px -18px rgba(30, 64, 175, 0.35);
  min-height: 280px;
}

.eyebrow { color: var(--brand); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
h1.step-title { font-size: 26px; line-height: 1.2; margin: 0 0 6px; letter-spacing: -0.5px; }
.intro { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0 0 18px; }

.field { margin-bottom: 18px; }
.field label.lbl { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; }
.req { color: var(--brand); }

input[type=text], input[type=email], input[type=number], textarea, select {
  width: 100%; padding: 13px 14px; font-size: 16px; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  transition: border-color .15s, box-shadow .15s; font-family: inherit;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(29,78,216,.12); }

.choices { display: flex; flex-direction: column; gap: 10px; }
.choice {
  display: flex; align-items: center; gap: 12px; padding: 13px 15px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 12px; font-size: 15px; transition: all .12s; user-select: none;
}
.choice:hover { border-color: #c7d2fe; background: #f8faff; }
.choice.sel { border-color: var(--brand); background: #eff4ff; font-weight: 600; }
.choice input { accent-color: var(--brand); width: 18px; height: 18px; flex: none; }

.filedrop { border: 2px dashed #c7d2fe; border-radius: 14px; padding: 22px; text-align: center; color: var(--muted); background: #f8faff; cursor: pointer; }
.filedrop strong { color: var(--brand); }
.filelist { list-style: none; padding: 0; margin: 12px 0 0; font-size: 14px; }
.filelist li { padding: 8px 12px; background: #f1f5f9; border-radius: 10px; margin-bottom: 6px; display: flex; justify-content: space-between; }
.filelist button { border: none; background: none; color: var(--err); cursor: pointer; font-size: 16px; }

.err-msg { color: var(--err); font-size: 13px; margin-top: 6px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }

.nav { display: flex; gap: 12px; margin-top: 26px; }
.btn { flex: 1; padding: 15px 18px; font-size: 16px; font-weight: 700; border-radius: 12px; border: none; cursor: pointer; transition: transform .08s, background .15s; font-family: inherit; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-primary:disabled { opacity: .6; cursor: default; }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); flex: 0 0 auto; min-width: 110px; }

.footnote { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; padding: 0 4px; font-size: 12px; color: var(--muted); }

.center { text-align: center; padding: 30px 10px; }
.center .emoji { font-size: 52px; }
.loading { color: var(--muted); text-align: center; padding: 40px; }

@media (max-width: 480px) {
  .card { padding: 22px 18px; }
  h1.step-title { font-size: 22px; }
  .btn-ghost { min-width: 92px; }
}
