/* === CSS · FONT (Switzer, self-hosted on Webflow CDN — replaces Google Fonts) === */
@font-face {
  font-family: 'Switzer';
  src: url('https://cdn.prod.website-files.com/6749d617b77805c8a4df31e9/693a93f217b2157ba68171b2_Switzer-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* === CSS · TOKENS (colors, radius, shadow) === */
:host {
  --ink: #10130f;
  --ink-soft: #4a514a;
  --ink-faint: #8a918a;
  --bg: #f4f3ee;
  --card: #ffffff;
  --field: #fbfbf8;
  --line: #e4e3db;
  --line-strong: #d4d3c8;
  --accent: #1a1a17;
  --safe: #16794a;
  --safe-bg: #eef6f0;
  --safe-line: #cfe6d6;
  --danger: #b4402d;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(16, 19, 15, .04), 0 12px 40px -16px rgba(16, 19, 15, .16);
}

/* === CSS · BASE & LAYOUT (body, wrap, top bar, progress, card) === */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

/* Code-component self-sufficiency: when embedded in Webflow the host owns <body>,
   so anchor the font + box model on the component root too. Harmless standalone. */
.wrap { font-family: 'Switzer', sans-serif; color: var(--ink); }
.wrap *, .wrap *::before, .wrap *::after { box-sizing: border-box; }
body {
  font-family: 'Switzer', sans-serif;
  background:
    radial-gradient(120% 80% at 85% -10%, #ebf2ec 0%, transparent 55%),
    radial-gradient(90% 70% at -10% 110%, #f0eee6 0%, transparent 50%),
    var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: 600px; }

/* top bar */
.top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.step-label {
  font-family: 'Switzer', sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-faint);
  transition: opacity .2s;
}
.step-count { font-size: 13px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }

/* progress */
.progress { height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; margin-bottom: 22px; }
.progress span {
  display: block; height: 100%; width: 12.5%; border-radius: 99px; background: var(--accent);
  transition: width .55s cubic-bezier(.65, 0, .35, 1);
}

/* card */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 30px 26px; box-shadow: var(--shadow);
}
@media (max-width: 480px) { .card { padding: 24px 18px 20px; } }

h1 {
  font-family: 'Switzer', sans-serif; font-weight: 600;
  font-size: 23px; line-height: 1.22; letter-spacing: -.02em; margin-bottom: 7px;
}
.sub { font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; margin-bottom: 22px; }

/* === CSS · OPTIONS (pill choices) === */
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  border: 1.5px solid var(--line-strong); background: transparent;
  border-radius: 99px; padding: 9px 17px;
  cursor: pointer; font-family: inherit; font-size: 13.5px; font-weight: 500;
  color: var(--ink); letter-spacing: -.01em;
  display: inline-flex; align-items: center; gap: 6px;
  transition: border-color .15s, background .15s, color .15s, box-shadow .15s, transform .1s;
  user-select: none;
}
.opt:hover { border-color: var(--ink); background: #fff; }
.opt:active { transform: scale(.96); }
.opt.sel { background: var(--ink); color: #fff; border-color: var(--ink); }
.opt-chk {
  display: none; width: 12px; height: 12px; stroke: currentColor;
  flex-shrink: 0; stroke-width: 2.8; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}
.opt.sel .opt-chk { display: block; }

/* === CSS · FIELDS (inputs, select) === */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .grid2 { grid-template-columns: 1fr; } }
.fld { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.fld:last-child { margin-bottom: 0; }
.fld label { font-size: 13px; font-weight: 600; color: var(--ink-soft); letter-spacing: -.005em; }
.fld label .req { color: var(--danger); margin-left: 2px; }
.fld input {
  font-family: inherit; font-size: 15px; color: var(--ink);
  border: 1.5px solid var(--line-strong); background: transparent;
  border-radius: 12px; padding: 13px 14px; width: 100%;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.fld input::placeholder { color: var(--ink-faint); }
.fld input:hover { border-color: #b9b8ad; }
.fld input:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(16, 19, 15, .05); }
.fld input.invalid { border-color: var(--danger); background: #fcf3f1; }
.fld select {
  font-family: inherit; font-size: 15px; color: var(--ink);
  border: 1.5px solid var(--line-strong); background-color: transparent;
  border-radius: 12px; padding: 13px 38px 13px 14px; width: 100%;
  transition: border-color .18s, background .18s, box-shadow .18s;
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2716%27 height=%2716%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%238a918a%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27m6 9 6 6 6-6%27/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
.fld select:hover { border-color: #b9b8ad; }
.fld select:focus { outline: none; border-color: var(--ink); background-color: #fff; box-shadow: 0 0 0 4px rgba(16, 19, 15, .05); }
.fld select.invalid { border-color: var(--danger); background-color: #fcf3f1; }
.fld select option { color: var(--ink); }
.fld select option[value=""] { color: var(--ink-faint); }

.err { font-size: 12px; color: var(--danger); min-height: 0; display: none; }
.err.show { display: block; }

/* === CSS · FEEDBACK (field errors, step error, reveal, shield) === */
/* step-level error */
.step-err {
  font-size: 13.5px; color: var(--danger);
  background: #fcf3f1; border: 1px solid #f0cfc9;
  border-radius: 11px; padding: 11px 14px;
  margin-top: 18px; display: none;
}
.step-err.show { display: block; }

/* reveal */
.reveal {
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .4s cubic-bezier(.65, 0, .35, 1), opacity .3s, margin-top .4s;
}
.reveal.open { max-height: 600px; opacity: 1; }

/* shield */
.shield { border: 1px solid var(--safe-line); background: var(--safe-bg); border-radius: 14px; margin-top: 14px; }
.shield-inner { padding: 18px 18px 16px; }
.shield-head { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; }
.shield-badge { width: 26px; height: 26px; border-radius: 8px; flex: none; background: var(--safe); display: grid; place-items: center; }
.shield-badge svg { width: 15px; height: 15px; stroke: #fff; fill: none; }
.shield-head h2 { font-family: 'Switzer', sans-serif; font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; color: var(--safe); }
.shield ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.shield li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: #1f3a2b; line-height: 1.4; }
.tick { width: 17px; height: 17px; flex: none; margin-top: 1px; stroke: var(--safe); fill: none; }

/* === CSS · NAV & SUCCESS === */
/* nav */
.nav { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.back {
  appearance: none; border: 1.5px solid var(--line-strong); background: #fff; cursor: pointer;
  font-family: inherit; width: 48px; height: 50px; border-radius: 13px;
  display: grid; place-items: center; flex: none; transition: .18s;
}
.back:hover { border-color: var(--ink); }
.back svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; }
.back[disabled] { opacity: .35; cursor: not-allowed; }
.cta {
  appearance: none; border: none; cursor: pointer; font-family: inherit; flex: 1;
  background: var(--accent); color: #fff; padding: 0 18px; height: 50px; border-radius: 13px;
  font-size: 15.5px; font-weight: 600; letter-spacing: -.01em;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .12s, background .18s;
}
.cta:hover { background: #000; }
.cta:active { transform: scale(.99); }
.cta svg { width: 17px; height: 17px; stroke: #fff; fill: none; }

/* success */
.success { text-align: center; padding: 44px 32px 36px; }
.success-badge {
  width: 58px; height: 58px; border-radius: 16px; background: var(--safe-bg);
  border: 1px solid var(--safe-line); display: grid; place-items: center; margin: 0 auto 20px;
}
.success-badge svg { width: 28px; height: 28px; stroke: var(--safe); fill: none; }
.success h1 { margin-bottom: 12px; }
.success .sub { margin-bottom: 26px; max-width: 420px; margin-left: auto; margin-right: auto; }
.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary, .btn-ghost {
  appearance: none; cursor: pointer; font-family: inherit; text-decoration: none;
  padding: 0 22px; height: 50px; border-radius: 13px; font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: .18s;
}
.btn-primary { background: var(--accent); color: #fff; border: 1.5px solid var(--accent); }
.btn-primary:hover { background: #000; }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-primary svg, .btn-ghost svg { fill: none; stroke: currentColor; width: 16px; height: 16px; }

