/**
 * Unrushed Mind Interactive Quiz — Frontend Styles
 * Sanctuary Aesthetic (Kiếm Phong Kim - Imperial Gold & Obsidian Charcoal)
 *
 * @package Unrushed_Interactive_Quiz
 */

/* ====================================================================
 * CSS VARIABLES (UNRUSHED MIND SANCTUARY TOKENS)
 * ==================================================================== */
:root {
  /* Brand Core Colors */
  --sgm-gold: #C5A059;
  --sgm-gold-hover: #A67D2E;
  --sgm-gold-light: #E5C98B;
  --sgm-gold-tint: #F3EBD8;
  --sgm-gold-wash: #FBF9F5;
  --sgm-navy: #161817;
  --sgm-navy-alt: #1D201F;
  --sgm-ink: #161817;
  --sgm-ink-2: #242826;
  --sgm-text-2: #6B706C;
  --sgm-text-3: #9A9E9B;

  /* Neutrals & Surfaces */
  --sgm-cream: #FBF9F5;
  --sgm-warm: #F4EFE6;
  --sgm-white: #FFFFFF;
  --sgm-pure-white: #FFFFFF;
  --sgm-border: #DCD7CE;
  --sgm-border-soft: #E8E4DC;
  --sgm-border-softer: #F1ECE3;

  /* Severity / Tier Colors */
  --sgm-success: #16A34A;
  --sgm-success-bg: #DCFCE7;
  --sgm-success-border: #BBF7D0;
  --sgm-moderate: #C5A059;
  --sgm-moderate-bg: #FEF3C7;
  --sgm-moderate-border: #FDE68A;
  --sgm-severe: #DC2626;
  --sgm-severe-bg: #FEE2E2;
  --sgm-severe-border: #FECACA;
  --sgm-critical: #9F1239;
  --sgm-critical-bg: #FFE4E6;
  --sgm-critical-border: #FECDD3;

  /* Typography */
  --sgm-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --sgm-font-serif: 'Lora', 'Playfair Display', Georgia, serif;

  /* Shadows & Radii */
  --sgm-radius-sm: 6px;
  --sgm-radius: 12px;
  --sgm-radius-lg: 16px;
  --sgm-shadow-sm: 0 1px 3px rgba(22, 24, 23, 0.05);
  --sgm-shadow: 0 4px 12px rgba(22, 24, 23, 0.07);
  --sgm-shadow-lg: 0 12px 30px rgba(22, 24, 23, 0.12);
  --sgm-transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ====================================================================
 * QUIZ CONTAINER
 * ==================================================================== */
.sgm-quiz-container {
  max-width: 720px;
  margin: 32px auto;
  background: var(--sgm-white);
  border: 1px solid var(--sgm-border);
  border-top: 4px solid var(--sgm-gold); /* Signature Yellow Accent Line */
  border-radius: var(--sgm-radius-lg);
  box-shadow: var(--sgm-shadow-lg);
  overflow: hidden;
  font-family: var(--sgm-font-sans);
  color: var(--sgm-ink);
  position: relative;
  line-height: 1.65;
  box-sizing: border-box;
}

.sgm-quiz-container *,
.sgm-quiz-container *::before,
.sgm-quiz-container *::after {
  box-sizing: border-box;
}

/* ====================================================================
 * START / HERO SCREEN
 * ==================================================================== */
.sgm-quiz-start {
  padding: 36px 24px 28px;
  text-align: center;
  background: var(--sgm-white);
}

.sgm-quiz-header__image {
  margin-bottom: 18px;
}

.sgm-quiz-header__img {
  max-width: 100%;
  height: auto;
  border-radius: var(--sgm-radius);
}

.sgm-quiz-header__title {
  margin: 0 0 12px;
  font-size: clamp(20px, 4vw, 25px);
  font-weight: 700;
  color: var(--sgm-navy);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.sgm-quiz-header__description {
  margin: 0 auto 20px;
  color: var(--sgm-text-2);
  font-size: 15px;
  line-height: 1.65;
  max-width: 600px;
}

.sgm-quiz-header__description p {
  margin: 0 0 10px;
}
.sgm-quiz-header__description p:last-child {
  margin-bottom: 0;
}

.sgm-quiz-start__action {
  margin: 24px 0 16px;
}

.sgm-quiz-start__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 36px;
  background: var(--sgm-gold);
  color: #ffffff !important;
  border: none;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--sgm-transition);
  box-shadow: 0 4px 14px rgba(201, 153, 58, 0.35);
  text-decoration: none;
}

.sgm-quiz-start__btn:hover {
  background: var(--sgm-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 153, 58, 0.45);
}

.sgm-quiz-start__btn:active {
  transform: translateY(0);
}

.sgm-quiz-start__source {
  display: inline-block;
  background: var(--sgm-gold-wash);
  color: var(--sgm-gold-hover);
  border: 1px solid var(--sgm-gold-tint);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  margin-top: 14px;
  line-height: 1.5;
}

/* ====================================================================
 * STICKY SAFETY DISCLAIMER (HIỂN THỊ XUYÊN SUỐT TOÀN BÀI QUIZ)
 * ==================================================================== */
.sgm-quiz-disclaimer {
  background: #fef2f2;
  border-top: 1px solid #fecaca;
  padding: 12px 20px;
  font-size: 13px;
  color: #991b1b;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
  text-align: left;
}

.sgm-quiz-disclaimer__icon {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1;
}

.sgm-quiz-disclaimer__content {
  flex: 1;
}

.sgm-quiz-disclaimer__text {
  margin: 0;
}

.sgm-quiz-disclaimer__text p {
  margin: 0 0 6px;
}

.sgm-quiz-disclaimer__text p:last-child {
  margin-bottom: 0;
}

/* ====================================================================
 * PROGRESS BAR (STICKY & GOLD ACCENT)
 * ==================================================================== */
.sgm-quiz-progress {
  padding: 12px 24px;
  background: var(--sgm-cream);
  border-bottom: 1px solid var(--sgm-border-soft);
  display: flex;
  align-items: center;
  gap: 14px;
}

.sgm-quiz-progress__text {
  font-size: 13px;
  font-weight: 700;
  color: var(--sgm-text-2);
  white-space: nowrap;
  min-width: 70px;
}

.sgm-quiz-progress__track {
  flex: 1;
  height: 6px;
  background: var(--sgm-border);
  border-radius: 999px;
  overflow: hidden;
}

.sgm-quiz-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--sgm-gold), var(--sgm-gold-light));
  border-radius: 999px;
  width: 0%;
  transition: width 0.4s ease-out;
}

/* ====================================================================
 * QUIZ BODY & STEP TRANSITIONS
 * ==================================================================== */
.sgm-quiz-body {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  background: var(--sgm-white);
}

.sgm-quiz-step {
  padding: 28px 24px;
  width: 100%;
  display: none;
}

.sgm-quiz-step.is-active {
  display: block;
  animation: sgm-quiz-fadeIn 0.3s ease forwards;
}

.sgm-quiz-step.is-exiting {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  animation: sgm-quiz-fadeOut 0.25s ease forwards;
}

/* ====================================================================
 * QUESTION TITLE & HINTS
 * ==================================================================== */
.sgm-quiz-question {
  font-size: clamp(17px, 3.5vw, 20px);
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--sgm-navy);
  line-height: 1.45;
}

.sgm-quiz-question__hint {
  font-size: 13px;
  color: var(--sgm-gold-hover);
  background: var(--sgm-gold-wash);
  padding: 6px 12px;
  border-radius: var(--sgm-radius-sm);
  margin-bottom: 16px;
  border-left: 3px solid var(--sgm-gold);
}

.sgm-quiz-question__tip {
  font-size: 12.5px;
  color: var(--sgm-text-3);
  margin-top: 10px;
  margin-bottom: 16px;
  text-align: right;
  font-style: italic;
}

/* ====================================================================
 * ANSWERS LIST (CARDS)
 * ==================================================================== */
.sgm-quiz-answers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}

.sgm-quiz-answer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  min-height: 52px; /* Touch target >= 48px */
  border: 1.5px solid var(--sgm-border);
  border-radius: var(--sgm-radius);
  background: var(--sgm-pure-white);
  cursor: pointer;
  transition: var(--sgm-transition);
  font-family: inherit;
  font-size: 15px;
  text-align: left;
  width: 100%;
  color: var(--sgm-ink);
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.sgm-quiz-answer:hover {
  border-color: var(--sgm-gold);
  background: var(--sgm-gold-wash);
  box-shadow: var(--sgm-shadow-sm);
}

.sgm-quiz-answer:focus-visible {
  outline: 2px solid var(--sgm-gold);
  outline-offset: 2px;
}

/* Selected state (Brand Gold border & subtle wash) */
.sgm-quiz-answer.is-selected {
  border-color: var(--sgm-gold);
  background: var(--sgm-gold-wash);
  box-shadow: 0 0 0 1px var(--sgm-gold), 0 2px 8px rgba(201, 153, 58, 0.15);
}

.sgm-quiz-answer.is-double-clicked {
  transform: scale(0.985);
  background: var(--sgm-gold-tint);
  transition: transform 0.15s ease;
}

/* Indicator Circle (A, B, C, D) */
.sgm-quiz-answers--single .sgm-quiz-answer__indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sgm-warm);
  color: var(--sgm-navy);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  transition: var(--sgm-transition);
  border: 1px solid var(--sgm-border);
}

.sgm-quiz-answers--single .sgm-quiz-answer.is-selected .sgm-quiz-answer__indicator {
  background: var(--sgm-gold);
  border-color: var(--sgm-gold);
  color: #ffffff;
}

/* Checkbox Indicator for Multiple Choice */
.sgm-quiz-answers--multiple .sgm-quiz-answer__indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid var(--sgm-border);
  background: var(--sgm-pure-white);
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
  transition: var(--sgm-transition);
}

.sgm-quiz-answers--multiple .sgm-quiz-answer.is-selected .sgm-quiz-answer__indicator {
  background: var(--sgm-gold);
  border-color: var(--sgm-gold);
  color: #ffffff;
}

.sgm-quiz-answer__text {
  flex: 1;
  font-weight: 500;
  color: var(--sgm-ink);
  line-height: 1.45;
}

/* ====================================================================
 * NAVIGATION (BACK & NEXT BUTTONS)
 * ==================================================================== */
.sgm-quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--sgm-border-soft);
  margin-top: 8px;
}

.sgm-quiz-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  min-height: 44px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--sgm-border);
  transition: var(--sgm-transition);
  background: transparent;
  color: var(--sgm-text-2);
  font-family: inherit;
}

.sgm-quiz-back-btn:hover {
  background: var(--sgm-warm);
  color: var(--sgm-navy);
  border-color: var(--sgm-gold);
}

.sgm-quiz-continue-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 30px;
  min-height: 46px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--sgm-transition);
  background: var(--sgm-gold);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(201, 153, 58, 0.3);
  font-family: inherit;
}

.sgm-quiz-continue-btn:hover:not([disabled]) {
  background: var(--sgm-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(201, 153, 58, 0.4);
}

.sgm-quiz-continue-btn[disabled] {
  background: var(--sgm-border);
  color: var(--sgm-text-3) !important;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.7;
}

/* ====================================================================
 * LEAD CAPTURE STEP
 * ==================================================================== */
.sgm-quiz-lead {
  padding: 32px 24px;
  background: var(--sgm-white);
  animation: sgm-quiz-fadeIn 0.35s ease;
}

.sgm-quiz-lead__cf7-wrapper {
  max-width: 520px;
  margin: 0 auto;
}

.sgm-quiz-lead__cf7-wrapper input[type="text"],
.sgm-quiz-lead__cf7-wrapper input[type="email"],
.sgm-quiz-lead__cf7-wrapper input[type="tel"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--sgm-border);
  border-radius: var(--sgm-radius-sm);
  font-size: 15px;
  margin-bottom: 12px;
  font-family: inherit;
  transition: var(--sgm-transition);
  background: var(--sgm-pure-white);
}

.sgm-quiz-lead__cf7-wrapper input:focus {
  outline: none;
  border-color: var(--sgm-gold);
  box-shadow: 0 0 0 3px rgba(201, 153, 58, 0.15);
}

.sgm-quiz-lead__cf7-wrapper input[type="submit"],
.sgm-quiz-lead__cf7-wrapper button[type="submit"],
.sgm-quiz-lead__cf7-wrapper .wpcf7-submit {
  width: 100%;
  padding: 14px 24px;
  background: var(--sgm-gold);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--sgm-transition);
  box-shadow: 0 4px 14px rgba(201, 153, 58, 0.35);
  font-family: inherit;
  margin-top: 8px;
}

.sgm-quiz-lead__cf7-wrapper .wpcf7-submit:hover {
  background: var(--sgm-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 153, 58, 0.45);
}

.sgm-quiz-lead-skip-btn {
  background: none;
  border: none;
  color: var(--sgm-text-3);
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  padding: 8px;
  transition: var(--sgm-transition);
  font-family: inherit;
}

.sgm-quiz-lead-skip-btn:hover {
  color: var(--sgm-gold-hover);
}

/* ====================================================================
 * RESULT SCREEN (MEDICAL HEALTH REPORT)
 * ==================================================================== */
.sgm-quiz-result {
  padding: 32px 24px;
  text-align: center;
  background: var(--sgm-white);
  animation: sgm-quiz-fadeIn 0.4s ease;
}

.sgm-quiz-result.is-visible {
  display: block;
}

.sgm-quiz-result__badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sgm-quiz-result__badge--critical { background: var(--sgm-critical-bg); color: var(--sgm-critical); border: 1px solid var(--sgm-critical-border); }
.sgm-quiz-result__badge--severe   { background: var(--sgm-severe-bg); color: var(--sgm-severe); border: 1px solid var(--sgm-severe-border); }
.sgm-quiz-result__badge--moderate { background: var(--sgm-moderate-bg); color: var(--sgm-gold-hover); border: 1px solid var(--sgm-moderate-border); }
.sgm-quiz-result__badge--mild     { background: var(--sgm-success-bg); color: var(--sgm-success); border: 1px solid var(--sgm-success-border); }
.sgm-quiz-result__badge--info     { background: var(--sgm-gold-wash); color: var(--sgm-gold-hover); border: 1px solid var(--sgm-gold-tint); }

.sgm-quiz-result__score {
  font-size: clamp(38px, 6vw, 48px);
  font-weight: 800;
  color: var(--sgm-navy);
  margin: 0 0 6px;
  line-height: 1.15;
}

.sgm-quiz-result__score span {
  font-size: 16px;
  font-weight: 600;
  color: var(--sgm-text-3);
}

.sgm-quiz-result__title {
  font-size: clamp(19px, 4vw, 23px);
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--sgm-navy);
  line-height: 1.35;
}

.sgm-quiz-result__description {
  font-size: 15px;
  color: var(--sgm-ink);
  margin: 0 auto 20px;
  line-height: 1.7;
  max-width: 620px;
  background: var(--sgm-pure-white);
  border: 1px solid var(--sgm-border);
  border-radius: var(--sgm-radius);
  padding: 18px 22px;
  text-align: left;
}

.sgm-quiz-result__description p,
.sgm-quiz-result__recommendation-body p {
  margin: 0 0 10px;
}

.sgm-quiz-result__description p:last-child,
.sgm-quiz-result__recommendation-body p:last-child {
  margin-bottom: 0;
}

.sgm-quiz-result__recommendation {
  font-size: 14.5px;
  color: var(--sgm-ink);
  margin: 0 auto 24px;
  line-height: 1.65;
  max-width: 620px;
  background: var(--sgm-gold-wash);
  border: 1px solid var(--sgm-gold-tint);
  border-radius: var(--sgm-radius);
  padding: 18px 22px;
  text-align: left;
}

.sgm-quiz-result__recommendation-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--sgm-gold-hover);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sgm-quiz-result__recommendation-body {
  font-size: 14.5px;
  color: var(--sgm-ink);
  line-height: 1.65;
}

/* Định dạng nội dung bài viết WYSIWYG (Lists, Links, Formatting) */
.sgm-quiz-result__description ul,
.sgm-quiz-result__recommendation-body ul {
  margin: 10px 0 14px 22px;
  padding: 0;
  list-style-type: disc;
}

.sgm-quiz-result__description ol,
.sgm-quiz-result__recommendation-body ol {
  margin: 10px 0 14px 22px;
  padding: 0;
  list-style-type: decimal;
}

.sgm-quiz-result__description li,
.sgm-quiz-result__recommendation-body li {
  margin-bottom: 6px;
  line-height: 1.6;
}

.sgm-quiz-result__description li:last-child,
.sgm-quiz-result__recommendation-body li:last-child {
  margin-bottom: 0;
}

.sgm-quiz-result__description a,
.sgm-quiz-result__recommendation-body a {
  color: #0958d9;
  text-decoration: underline;
  font-weight: 600;
  transition: var(--sgm-transition);
}

.sgm-quiz-result__description a:hover,
.sgm-quiz-result__recommendation-body a:hover {
  color: #003eb3;
  text-decoration: none;
}

.sgm-quiz-result__description strong,
.sgm-quiz-result__recommendation-body strong {
  color: var(--sgm-navy);
  font-weight: 700;
}

.sgm-quiz-result__description blockquote,
.sgm-quiz-result__recommendation-body blockquote {
  margin: 12px 0;
  padding: 10px 16px;
  border-left: 3px solid var(--sgm-gold);
  background: rgba(201, 153, 58, 0.06);
  font-style: italic;
  border-radius: 0 var(--sgm-radius-sm) var(--sgm-radius-sm) 0;
}

/* Retry Button */
.sgm-quiz-result__retry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  color: var(--sgm-text-2);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  border: 1px solid var(--sgm-border);
  border-radius: 999px;
  background: transparent;
  transition: var(--sgm-transition);
  font-family: inherit;
  margin-top: 14px;
}

.sgm-quiz-result__retry:hover {
  color: var(--sgm-navy);
  border-color: var(--sgm-gold);
  background: var(--sgm-gold-wash);
}

/* ====================================================================
 * LOADING SPINNER
 * ==================================================================== */
.sgm-quiz-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  gap: 16px;
}

.sgm-quiz-loading__spinner {
  width: 38px;
  height: 38px;
  border: 3px solid var(--sgm-border-soft);
  border-top-color: var(--sgm-gold);
  border-radius: 50%;
  animation: sgm-quiz-spin 0.8s linear infinite;
}

.sgm-quiz-loading p {
  margin: 0;
  color: var(--sgm-text-2);
  font-size: 14px;
  font-weight: 500;
}

/* ====================================================================
 * ANIMATIONS
 * ==================================================================== */
@keyframes sgm-quiz-fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes sgm-quiz-fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-6px); }
}

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

/* ====================================================================
 * RESPONSIVE (MOBILE OPTIMIZATION)
 * ==================================================================== */
@media (max-width: 600px) {
  .sgm-quiz-container {
    margin: 16px 8px;
    border-radius: 12px;
  }
  .sgm-quiz-header {
    padding: 20px 16px 16px;
  }
  .sgm-quiz-step {
    padding: 20px 16px;
  }
  .sgm-quiz-answer {
    padding: 12px 14px;
    min-height: 48px;
  }
  .sgm-quiz-nav {
    padding-top: 14px;
  }
  .sgm-quiz-result {
    padding: 24px 16px;
  }
  .sgm-quiz-cta-box a {
    width: 100%;
    margin-bottom: 8px;
  }
}

/* ====================================================================
 * UNRUSHED MIND SANCTUARY DARK & LIGHT THEME OVERRIDES (HIGH CONTRAST)
 * ==================================================================== */

/* --- 1. DARK THEME (Default Obsidian Sanctuary: #161817 / #1D201F) --- */
html:not(.light-theme) body:not(.light-theme) .sgm-quiz-container {
  background: #1D201F !important;
  border: 1.5px solid rgba(197, 160, 89, 0.35) !important;
  color: #E5E3DC !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5) !important;
}

html:not(.light-theme) body:not(.light-theme) .sgm-quiz-start,
html:not(.light-theme) body:not(.light-theme) .sgm-quiz-body,
html:not(.light-theme) body:not(.light-theme) .sgm-quiz-lead,
html:not(.light-theme) body:not(.light-theme) .sgm-quiz-result,
html:not(.light-theme) body:not(.light-theme) .sgm-quiz-loading {
  background: #1D201F !important;
  color: #E5E3DC !important;
}

html:not(.light-theme) body:not(.light-theme) .sgm-quiz-header__title {
  color: #FBF9F5 !important;
}

html:not(.light-theme) body:not(.light-theme) .sgm-quiz-header__description,
html:not(.light-theme) body:not(.light-theme) .sgm-quiz-header__description p {
  color: #D8D6CE !important;
}

html:not(.light-theme) body:not(.light-theme) .sgm-quiz-start__btn {
  background: linear-gradient(135deg, #C5A059 0%, #A67D2E 100%) !important;
  color: #161817 !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 20px rgba(197, 160, 89, 0.35) !important;
}

html:not(.light-theme) body:not(.light-theme) .sgm-quiz-start__btn:hover {
  background: linear-gradient(135deg, #D4AF37 0%, #B88E3E 100%) !important;
  color: #111312 !important;
}

html:not(.light-theme) body:not(.light-theme) .sgm-quiz-start__source,
html:not(.light-theme) body:not(.light-theme) .sgm-quiz-result__source {
  background: rgba(197, 160, 89, 0.08) !important;
  border: 1px solid rgba(197, 160, 89, 0.28) !important;
  color: #D8D6CE !important;
  padding: 12px 16px !important;
  border-radius: 8px !important;
}

html:not(.light-theme) body:not(.light-theme) .sgm-quiz-start__source strong,
html:not(.light-theme) body:not(.light-theme) .sgm-quiz-result__source strong {
  color: #E5C158 !important;
}

html:not(.light-theme) body:not(.light-theme) .sgm-quiz-progress {
  background: #161817 !important;
  border-bottom: 1px solid #2B302E !important;
}

html:not(.light-theme) body:not(.light-theme) .sgm-quiz-progress__text {
  color: #D8D6CE !important;
}

html:not(.light-theme) body:not(.light-theme) .sgm-quiz-progress__current {
  color: #E5C158 !important;
  font-weight: 700 !important;
}

html:not(.light-theme) body:not(.light-theme) .sgm-quiz-progress__track {
  background: #2B302E !important;
}

html:not(.light-theme) body:not(.light-theme) .sgm-quiz-question,
html:not(.light-theme) body:not(.light-theme) .sgm-quiz-question__text {
  color: #FBF9F5 !important;
  font-weight: 600 !important;
}

html:not(.light-theme) body:not(.light-theme) .sgm-quiz-question__hint {
  background: rgba(197, 160, 89, 0.12) !important;
  border-left: 3px solid #C5A059 !important;
  color: #E5C158 !important;
}

html:not(.light-theme) body:not(.light-theme) .sgm-quiz-question__tip {
  color: #B8C0BC !important;
}

html:not(.light-theme) body:not(.light-theme) .sgm-quiz-answer,
html:not(.light-theme) body:not(.light-theme) .sgm-quiz-option {
  background: #242826 !important;
  border: 2px solid #363C39 !important;
  color: #F3F1EC !important;
}

html:not(.light-theme) body:not(.light-theme) .sgm-quiz-answer__text {
  color: #F3F1EC !important;
}

html:not(.light-theme) body:not(.light-theme) .sgm-quiz-answer__indicator {
  background: #161817 !important;
  border: 2px solid #5A625E !important;
  color: #E5C158 !important;
}

html:not(.light-theme) body:not(.light-theme) .sgm-quiz-answer:hover,
html:not(.light-theme) body:not(.light-theme) .sgm-quiz-option:hover {
  background: #2C312F !important;
  border-color: #C5A059 !important;
  color: #FFFFFF !important;
}

html:not(.light-theme) body:not(.light-theme) .sgm-quiz-answer:hover .sgm-quiz-answer__text {
  color: #FFFFFF !important;
}

html:not(.light-theme) body:not(.light-theme) .sgm-quiz-answer:hover .sgm-quiz-answer__indicator {
  border-color: #C5A059 !important;
  background: rgba(197, 160, 89, 0.2) !important;
  color: #FBF9F5 !important;
}

html:not(.light-theme) body:not(.light-theme) .sgm-quiz-answer.is-selected,
html:not(.light-theme) body:not(.light-theme) .sgm-quiz-option.is-selected {
  background: rgba(197, 160, 89, 0.16) !important;
  border-color: #C5A059 !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2) !important;
}

html:not(.light-theme) body:not(.light-theme) .sgm-quiz-answer.is-selected .sgm-quiz-answer__text {
  color: #FFFFFF !important;
}

html:not(.light-theme) body:not(.light-theme) .sgm-quiz-answer.is-selected .sgm-quiz-answer__indicator {
  background: #C5A059 !important;
  border-color: #C5A059 !important;
  color: #161817 !important;
}

html:not(.light-theme) body:not(.light-theme) .sgm-quiz-nav {
  border-top-color: #2B302E !important;
}

html:not(.light-theme) body:not(.light-theme) .sgm-quiz-back-btn {
  background: #242826 !important;
  border: 1.5px solid #4A524E !important;
  color: #E5E3DC !important;
}

html:not(.light-theme) body:not(.light-theme) .sgm-quiz-back-btn:hover {
  background: #2E3431 !important;
  border-color: #C5A059 !important;
  color: #FFFFFF !important;
}

html:not(.light-theme) body:not(.light-theme) .sgm-quiz-continue-btn:not([disabled]) {
  background: linear-gradient(135deg, #C5A059 0%, #A67D2E 100%) !important;
  color: #161817 !important;
  font-weight: 700 !important;
}

html:not(.light-theme) body:not(.light-theme) .sgm-quiz-continue-btn[disabled] {
  background: #282C2A !important;
  border: 1px solid #3A403D !important;
  color: #9BA59F !important;
  opacity: 1 !important;
}

html:not(.light-theme) body:not(.light-theme) .sgm-quiz-result__score,
html:not(.light-theme) body:not(.light-theme) .sgm-quiz-result__title {
  color: #FBF9F5 !important;
}

html:not(.light-theme) body:not(.light-theme) .sgm-quiz-result__score span {
  color: #C5A059 !important;
}

html:not(.light-theme) body:not(.light-theme) .sgm-quiz-result__badge--mild {
  background: rgba(21, 128, 61, 0.2) !important;
  border-color: rgba(74, 222, 128, 0.45) !important;
  color: #86EFAC !important;
}

html:not(.light-theme) body:not(.light-theme) .sgm-quiz-result__badge--moderate,
html:not(.light-theme) body:not(.light-theme) .sgm-quiz-result__badge--info {
  background: rgba(197, 160, 89, 0.18) !important;
  border-color: rgba(197, 160, 89, 0.5) !important;
  color: #E5C158 !important;
}

html:not(.light-theme) body:not(.light-theme) .sgm-quiz-result__badge--severe,
html:not(.light-theme) body:not(.light-theme) .sgm-quiz-result__badge--critical {
  background: rgba(220, 38, 38, 0.2) !important;
  border-color: rgba(248, 113, 113, 0.5) !important;
  color: #FCA5A5 !important;
}

html:not(.light-theme) body:not(.light-theme) .sgm-quiz-result__description {
  background: #242826 !important;
  border: 1px solid #363C39 !important;
  color: #E5E3DC !important;
}

html:not(.light-theme) body:not(.light-theme) .sgm-quiz-result__description p,
html:not(.light-theme) body:not(.light-theme) .sgm-quiz-result__description li {
  color: #E5E3DC !important;
}

html:not(.light-theme) body:not(.light-theme) .sgm-quiz-result__description strong {
  color: #E5C158 !important;
}

html:not(.light-theme) body:not(.light-theme) .sgm-quiz-result__recommendation {
  background: rgba(197, 160, 89, 0.1) !important;
  border: 1px solid rgba(197, 160, 89, 0.35) !important;
  color: #E5E3DC !important;
}

html:not(.light-theme) body:not(.light-theme) .sgm-quiz-result__recommendation-title {
  color: #E5C158 !important;
}

html:not(.light-theme) body:not(.light-theme) .sgm-quiz-result__recommendation-body,
html:not(.light-theme) body:not(.light-theme) .sgm-quiz-result__recommendation-body p,
html:not(.light-theme) body:not(.light-theme) .sgm-quiz-result__recommendation-body li {
  color: #E5E3DC !important;
}

html:not(.light-theme) body:not(.light-theme) .sgm-quiz-result__recommendation-body strong {
  color: #FBF9F5 !important;
}

html:not(.light-theme) body:not(.light-theme) .sgm-quiz-result__retry {
  background: #242826 !important;
  border: 1.5px solid #4A524E !important;
  color: #E5E3DC !important;
}

html:not(.light-theme) body:not(.light-theme) .sgm-quiz-result__retry:hover {
  background: rgba(197, 160, 89, 0.15) !important;
  border-color: #C5A059 !important;
  color: #E5C158 !important;
}

html:not(.light-theme) body:not(.light-theme) .sgm-quiz-loading p {
  color: #D8D6CE !important;
}

html:not(.light-theme) body:not(.light-theme) .sgm-quiz-disclaimer {
  background: #161817 !important;
  border-top: 1px solid #2B302E !important;
  color: #B0B8B4 !important;
}

html:not(.light-theme) body:not(.light-theme) .sgm-quiz-disclaimer__text,
html:not(.light-theme) body:not(.light-theme) .sgm-quiz-disclaimer__text p {
  color: #B0B8B4 !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

/* --- 2. LIGHT THEME (Warm Alabaster Sanctuary: #FBF9F5 / #FFFFFF) --- */
html.light-theme .sgm-quiz-container,
body.light-theme .sgm-quiz-container {
  background: #FFFFFF !important;
  border: 1.5px solid #DCD7CE !important;
  color: #1A1D1C !important;
  box-shadow: 0 10px 30px rgba(22, 24, 23, 0.08) !important;
}

html.light-theme .sgm-quiz-start,
body.light-theme .sgm-quiz-start,
html.light-theme .sgm-quiz-body,
body.light-theme .sgm-quiz-body,
html.light-theme .sgm-quiz-lead,
body.light-theme .sgm-quiz-lead,
html.light-theme .sgm-quiz-result,
body.light-theme .sgm-quiz-result,
html.light-theme .sgm-quiz-loading,
body.light-theme .sgm-quiz-loading {
  background: #FFFFFF !important;
  color: #1A1D1C !important;
}

html.light-theme .sgm-quiz-header__title,
body.light-theme .sgm-quiz-header__title {
  color: #161817 !important;
}

html.light-theme .sgm-quiz-header__description,
body.light-theme .sgm-quiz-header__description,
html.light-theme .sgm-quiz-header__description p,
body.light-theme .sgm-quiz-header__description p {
  color: #383D3B !important;
}

html.light-theme .sgm-quiz-start__btn,
body.light-theme .sgm-quiz-start__btn {
  background: linear-gradient(135deg, #C5A059 0%, #A67D2E 100%) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
}

html.light-theme .sgm-quiz-start__source,
body.light-theme .sgm-quiz-start__source,
html.light-theme .sgm-quiz-result__source,
body.light-theme .sgm-quiz-result__source {
  background: #F7F4EC !important;
  border: 1px solid #E2DDD2 !important;
  color: #383D3B !important;
  padding: 12px 16px !important;
  border-radius: 8px !important;
}

html.light-theme .sgm-quiz-start__source strong,
body.light-theme .sgm-quiz-start__source strong,
html.light-theme .sgm-quiz-result__source strong,
body.light-theme .sgm-quiz-result__source strong {
  color: #7A5614 !important;
}

html.light-theme .sgm-quiz-progress,
body.light-theme .sgm-quiz-progress {
  background: #F7F4EC !important;
  border-bottom: 1px solid #E2DDD2 !important;
}

html.light-theme .sgm-quiz-progress__text,
body.light-theme .sgm-quiz-progress__text {
  color: #2D312E !important;
}

html.light-theme .sgm-quiz-progress__current,
body.light-theme .sgm-quiz-progress__current {
  color: #8C651E !important;
  font-weight: 700 !important;
}

html.light-theme .sgm-quiz-progress__track,
body.light-theme .sgm-quiz-progress__track {
  background: #E2DDD2 !important;
}

html.light-theme .sgm-quiz-question,
body.light-theme .sgm-quiz-question {
  color: #161817 !important;
  font-weight: 700 !important;
}

html.light-theme .sgm-quiz-question__tip,
body.light-theme .sgm-quiz-question__tip {
  color: #4A504D !important;
}

html.light-theme .sgm-quiz-answer,
body.light-theme .sgm-quiz-answer {
  background: #FBF9F5 !important;
  border: 2px solid #DCD7CE !important;
  color: #1A1D1C !important;
}

html.light-theme .sgm-quiz-answer__text,
body.light-theme .sgm-quiz-answer__text {
  color: #1A1D1C !important;
}

html.light-theme .sgm-quiz-answer__indicator,
body.light-theme .sgm-quiz-answer__indicator {
  background: #FFFFFF !important;
  border: 2px solid #BFB8AA !important;
  color: #2D312E !important;
}

html.light-theme .sgm-quiz-answer:hover,
body.light-theme .sgm-quiz-answer:hover {
  background: #F4EFE4 !important;
  border-color: #B88E3E !important;
  color: #161817 !important;
}

html.light-theme .sgm-quiz-answer.is-selected,
body.light-theme .sgm-quiz-answer.is-selected {
  background: #F5EFE0 !important;
  border-color: #B88E3E !important;
  color: #161817 !important;
}

html.light-theme .sgm-quiz-answer.is-selected .sgm-quiz-answer__indicator,
body.light-theme .sgm-quiz-answer.is-selected .sgm-quiz-answer__indicator {
  background: #B88E3E !important;
  border-color: #B88E3E !important;
  color: #FFFFFF !important;
}

html.light-theme .sgm-quiz-back-btn,
body.light-theme .sgm-quiz-back-btn {
  background: #F4F1EA !important;
  border: 1.5px solid #C8C2B8 !important;
  color: #2D312E !important;
}

html.light-theme .sgm-quiz-continue-btn:not([disabled]),
body.light-theme .sgm-quiz-continue-btn:not([disabled]) {
  background: linear-gradient(135deg, #C5A059 0%, #A67D2E 100%) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
}

html.light-theme .sgm-quiz-continue-btn[disabled],
body.light-theme .sgm-quiz-continue-btn[disabled] {
  background: #E6E2D8 !important;
  border: 1px solid #CFC9BC !important;
  color: #555B58 !important;
  opacity: 1 !important;
}

html.light-theme .sgm-quiz-result__score,
body.light-theme .sgm-quiz-result__score,
html.light-theme .sgm-quiz-result__title,
body.light-theme .sgm-quiz-result__title {
  color: #161817 !important;
}

html.light-theme .sgm-quiz-result__score span,
body.light-theme .sgm-quiz-result__score span {
  color: #8C651E !important;
}

html.light-theme .sgm-quiz-result__description,
body.light-theme .sgm-quiz-result__description {
  background: #FBF9F5 !important;
  border: 1px solid #DCD7CE !important;
  color: #1A1D1C !important;
}

html.light-theme .sgm-quiz-result__description p,
body.light-theme .sgm-quiz-result__description p,
html.light-theme .sgm-quiz-result__description li,
body.light-theme .sgm-quiz-result__description li {
  color: #2D312E !important;
}

html.light-theme .sgm-quiz-result__description strong,
body.light-theme .sgm-quiz-result__description strong {
  color: #7A5614 !important;
}

html.light-theme .sgm-quiz-result__recommendation,
body.light-theme .sgm-quiz-result__recommendation {
  background: #F4EFE4 !important;
  border: 1px solid rgba(184, 142, 62, 0.45) !important;
  color: #1A1D1C !important;
}

html.light-theme .sgm-quiz-result__recommendation-title,
body.light-theme .sgm-quiz-result__recommendation-title {
  color: #7A5614 !important;
}

html.light-theme .sgm-quiz-result__recommendation-body,
body.light-theme .sgm-quiz-result__recommendation-body,
html.light-theme .sgm-quiz-result__recommendation-body p,
body.light-theme .sgm-quiz-result__recommendation-body p,
html.light-theme .sgm-quiz-result__recommendation-body li,
body.light-theme .sgm-quiz-result__recommendation-body li {
  color: #2D312E !important;
}

html.light-theme .sgm-quiz-result__retry,
body.light-theme .sgm-quiz-result__retry {
  background: #F7F4EC !important;
  border: 1.5px solid #BFB8AA !important;
  color: #2D312E !important;
}

html.light-theme .sgm-quiz-result__retry:hover,
body.light-theme .sgm-quiz-result__retry:hover {
  background: #EFE9DC !important;
  border-color: #8C651E !important;
  color: #7A5614 !important;
}

html.light-theme .sgm-quiz-disclaimer,
body.light-theme .sgm-quiz-disclaimer {
  background: #F4F1EA !important;
  border-top: 1px solid #E0DDD5 !important;
  color: #4A504D !important;
}

html.light-theme .sgm-quiz-disclaimer__text,
body.light-theme .sgm-quiz-disclaimer__text,
html.light-theme .sgm-quiz-disclaimer__text p,
body.light-theme .sgm-quiz-disclaimer__text p {
  color: #4A504D !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

/* --- 3. PERSONALIZED SOLUTION CTA BOX (DARK & LIGHT HIGH CONTRAST) --- */
.um-quiz-cta-box {
  text-align: center !important;
  margin: 26px 0 18px !important;
  display: flex !important;
  gap: 14px !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
}

.um-quiz-cta-box br {
  display: none !important;
}

.um-quiz-cta-btn,
.um-quiz-cta-box a {
  padding: 14px 28px !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 14.5px !important;
  line-height: 1.4 !important;
  letter-spacing: 0.015em !important;
  transition: all 0.22s ease !important;
  cursor: pointer !important;
}

html:not(.light-theme) body:not(.light-theme) .um-quiz-cta-btn--primary,
html:not(.light-theme) body:not(.light-theme) .um-quiz-cta-box a:first-of-type {
  background: linear-gradient(135deg, #D4AF37 0%, #B88E3E 100%) !important;
  color: #161817 !important;
  font-weight: 700 !important;
  border: 1.5px solid #E5C158 !important;
  box-shadow: 0 6px 20px rgba(197, 160, 89, 0.32) !important;
}

html:not(.light-theme) body:not(.light-theme) .um-quiz-cta-btn--primary:hover,
html:not(.light-theme) body:not(.light-theme) .um-quiz-cta-box a:first-of-type:hover {
  background: linear-gradient(135deg, #E5C158 0%, #C5A059 100%) !important;
  color: #111312 !important;
  transform: translateY(-2px) !important;
}

html:not(.light-theme) body:not(.light-theme) .um-quiz-cta-btn--secondary,
html:not(.light-theme) body:not(.light-theme) .um-quiz-cta-box a:last-of-type:not(:first-of-type) {
  background: #242826 !important;
  color: #F4F1EA !important;
  font-weight: 600 !important;
  border: 1.5px solid #4A524E !important;
}

html:not(.light-theme) body:not(.light-theme) .um-quiz-cta-btn--secondary:hover,
html:not(.light-theme) body:not(.light-theme) .um-quiz-cta-box a:last-of-type:not(:first-of-type):hover {
  background: #2E3431 !important;
  border-color: #C5A059 !important;
  color: #FFFFFF !important;
  transform: translateY(-2px) !important;
}

html.light-theme .um-quiz-cta-btn--primary,
body.light-theme .um-quiz-cta-btn--primary,
html.light-theme .um-quiz-cta-box a:first-of-type,
body.light-theme .um-quiz-cta-box a:first-of-type {
  background: linear-gradient(135deg, #B88E3E 0%, #8C651E 100%) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  border: 1.5px solid #8C651E !important;
  box-shadow: 0 6px 18px rgba(140, 101, 30, 0.25) !important;
}

html.light-theme .um-quiz-cta-btn--primary:hover,
body.light-theme .um-quiz-cta-btn--primary:hover,
html.light-theme .um-quiz-cta-box a:first-of-type:hover,
body.light-theme .um-quiz-cta-box a:first-of-type:hover {
  background: linear-gradient(135deg, #9A7432 0%, #7A5614 100%) !important;
  color: #FFFFFF !important;
  transform: translateY(-2px) !important;
}

html.light-theme .um-quiz-cta-btn--secondary,
body.light-theme .um-quiz-cta-btn--secondary,
html.light-theme .um-quiz-cta-box a:last-of-type:not(:first-of-type),
body.light-theme .um-quiz-cta-box a:last-of-type:not(:first-of-type) {
  background: #F4EFE6 !important;
  color: #1E2220 !important;
  font-weight: 600 !important;
  border: 1.5px solid #C8C0B0 !important;
}

html.light-theme .um-quiz-cta-btn--secondary:hover,
body.light-theme .um-quiz-cta-btn--secondary:hover,
html.light-theme .um-quiz-cta-box a:last-of-type:not(:first-of-type):hover,
body.light-theme .um-quiz-cta-box a:last-of-type:not(:first-of-type):hover {
  background: #EAE2D3 !important;
  border-color: #8C651E !important;
  color: #161817 !important;
  transform: translateY(-2px) !important;
}

/* ====================================================================
 * MULTI-LAYOUT QUESTION ENGINE & DYNAMIC VARIABLE ITEM COUNTS (v3.3)
 * Supports: Cards, Split Media, Text Grid, Pill Cloud, Likert Scale, Classic List
 * Variable Counts: 2 to 8+ items (adaptive responsive columns)
 * ==================================================================== */

/* --- 1. LAYOUT: CARDS / IMAGE GRID (DYNAMIC COLUMNS) --- */
.sgm-quiz-answers--cards,
.sgm-quiz-answers--image-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 14px !important;
  margin: 18px 0 22px 0 !important;
  padding: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Dynamic columns on Mobile (< 768px) */
@media (max-width: 480px) {
  .sgm-quiz-answers--cards.sgm-quiz-answers--items-3,
  .sgm-quiz-answers--image-grid.sgm-quiz-answers--items-3 {
    grid-template-columns: 1fr !important;
    max-width: 320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Dynamic columns on Desktop (>= 768px) based on Item Count */
@media (min-width: 768px) {
  /* Default Desktop: 4 columns */
  .sgm-quiz-answers--cards,
  .sgm-quiz-answers--image-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
  }

  /* 2 items: 2 columns, centered */
  .sgm-quiz-answers--cards.sgm-quiz-answers--items-2,
  .sgm-quiz-answers--image-grid.sgm-quiz-answers--items-2 {
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 640px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* 3 items: 3 columns, centered */
  .sgm-quiz-answers--cards.sgm-quiz-answers--items-3,
  .sgm-quiz-answers--image-grid.sgm-quiz-answers--items-3 {
    grid-template-columns: repeat(3, 1fr) !important;
    max-width: 860px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* 4 items: 4 columns */
  .sgm-quiz-answers--cards.sgm-quiz-answers--items-4,
  .sgm-quiz-answers--image-grid.sgm-quiz-answers--items-4 {
    grid-template-columns: repeat(4, 1fr) !important;
  }

  /* 5 items: auto-fit minmax 180px */
  .sgm-quiz-answers--cards.sgm-quiz-answers--items-5,
  .sgm-quiz-answers--image-grid.sgm-quiz-answers--items-5 {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  }

  /* 6 items: 3 columns (2 rows of 3) */
  .sgm-quiz-answers--cards.sgm-quiz-answers--items-6,
  .sgm-quiz-answers--image-grid.sgm-quiz-answers--items-6 {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  /* 7+ items: auto-fit responsive */
  .sgm-quiz-answers--cards.sgm-quiz-answers--items-many,
  .sgm-quiz-answers--image-grid.sgm-quiz-answers--items-many {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
  }
}

/* Card Button Styling */
.sgm-quiz-answers--cards .sgm-quiz-answer,
.sgm-quiz-answers--image-grid .sgm-quiz-answer,
.sgm-quiz-answer.sgm-quiz-answer--card {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  padding: 0 !important;
  border-radius: 14px !important;
  background: #181D1A !important;
  border: 2px solid rgba(212, 175, 55, 0.28) !important;
  overflow: hidden !important;
  cursor: pointer !important;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45) !important;
  text-align: center !important;
  width: 100% !important;
  outline: none !important;
  min-height: auto !important;
}

.sgm-quiz-answers--cards .sgm-quiz-answer:hover,
.sgm-quiz-answers--image-grid .sgm-quiz-answer:hover,
.sgm-quiz-answer.sgm-quiz-answer--card:hover {
  transform: translateY(-4px) scale(1.02) !important;
  border-color: #D4AF37 !important;
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.25) !important;
}

.sgm-quiz-answers--cards .sgm-quiz-answer.is-selected,
.sgm-quiz-answers--image-grid .sgm-quiz-answer.is-selected,
.sgm-quiz-answer.sgm-quiz-answer--card.is-selected {
  border-color: #F2CE6B !important;
  box-shadow: 0 0 24px rgba(242, 206, 107, 0.45) !important;
  transform: scale(1.03) !important;
}

.urm-quiz-card-media {
  width: 100% !important;
  height: 175px !important;
  position: relative !important;
  overflow: hidden !important;
  background: #0E1210 !important;
}

@media (max-width: 480px) {
  .urm-quiz-card-media {
    height: 145px !important;
  }
}

.urm-quiz-card-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.45s ease !important;
  display: block !important;
}

.sgm-quiz-answer--card:hover .urm-quiz-card-media img,
.sgm-quiz-answers--image-grid .sgm-quiz-answer:hover .urm-quiz-card-media img {
  transform: scale(1.06) !important;
}

.urm-quiz-card-badge {
  position: absolute !important;
  top: 8px !important;
  left: 8px !important;
  min-width: 24px !important;
  height: 24px !important;
  padding: 0 6px !important;
  border-radius: 12px !important;
  background: rgba(17, 20, 19, 0.88) !important;
  border: 1px solid rgba(212, 175, 55, 0.6) !important;
  color: #F2CE6B !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  backdrop-filter: blur(4px) !important;
  z-index: 2 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) !important;
}

.urm-quiz-card-content {
  padding: 12px 10px 14px 10px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  align-items: center !important;
  justify-content: center !important;
  background: #181D1A !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.urm-quiz-card-title {
  font-family: Georgia, 'Lora', serif !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  color: #FAF8F5 !important;
  line-height: 1.35 !important;
  text-align: center !important;
}

.urm-quiz-card-sub {
  font-size: 11.5px !important;
  color: #A0A5A1 !important;
  line-height: 1.35 !important;
  text-align: center !important;
}


/* --- 2. LAYOUT: SPLIT (HORIZONTAL MEDIA CARDS) --- */
.sgm-quiz-answers--split {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  margin: 18px 0 22px 0 !important;
  padding: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

@media (min-width: 768px) {
  .sgm-quiz-answers--split.sgm-quiz-answers--items-4,
  .sgm-quiz-answers--split.sgm-quiz-answers--items-5,
  .sgm-quiz-answers--split.sgm-quiz-answers--items-6,
  .sgm-quiz-answers--split.sgm-quiz-answers--items-many {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }
}

.sgm-quiz-answer.sgm-quiz-answer--split {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 12px 14px !important;
  border-radius: 12px !important;
  background: #181D1A !important;
  border: 1.5px solid rgba(212, 175, 55, 0.25) !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-align: left !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
  position: relative !important;
  outline: none !important;
}

.sgm-quiz-answer.sgm-quiz-answer--split:hover {
  transform: translateX(3px) !important;
  border-color: #D4AF37 !important;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.2) !important;
}

.sgm-quiz-answer.sgm-quiz-answer--split.is-selected {
  border-color: #F2CE6B !important;
  background: rgba(212, 175, 55, 0.12) !important;
  box-shadow: 0 0 20px rgba(242, 206, 107, 0.35) !important;
}

.urm-quiz-split-media {
  width: 74px !important;
  height: 74px !important;
  flex-shrink: 0 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  position: relative !important;
  background: #0E1210 !important;
}

.urm-quiz-split-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.urm-quiz-split-badge {
  position: absolute !important;
  top: 4px !important;
  left: 4px !important;
  background: rgba(17, 20, 19, 0.9) !important;
  color: #F2CE6B !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 1px 5px !important;
  border-radius: 4px !important;
  border: 1px solid rgba(212, 175, 55, 0.5) !important;
}

.urm-quiz-split-indicator {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: rgba(212, 175, 55, 0.12) !important;
  border: 1.5px solid rgba(212, 175, 55, 0.4) !important;
  color: #F2CE6B !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.urm-quiz-split-content {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}

.urm-quiz-split-title {
  font-family: Georgia, 'Lora', serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #FAF8F5 !important;
  line-height: 1.35 !important;
}

.urm-quiz-split-sub {
  font-size: 12px !important;
  color: #A0A5A1 !important;
  line-height: 1.4 !important;
}


/* --- 3. LAYOUT: TEXT GRID (MULTI-COLUMN TEXT CARDS) --- */
.sgm-quiz-answers--text_grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px !important;
  margin: 18px 0 22px 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

@media (max-width: 480px) {
  .sgm-quiz-answers--text_grid.sgm-quiz-answers--items-3 {
    grid-template-columns: 1fr !important;
  }
}

@media (min-width: 768px) {
  .sgm-quiz-answers--text_grid.sgm-quiz-answers--items-3 {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .sgm-quiz-answers--text_grid.sgm-quiz-answers--items-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .sgm-quiz-answers--text_grid.sgm-quiz-answers--items-5,
  .sgm-quiz-answers--text_grid.sgm-quiz-answers--items-6 {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .sgm-quiz-answers--text_grid.sgm-quiz-answers--items-many {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  }
}

.sgm-quiz-answer.sgm-quiz-answer--text-grid {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 14px 16px !important;
  border-radius: 10px !important;
  background: #181D1A !important;
  border: 1.5px solid rgba(212, 175, 55, 0.22) !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
  outline: none !important;
}

.sgm-quiz-answer.sgm-quiz-answer--text-grid:hover {
  transform: translateY(-2px) !important;
  border-color: #D4AF37 !important;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.22) !important;
}

.sgm-quiz-answer.sgm-quiz-answer--text-grid.is-selected {
  border-color: #F2CE6B !important;
  background: rgba(212, 175, 55, 0.12) !important;
}


/* --- 4. LAYOUT: PILLS (TAG CLOUD) --- */
.sgm-quiz-answers--pills {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  justify-content: center !important;
  margin: 18px 0 24px 0 !important;
  padding: 0 !important;
}

.sgm-quiz-answer.sgm-quiz-answer--pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 10px 20px !important;
  border-radius: 999px !important;
  background: #181D1A !important;
  border: 1.5px solid rgba(212, 175, 55, 0.3) !important;
  color: #E5E3DC !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.22s ease !important;
  outline: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  min-height: auto !important;
}

.sgm-quiz-answer.sgm-quiz-answer--pill:hover {
  border-color: #D4AF37 !important;
  background: #202622 !important;
  transform: translateY(-2px) !important;
}

.sgm-quiz-answer.sgm-quiz-answer--pill.is-selected {
  background: rgba(212, 175, 55, 0.18) !important;
  border-color: #F2CE6B !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 16px rgba(242, 206, 107, 0.4) !important;
}

.urm-quiz-pill-check {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #F2CE6B !important;
}


/* --- 5. LAYOUT: SCALE (LIKERT RATING SCALE) --- */
.sgm-quiz-answers--scale {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  margin: 20px 0 24px 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

.urm-quiz-scale-labels {
  display: flex !important;
  justify-content: space-between !important;
  font-size: 12px !important;
  color: #9BA39E !important;
  font-style: italic !important;
  padding: 0 4px !important;
}

.urm-quiz-scale-row {
  display: flex !important;
  gap: 8px !important;
  justify-content: space-between !important;
  width: 100% !important;
}

.sgm-quiz-answer.sgm-quiz-answer--scale {
  flex: 1 !important;
  min-width: 44px !important;
  min-height: 56px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 8px 4px !important;
  border-radius: 10px !important;
  background: #181D1A !important;
  border: 1.5px solid rgba(212, 175, 55, 0.25) !important;
  cursor: pointer !important;
  transition: all 0.22s ease !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  outline: none !important;
}

.sgm-quiz-answer.sgm-quiz-answer--scale:hover {
  transform: translateY(-2px) !important;
  border-color: #D4AF37 !important;
  background: #202622 !important;
}

.sgm-quiz-answer.sgm-quiz-answer--scale.is-selected {
  border-color: #F2CE6B !important;
  background: rgba(212, 175, 55, 0.18) !important;
  box-shadow: 0 0 16px rgba(242, 206, 107, 0.4) !important;
}

.urm-quiz-scale-val {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #D4AF37 !important;
}

.urm-quiz-scale-sub {
  font-size: 10px !important;
  color: #9BA39E !important;
  max-width: 65px !important;
  text-align: center !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}


/* --- 6. UNIFORM 1-CLICK INSTANT AUTO-ADVANCE PULSE --- */
.sgm-quiz-answer.is-activated {
  animation: urm-gold-card-pulse 0.3s ease-out forwards !important;
  border-color: #F2CE6B !important;
}

@keyframes urm-gold-card-pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(242, 206, 107, 0.7); }
  50% { transform: scale(1.03); box-shadow: 0 0 20px 4px rgba(242, 206, 107, 0.6); }
  100% { transform: scale(1.03); box-shadow: 0 0 28px 6px rgba(242, 206, 107, 0.5); }
}


/* --- 7. LIGHT THEME OVERRIDES --- */
html.light-theme .sgm-quiz-answer.sgm-quiz-answer--card,
body.light-theme .sgm-quiz-answer.sgm-quiz-answer--card,
html.light-theme .sgm-quiz-answer.sgm-quiz-answer--split,
body.light-theme .sgm-quiz-answer.sgm-quiz-answer--split,
html.light-theme .sgm-quiz-answer.sgm-quiz-answer--text-grid,
body.light-theme .sgm-quiz-answer.sgm-quiz-answer--text-grid,
html.light-theme .sgm-quiz-answer.sgm-quiz-answer--pill,
body.light-theme .sgm-quiz-answer.sgm-quiz-answer--pill,
html.light-theme .sgm-quiz-answer.sgm-quiz-answer--scale,
body.light-theme .sgm-quiz-answer.sgm-quiz-answer--scale {
  background: #FFFFFF !important;
  border-color: rgba(197, 160, 89, 0.35) !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08) !important;
}

html.light-theme .urm-quiz-card-content,
body.light-theme .urm-quiz-card-content {
  background: #FFFFFF !important;
}

html.light-theme .urm-quiz-card-title,
body.light-theme .urm-quiz-card-title,
html.light-theme .urm-quiz-split-title,
body.light-theme .urm-quiz-split-title {
  color: #2D312E !important;
}

html.light-theme .urm-quiz-card-sub,
body.light-theme .urm-quiz-card-sub,
html.light-theme .urm-quiz-split-sub,
body.light-theme .urm-quiz-split-sub {
  color: #6B706C !important;
}

html.light-theme .sgm-quiz-answer.sgm-quiz-answer--pill,
body.light-theme .sgm-quiz-answer.sgm-quiz-answer--pill {
  color: #2D312E !important;
}




