@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap");

:root {
  --navy: #0d1e2e;
  --midnight: #131732;
  --ink: #202536;
  --muted: #707782;
  --silver: #bbbbbb;
  --yellow: #ffde59;
  --cream: #fbfaf7;
  --line: rgba(19, 23, 50, 0.14);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 15%, rgba(247, 224, 225, 0.76), transparent 28rem),
    radial-gradient(circle at 86% 84%, rgba(255, 222, 89, 0.18), transparent 26rem),
    var(--cream);
  color: var(--midnight);
  font-family: "Libre Baskerville", Georgia, serif;
}

button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.page-shell {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding: 42px clamp(22px, 5vw, 72px) 26px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  isolation: isolate;
}

.ambient { position: fixed; border-radius: 50%; pointer-events: none; z-index: -1; }
.ambient-one { width: 22rem; height: 22rem; background: var(--navy); right: -12rem; top: -11rem; }
.ambient-two { width: 18rem; height: 18rem; border: 1px solid rgba(19, 23, 50, 0.12); left: -10rem; bottom: -10rem; }
.brand { display: flex; align-items: center; gap: 13px; width: fit-content; color: inherit; text-decoration: none; }
.brand-mark { display: block; width: 42px; height: 42px; object-fit: contain; }
.brand-line { width: 28px; height: 1px; background: var(--silver); }
.brand-subtitle { color: var(--muted); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; }

.progress-wrap { position: absolute; top: 42px; left: 50%; transform: translateX(-50%); width: min(460px, 42vw); }
.progress-meta { display: flex; justify-content: space-between; margin-bottom: 9px; color: var(--muted); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; }
.progress-track { height: 3px; background: rgba(19, 23, 50, 0.1); overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: var(--midnight); transition: width 420ms cubic-bezier(.2,.7,.2,1); }
.form-card { width: min(780px, 100%); align-self: center; justify-self: center; padding: 68px 0 38px; }
.step { animation: step-in 420ms cubic-bezier(.2,.7,.2,1) both; }
@keyframes step-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

.eyebrow, .question-number {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow::before, .question-number::before { content: ""; width: 28px; height: 2px; background: var(--yellow); }
h1, .step > label:not(.consent-box) { font-family: "Playfair Display", Georgia, serif; font-weight: 600; letter-spacing: -0.035em; }
h1 { max-width: 760px; margin: 22px 0 20px; font-size: clamp(2.55rem, 5.1vw, 4.7rem); line-height: 1.03; }
.intro-step > p { max-width: 650px; color: var(--muted); font-size: clamp(0.95rem, 1.4vw, 1.1rem); line-height: 1.75; }
.trust-row { display: flex; flex-wrap: wrap; gap: 16px 32px; margin: 34px 0; padding: 20px 0; border-block: 1px solid var(--line); color: var(--muted); font-size: 0.74rem; }
.trust-row strong { color: var(--midnight); font-size: 0.95rem; }

.primary-button, .continue-button {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.primary-button { min-height: 58px; padding: 0 28px; background: var(--midnight); color: white; box-shadow: 0 15px 35px rgba(19, 23, 50, 0.16); text-decoration: none; }
.primary-button:hover, .continue-button:hover { transform: translateY(-2px); }
.primary-button:hover { background: var(--navy); box-shadow: 0 20px 42px rgba(19, 23, 50, 0.22); }
.primary-button:disabled { opacity: 0.55; cursor: wait; transform: none; }
.intro-step small, .success-card small { display: block; color: var(--muted); font-size: 0.62rem; margin-top: 14px; }
.step > label:not(.consent-box) { display: block; margin: 20px 0 8px; font-size: clamp(2.05rem, 4vw, 3.7rem); line-height: 1.08; }
.step > p { color: var(--muted); line-height: 1.65; }

.step > input:not([type="checkbox"]), .step > textarea {
  display: block;
  width: 100%;
  margin: 38px 0 22px;
  padding: 14px 2px 16px;
  border: 0;
  border-bottom: 2px solid var(--line);
  border-radius: 0;
  outline: 0;
  resize: none;
  background: transparent;
  color: var(--midnight);
  font: 600 clamp(1.25rem, 2.4vw, 2rem)/1.4 "Playfair Display", Georgia, serif;
  transition: border-color 180ms ease;
}
.step > input:focus, .step > textarea:focus { border-color: var(--midnight); }
.step > input::placeholder, .step > textarea::placeholder { color: #a8abb2; }
.continue-button { padding: 11px 0; background: transparent; color: var(--midnight); border-bottom: 1px solid var(--midnight); }
.option-list { display: grid; gap: 10px; margin-top: 30px; }
.option {
  width: 100%;
  min-height: 56px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: 34px 1fr 24px;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}
.option:hover { transform: translateX(4px); border-color: rgba(19, 23, 50, 0.38); }
.option.selected { background: var(--midnight); border-color: var(--midnight); color: white; }
.option-key { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid currentColor; font-size: 0.72rem; }
.option-check { opacity: 0; }
.option.selected .option-check { opacity: 1; }
.consent-box { display: flex; gap: 14px; align-items: center; margin: 30px 0 26px; padding: 18px; border: 1px solid var(--line); background: rgba(255,255,255,0.62); cursor: pointer; }
.consent-box input { width: 20px; height: 20px; accent-color: var(--midnight); }
.error-message { color: #9b2c2c !important; margin-top: 20px !important; font-size: 0.75rem; }
.step-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.65rem; }
.step-nav button { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 8px 0; }
kbd { padding: 4px 7px; border: 1px solid var(--line); background: rgba(255,255,255,0.7); font-family: inherit; }
.success-card { text-align: center; max-width: 720px; margin: auto; }
.success-card .eyebrow { justify-content: center; }
.success-icon { width: 62px; height: 62px; display: grid; place-items: center; margin: 24px auto 0; border-radius: 50%; background: var(--yellow); font-size: 1.65rem; }
.success-card h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); margin-inline: auto; }
.success-card > p { max-width: 580px; margin: 0 auto 28px; color: var(--muted); line-height: 1.7; }
.whatsapp-button { margin-top: 6px; }
footer { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.58rem; letter-spacing: 0.04em; }

@media (max-width: 760px) {
  .page-shell { padding: 25px 20px 20px; }
  .brand-subtitle { display: none; }
  .brand-line { width: 18px; }
  .progress-wrap { top: 30px; right: 20px; left: auto; transform: none; width: 44vw; }
  .progress-meta span:first-child { display: none; }
  .progress-meta { justify-content: flex-end; }
  .form-card { padding-top: 54px; }
  h1 { font-size: clamp(2.35rem, 11vw, 3.25rem); }
  .step > label:not(.consent-box) { font-size: clamp(2rem, 9vw, 2.8rem); }
  .trust-row { display: grid; grid-template-columns: 1fr 1fr; }
  .trust-row span:last-child { grid-column: 1 / -1; }
  .option { min-height: 58px; }
  .step-nav span { display: none; }
  footer span:last-child { display: none; }
}

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