/* ================================================
   Mid-quiz lead gate (modal)
   --------------------------------------------------
   Non-dismissable overlay shown after Q3 when the
   user has no captured email yet. Visual language
   matches the landing page modal so the experience
   feels continuous between the two surfaces.
   ================================================ */

.quiz-gate {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.quiz-gate.hidden { display: none; }

.quiz-gate-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 24, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.quiz-gate-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--bg-elev, #14161f);
  color: var(--text, #f5f5f7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  font-family: var(--font-sans, system-ui, sans-serif);
}

.quiz-gate-card h2 {
  margin: 0 0 8px 0;
  font-family: var(--font-display, system-ui);
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.quiz-gate-sub {
  margin: 0 0 22px 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-muted, #b4b8c2);
}

.quiz-gate-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted, #b4b8c2);
  margin-bottom: 6px;
}

.quiz-gate-card input[type="email"] {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: inherit;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 120ms ease;
}
.quiz-gate-card input[type="email"]:focus {
  outline: none;
  border-color: var(--accent, #ff6a3d);
}

/* Honeypot — invisible to humans, valid for bots. */
.quiz-gate-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.quiz-gate-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0 18px 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted, #b4b8c2);
  cursor: pointer;
}
.quiz-gate-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--accent, #ff6a3d);
}

.quiz-gate-error {
  margin: 0 0 12px 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 70, 70, 0.12);
  border: 1px solid rgba(255, 70, 70, 0.35);
  color: #ffb4b4;
  font-size: 13px;
  line-height: 1.4;
}

.quiz-gate-submit {
  width: 100%;
  margin-top: 4px;
}
.quiz-gate-submit[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.quiz-gate-fineprint {
  margin: 12px 0 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted, #8a8e98);
}

/* Lock the page underneath so users don't keep scrolling. */
body.quiz-gate-open {
  overflow: hidden;
}
