/* ========== QUIZ PAGE ========== */

.quiz-page {
  /* The UA's default 8px body margin pushed every quiz page off-centre and
     stole 16px of an already-narrow phone screen. */
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #000;
  overflow-x: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Header */
.quiz-header {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  position: relative;
  z-index: 10;
}

.quiz-header .article-logo img {
  height: 40px;
  width: auto;
}

.quiz-back {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: background 0.2s ease;
  margin-left: 1rem;
}

.quiz-back:hover {
  background: rgba(0, 0, 0, 0.05);
}

.quiz-back svg {
  width: 18px;
  height: 18px;
}

.quiz-back.hidden {
  visibility: hidden;
  pointer-events: none;
}

/* Progress bar */
.quiz-progress {
  height: 4px;
  background: #f1f5f9;
  position: relative;
}

.quiz-progress-fill {
  height: 100%;
  background: #000;
  border-radius: 0 4px 4px 0;
  transition: width 0.5s ease-out;
}

/* Main quiz area */
.quiz-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  position: relative;
}

/* Step container — holds the animated content */
.quiz-step-container {
  width: 100%;
  max-width: 500px;
  position: relative;
}

.quiz-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ========== INTRO STEP ========== */

.quiz-intro-description {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #555;
  max-width: 520px;
  margin: 0 auto 32px;
}

button.quiz-intro-start {
  width: 100%;
  padding: 16px 24px;
  font-size: 1.05rem;
}

/* ========== ENTRANCE ANIMATION (first load) ========== */

.quiz-step.entrance {
  animation: quizFadeInBlur 1.2s ease-out forwards;
}

@keyframes quizFadeInBlur {
  from {
    opacity: 0;
    filter: blur(12px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

/* ========== SLIDE TRANSITIONS ========== */

.quiz-step.slide-exit-forward {
  animation: slideOutLeft 0.35s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.quiz-step.slide-exit-backward {
  animation: slideOutRight 0.35s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.quiz-step.slide-enter-forward {
  animation: slideInRight 0.65s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.quiz-step.slide-enter-backward {
  animation: slideInLeft 0.65s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

@keyframes slideOutLeft {
  from { transform: translateX(0); opacity: 1; filter: blur(0); }
  to   { transform: translateX(-55%); opacity: 0; filter: blur(8px); }
}

@keyframes slideOutRight {
  from { transform: translateX(0); opacity: 1; filter: blur(0); }
  to   { transform: translateX(55%); opacity: 0; filter: blur(8px); }
}

@keyframes slideInRight {
  from { transform: translateX(55%); opacity: 0; filter: blur(8px); }
  to   { transform: translateX(0); opacity: 1; filter: blur(0); }
}

@keyframes slideInLeft {
  from { transform: translateX(-55%); opacity: 0; filter: blur(8px); }
  to   { transform: translateX(0); opacity: 1; filter: blur(0); }
}

/* ========== QUESTION CONTENT ========== */

.quiz-question {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  color: #000;
  margin-bottom: 0.5rem;
}

.quiz-description {
  font-size: 1rem;
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.quiz-question + .quiz-options {
  margin-top: 2rem;
}

/* ========== OPTIONS ========== */

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.quiz-option {
  display: block;
  width: 100%;
  padding: 16px 24px;
  background: #fff;
  color: #000;
  border: 2px solid #000;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.quiz-option:hover {
  background: rgba(0, 0, 0, 0.05);
}

.quiz-option.selected {
  background: #000;
  color: #fff;
}

/* ========== DROPDOWN SELECT ========== */

.quiz-select {
  width: 100%;
  padding: 16px 24px;
  background: #fff;
  color: #000;
  border: 2px solid #000;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  margin-bottom: 1rem;
}

/* The quote flow's result screen (rate menu, breakdown tables) needs more
   room than a question card; the flow adds this class on the container only
   while the result step is showing. */
.quiz-step-container.quiz-container-wide {
  max-width: 700px;
}

/* Two-column option grid for long lists (e.g. the quote flow's credit-score
   bands) — added via .quiz-options-grid on top of the default column list. */
.quiz-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ========== MONEY FIELDS (quote flow) ========== */

.quiz-money-field { width: 100%; margin-bottom: 1rem; text-align: left; }
.quiz-money-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}
.quiz-money-wrap {
  display: flex;
  align-items: center;
  border: 2px solid #000;
  border-radius: 50px;
  background: #fff;
  overflow: hidden;
}
.quiz-money-prefix { padding: 0 4px 0 20px; color: #666; font-size: 1.05rem; }
.quiz-money-step {
  flex-shrink: 0;
  align-self: stretch;
  border: none;
  background: transparent;
  padding: 0 18px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #111;
  cursor: pointer;
  font-family: inherit;
  -webkit-user-select: none;
  user-select: none;
}
.quiz-money-step:first-child { border-right: 1px solid #eee; }
.quiz-money-step:last-child { border-left: 1px solid #eee; }
.quiz-money-step:active { background: #f1f5f9; }
/* When a stepper leads the pill, the $ prefix doesn't need the big left pad */
.quiz-money-step + .quiz-money-prefix { padding-left: 12px; }
.quiz-money-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  padding: 14px 20px 14px 4px;
  font-size: 1.05rem;
  font-family: inherit;
  background: transparent;
}

/* ========== REVIEW STEP (quote flow) ========== */

.quiz-review-list {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 6px 18px;
  margin-bottom: 1.25rem;
  background: #fff;
  text-align: left;
}
.quiz-review-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.95rem;
}
.quiz-review-row:last-child { border-bottom: none; }
.quiz-review-label { color: #666; }
.quiz-review-value { font-weight: 600; color: #000; text-align: right; }

/* ========== QUOTE FLOW RESULT EXTRAS ========== */

.quote-quiz-result { text-align: left; }
.quote-quiz-result .quiz-result-stage,
.quote-quiz-result .quiz-result-blocker { text-align: center; }
.quote-flow-warning {
  color: #b91c1c;
  font-style: italic;
  font-size: 0.9rem;
  margin: 0 0 10px;
  text-align: center;
}
.quote-flow-note {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.5;
  margin-top: 10px;
}
.quote-flow-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}
.quote-flow-kpi {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}
.quote-flow-kpi-label { font-size: 0.75rem; color: #64748b; }
.quote-flow-kpi-value { font-size: 1.15rem; font-weight: 700; color: #0f172a; }
.quote-flow-link {
  background: none;
  border: none;
  padding: 0;
  margin: 14px 0 4px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: #000;
  text-decoration: underline;
  cursor: pointer;
}
.quote-sheet-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
  margin-bottom: 16px;
}
.quote-sheet-actions .quote-switch-btn { margin-bottom: 0; }
.quote-dl-group { display: inline-flex; gap: 8px; }

/* Export isolation: the saved image and the printed PDF are the quote itself —
   no pre-approval pitch, no adjustment inputs, no action buttons. */
body.quote-exporting .quote-sheet-actions,
body.quote-exporting .quote-preapproval,
body.quote-exporting .quote-adjust-title,
body.quote-exporting .quote-flow-adjust {
  display: none !important;
}
/* Breathing room around the captured image — without this the PNG's content
   runs edge to edge. */
body.quote-exporting .quote-quiz-result {
  padding: 32px 44px;
}
@media print {
  .quiz-header,
  .quiz-progress,
  .quote-sheet-actions,
  .quote-preapproval,
  .quote-adjust-title,
  .quote-flow-adjust {
    display: none !important;
  }
  .quiz-main { padding: 0; }
  .quiz-step-container,
  .quiz-step-container.quiz-container-wide { max-width: none; }
  .quiz-step { animation: none !important; }
  .quote-bar-seg,
  .quote-legend-dot,
  .quote-rate-tag {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

.quote-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 8px 18px;
  border: 2px solid #000;
  border-radius: 50px;
  background: #fff;
  color: #000;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 16px;
  transition: background 0.15s ease;
}
.quote-switch-btn:hover { background: rgba(0, 0, 0, 0.05); }
.quote-preapproval {
  border: 2px solid #000;
  border-radius: 16px;
  padding: 46px 28px;
  margin: 40px 0 36px;
  background: #fff;
  text-align: center;
}
.quote-preapproval h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
  color: #000;
}
.quote-preapproval p {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.55;
  margin: 0 0 16px;
}
.quote-preapproval .quote-nmls {
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 12px 0 0;
}
.quote-flow-adjust {
  display: grid;
  /* minmax(0, 1fr): a bare 1fr floors at the input's min-content width, which
     pushed the three fields past the container (HOA hanging off the right).
     Zero-floored tracks keep the row inside — and centered with — the sheet. */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}
.quote-flow-adjust .quiz-money-field {
  min-width: 0;
  margin-bottom: 0;
}
@media (max-width: 720px) {
  .quote-flow-adjust { grid-template-columns: 1fr; }
}
/* The MI caveat under the monthly-payment bar reads as a footnote to the
   breakdown, not a page-level alarm. */
.quote-rate-explainer {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.55;
  margin: 0 0 14px;
  text-align: center;
}
.quote-tx-notice-title {
  font-weight: 700;
  color: #475569;
  margin-top: 18px;
}
.quote-mi-note {
  text-align: left;
  /* Matches the breakdown legend labels (13.5px) so it reads as a footnote
     to the rows above it, not a headline. */
  font-size: 13.5px;
  margin: -4px 0 16px;
}

.quiz-select:focus {
  outline: none;
  border-color: #555;
}

/* ========== LEAD CAPTURE FORM ========== */

.quiz-lead-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  text-align: left;
}

.quiz-lead-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.quiz-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.quiz-field.full-width {
  grid-column: 1 / -1;
}

.quiz-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
}

.quiz-field input {
  padding: 16px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 50px;
  font-size: 1.05rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.quiz-field input:focus {
  border-color: #000;
}

.quiz-lead-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.quiz-lead-btn {
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  border: 2px solid #000;
}

.quiz-lead-btn.primary {
  background: #000;
  color: #fff;
}

.quiz-lead-btn.primary:hover {
  background: #222;
}

.quiz-lead-btn.secondary {
  background: #fff;
  color: #000;
}

.quiz-lead-btn.secondary:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* ========== RESULT SCREEN ========== */

.quiz-result {
  text-align: left;
  width: 100%;
  max-width: 700px;
}

.quiz-result-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: #000;
  color: #fff;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.quiz-result-stage {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.quiz-result-blocker {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.quiz-result-blocker strong {
  color: #000;
}

/* Stacked result sections */

.quiz-result-section {
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  margin-bottom: 1.5rem;
}

.quiz-result-section h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.quiz-result-section .subtitle {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 1rem;
}

/* Next steps numbered list */
.quiz-next-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quiz-next-step {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.quiz-step-number {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.quiz-step-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
}

/* Recommendation cards */
.quiz-rec-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quiz-rec-card {
  display: block;
  padding: 1rem 1.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.quiz-rec-card:hover {
  background: #f8fafc;
}

.quiz-rec-card h5 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.quiz-rec-card p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
}

/* Restart / back buttons */
.quiz-result-actions {
  display: flex;
  gap: 0.75rem;
}

/* ========== FOOTER ========== */

.quiz-footer {
  padding: 1.5rem 2rem;
  text-align: center;
}

.quiz-footer p {
  font-size: 0.85rem;
  color: #999;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 720px) {
  .quiz-question {
    font-size: 1.5rem;
  }

  .quiz-option {
    padding: 14px 20px;
    font-size: 0.95rem;
  }


  .quiz-lead-row {
    grid-template-columns: 1fr;
  }

  .quiz-result-stage {
    font-size: 1.8rem;
  }

  .quiz-step-container {
    max-width: 100%;
  }
}

/* ========== SLIDER ========== */

.quiz-slider-container {
  width: 100%;
  text-align: center;
  padding: 1rem 0;
}

.quiz-slider-value {
  font-size: 2.8rem;
  font-weight: 800;
  color: #000;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.quiz-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
  outline: none;
  margin-bottom: 0.75rem;
}

.quiz-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #000;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: transform 0.15s ease;
}

.quiz-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.quiz-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #000;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.quiz-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 2rem;
}

.quiz-continue-btn {
  display: block;
  width: 100%;
  padding: 16px 24px;
  background: #000;
  color: #fff;
  border: 2px solid #000;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.quiz-continue-btn:hover {
  background: #222;
}

.quiz-continue-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ========== PLACES AUTOCOMPLETE ========== */

.quiz-places-wrapper {
  width: 100%;
  position: relative;
}

.quiz-places-input {
  width: 100%;
  padding: 16px 24px;
  border: 2px solid #000;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 500;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.quiz-places-input::placeholder {
  color: #aaa;
  font-weight: 400;
}

.quiz-places-input:focus {
  border-color: #555;
}

.quiz-places-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 100;
  overflow: hidden;
}

.quiz-places-item {
  display: block;
  width: 100%;
  padding: 12px 20px;
  background: none;
  border: none;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.95rem;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  color: #333;
  transition: background 0.1s ease;
}

.quiz-places-item:last-child {
  border-bottom: none;
}

.quiz-places-item:hover {
  background: #f8fafc;
}

.quiz-places-powered {
  padding: 6px 16px;
  text-align: right;
}

.quiz-places-powered img {
  height: 14px;
  display: inline-block;
}

/* ========== TEXTAREA ========== */

.quiz-textarea {
  width: 100%;
  min-height: 120px;
  padding: 16px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
  margin-bottom: 1rem;
}

.quiz-textarea::placeholder {
  color: #aaa;
}

.quiz-textarea:focus {
  border-color: #000;
}

/* ========== NAME FIELDS ========== */

.quiz-name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  margin-bottom: 1rem;
}

.quiz-name-input {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 50px;
  font-size: 1.05rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.quiz-name-input::placeholder {
  color: #aaa;
}

.quiz-name-input:focus {
  border-color: #000;
}

/* ========== CONTACT + OTP ========== */

.quiz-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.quiz-contact-input {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 50px;
  font-size: 1.05rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.quiz-contact-input::placeholder {
  color: #aaa;
}

.quiz-contact-input:focus {
  border-color: #000;
}

.quiz-phone-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.quiz-phone-row input {
  flex: 1;
}

.quiz-send-code-btn {
  padding: 14px 20px;
  background: #fff;
  color: #000;
  border: 2px solid #000;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.quiz-send-code-btn:hover {
  background: rgba(0,0,0,0.05);
}

.quiz-send-code-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.quiz-otp-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quiz-otp-label {
  font-size: 0.85rem;
  color: #666;
}

.quiz-otp-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.quiz-otp-input {
  width: 160px;
  padding: 16px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: inherit;
  text-align: center;
  letter-spacing: 0.2em;
  outline: none;
  transition: border-color 0.2s ease;
}

.quiz-otp-input:focus {
  border-color: #000;
}

.quiz-otp-status {
  font-size: 0.85rem;
  font-weight: 500;
}

.quiz-otp-status.success {
  color: #16a34a;
}

.quiz-otp-status.error {
  color: #dc2626;
}

.quiz-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  background: #f0fdf4;
  color: #16a34a;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ========== RESPONSIVE — NEW TYPES ========== */

@media (max-width: 720px) {
  .quiz-slider-value {
    font-size: 2rem;
  }

  .quiz-name-row {
    grid-template-columns: 1fr;
  }

  .quiz-phone-row {
    flex-direction: column;
    align-items: stretch;
  }

  .quiz-otp-row {
    flex-direction: column;
    align-items: stretch;
  }

  .quiz-otp-input {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.05rem;
  }
}

/* ========== SCHEDULER (moved from planning.css so every quiz can book) ========== */
/* ========== SCHEDULER STYLES ========== */

.scheduler {
  width: 100%;
  max-width: 500px;
}

.scheduler h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* Date picker */
.scheduler-calendar {
  margin-bottom: 1.5rem;
}

.scheduler-month-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.scheduler-month-header h4 {
  font-size: 1.05rem;
  font-weight: 600;
}

.scheduler-nav {
  background: none;
  border: 2px solid #000;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  font-family: inherit;
  font-weight: 700;
  transition: background 0.15s ease;
}

.scheduler-nav:hover {
  background: rgba(0, 0, 0, 0.05);
}

.scheduler-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 4px;
}

.scheduler-weekday {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #999;
  padding: 0.5rem 0;
  text-transform: uppercase;
}

.scheduler-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.scheduler-day {
  text-align: center;
  padding: 0.65rem 0;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: background 0.15s ease;
}

.scheduler-day:hover:not(.disabled):not(.empty) {
  background: rgba(0, 0, 0, 0.08);
}

.scheduler-day.selected {
  background: #000;
  color: #fff;
}

.scheduler-day.disabled {
  color: #ccc;
  cursor: default;
}

.scheduler-day.empty {
  cursor: default;
}

.scheduler-day.today {
  border: 2px solid #000;
}

/* Slot availability dots */
.scheduler-day {
  position: relative;
}

.slot-dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin: 2px auto 0;
}

.slot-dot.available {
  background: #22c55e;
}

.slot-dot.full {
  background: #d1d5db;
}

/* Time slots */
.scheduler-times {
  margin-bottom: 1.5rem;
}

.scheduler-times h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #333;
}

.scheduler-time-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.scheduler-time {
  padding: 0.7rem;
  text-align: center;
  border: 2px solid #000;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  background: #fff;
  transition: background 0.15s ease, color 0.15s ease;
}

.scheduler-time:hover {
  background: rgba(0, 0, 0, 0.05);
}

.scheduler-time.selected {
  background: #000;
  color: #fff;
}

.scheduler-confirm {
  width: 100%;
  padding: 14px;
  background: #000;
  color: #fff;
  border: 2px solid #000;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.scheduler-confirm:hover {
  background: #222;
  transform: scale(1.02);
}

.scheduler-confirm:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
}

/* Responsive */
@media (max-width: 500px) {
  .scheduler-time-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========== RESULT VIDEO ========== */
.quiz-result-video {
  width: 100%;
  display: block;
  border-radius: 16px;
  background: #000;
}
.scheduler-error {
  color: #b91c1c;
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 0.75rem;
}
.scheduler-empty {
  color: #888;
  text-align: center;
  font-size: 0.9rem;
  margin: 0;
}

/* ========== BOOKING CONFIRM / CANCEL ========== */

.quiz-confirm-block {
  text-align: center;
}
.quiz-confirm-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.quiz-confirm-actions .quiz-lead-btn {
  width: 100%;
}
/* Deliberately understated next to the primary button — a cancel that competes
   for attention reads as "are you sure?" and plants the doubt it is meant to
   resolve. */
.quiz-confirm-cancel {
  background: none;
  border: none;
  padding: 4px;
  font-family: inherit;
  font-size: 0.85rem;
  color: #888;
  text-decoration: underline;
  cursor: pointer;
}
.quiz-confirm-cancel:hover { color: #555; }
.quiz-confirm-cancel:disabled { opacity: 0.5; cursor: default; }
.quiz-confirm-error {
  color: #b91c1c;
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

/* ========== RESULT: OPEN CENTERED LAYOUT ========== */

/* The video card sheds its box; its heading centers over the player. */
.quiz-video-section {
  border: none;
  padding: 0;
}
.quiz-video-section h4 {
  text-align: center;
}

/* Follow-up screen (after the confirm/cancel choice): no section boxes,
   everything centered. Lists stay left-aligned inside a centered column so
   numbered steps read as a list, not scattered lines. */
.quiz-followup {
  text-align: center;
}
.quiz-followup .quiz-result-section {
  border: none;
  padding: 0;
  margin-bottom: 2.25rem;
}
.quiz-followup .quiz-next-steps {
  max-width: 420px;
  margin: 0 auto;
  padding: 0;
  text-align: left;
}
.quiz-followup .quiz-rec-list {
  max-width: 420px;
  margin: 0 auto;
}
.quiz-followup .quiz-rec-card {
  text-align: center;
}
.quiz-followup .quiz-result-actions {
  justify-content: center;
}
