:root {
  --red: #cf2f35;
  --red-dark: #ad2228;
  --ink: #202020;
  --muted: #686868;
  --line: #dedede;
  --soft: #f4f4f4;
  --white: #ffffff;
  --shadow: 0 14px 42px rgba(19, 19, 19, 0.09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: transparent;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; background: transparent; }
body { padding: clamp(8px, 2vw, 20px); }
button, input { font: inherit; }

.funnel-shell {
  width: min(100%, 920px);
  margin: 0 auto;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.statusbar { height: 5px; background: #ececec; }
.statusbar__fill { height: 100%; width: 20%; background: var(--red); transition: width 280ms ease; }

.step {
  position: relative;
  padding: clamp(28px, 6vw, 58px) clamp(20px, 7vw, 72px) clamp(32px, 6vw, 64px);
  min-height: 390px;
  animation: enter 260ms ease both;
}

.step[hidden] { display: none; }
.step--loading, .step--done { display: grid; place-content: center; text-align: center; min-height: 400px; }
.step--contact { padding-inline: clamp(20px, 5vw, 48px); }

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

.eyebrow {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}

h1 { margin: 0 auto 28px; max-width: 780px; font-size: clamp(1.55rem, 4vw, 2.35rem); line-height: 1.18; text-align: center; letter-spacing: -0.025em; }
.step--contact h1 { font-size: clamp(1.45rem, 3.2vw, 2rem); margin-bottom: 14px; }
.intro { max-width: 690px; margin: -12px auto 30px; color: var(--muted); line-height: 1.6; text-align: center; }

.back { position: absolute; top: 24px; left: 26px; border: 0; background: none; color: var(--muted); font-size: 1.4rem; cursor: pointer; padding: 8px; border-radius: 50%; }
.back:hover, .back:focus-visible { color: var(--red); background: #f8e8e9; outline: none; }

.option-list { display: grid; gap: 12px; width: min(100%, 640px); margin: 0 auto; }
.choice, .shape-choice {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.choice { min-height: 62px; padding: 13px 58px 13px 20px; border-radius: 11px; font-weight: 650; }
.choice:hover, .shape-choice:hover { border-color: var(--red); transform: translateY(-1px); box-shadow: 0 7px 20px rgba(207, 47, 53, 0.1); }
.choice i { position: absolute; right: 20px; color: var(--red); font-size: 1.65rem; font-style: normal; }
.choice input, .shape-choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:checked), .shape-choice:has(input:checked) { border-color: var(--red); background: #fff8f8; box-shadow: 0 0 0 2px rgba(207, 47, 53, 0.11); }
.choice:has(input:focus-visible), .shape-choice:has(input:focus-visible) { outline: 3px solid rgba(207, 47, 53, 0.23); outline-offset: 2px; }

.shape-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; width: min(100%, 670px); margin: 0 auto; }
.shape-choice { min-height: 150px; padding: 18px; border-radius: 12px; flex-direction: column; justify-content: center; gap: 10px; font-weight: 700; text-align: center; }
.shape-choice--wide { grid-column: 1 / -1; min-height: 120px; }
.shape-choice svg { width: 82px; height: 54px; fill: none; stroke: #333; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.shape-choice svg path[d$="M27 25h2M39 25h2M51 25h2"] { stroke-width: 4; }

.field { display: grid; gap: 7px; width: min(100%, 520px); margin: 0 auto 15px; color: #4d4d4d; font-size: 0.83rem; font-weight: 650; }
.field input { width: 100%; min-height: 58px; border: 1px solid var(--line); border-radius: 9px; padding: 12px 15px; background: var(--white); color: var(--ink); font-size: 1rem; outline: none; transition: border-color 160ms, box-shadow 160ms; }
.field input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(207, 47, 53, 0.12); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.field-error { min-height: 1.25em; width: min(100%, 520px); margin: -5px auto 10px; color: #a91d24; font-size: 0.84rem; }

.primary { display: flex; align-items: center; justify-content: center; gap: 12px; width: min(100%, 520px); min-height: 56px; margin: 6px auto 0; padding: 12px 20px; border: 0; border-radius: 9px; background: var(--red); color: var(--white); font-weight: 800; letter-spacing: 0.035em; text-transform: uppercase; cursor: pointer; box-shadow: 0 8px 22px rgba(207, 47, 53, 0.22); transition: background 160ms, transform 160ms; }
.primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.primary:focus-visible { outline: 3px solid rgba(207, 47, 53, 0.3); outline-offset: 3px; }
.primary:disabled { opacity: 0.65; cursor: wait; transform: none; }

.contact-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr); gap: 18px; align-items: stretch; max-width: 780px; margin: 0 auto; }
.contact-fields { padding-top: 4px; }
.contact-fields .field { width: 100%; }
.contact-fields .field-error, .contact-fields .primary { width: 100%; }
.consent { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 0.78rem; line-height: 1.45; margin: 8px 0 10px; }
.consent input { accent-color: var(--red); margin-top: 2px; }
.consent a { color: inherit; text-decoration-thickness: 1px; }
.trust-card { background: var(--soft); border-radius: 10px; padding: 28px 24px; }
.trust-card h2 { font-size: 1.12rem; font-weight: 500; text-align: center; margin: 0 0 28px; }
.trust-card p { font-size: 0.88rem; text-align: center; }
.trust-card ul { list-style: none; display: grid; gap: 15px; padding: 14px 0 0; margin: 0; }
.trust-card li { position: relative; padding-left: 27px; font-size: 0.88rem; }
.trust-card li::before { content: "✓"; position: absolute; left: 0; top: -1px; display: grid; place-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--red); color: white; font-size: 0.7rem; font-weight: 900; }

.success-icon { display: grid; place-content: center; width: 66px; height: 66px; margin: 0 auto 20px; border-radius: 50%; background: var(--red); color: var(--white); font-size: 2.45rem; font-weight: 900; line-height: 1; }
.spinner { width: 58px; height: 58px; margin: 0 auto 25px; border-radius: 50%; border: 5px solid #efc6c8; border-top-color: var(--red); animation: spin 850ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 680px) {
  body { padding: 0; }
  .funnel-shell { border-radius: 0; box-shadow: none; border: 0; }
  .step { min-height: 100vh; padding-top: 46px; }
  .shape-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .trust-card { order: -1; padding: 20px; }
  .trust-card ul { grid-template-columns: 1fr; }
  .back { top: 12px; left: 10px; }
}

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