/*
 * RSV Campaign Styles
 * Covers: RSV popup modal + RSV Quiz page
 * Scoped with .rsv-* classes — no bleed to other pages
 */

/* ═══════════════════════════════════════════════
   QUIZ PAGE LAYOUT
═══════════════════════════════════════════════ */

.rsv-quiz-page .rsv-quiz-section {
  min-height: 80vh;
  padding-top: 60px;
  padding-bottom: 80px;
}

/* ── Quiz header ──────────────────────────────── */
.rsv-quiz-header {
  text-align: center;
  margin-bottom: 40px;
}

.rsv-quiz-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: #0D39D8;
  margin-bottom: 12px;
}

.rsv-quiz-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  color: #1d1d1f;
  margin-bottom: 28px;
}

@media (max-width: 576px) {
  .rsv-quiz-title { font-size: 24px; }
}

/* ── Progress bar ─────────────────────────────── */
.rsv-progress-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rsv-progress-bar {
  flex: 1;
  height: 6px;
  background: #e5e7eb;
  border-radius: 99px;
  overflow: hidden;
}

.rsv-progress-fill {
  height: 100%;
  background: #0D39D8;
  border-radius: 99px;
  transition: width 0.35s ease;
}

.rsv-progress-label {
  font-size: 13px;
  color: #888;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   QUIZ STEP — QUESTION + OPTIONS
═══════════════════════════════════════════════ */

.rsv-step {
  animation: rsvFadeIn 0.25s ease;
}

@keyframes rsvFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0);    }
}

.rsv-question {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  color: #1d1d1f;
  margin-bottom: 28px;
}

@media (max-width: 576px) {
  .rsv-question { font-size: 18px; }
}

/* ── Option cards ─────────────────────────────── */
.rsv-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.rsv-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}

.rsv-option:hover {
  border-color: #0D39D8;
  background: #f0f4ff;
}

.rsv-option.is-selected {
  border-color: #0D39D8;
  background: #eef2ff;
}

.rsv-option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.2s;
}

.rsv-option input[type="radio"]:checked {
  border-color: #0D39D8;
  background: #0D39D8;
  box-shadow: inset 0 0 0 3px #fff;
}

.rsv-option span {
  font-size: 16px;
  color: #333;
  line-height: 1.4;
}

/* ── Button row ───────────────────────────────── */
.rsv-btn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.rsv-btn-row--right {
  justify-content: flex-end;
}

.rsv-next-btn,
.rsv-submit-btn {
  /* Inherits .btn-brand from theme */
  min-width: 140px;
}

.rsv-next-btn:disabled,
.rsv-submit-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.rsv-back-btn {
  background: none;
  border: none;
  color: #888;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.rsv-back-btn:hover { color: #333; }

/* ═══════════════════════════════════════════════
   RESULT SCREEN
═══════════════════════════════════════════════ */

.rsv-result {
  animation: rsvFadeIn 0.3s ease;
}

.rsv-result-inner {
  text-align: center;
  padding: 20px 0;
}

.rsv-result-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
}

.rsv-badge--low {
  background: #dcfce7;
  color: #166534;
}

.rsv-badge--moderate {
  background: #fef9c3;
  color: #854d0e;
}

.rsv-badge--high {
  background: #fee2e2;
  color: #991b1b;
}

.rsv-result-headline {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  color: #1d1d1f;
  margin-bottom: 16px;
}

.rsv-result-body {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA buttons per tier */
.rsv-result-cta {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  height: 48px;
  line-height: 48px;
  border-radius: 24px;
  padding: 0 2rem;
  text-decoration: none !important;
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.rsv-result-cta--low {
  background: #0D39D8;
  color: #fff !important;
  border: 1px solid #0D39D8;
}

.rsv-result-cta--low:hover {
  background: #fff;
  color: #0D39D8 !important;
}

.rsv-result-cta--moderate {
  background: #0D39D8;
  color: #fff !important;
  border: 1px solid #0D39D8;
}

.rsv-result-cta--moderate:hover {
  background: #fff;
  color: #0D39D8 !important;
}

.rsv-result-cta--high {
  background: #dc2626;
  color: #fff !important;
  border: 1px solid #dc2626;
}

.rsv-result-cta--high:hover {
  background: #fff;
  color: #dc2626 !important;
}

.rsv-retake {
  display: block;
  margin: 0 auto;
  background: none;
  border: none;
  color: #888;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.2s;
}

.rsv-retake:hover { color: #333; }

@media (max-width: 576px) {
  .rsv-result-headline { font-size: 22px; }
  .rsv-result-cta      { padding: 0 1.5rem; font-size: 15px; }
}
