/* Base */
:root {
  --brand: #f39c12;
  --brand-dark: #e67e22;
  --ink: #2c3e50;
  --bg: #ffffff;
  --card: #fafafa;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--ink);
  margin: 40px 16px;
  display: grid;
  place-items: start center;
  min-height: 100dvh;
}

.noscript {
  background: #fff3cd;
  border: 1px solid #ffe58f;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
}

/* Quiz */
.quiz-container {
  width: 100%;
  max-width: none;       /* remove fixed max-width */
  margin: 0;             /* remove side margins */
  border-radius: 0;      /* remove rounded edges if you want flush edges */
  padding: 30px 0;       /* vertical spacing */
  background: #fff;      /* or keep your existing background */
  box-shadow: none;      /* optional: remove shadow */
}
.quiz-container .quiz-option {
  display: block;
  width: 60%;           /* buttons don’t span entire screen */
  max-width: 500px;
  margin: 10px auto;    /* center the buttons */
  padding: 15px;
  background: #f59e0b;  /* orange */
  color: #fff;
  font-weight: 700;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
}
.question {
  font-size: 20px;
  font-weight: 500;
  margin: 0px 0 18px;
  text-align: center;
}

.option {
  display: block;
  width: 100%;
  background: var(--brand);
  color: #fff;
  padding: 18px 16px;
  margin: 12px 0;
  font-size: 20px;
  font-weight: 800;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.06s ease, background 0.2s ease;
}

.option:hover { background: var(--brand-dark); }
.option:active { transform: translateY(1px) scale(0.998); }

.hidden { display: none !important; }

/* Loader overlay */
.loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.96);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 9999;
}

.loader-card {
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  border-radius: 18px;
  padding: 28px 22px;
  box-shadow: 0 18px 36px rgba(0,0,0,0.1);
  text-align: center;
}

.loader-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 14px;
}

.progress {
  width: 100%;
  height: 14px;
  background: #ececec;
  border-radius: 999px;
  overflow: hidden;
  margin: 8px 0 12px;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--brand);
  border-radius: 999px;
  transition: width 0.2s linear;
  /* CSS animation for users w/ CSS animations enabled */
  animation: fillbar 2.4s ease forwards;
}

@keyframes fillbar {
  from { width: 0%; }
  to   { width: 100%; }
}

.loader-tip {
  font-size: 14px;
  color: #5a5a5a;
}

/* Result page */
.result-page {
  width: 100%;
  max-width: 760px;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  border-radius: 18px;
  padding: 36px 26px;
  box-shadow: 0 14px 32px rgba(0,0,0,0.08);
  text-align: center;
}

.result-badge {
  display: inline-block;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--brand);
  border-radius: 999px;
  margin-bottom: 12px;
}

.result-title {
  font-size: 28px;
  font-weight: 900;
  margin: 8px 0 10px;
}

.result-sub {
  font-size: 16px;
  color: #555;
  margin-bottom: 22px;
}

.cta {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  padding: 14px 18px;
  border-radius: 12px;
  transition: background 0.2s ease, transform 0.06s ease;
}
.cta:hover { background: var(--brand-dark); }
.cta:active { transform: translateY(1px); }

/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {
  .option,
  .progress-bar,
  .cta { transition: none; animation: none; }
}
/* ---------- Results Page (matches reference image) ---------- */
.result-header {
  display: flex;
  justify-content: center;
  padding: 20px 0 4px;
}

.brand-logo {
  height: 42px;                 /* replace with your logo size */
  width: auto;
  object-fit: contain;
}

/* Page wrapper */
.result-wrapper {
  display: grid;
  place-items: start center;
  padding: 18px;
}

/* Card */
.result-card {
  width: 100%;
  max-width: 540px;
  background: #f4f5f7;          /* light gray like the screenshot */
  border-radius: 14px;
  box-shadow: 0 22px 34px rgba(0,0,0,0.1);
  padding: 26px 22px 34px;
  text-align: center;
  position: relative;
}

/* Thin blue bar at the very top of the card */
.card-topbar {
  position: absolute;
  top: 0;
  left: 12px;
  right: 12px;
  height: 4px;
  border-radius: 3px;
  background: linear-gradient(90deg, #2f80ed, #6ca8ff);
  transform: translateY(-2px);
}

/* Headline */
.congrats {
  color: #12b886;               /* green headline */
  font-weight: 900;
  font-size: 36px;
  margin: 10px 0 12px;
}

/* Lead paragraph */
.lede {
  font-size: 20px;
  line-height: 1.5;
  color: #1f2937;
  margin: 0 auto 16px;
  max-width: 40ch;
}

.em-green { color: #12b886; font-weight: 800; }
.em-red   { color: #e03131; font-weight: 900; }

/* Next step block */
.next-step {
  font-size: 20px;
  line-height: 1.45;
  color: #111827;
  font-weight: 700;
  margin: 16px auto 12px;
  max-width: 40ch;
}

/* TAP TO CALL row */
.tap-to-call {
  font-size: 30px;
  font-weight: 900;
  margin: 10px 0 12px;
}
.finger { font-size: 34px; }

/* Call button (pulsating) */
.call-btn {
  display: inline-block;
  width: 92%;
  max-width: 430px;
  text-align: center;
  text-decoration: none;
  background: #f39c12;          /* orange like your quiz buttons */
  color: #fff;
  font-weight: 900;
  font-size: 26px;
  padding: 18px 16px;
  border-radius: 14px;
  box-shadow: 0 12px 0 rgba(0,0,0,0.12);
  transition: transform 0.06s ease, background 0.2s ease;
}

.call-btn:hover { background: #e67e22; }
.call-btn:active { transform: translateY(1px); }

/* Pulsate animation */
@keyframes pulseGlow {
  0%   { box-shadow: 0 0 0 0 rgba(243, 156, 18, 0.55); transform: scale(1);   }
  70%  { box-shadow: 0 0 0 14px rgba(243, 156, 18, 0);  transform: scale(1.02);}
  100% { box-shadow: 0 0 0 0 rgba(243, 156, 18, 0);     transform: scale(1);   }
}

.pulse {
  animation: pulseGlow 1.8s ease-out infinite;
}

/* Mobile tweaks */
@media (max-width: 420px) {
  .congrats { font-size: 30px; }
  .lede, .next-step { font-size: 18px; }
  .tap-to-call { font-size: 26px; }
  .call-btn { font-size: 24px; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .pulse { animation: none; }
}
/* ===== Mobile Compact Mode ===== */
@media (max-width: 480px) {
  .mobile-compact {
    padding: 20px 16px 26px;
  }

  .congrats {
    font-size: 28px;
    margin: 6px 0 12px;
  }

  .lede {
    font-size: 16px;
    line-height: 1.35;
    margin-bottom: 16px;
  }

  .tap-to-call {
    font-size: 22px;
    margin: 12px 0 14px;
  }
  .finger { font-size: 22px; }

  .call-btn {
    font-size: 20px;
    padding: 14px;
    width: 100%;
    border-radius: 10px;
  }
}
.quiz-banner {
      width: 100%;
      background-color: #e0e0e6; /* light grey */
      padding: 10px;
      text-align: center;
      font-size: 14px;
      font-weight: 700;
      color: #111827; /* dark text for contrast */
    }