:root {
  --navy: #1c486f;
  --navy-deep: #153a57;
  --navy-light: #2a5a7f;
  --teal: #4bb8ba;
  --teal-dark: #3a9a9c;
  --teal-light: #5cc6c8;
  --ink: #65758b;
  --ink-strong: #344256;
  --paper: #ffffff;
  --mist: #f3f5f7;
  --line: rgba(28, 72, 111, 0.14);
  --wa: #25d366;
  --radius: 14px;
  --shadow: 0 16px 40px rgba(28, 72, 111, 0.14);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--ink);
  background:
    linear-gradient(165deg, #e8f1f6 0%, #f3f8f8 45%, #eef5f6 100%);
  line-height: 1.5;
}

.bg-glow {
  position: fixed;
  inset: auto -10% -10% auto;
  width: 55vw;
  height: 55vw;
  max-width: 520px;
  max-height: 520px;
  background: radial-gradient(circle, rgba(75, 184, 186, 0.28), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  max-width: 720px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--navy-deep);
}

.brand img {
  width: 48px;
  height: auto;
  max-height: 48px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 4px;
  box-shadow: 0 4px 14px rgba(28, 72, 111, 0.15);
}

.brand strong {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.15;
}

.brand small {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  color: var(--ink);
}

.topbar__back {
  font-size: .78rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100% - 1.5rem));
  margin: .5rem auto 2rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1.5rem 1.35rem 1.6rem;
}

.panel[hidden] { display: none !important; }

.eyebrow {
  display: inline-block;
  margin-bottom: .55rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

h1, h2 {
  font-weight: 700;
  color: var(--navy-deep);
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: .85rem;
}

h1 { font-size: clamp(1.45rem, 4.5vw, 1.85rem); }
h2 { font-size: 1.35rem; }

.lead {
  font-size: .92rem;
  margin-bottom: .75rem;
  color: var(--ink);
}

.bullets {
  list-style: none;
  display: grid;
  gap: .45rem;
  margin: 1.1rem 0 1.4rem;
}

.bullets li {
  position: relative;
  padding-left: 1.15rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--navy);
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45rem;
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--teal);
}

.progress {
  height: 8px;
  border-radius: 999px;
  background: #e7eef3;
  overflow: hidden;
  margin-bottom: .65rem;
}

.progress__bar {
  height: 100%;
  width: 25%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--navy), var(--teal));
  transition: width .35s ease;
}

.progress__label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.1rem;
}

.step[hidden] { display: none !important; }

.step {
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
}

.step > legend {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 1rem;
  padding: 0;
}

.field {
  display: grid;
  gap: .35rem;
  margin-bottom: .9rem;
}

.field > span,
.choice > legend {
  font-size: .78rem;
  font-weight: 700;
  color: var(--navy);
}

.field em,
.choice em {
  color: #c0392b;
  font-style: normal;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .78rem .9rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink-strong);
  background: #fbfcfe;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(28, 72, 111, 0.14);
}

.field textarea { resize: vertical; min-height: 84px; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .65rem;
}

.choice {
  border: 0;
  margin: 0 0 1rem;
  padding: 0;
}

.choice > legend {
  margin-bottom: .55rem;
}

.choice__opt {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .7rem .85rem;
  margin-bottom: .45rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfe;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink-strong);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

.choice__opt:has(input:checked) {
  border-color: var(--navy);
  background: rgba(28, 72, 111, 0.06);
}

.choice__opt input {
  accent-color: var(--navy);
  width: 16px;
  height: 16px;
}

.hp {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  pointer-events: none !important;
}

.form-error {
  margin: .2rem 0 .8rem;
  padding: .7rem .85rem;
  border-radius: 10px;
  background: rgba(192, 57, 43, 0.08);
  color: #8e1b12;
  font-size: .82rem;
  font-weight: 600;
}

.nav-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: .4rem;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 48px;
  padding: .75rem 1.2rem;
  border-radius: 10px;
  font: inherit;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}

.btn:active { transform: scale(.98); }
.btn[hidden] { display: none !important; }

.btn--primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 10px 24px rgba(28, 72, 111, 0.28);
}
.btn--primary:hover { background: var(--navy-deep); }

.btn--mint {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 10px 24px rgba(75, 184, 186, 0.35);
}
.btn--mint:hover { background: var(--teal-dark); }

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid rgba(28, 72, 111, 0.22);
}

.btn--wa {
  background: var(--wa);
  color: #062116;
  width: 100%;
  margin-bottom: .65rem;
}

.foot {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 1rem 2rem;
  font-size: .72rem;
  color: var(--ink);
}

.foot a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 520px) {
  .grid-3 { grid-template-columns: 1fr; }
  .card { padding: 1.25rem 1.05rem 1.35rem; }
  .nav-actions .btn { flex: 1 1 auto; }
}
