:root {
  --primary: #1F3282;
  --accent: #E30018;
  --accent-deep: #B0000F;
  --on-accent: #FFFFFF;
  --step-counter: #1F3282;
  --text: #0F172A;
  --muted: #64748B;
  --bg: #F8FAFC;
  --card: #FFFFFF;
  --card-hover: #F1F5F9;
  --border: #E2E8F0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.09);
  --shadow-accent: 0 8px 32px color-mix(in srgb, var(--accent) 22%, transparent);
  --tint: color-mix(in srgb, var(--accent) 5%, transparent);
  --tint-strong: color-mix(in srgb, var(--accent) 8%, transparent);
  --radius: 10px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

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

html, body {
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(color-mix(in srgb, var(--primary) 5%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--primary) 5%, transparent) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
}

/* ── Topbar ─────────────────────────────────────────────── */
.topbar {
  background: rgba(248,250,252,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  width: 100%;
  padding: 14px 20px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo { display: block; height: 42px; width: auto; max-width: 220px; }
.brand-logo { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.brand-logo span { color: var(--accent); }

/* ── Funnel-Container ────────────────────────────────────── */
.funnel { max-width: 560px; margin: 0 auto; padding: 32px 20px 40px; min-height: calc(100vh - 73px); display: flex; flex-direction: column; }
.funnel-main { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; padding-bottom: 32px; }

/* ── Step-Counter ────────────────────────────────────────── */
.step-counter {
  text-align: center;
  color: var(--step-counter);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
  background: color-mix(in srgb, var(--step-counter) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--step-counter) 14%, transparent);
  padding: 5px 18px;
  border-radius: 99px;
  display: table;
  margin-left: auto;
  margin-right: auto;
}

/* ── Shimmer ─────────────────────────────────────────────── */
@keyframes textShimmer {
  0%   { background-position: -300% center; }
  100% { background-position:  300% center; }
}

/* ── Step ────────────────────────────────────────────────── */
.step { display: none; flex-direction: column; gap: 20px; animation: fadeIn 0.35s ease; }
.step.active { display: flex; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ── Intro Quote ─────────────────────────────────────────── */
.quote {
  font-size: clamp(22px, 4.5vw, 28px);
  font-weight: 800;
  text-align: center;
  line-height: 1.35;
  padding: 16px 0 8px;
  letter-spacing: -0.02em;
  background: linear-gradient(
    90deg,
    var(--primary) 0%, var(--primary) 25%,
    var(--accent-deep) 40%, var(--accent) 50%,
    var(--accent-deep) 60%, var(--primary) 75%,
    var(--primary) 100%
  );
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.quote .hl { -webkit-text-fill-color: transparent; }
.quote-author {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  margin-top: -2px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Headlines ───────────────────────────────────────────── */
.step h1 {
  font-size: clamp(24px, 5vw, 32px); font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.2; text-align: center; color: var(--text);
}
.step h2 {
  font-size: clamp(20px, 4.3vw, 26px); font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.25; text-align: center; padding: 0 8px;
  background: linear-gradient(
    90deg,
    var(--primary) 0%, var(--primary) 28%,
    var(--accent-deep) 42%, var(--accent) 50%,
    var(--accent-deep) 58%, var(--primary) 72%,
    var(--primary) 100%
  );
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.question-step h2 { animation: textShimmer 12s linear infinite; }
.step .sub { font-size: 14px; color: var(--accent); text-align: center; font-weight: 600; margin-top: -8px; }
.step .hint { font-size: 14px; color: var(--muted); text-align: center; }

/* ── Options: Solid-List ─────────────────────────────────── */
.options { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }

.opt-solid {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; background: var(--card); color: var(--text);
  border: 1.5px solid var(--border); border-radius: var(--radius);
  cursor: pointer; font-size: 15px; font-weight: 600; font-family: inherit;
  text-align: left; transition: all 0.18s ease; box-shadow: var(--shadow-sm);
}
.opt-solid:hover { border-color: var(--accent); box-shadow: 0 4px 20px color-mix(in srgb, var(--accent) 16%, transparent); transform: translateY(-1px); }
.opt-solid.selected { border-color: var(--accent); background: var(--tint); box-shadow: var(--shadow-accent); }
.opt-solid .icon { width: 28px; height: 28px; display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.opt-solid .label { flex: 1; }

/* ── Options: Card-List (multiselect) ────────────────────── */
.opt-card {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 18px; background: var(--card); color: var(--text);
  border: 1.5px solid var(--border); border-radius: var(--radius);
  cursor: pointer; font-size: 15px; font-weight: 500; font-family: inherit;
  text-align: left; transition: all 0.18s ease; box-shadow: var(--shadow-sm);
}
.opt-card:hover { background: var(--card-hover); border-color: var(--accent); transform: translateY(-1px); }
.opt-card.selected { border-color: var(--accent); background: var(--tint); box-shadow: 0 4px 16px color-mix(in srgb, var(--accent) 13%, transparent); }
.opt-card .icon { width: 28px; color: var(--accent); font-size: 20px; flex-shrink: 0; display: grid; place-items: center; }
.opt-card .label { flex: 1; }
.opt-card .radio {
  width: 22px; height: 22px; border: 2px solid var(--border); border-radius: 4px;
  flex-shrink: 0; transition: all 0.15s ease; display: grid; place-items: center;
}
.opt-card.selected .radio { background: var(--accent); border-color: var(--accent); }
.opt-card.selected .radio::after {
  content: ""; display: block; width: 6px; height: 11px;
  border: 2px solid var(--on-accent); border-top: none; border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

/* ── Grid (2×2) ──────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }

.grid-card {
  display: flex; flex-direction: column; cursor: pointer; font-family: inherit;
  border-radius: var(--radius); overflow: hidden; background: var(--card);
  border: 1.5px solid var(--border); transition: all 0.18s ease; box-shadow: var(--shadow-sm);
}
.grid-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 16%, transparent); }
.grid-card.selected { border-color: var(--accent); box-shadow: var(--shadow-accent); }

.grid-card.image .top { background: #F1F5F9; padding: 24px 16px; display: grid; place-items: center; min-height: 100px; }
.grid-card.image .top .icon { font-size: 44px; }
.grid-card.image .bottom {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: var(--on-accent); padding: 14px 12px; min-height: 68px;
  display: grid; place-items: center; text-align: center; font-weight: 700; font-size: 14px; line-height: 1.3;
}

.grid-card.solid {
  background: var(--card); padding: 22px 12px 18px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  min-height: 150px; text-align: center; justify-content: center;
}
.grid-card.solid:hover { background: var(--tint); }
.grid-card.solid.selected { background: var(--tint-strong); }
.grid-card.solid .icon { font-size: 38px; line-height: 1; }
.grid-card.solid .label { font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--text); }

/* ── Inputs ──────────────────────────────────────────────── */
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; padding: 15px 16px 15px 44px; font-size: 16px; font-family: inherit;
  color: var(--text); border: 1.5px solid var(--border); border-radius: var(--radius);
  background: var(--card); transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
textarea { padding: 15px 16px; min-height: 120px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 13%, transparent); }
.input-wrap { position: relative; }
.input-wrap .input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 18px; pointer-events: none; }

/* ── File-Upload ─────────────────────────────────────────── */
.upload-drop {
  border: 2px dashed var(--border); border-radius: var(--radius); background: var(--card);
  padding: 26px 18px; text-align: center; cursor: pointer; transition: all 0.18s ease;
}
.upload-drop:hover { border-color: var(--accent); background: var(--tint); }
.upload-drop.has-file { border-style: solid; border-color: var(--accent); background: var(--tint); }
.upload-drop .up-icon { font-size: 34px; margin-bottom: 6px; }
.upload-drop .up-main { font-weight: 700; font-size: 15px; color: var(--text); }
.upload-drop .up-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.upload-drop input[type="file"] { display: none; }

/* ── CTA Button ──────────────────────────────────────────── */
.btn {
  display: block; width: 100%; padding: 16px 24px; font-size: 16px; font-weight: 700;
  font-family: inherit; background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: var(--on-accent); border: none; border-radius: var(--radius); cursor: pointer;
  transition: all 0.18s ease; text-align: center; text-decoration: none;
  margin-top: 12px; letter-spacing: 0.01em; box-shadow: 0 4px 16px color-mix(in srgb, var(--accent) 26%, transparent);
}
.btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 32px color-mix(in srgb, var(--accent) 36%, transparent); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-secondary { background: transparent; color: var(--muted); font-size: 14px; padding: 10px; box-shadow: none; }
.btn-secondary:hover:not(:disabled) { color: var(--text); transform: none; box-shadow: none; }

/* ── Contact ─────────────────────────────────────────────── */
.contact-fields { display: flex; flex-direction: column; gap: 12px; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; cursor: pointer; }
.consent label { cursor: pointer; }
.consent a { color: var(--text); }
.error { color: #dc2626; font-size: 14px; }

/* ── Trust ───────────────────────────────────────────────── */
.trust {
  text-align: center; margin-top: 20px; color: var(--muted); font-size: 13px; font-weight: 500;
  padding: 12px 16px; background: var(--tint);
  border: 1px solid color-mix(in srgb, var(--accent) 15%, transparent); border-radius: var(--radius);
}
.stars { font-size: 18px; letter-spacing: 2px; color: var(--accent); margin-bottom: 4px; }

/* ── Thanks ──────────────────────────────────────────────── */
.thanks-icon { font-size: 56px; text-align: center; margin-bottom: 4px; filter: drop-shadow(0 4px 12px color-mix(in srgb, var(--accent) 30%, transparent)); }

/* ── Footer ──────────────────────────────────────────────── */
.funnel-footer { text-align: center; padding-top: 40px; color: var(--muted); font-size: 12px; }
.funnel-footer a { color: var(--muted); text-decoration: none; }
.funnel-footer a:hover { color: var(--text); }

/* ── Slider ──────────────────────────────────────────────── */
.slider-wrap { padding: 16px 0; }
.slider-value { text-align: center; font-size: 44px; font-weight: 800; color: var(--accent); margin-bottom: 10px; }
input[type="range"] { width: 100%; height: 6px; -webkit-appearance: none; background: var(--border); border-radius: 3px; outline: none; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  border-radius: 50%; cursor: pointer; box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 30%, transparent);
}
input[type="range"]::-moz-range-thumb {
  width: 26px; height: 26px; background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  border-radius: 50%; cursor: pointer; border: none;
}
.slider-labels { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 520px) {
  .funnel { padding: 24px 16px 32px; }
  .grid-card.solid { min-height: 140px; padding: 18px 10px; }
  .grid-card.image .top { padding: 18px 12px; min-height: 86px; }
  .grid-card.image .top .icon { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
