/* ===================== FONT (self-hosted Urbanist, shared with the site) ===================== */
@font-face {
  font-family: 'Urbanist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/urbanist-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===================== TOKENS ===================== */
:root {
  --s-green: #7bc43b;
  --s-green-dark: #6cb52f;
  --s-navy: #021320;
  --s-ink: #101828;
  --s-gray: #758599;
  --s-placeholder: #9aa6af;
  --s-border: #d7dde4;
  --s-card-border: #e3e8ee;
}

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

body.survey-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: #0a1420;
  font-family: 'Urbanist', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ===================== CARD ===================== */
.sv-card {
  width: 100%;
  max-width: 445px; /* narrow vertical format — same layout on desktop + mobile */
  background: #fff;
  border: 2px solid #ffffff; /* 2px inside stroke */
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
  /* match the site's design-system font stack */
  font-family: "Urbanist", system-ui, -apple-system, sans-serif;
}

/* ---- header band ---- */
.sv-header {
  background: #122837; /* same navy as the landing's top bar */
  padding: 26px 32px 22px;
  color: #fff;
}
.sv-header h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 700; /* design-system title weight */
  line-height: 1.15;
}
.sv-header p {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}
.sv-progress {
  margin-top: 18px;
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}
.sv-progress-fill {
  height: 100%;
  width: 0;
  border-radius: 6px;
  background: #7bc43c;
  transition: width .45s cubic-bezier(.4, 0, .2, 1);
}

/* ===================== BODY / STEPS ===================== */
.sv-body { padding: 30px 32px; min-height: 400px; } /* keep card height steady across steps */

/* container when embedded in the landing hero */
.hero-survey { width: 445px; max-width: 100%; }
.sv-step { display: none; }
.sv-step.active { display: block; animation: sv-fade .35s ease; }
@keyframes sv-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.sv-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  margin: 0 0 18px;
  color: var(--s-gray);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}
.sv-back:hover { color: var(--s-ink); }
/* step 1 "Start" label — same style as Back, but not a button/link */
.sv-start { cursor: default; }
.sv-start:hover { color: var(--s-gray); }

.sv-q {
  margin: 0 0 24px;
  font-size: 24px; /* question headline (desktop) */
  font-weight: 700; /* design-system title weight */
  line-height: 1.15;
  color: var(--s-ink);
}
.sv-sub {
  margin: -14px 0 18px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--s-gray);
}

/* ---- option cards (single column, vertical) ---- */
.sv-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.sv-option {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1.5px solid var(--s-card-border);
  border-radius: 14px;
  background: #fff;
  color: var(--s-ink);
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .12s ease, box-shadow .18s ease;
}
.sv-option:hover {
  border-color: var(--s-green);
  background: #f4fbee;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -12px rgba(123, 196, 59, 0.55);
}
.sv-option.selected {
  border-color: var(--s-green);
  background: #f4fbee;
}

/* ---- contact form ---- */
.sv-fields { display: flex; flex-direction: column; gap: 14px; }
.sv-input {
  width: 100%;
  height: 48px;
  padding: 0 18px;
  border: 1.5px solid var(--s-border);
  border-radius: 12px;
  background: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--s-ink);
}
.sv-input::placeholder { color: var(--s-placeholder); }
.sv-input:focus {
  outline: none;
  border-color: var(--s-green);
  box-shadow: 0 0 0 3px rgba(123, 196, 59, 0.18);
}
.sv-input.sv-invalid { border-color: #e5484d; box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.15); }

.sv-consent {
  margin: 4px 0 0; /* +14px flex gap = 18px from last field */
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--s-gray);
}
.sv-consent a { color: var(--s-green); text-decoration: underline; }

.sv-submit {
  width: 100%;
  height: 58px;
  margin-top: 4px; /* +14px flex gap = 18px from consent */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 12px;
  background: var(--s-green);
  color: #fff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease;
}
.sv-submit:hover { background: var(--s-green-dark); transform: translateY(-1px); }
.sv-submit .sv-arrow { font-size: 19px; line-height: 1; }

.sv-foot {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: #98a2b3;
}

/* ===================== SUCCESS ===================== */
.sv-success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #eef3ff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.sv-success-icon svg { width: 30px; height: 30px; }
.sv-success h2 {
  margin: 0 0 12px;
  font-size: 30px;
  font-weight: 700; /* design-system title weight */
  color: var(--s-ink);
}
.sv-success .sv-success-sub {
  margin: 0 0 24px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--s-gray);
}
.sv-steps-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.sv-step-line { display: flex; align-items: flex-start; gap: 14px; }
.sv-step-num {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--s-green);
  color: #fff;
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.sv-step-line p { margin: 2px 0 0; font-size: 17px; font-weight: 500; color: var(--s-ink); line-height: 1.4; }
.sv-prepare {
  border: 1px solid var(--s-card-border);
  border-radius: 14px;
  background: #f7f8fa;
  padding: 18px 20px;
}
.sv-prepare h4 { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--s-ink); }
.sv-prepare p { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.5; color: var(--s-gray); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 560px) {
  /* ---- fonts ---- */
  .sv-header h2 { font-size: 20px; }   /* survey headline */
  .sv-header p { font-size: 13px; }    /* survey subheadline */
  .sv-back { font-size: 13px; display: flex; } /* block flex removes inline line-leading so top gap matches bottom */
  .sv-q { font-size: 18px; }           /* per-step headline */
  .sv-sub { font-size: 14px; }         /* contact subheadline */
  .sv-consent { font-size: 11px; }     /* consent text */
  .sv-foot { font-size: 13px; }        /* footer note */
  .sv-success h2 { font-size: 26px; }

  /* ---- mobile: all paddings −1px per side ---- */
  .sv-header { padding: 21px 19px 17px; }
  .sv-body { padding: 17px 19px 23px; }
  .sv-option { padding: 0 21px; }
  .sv-input { padding: 0 17px; }
  .sv-prepare { padding: 17px 19px; }

  /* ---- mobile: all gaps −1px ---- */
  .sv-header p { margin-top: 5px; }
  .sv-progress { margin-top: 17px; }
  .sv-back { gap: 7px; margin-bottom: 17px; }
  .sv-q { margin-bottom: 23px; }
  .sv-sub { margin-bottom: 17px; }
  .sv-options { gap: 13px; }
  .sv-fields { gap: 13px; }
  .sv-submit { gap: 9px; }
  .sv-foot { margin-top: 13px; }
  .sv-success-icon { margin-bottom: 21px; }
  .sv-success h2 { margin-bottom: 11px; }
  .sv-success-sub { margin-bottom: 23px; }
  .sv-steps-list { gap: 15px; margin-bottom: 23px; }
  .sv-step-line { gap: 13px; }
  .sv-step-line p { margin-top: 1px; }
  .sv-prepare h4 { margin-bottom: 5px; }
}
