:root {
  --bg: #f4efe8;
  --surface: rgba(255, 252, 248, 0.94);
  --surface-strong: #ffffff;
  --ink: #182533;
  --muted: #5d6977;
  --line: rgba(24, 37, 51, 0.1);
  --accent: #b96b33;
  --accent-soft: rgba(185, 107, 51, 0.12);
  --accent-strong: #8f4f22;
  --danger: #b13a3a;
  --shadow-lg: 0 30px 80px rgba(18, 28, 40, 0.1);
  --shadow-md: 0 18px 40px rgba(18, 28, 40, 0.08);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(185, 107, 51, 0.12), transparent 28%),
    linear-gradient(180deg, #f7f2ea 0%, #efe6da 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
}

[hidden] {
  display: none !important;
}

.page-shell {
  width: min(100% - 24px, 860px);
  margin: 0 auto;
  padding: 28px 0 40px;
}

.single-layout {
  min-height: calc(100vh - 68px);
  display: grid;
  align-items: center;
}

.wizard-panel {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
}

.wizard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wizard-top-copy {
  display: grid;
  gap: 6px;
}

.eyebrow,
.question-index {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  color: rgba(24, 37, 51, 0.46);
}

.wizard-panel h1,
.step-card h2,
.success-card h2 {
  margin: 0;
  font-family: "Outfit", "Segoe UI", sans-serif;
}

.wizard-panel h1 {
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
  line-height: 1.02;
  max-width: 18ch;
}

.wizard-trust {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.counter-badge {
  min-width: 118px;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(24, 37, 51, 0.04);
  border: 1px solid rgba(24, 37, 51, 0.06);
  justify-items: end;
}

.counter-badge span {
  font-size: 0.66rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.counter-badge strong {
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: 1.9rem;
  line-height: 0.92;
}

.progress-block {
  margin: 18px 0;
}

.progress-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.progress-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(24, 37, 51, 0.08);
  overflow: hidden;
}

.progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent) 0%, #e3a362 100%);
  transition: width 280ms ease;
}

.wizard-stage {
  position: relative;
  min-height: 300px;
  transition: height 300ms ease;
}

.step-card,
.success-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(24, 37, 51, 0.08);
  box-shadow: var(--shadow-md);
}

.step-card {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: start;
  gap: 22px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.step-card.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.question-index {
  color: rgba(24, 37, 51, 0.42);
}

.step-card h2,
.success-card h2 {
  font-size: clamp(1.75rem, 3vw, 2.3rem);
  line-height: 1.08;
  max-width: 15ch;
}

.question-copy,
.success-card p {
  margin: -4px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.step-card > .choice-grid,
.step-card > .field-shell,
.step-card > .consent-card {
  margin-top: 6px;
}

.choice-grid {
  display: grid;
  gap: 12px;
}

.choice-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-grid.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-card,
.choice-chip,
.consent-card {
  position: relative;
  display: grid;
  min-height: 100px;
  align-content: center;
}

.choice-card input,
.choice-chip input,
.consent-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.choice-card span {
  position: relative;
  z-index: 1;
  display: block;
  padding: 0 22px;
}

.choice-title {
  padding-top: 20px;
  font-weight: 800;
  font-size: 1.02rem;
}

.choice-copy {
  padding-bottom: 20px;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.choice-card.compact .choice-title {
  padding-top: 18px;
  padding-bottom: 18px;
}

.choice-card.compact .choice-copy {
  display: none;
}

.choice-card.full {
  grid-column: 1 / -1;
}

.choice-chip span {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface-strong);
  font-weight: 800;
  text-align: center;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.choice-card:has(input:checked)::before,
.choice-chip:has(input:checked) span,
.consent-card:has(input:checked) {
  border-color: rgba(185, 107, 51, 0.5);
  background: linear-gradient(180deg, rgba(185, 107, 51, 0.12), rgba(185, 107, 51, 0.04));
  box-shadow: 0 16px 30px rgba(185, 107, 51, 0.12);
  transform: translateY(-1px);
}

.choice-card:has(input:focus-visible)::before,
.choice-chip:has(input:focus-visible) span,
.consent-card:has(input:focus-visible) {
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.field-shell {
  display: grid;
  gap: 10px;
}

.field-shell span {
  font-weight: 800;
}

.field-shell input,
.field-shell textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  color: var(--ink);
  padding: 16px 18px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

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

.field-shell input:focus,
.field-shell textarea:focus {
  border-color: rgba(185, 107, 51, 0.52);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

[aria-invalid="true"] {
  border-color: rgba(177, 58, 58, 0.45) !important;
  box-shadow: 0 0 0 4px rgba(177, 58, 58, 0.12) !important;
}

.consent-card {
  min-height: 100px;
  padding: 18px 18px 18px 52px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  line-height: 1.65;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.consent-card span {
  display: block;
  position: relative;
}

.consent-card span::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid rgba(24, 37, 51, 0.18);
  background: #fff;
}

.consent-card:has(input:checked) span::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 4px #fff;
}

.step-error {
  min-height: 20px;
  margin: -4px 0 0;
  color: var(--danger);
  font-size: 0.88rem;
  font-weight: 700;
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.ghost-button,
.solid-button {
  min-height: 56px;
  padding: 0 22px;
  border-radius: var(--radius-md);
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease, box-shadow 160ms ease;
}

.ghost-button {
  background: rgba(24, 37, 51, 0.06);
  color: var(--ink);
}

.solid-button {
  flex: 1 1 auto;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, #e0a060 100%);
  box-shadow: 0 16px 30px rgba(185, 107, 51, 0.22);
}

.ghost-button:hover,
.ghost-button:focus-visible,
.solid-button:hover,
.solid-button:focus-visible {
  transform: translateY(-1px);
}

.solid-button:disabled {
  opacity: 0.72;
  cursor: wait;
}

.full-width {
  width: 100%;
}

.success-card {
  display: grid;
  gap: 16px;
}

.success-contact-copy {
  margin-top: -4px;
}

.success-links {
  display: grid;
  gap: 10px;
}

.success-links a {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(24, 37, 51, 0.08);
  background: rgba(24, 37, 51, 0.05);
  font-weight: 800;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  padding: 8px 0 0;
  text-align: center;
  color: rgba(24, 37, 51, 0.58);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 18px, 860px);
    padding-top: 16px;
  }

  .site-footer {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }

  .wizard-panel,
  .step-card,
  .success-card {
    border-radius: 24px;
  }

  .wizard-panel,
  .step-card,
  .success-card {
    padding: 20px;
  }

  .wizard-top,
  .progress-head,
  .wizard-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .wizard-top {
    gap: 10px;
  }

  .counter-badge {
    justify-items: start;
    min-width: 0;
    padding: 10px 12px;
  }

  .wizard-stage {
    min-height: 340px;
  }

  .choice-grid.two-up,
  .choice-grid.three-up {
    grid-template-columns: 1fr;
  }

  .ghost-button,
  .solid-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
