:root {
  --blue: #1B2FBF;
  --blue-deep: #12208a;
  --gold: #C49A2A;
  --green: #2A7A3B;
  --dark: #0b1020;
  --ink: #171a2e;
  --muted: #6b7280;
  --bg-a: #f3f4fb;
  --bg-b: #eef0fb;
  --card: #ffffff;
  --border: #e7e8f2;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(1100px 600px at 15% -10%, rgba(27,47,191,0.08), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(196,154,42,0.10), transparent 55%),
    linear-gradient(180deg, var(--bg-a), var(--bg-b));
  background-attachment: fixed;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 460px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 42px 38px;
  box-shadow: 0 1px 2px rgba(11,16,32,0.04), 0 24px 48px -12px rgba(11,16,32,0.14);
  position: relative;
  overflow: hidden;
  animation: rise .5s cubic-bezier(.16,1,.3,1);
}

.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.kicker {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px;
}

h1 {
  font-family: 'Fraunces', serif;
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 0 0 8px;
  color: var(--dark);
}

p.sub {
  color: var(--muted);
  margin: 0 0 30px;
  font-size: 15px;
  line-height: 1.55;
}

.progress {
  display: flex;
  gap: 8px;
  margin-bottom: 30px;
}
.progress span {
  height: 4px;
  flex: 1;
  border-radius: 2px;
  background: var(--border);
}
.progress span.done { background: linear-gradient(90deg, var(--blue), var(--blue-deep)); }

label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 20px 0 7px;
}
label:first-of-type { margin-top: 0; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--border);
  border-radius: 11px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fbfbfd;
  transition: border-color .15s, background .15s;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
}

textarea { resize: vertical; min-height: 96px; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  outline: none;
  margin-top: 6px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--blue);
  box-shadow: 0 2px 6px rgba(11,16,32,0.25);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--blue);
  box-shadow: 0 2px 6px rgba(11,16,32,0.25);
  cursor: pointer;
}

.range-value {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 12px;
}
.range-value strong {
  font-family: 'DM Mono', monospace;
  color: #fff;
  background: var(--blue);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
}

button.btn {
  width: 100%;
  margin-top: 30px;
  padding: 15px;
  border: none;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 8px 20px -6px rgba(27,47,191,0.5);
  transition: transform .15s, box-shadow .15s;
}
button.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -6px rgba(27,47,191,0.55); }
button.btn:active { transform: translateY(0); }

.error {
  color: #b3261e;
  font-size: 12.5px;
  margin-top: 6px;
  display: none;
}
.error.show { display: block; }

.summary {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 22px 0 6px;
  background: #fbfbfd;
}
.summary dt {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--muted);
  margin-top: 12px;
}
.summary dt:first-child { margin-top: 0; }
.summary dd {
  margin: 3px 0 0;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(42,122,59,0.1);
  color: var(--green);
  margin-bottom: 18px;
}

.countdown {
  font-family: 'DM Mono', monospace;
  color: var(--blue);
  font-weight: 700;
}

.hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.5;
}

.card.wide { max-width: 620px; }

.profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 4px;
}

.contact-line {
  font-size: 13.5px;
  color: var(--muted);
  margin: -6px 0 26px;
}

.tile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.tile {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  background: #fbfbfd;
}
.tile.full { grid-column: 1 / -1; }
.tile .t-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.tile .t-value {
  margin-top: 7px;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
}
.tile.gold .t-value { color: var(--gold); }
.tile.blue .t-value { color: var(--blue); }

.expect-block {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  background: #fbfbfd;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 4px;
}
.expect-block .t-label { display: block; margin-bottom: 8px; }

.empty-state { text-align: center; padding: 6px 0 2px; }
.empty-state .emoji { font-size: 30px; margin-bottom: 14px; }

.textlink {
  display: inline-block;
  margin-top: 22px;
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}
.textlink:hover { color: var(--ink); }

/* ---- Brand mark ---- */
.brandmark {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--blue), var(--gold));
  color: #fff;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  box-shadow: 0 10px 22px -8px rgba(27,47,191,.55);
}

/* ---- Stepper (replaces plain progress bars) ---- */
.stepper {
  display: flex;
  align-items: flex-start;
  margin-bottom: 32px;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.step .dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  border: 2px solid var(--border);
  color: var(--muted);
  background: #fff;
  transition: all .2s;
}
.step.done .dot {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  border-color: var(--blue);
  color: #fff;
}
.step.active .dot {
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 0 0 4px rgba(27,47,191,.14);
}
.step .step-label {
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.step.done .step-label,
.step.active .step-label { color: var(--ink); font-weight: 600; }
.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 14px 6px 0;
}
.step-line.done { background: linear-gradient(90deg, var(--blue), var(--blue-deep)); }

/* ---- Fields with a leading icon ---- */
.input-icon { position: relative; }
.input-icon .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
  transition: color .15s;
}
.input-icon.area .icon { top: 18px; transform: none; }
.input-icon input,
.input-icon textarea { padding-left: 42px; }
.input-icon input:focus,
.input-icon textarea:focus { box-shadow: 0 0 0 4px rgba(27,47,191,.10); }
.input-icon input:focus ~ .icon,
.input-icon textarea:focus ~ .icon { color: var(--blue); }
