/* ============================================================================
 * Primarica Leadgen — Phase 1 styles
 * One question per screen, slide transitions, mobile-first.
 * ========================================================================== */

:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --ink: #1a2233;
  --muted: #5b6577;
  --accent: #1f6feb;
  --accent-dark: #1859c4;
  --line: #e3e8f0;
  --radius: 14px;
  --slide-ms: 320ms;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 16px 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.brand {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-bottom: 14px;
}

/* Progress bar */
.progress {
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 18px;
}
.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 999px;
  transition: width var(--slide-ms) ease;
}
.progress-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

/* Stage: the sliding viewport — one screen visible at a time */
.stage {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 380px;
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 8px 28px rgba(26, 34, 51, 0.06);
  transition: transform var(--slide-ms) ease, opacity var(--slide-ms) ease;
  will-change: transform, opacity;
}

.screen.active { display: block; transform: translateX(0); opacity: 1; }

/* Entry/exit positions for the slide animation */
.screen.enter-right { display: block; transform: translateX(60px); opacity: 0; }
.screen.enter-left  { display: block; transform: translateX(-60px); opacity: 0; }
.screen.exit-left   { display: block; transform: translateX(-60px); opacity: 0; }
.screen.exit-right  { display: block; transform: translateX(60px); opacity: 0; }

.screen h1 {
  font-size: 26px;
  line-height: 1.25;
  margin: 0 0 10px;
}
.screen h2 {
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 18px;
}
.subhead {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 24px;
}

/* Option buttons — multiple choice, tap to select */
.options { display: flex; flex-direction: column; gap: 10px; }

.option {
  appearance: none;
  border: 2px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  transition: border-color 120ms ease, background 120ms ease;
  width: 100%;
}
.option:hover { border-color: var(--accent); }
.option:active { transform: scale(0.99); }

.state-select {
  width: 100%;
  font-size: 16px;
  padding: 14px 12px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  margin-bottom: 12px;
}

/* CTA */
.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 15px 28px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 120ms ease;
}
.cta:hover { background: var(--accent-dark); }
.cta-row { margin-top: 8px; }

.back-link {
  display: inline-block;
  margin-top: 18px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

/* Bridge page */
.bridge-offer {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.bridge-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.bridge-bullets li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 15px;
  color: var(--muted);
}
.bridge-bullets li::before {
  content: "✓";
  position: absolute;
  left: 4px;
  color: var(--accent);
  font-weight: 700;
}
.config-warning {
  margin-top: 16px;
  padding: 10px 12px;
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 8px;
  font-size: 13px;
  color: #7a5c00;
}

.trust-line {
  margin-top: 22px;
  font-size: 13px;
  color: var(--muted);
}

footer {
  margin-top: 24px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 480px) {
  .screen { padding: 22px 18px; }
  .screen h1 { font-size: 23px; }
}
