/**
 * RestfulBlanket Product Finder Quiz v5
 * Mobile-responsive, Kadence theme native design
 *
 * Design tokens extracted from restfulblanket.dk:
 * - Primary: #35281e (dark brown — Kadence --global-palette1)
 * - Accent:  #e4ccb4 (warm beige — Kadence --global-palette7)
 * - Body text: #262322 (charcoal — Kadence --global-palette4)
 * - Headings: #1f1d1b (near-black — Kadence --global-palette3)
 * - Muted: #718096 (gray — Kadence --global-palette6)
 * - Background: #F7FAFC (light — Kadence --global-palette8)
 * - Heading font: "Playfair Display", serif
 * - Body font: Poppins, sans-serif
 * - Border-radius: 3px (minimal, Scandinavian)
 */

/* ================================================================== */
/*  CSS CUSTOM PROPERTIES                                              */
/* ================================================================== */
:root {
  --rb-primary: #35281e;
  --rb-primary-light: #4a3a2c;
  --rb-primary-hover: #2a1f17;
  --rb-accent: #e4ccb4;
  --rb-accent-dark: #c9a97a;
  --rb-accent-light: #f5ece2;
  --rb-bg: #f8f6f3;
  --rb-bg-warm: #faf8f5;
  --rb-bg-card: #ffffff;
  --rb-text: #262322;
  --rb-text-light: #4A5568;
  --rb-text-muted: #718096;
  --rb-border: #e4ccb4;
  --rb-border-light: #f0ebe4;
  --rb-success: #3c8054;
  --rb-success-light: #eef6f1;
  --rb-shadow-sm: 0 1px 3px rgba(53, 40, 30, 0.06);
  --rb-shadow: 0 2px 8px rgba(53, 40, 30, 0.08);
  --rb-shadow-hover: 0 4px 16px rgba(53, 40, 30, 0.12);
  --rb-radius: 3px;
  --rb-radius-sm: 3px;
  --rb-radius-lg: 4px;
  --rb-transition: 0.2s ease;
  --rb-font-body: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --rb-font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --rb-max-width: 720px;
}

/* ================================================================== */
/*  RESET & BASE                                                       */
/* ================================================================== */
.rb-product-finder-quiz,
.rb-result-page,
.rb-quiz-cta {
  font-family: var(--rb-font-body);
  color: var(--rb-text);
  line-height: 1.6;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

.rb-product-finder-quiz *,
.rb-result-page *,
.rb-quiz-cta * {
  box-sizing: border-box;
}

/* ================================================================== */
/*  BUTTONS                                                            */
/* ================================================================== */
.rb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 400;
  font-family: var(--rb-font-body);
  border: none;
  border-radius: var(--rb-radius);
  cursor: pointer;
  transition: all var(--rb-transition);
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
  letter-spacing: 0;
}

.rb-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.rb-btn-primary {
  background: var(--rb-primary);
  color: #ffffff !important;
}

.rb-btn-primary:hover {
  background: var(--rb-primary-hover);
  box-shadow: var(--rb-shadow);
}

.rb-btn-primary:active {
  transform: translateY(0);
}

.rb-btn-primary:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

.rb-btn-outline {
  background: transparent;
  color: var(--rb-primary);
  border: 1px solid var(--rb-border);
}

.rb-btn-outline:hover {
  border-color: var(--rb-primary);
  background: rgba(53, 40, 30, 0.03);
}

.rb-btn-accent {
  background: var(--rb-accent);
  color: var(--rb-primary);
  font-weight: 500;
}

.rb-btn-accent:hover {
  background: var(--rb-accent-dark);
  color: #ffffff;
}

/* ================================================================== */
/*  QUIZ INTRO                                                         */
/* ================================================================== */
.rb-quiz-intro {
  max-width: var(--rb-max-width);
  margin: 0 auto;
  padding: 48px 24px;
  text-align: center;
}

.rb-quiz-intro-icon {
  margin-bottom: 20px;
  color: var(--rb-primary);
}

.rb-quiz-intro-icon svg {
  width: 56px;
  height: 56px;
  opacity: 0.7;
}

.rb-quiz-intro-title {
  font-family: var(--rb-font-heading);
  font-size: 30px;
  font-weight: 700;
  color: var(--rb-primary);
  margin: 0 0 12px;
  line-height: 1.25;
}

.rb-quiz-intro-subtitle {
  font-size: 16px;
  color: var(--rb-text-light);
  margin: 0 0 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.rb-quiz-intro-features {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.rb-quiz-feature {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--rb-text-muted);
}

.rb-quiz-feature-icon {
  color: var(--rb-success);
  display: flex;
}

.rb-quiz-start-btn {
  font-size: 16px;
  padding: 14px 36px;
}

/* ================================================================== */
/*  QUIZ STEP                                                          */
/* ================================================================== */
.rb-quiz-step {
  max-width: var(--rb-max-width);
  margin: 0 auto;
  padding: 32px 24px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.rb-quiz-step--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Progress ---- */
.rb-quiz-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.rb-quiz-progress-bar {
  flex: 1;
  height: 4px;
  background: var(--rb-border-light);
  border-radius: 2px;
  overflow: hidden;
}

.rb-quiz-progress-fill {
  height: 100%;
  background: var(--rb-primary);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.rb-quiz-progress-text {
  font-size: 12px;
  color: var(--rb-text-muted);
  white-space: nowrap;
  font-weight: 500;
}

/* ---- Question ---- */
.rb-quiz-question {
  text-align: center;
  margin-bottom: 28px;
}

.rb-quiz-question-title {
  font-family: var(--rb-font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--rb-primary);
  margin: 0 0 8px;
  line-height: 1.3;
}

.rb-quiz-question-subtitle {
  font-size: 14px;
  color: var(--rb-text-muted);
  margin: 0;
}

/* ---- Options ---- */
.rb-quiz-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 28px;
}

.rb-quiz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--rb-bg-card);
  border: 1px solid var(--rb-border-light);
  border-radius: var(--rb-radius);
  cursor: pointer;
  transition: all var(--rb-transition);
  text-align: left;
  font-family: inherit;
  font-size: 14px;
  color: var(--rb-text);
  width: 100%;
}

.rb-quiz-option:hover {
  border-color: var(--rb-accent-dark);
  background: var(--rb-bg-warm);
}

.rb-quiz-option--selected {
  border-color: var(--rb-primary);
  background: var(--rb-accent-light);
}

.rb-quiz-option--selected .rb-quiz-option-check {
  opacity: 1;
  color: var(--rb-primary);
}

.rb-quiz-option-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rb-primary);
  opacity: 0.6;
}

.rb-quiz-option-icon svg {
  width: 24px;
  height: 24px;
}

.rb-quiz-option--selected .rb-quiz-option-icon {
  opacity: 1;
}

.rb-quiz-option-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rb-quiz-option-label {
  font-weight: 500;
  font-size: 14px;
  color: var(--rb-text);
}

.rb-quiz-option-desc {
  font-size: 12px;
  color: var(--rb-text-muted);
}

.rb-quiz-option-check {
  flex-shrink: 0;
  opacity: 0;
  transition: opacity var(--rb-transition);
  display: flex;
}

/* ---- Navigation ---- */
.rb-quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.rb-quiz-back-btn {
  padding: 10px 18px;
  font-size: 13px;
}

.rb-quiz-next-btn {
  padding: 12px 24px;
  margin-left: auto;
}

/* ================================================================== */
/*  LOADING                                                            */
/* ================================================================== */
.rb-quiz-loading {
  text-align: center;
  padding: 64px 24px;
}

.rb-quiz-loading h2 {
  font-family: var(--rb-font-heading);
  font-size: 22px;
  color: var(--rb-primary);
  margin: 24px 0 8px;
}

.rb-quiz-loading p {
  color: var(--rb-text-muted);
  font-size: 14px;
}

.rb-quiz-loading-spinner {
  width: 40px;
  height: 40px;
  border: 2px solid var(--rb-border-light);
  border-top-color: var(--rb-primary);
  border-radius: 50%;
  margin: 0 auto;
  animation: rb-spin 0.8s linear infinite;
}

@keyframes rb-spin {
  to { transform: rotate(360deg); }
}

/* ================================================================== */
/*  NOSCRIPT                                                           */
/* ================================================================== */
.rb-quiz-noscript {
  max-width: var(--rb-max-width);
  margin: 0 auto;
  padding: 40px 24px;
  text-align: center;
  background: var(--rb-bg);
  border-radius: var(--rb-radius);
  border: 1px solid var(--rb-border-light);
}

.rb-quiz-noscript p {
  font-size: 15px;
  color: var(--rb-text-light);
}

.rb-quiz-noscript a {
  color: var(--rb-primary);
  text-decoration: underline;
}

/* ================================================================== */
/*  RESULT PAGE                                                        */
/* ================================================================== */
.rb-result-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px;
}

.rb-result-header {
  text-align: center;
  padding: 40px 0 32px;
}

.rb-result-h1 {
  font-family: var(--rb-font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--rb-primary);
  margin: 0 0 16px;
  line-height: 1.25;
}

.rb-result-intro {
  font-size: 16px;
  color: var(--rb-text-light);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

.rb-result-intro a {
  color: var(--rb-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rb-result-intro a:hover {
  color: var(--rb-primary-light);
}

/* ---- Product Card ---- */
.rb-product-card {
  background: var(--rb-bg-card);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-lg);
  overflow: hidden;
  box-shadow: var(--rb-shadow-sm);
  margin-bottom: 40px;
}

.rb-product-card-badge {
  background: var(--rb-primary);
  color: #ffffff;
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.rb-product-card-body {
  padding: 28px 24px;
}

.rb-product-card-title {
  font-family: var(--rb-font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--rb-primary);
  margin: 0 0 20px;
}

.rb-product-card-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.rb-product-card-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rb-product-card-detail-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--rb-text-muted);
  font-weight: 500;
}

.rb-product-card-detail-value {
  font-size: 17px;
  font-weight: 600;
  color: var(--rb-primary);
}

.rb-product-card-weight {
  color: var(--rb-primary);
}

.rb-product-card-info {
  background: var(--rb-bg-warm);
  border-radius: var(--rb-radius);
  padding: 16px;
  margin-bottom: 20px;
  border: 1px solid var(--rb-border-light);
}

.rb-product-card-info p {
  margin: 0;
  font-size: 13px;
  color: var(--rb-text-light);
  line-height: 1.6;
}

.rb-product-card-info strong {
  color: var(--rb-primary);
}

.rb-product-card-actions {
  text-align: center;
}

.rb-product-card-cta {
  width: 100%;
  padding: 14px 24px;
  font-size: 15px;
}

.rb-product-card-cta:hover {
  background: var(--rb-primary-hover);
}

/* ---- No Data / Default Recommendation ---- */
.rb-result-no-data {
  text-align: center;
  padding: 40px 24px;
  background: var(--rb-bg-warm);
  border-radius: var(--rb-radius);
  border: 1px solid var(--rb-border-light);
}

.rb-result-no-data p {
  margin: 0 0 20px;
  color: var(--rb-text-light);
  font-size: 15px;
}

.rb-result-default-badge {
  display: inline-block;
  background: var(--rb-accent);
  color: var(--rb-primary);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: var(--rb-radius);
  margin-bottom: 8px;
}

/* ---- USPs ---- */
.rb-result-usps {
  margin-bottom: 40px;
}

.rb-result-usps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.rb-result-usp {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--rb-success-light);
  border-radius: var(--rb-radius);
  font-size: 13px;
  color: var(--rb-text);
  border: 1px solid rgba(60, 128, 84, 0.1);
}

.rb-result-usp-icon {
  flex-shrink: 0;
  color: var(--rb-success);
  display: flex;
}

/* ---- Sections ---- */
.rb-result-section {
  margin-bottom: 40px;
}

.rb-result-section h2 {
  font-family: var(--rb-font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--rb-primary);
  margin: 0 0 14px;
}

.rb-result-section p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--rb-text);
}

.rb-result-section a {
  color: var(--rb-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rb-result-section a:hover {
  color: var(--rb-primary-light);
}

/* ---- Tips ---- */
.rb-result-tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rb-result-tips-list li {
  position: relative;
  padding: 12px 16px 12px 36px;
  margin-bottom: 6px;
  background: var(--rb-bg-warm);
  border-radius: var(--rb-radius);
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid var(--rb-border-light);
}

.rb-result-tips-list li::before {
  content: "\2713";
  position: absolute;
  left: 12px;
  top: 12px;
  color: var(--rb-success);
  font-weight: 700;
  font-size: 13px;
}

/* ---- Guarantees ---- */
.rb-result-guarantees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.rb-result-guarantee {
  text-align: center;
  padding: 24px 16px;
  background: var(--rb-bg-warm);
  border-radius: var(--rb-radius);
  border: 1px solid var(--rb-border-light);
  transition: all var(--rb-transition);
}

a.rb-result-guarantee-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.rb-result-guarantee-link:hover {
  border-color: var(--rb-accent-dark);
  box-shadow: var(--rb-shadow);
  transform: translateY(-2px);
}

a.rb-result-guarantee-link:hover h3 {
  text-decoration: underline;
  text-underline-offset: 2px;
}

a.rb-result-guarantee-link h3,
a.rb-result-guarantee-link p {
  color: inherit;
}

.rb-result-guarantee-icon {
  color: var(--rb-primary);
  margin-bottom: 12px;
  opacity: 0.7;
}

.rb-result-guarantee h3 {
  font-family: var(--rb-font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--rb-primary);
  margin: 0 0 8px;
}

.rb-result-guarantee p {
  font-size: 12px;
  color: var(--rb-text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ---- Bottom CTA ---- */
.rb-result-cta-box {
  text-align: center;
  padding: 36px 24px;
  background: var(--rb-bg-warm);
  border-radius: var(--rb-radius);
  border: 1px solid var(--rb-border-light);
}

.rb-result-cta-box h2 {
  margin-bottom: 10px;
}

.rb-result-cta-box p {
  max-width: 500px;
  margin: 0 auto 16px;
  color: var(--rb-text-light);
  font-size: 14px;
}

.rb-result-cta-phone {
  font-size: 15px !important;
  font-weight: 500;
  color: var(--rb-text) !important;
  margin-bottom: 24px !important;
}

.rb-result-cta-phone a {
  color: var(--rb-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.rb-result-cta-phone a:hover {
  color: var(--rb-primary-light);
}

.rb-result-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ================================================================== */
/*  CTA BANNER [rb_quiz_cta]                                           */
/* ================================================================== */
.rb-quiz-cta {
  background: var(--rb-bg-warm);
  border: 1px solid var(--rb-border-light);
  border-radius: var(--rb-radius);
  padding: 24px;
  margin: 32px 0;
}

.rb-quiz-cta-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.rb-quiz-cta-icon {
  flex-shrink: 0;
  color: var(--rb-primary);
  opacity: 0.6;
}

.rb-quiz-cta-content {
  flex: 1;
}

.rb-quiz-cta-title {
  font-family: var(--rb-font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--rb-primary);
  margin: 0 0 4px;
}

.rb-quiz-cta-text {
  font-size: 13px;
  color: var(--rb-text-muted);
  margin: 0;
}

.rb-quiz-cta-action {
  flex-shrink: 0;
}

.rb-quiz-cta-features {
  display: flex;
  gap: 20px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--rb-border-light);
  flex-wrap: wrap;
}

.rb-quiz-cta-feature {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--rb-text-muted);
}

.rb-quiz-cta-feature svg {
  color: var(--rb-success);
}

/* ---- CTA Style: Highlight ---- */
.rb-cta-style-highlight {
  background: var(--rb-primary);
  border-color: var(--rb-primary);
}

.rb-cta-style-highlight .rb-quiz-cta-title,
.rb-cta-style-highlight .rb-quiz-cta-text,
.rb-cta-style-highlight .rb-quiz-cta-feature,
.rb-cta-style-highlight .rb-quiz-cta-icon {
  color: #ffffff;
  opacity: 1;
}

.rb-cta-style-highlight .rb-quiz-cta-features {
  border-top-color: rgba(255, 255, 255, 0.15);
}

.rb-cta-style-highlight .rb-btn-primary {
  background: var(--rb-accent);
  color: var(--rb-primary);
}

.rb-cta-style-highlight .rb-btn-primary:hover {
  background: var(--rb-accent-dark);
  color: #ffffff;
}

/* ---- CTA Style: Minimal ---- */
.rb-cta-style-minimal {
  background: transparent;
  border: none;
  padding: 16px 0;
}

.rb-cta-style-minimal .rb-quiz-cta-features {
  border-top: none;
  padding-top: 8px;
}

/* ================================================================== */
/*  RESPONSIVE                                                         */
/* ================================================================== */
@media (min-width: 600px) {
  .rb-quiz-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .rb-quiz-intro-title {
    font-size: 36px;
  }

  .rb-quiz-question-title {
    font-size: 28px;
  }

  .rb-result-h1 {
    font-size: 38px;
  }
}

@media (max-width: 599px) {
  .rb-quiz-intro {
    padding: 28px 16px;
  }

  .rb-quiz-step {
    padding: 20px 16px;
  }

  .rb-quiz-intro-title {
    font-size: 24px;
  }

  .rb-quiz-question-title {
    font-size: 20px;
  }

  .rb-quiz-option {
    padding: 12px 14px;
    gap: 10px;
  }

  .rb-quiz-option-icon {
    width: 30px;
    height: 30px;
  }

  .rb-quiz-option-icon svg {
    width: 22px;
    height: 22px;
  }

  .rb-quiz-nav {
    flex-direction: column-reverse;
    gap: 8px;
  }

  .rb-quiz-next-btn {
    width: 100%;
    margin-left: 0;
  }

  .rb-quiz-back-btn {
    width: 100%;
  }

  .rb-result-h1 {
    font-size: 24px;
  }

  .rb-result-intro {
    font-size: 14px;
  }

  .rb-product-card-body {
    padding: 20px 16px;
  }

  .rb-product-card-details {
    grid-template-columns: 1fr 1fr;
  }

  .rb-result-guarantees-grid {
    grid-template-columns: 1fr 1fr;
  }

  .rb-quiz-cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .rb-quiz-cta-features {
    justify-content: center;
  }

  .rb-result-cta-buttons {
    flex-direction: column;
  }

  .rb-result-cta-buttons .rb-btn {
    width: 100%;
  }
}

/* ================================================================== */
/*  KADENCE THEME COMPATIBILITY                                        */
/* ================================================================== */
.entry-content .rb-product-finder-quiz,
.entry-content .rb-result-page,
.entry-content .rb-quiz-cta {
  max-width: none;
}

/* Inherit Kadence fonts when available */
body[class*="kadence"] .rb-product-finder-quiz,
body[class*="kadence"] .rb-result-page {
  --rb-font-body: inherit;
}

body[class*="kadence"] .rb-quiz-intro-title,
body[class*="kadence"] .rb-quiz-question-title,
body[class*="kadence"] .rb-result-h1,
body[class*="kadence"] .rb-product-card-title,
body[class*="kadence"] .rb-result-section h2,
body[class*="kadence"] .rb-result-guarantee h3,
body[class*="kadence"] .rb-quiz-cta-title,
body[class*="kadence"] .rb-quiz-loading h2 {
  font-family: var(--global-heading-font-family, var(--rb-font-heading));
}

/* Use Kadence palette variables when available */
body[class*="kadence"] .rb-product-finder-quiz,
body[class*="kadence"] .rb-result-page,
body[class*="kadence"] .rb-quiz-cta {
  --rb-primary: var(--global-palette1, #35281e);
  --rb-text: var(--global-palette4, #262322);
  --rb-text-light: var(--global-palette5, #4A5568);
  --rb-text-muted: var(--global-palette6, #718096);
  --rb-accent: var(--global-palette7, #e4ccb4);
}

.single-rb_anbefaling .entry-content {
  max-width: 100%;
}

.single-rb_anbefaling .entry-header {
  display: none;
}

/* ================================================================== */
/*  PRINT                                                              */
/* ================================================================== */
@media print {
  .rb-quiz-nav,
  .rb-quiz-progress,
  .rb-result-cta-bottom,
  .rb-quiz-cta {
    display: none;
  }

  .rb-product-card {
    border: 1px solid #ccc;
    box-shadow: none;
  }
}

/* ================================================================== */
/*  ACCESSIBILITY                                                      */
/* ================================================================== */
.rb-quiz-option:focus-visible,
.rb-btn:focus-visible {
  outline: 2px solid var(--rb-primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .rb-quiz-step,
  .rb-quiz-option,
  .rb-btn,
  .rb-quiz-progress-fill {
    transition: none;
  }

  .rb-quiz-loading-spinner {
    animation: none;
    border-top-color: var(--rb-primary);
  }
}

/* ================================================================== */
/*  FORCE LIGHT MODE — override device dark mode                       */
/* ================================================================== */
@media (prefers-color-scheme: dark) {
  .rb-product-finder-quiz,
  .rb-result-page,
  .rb-quiz-cta {
    color-scheme: light;
    --rb-primary: #35281e;
    --rb-primary-light: #4a3a2c;
    --rb-primary-hover: #2a1f17;
    --rb-accent: #e4ccb4;
    --rb-accent-dark: #c9a97a;
    --rb-accent-light: #f5ece2;
    --rb-bg: #f8f6f3;
    --rb-bg-warm: #faf8f5;
    --rb-bg-card: #ffffff;
    --rb-text: #262322;
    --rb-text-light: #4A5568;
    --rb-text-muted: #718096;
    --rb-border: #e4ccb4;
    --rb-border-light: #f0ebe4;
    --rb-success: #3c8054;
    --rb-success-light: #eef6f1;
    --rb-shadow-sm: 0 1px 3px rgba(53, 40, 30, 0.06);
    --rb-shadow: 0 2px 8px rgba(53, 40, 30, 0.08);
    --rb-shadow-hover: 0 4px 16px rgba(53, 40, 30, 0.12);
  }

  .rb-product-finder-quiz *,
  .rb-result-page *,
  .rb-quiz-cta * {
    color-scheme: light;
  }

  .rb-btn-primary {
    background: #35281e !important;
    color: #ffffff !important;
  }

  .rb-product-card-badge {
    background: #35281e !important;
    color: #ffffff !important;
  }

  .rb-result-guarantee {
    background: #faf8f5 !important;
    border-color: #f0ebe4 !important;
  }

  .rb-result-guarantee h3 {
    color: #35281e !important;
  }

  .rb-result-guarantee p {
    color: #718096 !important;
  }

  .rb-result-guarantee-icon {
    color: #35281e !important;
  }

  .rb-product-card {
    background: #ffffff !important;
    border-color: #e4ccb4 !important;
  }

  .rb-product-card-body {
    background: #ffffff !important;
  }

  .rb-product-card-title,
  .rb-product-card-detail-value,
  .rb-product-card-weight {
    color: #35281e !important;
  }

  .rb-product-card-detail-label {
    color: #718096 !important;
  }

  .rb-product-card-info {
    background: #faf8f5 !important;
    border-color: #f0ebe4 !important;
  }

  .rb-product-card-info p,
  .rb-product-card-info strong {
    color: #4A5568 !important;
  }

  .rb-result-cta-box {
    background: #faf8f5 !important;
    border-color: #f0ebe4 !important;
  }

  .rb-result-cta-box h2 {
    color: #35281e !important;
  }

  .rb-result-cta-box p {
    color: #4A5568 !important;
  }

  .rb-quiz-option {
    background: #ffffff !important;
    border-color: #f0ebe4 !important;
    color: #262322 !important;
  }

  .rb-quiz-option--selected {
    background: #f5ece2 !important;
    border-color: #35281e !important;
  }

  .rb-result-usp {
    background: #eef6f1 !important;
    color: #262322 !important;
  }

  .rb-result-tips-list li {
    background: #faf8f5 !important;
    border-color: #f0ebe4 !important;
    color: #262322 !important;
  }
}
