/* DAC Quiz Embed Styles — scoped under .dac-quiz-container */

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

.dac-quiz-container {
  margin: 40px auto;
  padding: 20px;
  border-radius: 15px;
  max-width: 800px;
  font-family: inherit;
  font-size: 22px;
  box-sizing: border-box;
}

.dac-quiz-container * {
  box-sizing: border-box;
}

/* Header */
.dac-quiz-header {
  text-align: center;
  margin-bottom: 30px;
}

.dac-quiz-header h2 {
  margin: 0 0 10px 0;
  font-size: 1.8rem;
}

/* Progress bar */
.dac-quiz-progress-wrapper {
  width: 100%;
  background: #e8e8e8;
  border-radius: 10px;
  height: 8px;
  margin-bottom: 16px;
  overflow: hidden;
}

.dac-quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #9f2b68, #321748);
  width: 0%;
  transition: width 0.4s ease;
  border-radius: 10px;
  display: block !important;
}

/* Sections */
.dac-quiz-section {
  display: none;
  padding: 3rem;
}

@media (max-width: 480px) {
  .dac-quiz-section {
    padding: 0rem;
  }
}

.dac-quiz-section.active {
  display: block;
  animation: dacQuizFadeIn 0.4s ease;
}

/* ── Sticky header image ──────────────────────────────────────────────────── */

.dac-quiz-header-image-wrap {
  width: 100%;
  line-height: 0;
  overflow: hidden;
  flex-shrink: 0;
}

.dac-quiz-header-image {
  width: 100%;
  display: block;
  max-height: 200px;
  object-fit: cover;
  object-position: center;
}

/* ── Single-select answer-mode: hide the checkbox number label ─────────── */

.dac-quiz-options[data-single-answer="true"] .dac-quiz-option-label {
  display: none;
}

/* Compensate for missing label — shift text left */
.dac-quiz-options[data-single-answer="true"] .dac-quiz-option-text {
  padding-left: 0;
  margin-left: 0;
}

/* Start section */
.dac-quiz-start {
  text-align: center;
}

.dac-quiz-start .welcome-message {
  margin-bottom: 20px;
  line-height: 1.6;
}

.dac-quiz-name-input {
  width: 100%;
  max-width: 400px;
  padding: 12px 16px;
  margin: 0 auto 20px;
  display: block;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

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

.dac-quiz-start-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 14px 40px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

@media (max-width: 480px) {
  .dac-quiz-start-btn {
    padding: 14px 30px;
  }
}

.dac-quiz-start-btn:hover {
  opacity: 0.85;
}

/* Questions */
.dac-quiz-question {
  display: none;
  margin-bottom: 30px;
}

.dac-quiz-question.active {
  display: block;
  animation: dacQuizFadeIn 0.3s ease;
}

.dac-quiz-question.completed {
  /* visual indicator for completed questions */
}

.dac-quiz-question-text {
  font-size: 30px;
  font-weight: 400;
  margin-bottom: 20px;
  line-height: 1.4;
}
.dac-quiz-question-text strong,
.dac-quiz-question-text b {
  font-weight: 700;
}
.dac-quiz-question-text em,
.dac-quiz-question-text i {
  font-style: italic;
}
.dac-quiz-question-text u {
  text-decoration: underline;
}
.dac-quiz-question-text a {
  color: inherit;
  text-decoration: underline;
}
.dac-quiz-question-text p {
  margin: 0;
}

.dac-quiz-question-notes {
  font-size: 20px;
  font-weight: 400;
  color: #6d7175;
  margin-top: -12px;
  margin-bottom: 20px;
  line-height: 1.5;
}
.dac-quiz-question-notes strong,
.dac-quiz-question-notes b {
  font-weight: 600;
}
.dac-quiz-question-notes em,
.dac-quiz-question-notes i {
  font-style: italic;
}
.dac-quiz-question-notes u {
  text-decoration: underline;
}
.dac-quiz-question-notes a {
  color: inherit;
  text-decoration: underline;
}
.dac-quiz-question-notes p {
  margin: 0;
}

@media (max-width: 480px) {
  .dac-quiz-question-text {
    font-size: 27px;
    line-height: 1.3;
  }
  .dac-quiz-container h1 {
    font-size: 35px;
  }
}

/* Options container */
.dac-quiz-options {
  display: grid;
  grid-auto-rows: min-content;
  gap: 10px;
}

/* Standard option */
.dac-quiz-option {
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid #000;
  border-radius: 6px;
  cursor: pointer;
  padding: 0 2rem;
  transition:
    background 0.2s,
    border-width 0.1s;
  user-select: none;
}

.dac-quiz-option:hover {
  background: rgb(201, 201, 201);
}

.dac-quiz-option.selected {
  background: rgb(201, 201, 201);
  border-width: 2px;
}

.dac-quiz-option-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  margin: 10px;
  background: #fff;
  font-size: 1.2rem;
  border: 1px solid #000;
  border-radius: 4px;
  height: 1.5rem;
  width: 1.5rem;
  flex-shrink: 0;
  font-weight: 600;
}

.dac-quiz-option-text {
  padding: 14px 14px 14px 0;
  font-size: 22px;
  line-height: 1.4;
  flex: 1;
}

@media (max-width: 480px) {
  .dac-quiz-option-text {
    font-size: 20px;
    line-height: 1.3;
  }
}

/* Input option */
.dac-quiz-option-input-wrapper {
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid #000;
  border-radius: 6px;
  transition: border-color 0.2s;
}

.dac-quiz-option-input-wrapper:focus-within {
  border-color: #333;
  border-width: 2px;
}

.dac-quiz-option-input {
  width: 100%;
  padding: 14px 16px;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1rem;
}

.dac-quiz-option-input.error {
  border-color: #e74c3c;
}

/* Validation error */
.dac-quiz-error-message {
  color: #e74c3c;
  font-size: 14px;
  margin-top: 8px;
  min-height: 20px;
}

/* Navigation */
.dac-quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  gap: 10px;
}

.dac-quiz-nav-btn {
  border-radius: 5px;
  background: #9f2b68;
  color: #fff;
  border: none;
  font-weight: 500;
  width: 53px;
  height: 53px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s;
  font-size: 1.4rem;
}

.dac-quiz-nav-btn:hover {
  opacity: 0.85;
}

.dac-quiz-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.dac-quiz-nav-btn.hidden {
  visibility: hidden;
}

.dac-quiz-nav-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.dac-quiz-nav-btn.btn-prev svg {
  transform: rotate(90deg);
}

.dac-quiz-nav-btn.btn-next svg {
  transform: rotate(-90deg);
}

/* Heading counter */
.dac-quiz-question-counter {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 10px;
}

/* Completion section */
.dac-quiz-completion {
  display: none;
  text-align: center;
  animation: dacQuizFadeIn 0.4s ease;
}

.dac-quiz-completion.active {
  display: block;
}

.dac-quiz-completion h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.dac-quiz-completion p {
  margin-bottom: 20px;
  line-height: 1.6;
}

.dac-quiz-completion-btn {
  display: inline-block;
  padding: 14px 40px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
}

.dac-quiz-completion-btn:hover {
  opacity: 0.85;
}

/* ── Image styles ─────────────────────────────────────────────────── */

/* Welcome / completion full-width image */
.dac-quiz-section-image {
  display: block;
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
}

/* Question image above question text */
.dac-quiz-question-image {
  display: block;
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 12px;
}

/* Answer image thumbnail — legacy inline (not used for image_text grid) */
.dac-quiz-answer-image {
  display: none; /* hidden — image_text grid uses background-image approach via card */
}

/* ── Image+Text grid display ──────────────────────────────────────────────── */
/* 2-column card grid: image fills top of card, text sits below */

.dac-quiz-options[data-display="image_text"] {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (max-width: 480px) {
  .dac-quiz-options[data-display="image_text"] {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

/* Override base flex layout for image_text cards */
.dac-quiz-options[data-display="image_text"] .dac-quiz-option {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  border-radius: 10px;
  border: 2px solid transparent;
  background: #f1f3f5;
  gap: 0;
  position: relative;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.dac-quiz-options[data-display="image_text"] .dac-quiz-option:hover {
  border-color: #c9cccf;
  background: #f1f3f5;
}

.dac-quiz-options[data-display="image_text"] .dac-quiz-option.selected {
  border-color: #321748;
  box-shadow: 0 0 0 1px #321748;
  background: #f1f3f5;
}

/* Image portion — top 60% of card */
.dac-quiz-options[data-display="image_text"] .dac-quiz-answer-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 0;
  margin: 0;
}

/* Text portion — bottom of card */
.dac-quiz-options[data-display="image_text"] .dac-quiz-option-text {
  padding: 10px 12px 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  flex: unset;
  color: inherit;
}

/* Hide the number label entirely for image_text */
.dac-quiz-options[data-display="image_text"] .dac-quiz-option-label {
  display: none;
}

/* Checkmark indicator top-right when selected */
.dac-quiz-options[data-display="image_text"] .dac-quiz-option::after {
  content: "\2713";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #321748;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.7);
  transition:
    opacity 0.15s,
    transform 0.15s;
  pointer-events: none;
}

.dac-quiz-options[data-display="image_text"] .dac-quiz-option.selected::after {
  opacity: 1;
  transform: scale(1);
}

/* When no image is present, show the number label instead */
.dac-quiz-options[data-display="image_text"]
  .dac-quiz-option--no-image
  .dac-quiz-option-label {
  display: inline-flex;
  margin: 12px 12px 0;
}

.dac-quiz-options[data-display="image_text"]
  .dac-quiz-option--no-image
  .dac-quiz-option-text {
  padding-top: 8px;
}

/* ── RLS CTA wrap (email + button revealed together) ─────────────────────── */

.dac-quiz-rls-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 10px;
  transition: opacity 0.5s ease;
}

.dac-quiz-rls-email-label {
  display: block;
  font-size: 0.85em;
  font-weight: 600;
  color: #321748;
  margin-bottom: 8px;
  text-align: center;
}

.dac-quiz-rls-email-row {
  display: flex;
  gap: 6px;
}

.dac-quiz-rls-email-input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9em;
  outline: none;
  transition: border-color 0.15s;
  min-width: 0;
}

.dac-quiz-rls-email-input:focus {
  border-color: #321748;
}

.dac-quiz-rls-email-input.error {
  border-color: #d72c0d;
}

.dac-quiz-rls-email-error {
  font-size: 0.8em;
  color: #d72c0d;
  margin-top: 5px;
  min-height: 1em;
}

/* bold-dark theme adjustments */
.dac-quiz-container[data-theme="bold-dark"] .dac-quiz-rls-email-label {
  color: #e8eaf6;
}

.dac-quiz-container[data-theme="bold-dark"] .dac-quiz-rls-email-input {
  background: #1c1f32;
  border-color: #2a2d42;
  color: #e8eaf6;
}

.dac-quiz-container[data-theme="bold-dark"] .dac-quiz-rls-email-input:focus {
  border-color: #5b6af5;
}

/* bold-dark theme: image_text card adjustments */
.dac-quiz-container[data-theme="bold-dark"]
  .dac-quiz-options[data-display="image_text"]
  .dac-quiz-option {
  background: #161923;
  border-color: #2a2d42;
  padding: 0;
}

.dac-quiz-container[data-theme="bold-dark"]
  .dac-quiz-options[data-display="image_text"]
  .dac-quiz-option:hover {
  background: #1c1f32;
  border-color: #5b6af5;
}

.dac-quiz-container[data-theme="bold-dark"]
  .dac-quiz-options[data-display="image_text"]
  .dac-quiz-option.selected {
  border-color: #5b6af5;
  background: #1c1f32;
  box-shadow: 0 0 0 1px #5b6af5;
}

.dac-quiz-container[data-theme="bold-dark"]
  .dac-quiz-options[data-display="image_text"]
  .dac-quiz-option::after {
  background: #5b6af5;
}

.dac-quiz-container[data-theme="bold-dark"]
  .dac-quiz-options[data-display="image_text"]
  .dac-quiz-option-text {
  color: #e8eaf6;
}

/* ── Image-only grid display ───────────────────────────────────────────────── */
.dac-quiz-options[data-display="image_only"] {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols-desktop, 3), 1fr);
  gap: 12px;
}

@media (max-width: 600px) {
  .dac-quiz-options[data-display="image_only"] {
    grid-template-columns: repeat(var(--grid-cols-mobile, 2), 1fr);
  }
}

.dac-quiz-option--image-only {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.dac-quiz-option--image-only:hover {
  border-color: #c9cccf;
}

.dac-quiz-option--image-only.selected {
  border-color: #321748;
  box-shadow: 0 0 0 2px #321748;
}

.dac-quiz-answer-image--full {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dac-quiz-option-label--overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 8px 8px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
}

.dac-quiz-option-label--overlay:empty {
  display: none;
}

/* ── Email Capture Section ─────────────────────────────────────────────────── */
.dac-quiz-email-capture {
  text-align: center;
  padding: 20px 0;
}

.dac-quiz-email-heading {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 10px;
  color: inherit;
}

.dac-quiz-email-message {
  margin-bottom: 20px;
  color: #555;
  font-size: 0.95em;
  line-height: 1.5;
}

.dac-quiz-email-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 380px;
  margin: 0 auto;
}

.dac-quiz-email-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1em;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.dac-quiz-email-input:focus {
  border-color: #9f2b68;
}

.dac-quiz-email-input.error {
  border-color: #e53935;
}

.dac-quiz-email-error {
  color: #e53935;
  font-size: 0.85em;
  min-height: 18px;
  width: 100%;
  text-align: left;
}

.dac-quiz-email-submit {
  width: 100%;
  padding: 12px 20px;
  background: #9f2b68;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.dac-quiz-email-submit:hover {
  background: #7d2254;
}

.dac-quiz-email-skip {
  background: none;
  border: none;
  color: #999;
  font-size: 0.85em;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px;
}

.dac-quiz-email-skip:hover {
  color: #555;
}

/* ── Submit redirect button ───────────────────────────────────────────────── */
.dac-quiz-nav .btn-submit {
  background: #9f2b68;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 1em;
  width: 100%;
  max-width: 300px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  letter-spacing: 0.01em;
}

.dac-quiz-nav .btn-submit:hover {
  background: #7d2254;
}

.dac-quiz-nav .btn-submit.hidden {
  display: none;
}

/* ── Recommendations section ───────────────────────────────────────── */

.dac-quiz-recs {
  display: none;
  margin-top: 32px;
  animation: dacQuizFadeIn 0.4s ease;
}

.dac-quiz-recs.active {
  display: block;
}

.dac-quiz-recs-header {
  text-align: center;
  margin-bottom: 20px;
}

.dac-quiz-recs-heading {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.dac-quiz-recs-subheading {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
}

.dac-quiz-recs-loading {
  text-align: center;
  color: #999;
  font-size: 0.9rem;
  padding: 16px 0;
}

.dac-quiz-recs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

/* Product card */
.dac-rec-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
  background: #fff;
}

.dac-rec-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.dac-rec-card-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f5f5f5;
}

.dac-rec-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.dac-rec-card:hover .dac-rec-card-img-wrap img {
  transform: scale(1.04);
}

.dac-rec-card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.dac-rec-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  color: #111;
}

.dac-rec-card-price {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dac-rec-price-sale {
  font-weight: 700;
  color: #c0392b;
}

.dac-rec-price-compare {
  text-decoration: line-through;
  color: #999;
  font-size: 0.8rem;
}

.dac-rec-card-cta {
  display: inline-block;
  margin-top: auto;
  padding: 7px 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #000;
  border-top: 1px solid #eee;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Responsive: 1 col on mobile */
@media (max-width: 480px) {
  .dac-quiz-recs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* ── Debug Panel ────────────────────────────────────────────────── */

.dac-quiz-debug {
  margin-top: 32px;
  border: 2px solid #f0ad4e;
  border-radius: 10px;
  overflow: hidden;
  font-family: monospace;
  font-size: 13px;
}

.dac-debug-header {
  background: #f0ad4e;
  color: #5a3e00;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 16px;
  letter-spacing: 0.03em;
}

.dac-debug-section {
  padding: 14px 16px;
  border-bottom: 1px solid #fde9c3;
  background: #fffdf7;
}

.dac-debug-section:last-child {
  border-bottom: none;
}

.dac-debug-section-title {
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8a6200;
  margin-bottom: 10px;
}

.dac-debug-sub-title {
  font-weight: 600;
  font-size: 12px;
  color: #555;
  margin-bottom: 8px;
  padding-left: 2px;
}

.dac-debug-empty {
  color: #999;
  font-style: italic;
  margin: 0;
}

/* Answer steps */
.dac-debug-step {
  padding: 10px 12px;
  margin-bottom: 4px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
}

.dac-debug-step-q {
  font-weight: 600;
  color: #222;
  margin-bottom: 5px;
  font-family: sans-serif;
  font-size: 13px;
}

.dac-debug-badge {
  display: inline-block;
  background: #321748;
  color: #fff;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 700;
  margin-right: 4px;
  font-family: monospace;
}

.dac-debug-step-a {
  margin-bottom: 4px;
}

.dac-debug-answer {
  display: inline-block;
  background: #e8f4f4;
  border: 1px solid #b3dfe0;
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 12px;
  color: #006f71;
  margin: 2px 3px 2px 0;
  font-family: sans-serif;
}

.dac-debug-route {
  font-size: 12px;
  color: #7c5200;
  background: #fff8e1;
  border-radius: 4px;
  padding: 3px 8px;
  margin-top: 4px;
  display: inline-block;
}

.dac-debug-arrow {
  font-size: 12px;
  color: #666;
  margin-top: 6px;
  padding-left: 4px;
  font-family: sans-serif;
}

.dac-debug-arrow-end {
  color: #321748;
  font-weight: 600;
}

/* Skipped */
.dac-debug-skipped {
  display: inline-block;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 2px 10px;
  font-size: 12px;
  color: #888;
  margin: 2px 4px 2px 0;
  font-family: sans-serif;
  text-decoration: line-through;
}

/* Tag score bars */
.dac-debug-tags {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dac-debug-tag-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: sans-serif;
}

.dac-debug-tag-name {
  width: 140px;
  flex-shrink: 0;
  font-size: 12px;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dac-debug-tag-bar-wrap {
  flex: 1;
  background: #eee;
  border-radius: 4px;
  height: 10px;
  overflow: hidden;
}

.dac-debug-tag-bar {
  height: 100%;
  background: #321748;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.dac-debug-tag-score {
  width: 40px;
  text-align: right;
  font-size: 12px;
  color: #555;
  flex-shrink: 0;
}

/* Product table */
.dac-debug-table {
  width: 100%;
  border-collapse: collapse;
  font-family: sans-serif;
  font-size: 12px;
}

.dac-debug-table th {
  background: #f0f0f0;
  text-align: left;
  padding: 6px 8px;
  font-weight: 600;
  color: #444;
  border-bottom: 1px solid #ddd;
}

.dac-debug-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
  color: #222;
}

.dac-debug-table tr:last-child td {
  border-bottom: none;
}

/* Session meta */
.dac-debug-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-family: sans-serif;
  font-size: 12px;
  color: #555;
}

/* ── Coupon / discount block ─────────────────────────────────────────── */
.dac-discount-wrapper {
  margin-top: 24px;
}

.dac-coupon-loading {
  text-align: center;
  padding: 16px;
  color: var(--dac-primary, #9f2b68);
  font-size: 15px;
  font-style: italic;
  animation: dac-pulse 1.4s ease-in-out infinite;
}

.dac-coupon-block {
  background: linear-gradient(135deg, #fdf6fb 0%, #f5eef8 100%);
  border: 2px dashed var(--dac-primary, #9f2b68);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.dac-coupon-heading {
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  margin-bottom: 16px;
}

.dac-coupon-heading p {
  margin: 0 0 8px;
}

.dac-coupon-code {
  display: inline-block;
  font-family: "Courier New", Courier, monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--dac-primary, #9f2b68);
  background: #fff;
  border: 2px solid var(--dac-primary, #9f2b68);
  border-radius: 6px;
  padding: 4px 14px;
}

.dac-coupon-expiry {
  font-size: 12px;
  color: #888;
  margin-bottom: 14px;
}

.dac-coupon-copy-btn {
  display: inline-block;
  margin-top: 12px;
  background: var(--dac-primary, #9f2b68);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.dac-coupon-copy-btn:hover {
  opacity: 0.85;
}

@keyframes dac-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

/* =========================================================
   Popup Overlay
   ========================================================= */

.dac-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.dac-popup-overlay.active {
  display: flex;
  opacity: 1;
}

@keyframes dacPopupSlideIn {
  from {
    opacity: 0;
    transform: translateY(32px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dac-popup-modal {
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  width: 90%;
  max-width: 860px;
  min-height: 60vh;
  max-height: 90vh;
  overflow-y: auto;
  animation: dacPopupSlideIn 0.3s cubic-bezier(0.34, 1.4, 0.64, 1) both;
  scrollbar-width: thin;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.dac-popup-modal::-webkit-scrollbar {
  width: 6px;
}
.dac-popup-modal::-webkit-scrollbar-track {
  background: transparent;
}
.dac-popup-modal::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

/* Quiz inside modal — override default margin/padding */
.dac-popup-modal .dac-quiz-container {
  margin: 0;
  padding: 52px 28px 24px;
  border-radius: 0;
  box-shadow: none;
  width: 100%;
  max-width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.dac-popup-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e1e3e5;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #444;
  transition:
    background 0.15s,
    color 0.15s,
    transform 0.15s;
  padding: 0;
}

.dac-popup-close:hover {
  background: #f3e8ef;
  color: #9f2b68;
  transform: scale(1.1);
}

/* =========================================================
   Teaser Tab
   ========================================================= */

.dac-quiz-teaser {
  position: fixed;
  top: 50%;
  z-index: 999998;
  border: none;
  cursor: pointer;
  padding: 14px 10px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.04em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  opacity: 0;
  transition:
    opacity 0.4s ease,
    transform 0.4s cubic-bezier(0.34, 1.3, 0.64, 1),
    box-shadow 0.2s;
  box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.22);
  line-height: 1.3;
}

/* Left-side teaser starts off-screen to the left */
.dac-quiz-teaser[data-side="left"],
.dac-quiz-teaser:not([data-side]) {
  transform: translateY(-50%) translateX(-120%);
}

/* Right-side teaser starts off-screen to the right */
.dac-quiz-teaser[data-side="right"] {
  transform: translateY(-50%) translateX(120%);
}

.dac-quiz-teaser.visible {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.dac-quiz-teaser:hover {
  box-shadow: 3px 3px 18px rgba(0, 0, 0, 0.3);
  filter: brightness(1.08);
}

.dac-quiz-teaser span {
  display: block;
}

/* ── Teaser animations ── */

/* Pulse — gentle opacity breathe */
@keyframes dacTeaserPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}
.dac-teaser-anim-pulse.visible {
  animation: dacTeaserPulse 2.8s ease-in-out infinite;
}

/* Bounce — small vertical nudge */
@keyframes dacTeaserBounce {
  0%,
  100% {
    transform: translateY(-50%) translateX(0);
  }
  40% {
    transform: translateY(calc(-50% - 6px)) translateX(0);
  }
  60% {
    transform: translateY(calc(-50% + 3px)) translateX(0);
  }
}
.dac-teaser-anim-bounce.visible {
  animation: dacTeaserBounce 2.4s ease-in-out infinite;
}

/* Wiggle — side nudge */
@keyframes dacTeaserWiggle {
  0%,
  80%,
  100% {
    transform: translateX(0) rotate(0deg);
  }
  85% {
    transform: translateX(2px) rotate(2.5deg);
  }
  90% {
    transform: translateX(-2px) rotate(-1.5deg);
  }
  95% {
    transform: translateX(1px) rotate(3.8deg);
  }
}
.dac-teaser-anim-wiggle.visible {
  animation: dacTeaserWiggle 3s ease-in-out infinite;
}

/* Slide — peek in and out */
@keyframes dacTeaserSlide {
  0%,
  60%,
  100% {
    transform: translateX(0);
  }

  70% {
    transform: translateX(8px);
  }

  80% {
    transform: translateX(-3px);
  }

  90% {
    transform: translateX(4px);
  }
}
.dac-teaser-anim-slide.visible {
  animation: dacTeaserSlide 4s ease-in-out infinite;
}

/* Left-side teasers need their own animation transforms to stay correct
   with the 180deg base rotation set inline by JS */
.dac-quiz-teaser[style*="rotate(180deg)"].dac-teaser-anim-bounce.visible {
  animation: dacTeaserBounceLeft 2.4s ease-in-out infinite;
}
@keyframes dacTeaserBounceLeft {
  0%,
  100% {
    transform: translateY(-50%) translateX(0) rotate(180deg);
  }
  40% {
    transform: translateY(calc(-50% - 6px)) translateX(0) rotate(180deg);
  }
  60% {
    transform: translateY(calc(-50% + 3px)) translateX(0) rotate(180deg);
  }
}

/* Responsive — hide teaser on very small screens to avoid clutter */
@media (max-width: 480px) {
  .dac-quiz-teaser {
    font-size: 11px;
    padding: 10px 7px;
  }
  .dac-popup-modal {
    width: 95%;
    max-width: none;
    border-radius: 12px;
    min-height: unset;
    max-height: 92vh;
  }
}

/* =========================================================
   QUIZ THEMES — applied via data-theme on .dac-quiz-container
   Default (no attribute or data-theme="classic") uses
   the existing styles above. All theme rules below are
   scoped so they only override when the matching
   data-theme is present.
   ========================================================= */

/* ── Theme: Spa & Wellness ───────────────────────────────── */
.dac-quiz-container[data-theme="spa"] {
  background: #faf6f0;
  font-family: Georgia, "Times New Roman", serif;
  border-radius: 12px;
}

.dac-quiz-container[data-theme="spa"] .dac-quiz-progress-wrapper {
  height: 3px;
  background: #e8ddd0;
  border-radius: 2px;
}

.dac-quiz-container[data-theme="spa"] .dac-quiz-progress-bar {
  background: #c4874f;
}

.dac-quiz-container[data-theme="spa"] .dac-quiz-question-counter {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #b09070;
  font-family: Georgia, serif;
}

.dac-quiz-container[data-theme="spa"] .dac-quiz-question-text {
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  color: #3a2e22;
  line-height: 1.5;
}

.dac-quiz-container[data-theme="spa"] .dac-quiz-question-notes {
  color: #7a6a56;
}

.dac-quiz-container[data-theme="spa"] .dac-quiz-option {
  background: #fdf9f4;
  border: 1px solid #d9ccbc;
  border-radius: 8px;
  transition:
    background 0.18s,
    border-color 0.18s;
}

.dac-quiz-container[data-theme="spa"] .dac-quiz-option:hover {
  border-color: #c4874f;
  background: #fef4ea;
}

.dac-quiz-container[data-theme="spa"] .dac-quiz-option.selected {
  border-color: #c4874f;
  background: #fef4ea;
  border-width: 1px;
}

.dac-quiz-container[data-theme="spa"] .dac-quiz-option-label {
  border: 1.5px solid #c4874f;
  border-radius: 50%;
  color: #c4874f;
  background: transparent;
  font-family: Georgia, serif;
}

.dac-quiz-container[data-theme="spa"] .dac-quiz-option-text {
  color: #3a2e22;
  font-size: 16px;
}

.dac-quiz-container[data-theme="spa"] .dac-quiz-nav-btn {
  background: #c4874f;
  border-radius: 6px;
  width: auto;
  height: auto;
  padding: 10px 22px;
  font-size: 14px;
  font-family: Georgia, serif;
}

.dac-quiz-container[data-theme="spa"] .dac-quiz-nav-btn.btn-prev {
  background: transparent;
  border: 1px solid #c4874f;
  color: #c4874f;
}

.dac-quiz-container[data-theme="spa"] .dac-quiz-start-btn,
.dac-quiz-container[data-theme="spa"] .dac-quiz-completion-btn {
  background: #c4874f;
  border-radius: 6px;
  font-family: Georgia, serif;
  letter-spacing: 0.03em;
}

.dac-quiz-container[data-theme="spa"] .dac-quiz-header h2,
.dac-quiz-container[data-theme="spa"] .dac-quiz-completion h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  color: #3a2e22;
}

.dac-quiz-container[data-theme="spa"] .dac-quiz-name-input {
  border-color: #d9ccbc;
  border-radius: 6px;
  background: #fdf9f4;
}

.dac-quiz-container[data-theme="spa"] .dac-quiz-name-input:focus {
  border-color: #c4874f;
}

/* ── Theme: Bold Dark ────────────────────────────────────── */
.dac-quiz-container[data-theme="bold-dark"] {
  background: #0f1117;
  border-radius: 12px;
  color: #f0f0f5;
}

.dac-quiz-container[data-theme="bold-dark"] .dac-quiz-progress-wrapper {
  height: 2px;
  background: #23263a;
  border-radius: 0;
}

.dac-quiz-container[data-theme="bold-dark"] .dac-quiz-progress-bar {
  background: linear-gradient(90deg, #5b6af5, #9b5de5);
  border-radius: 0;
}

.dac-quiz-container[data-theme="bold-dark"] .dac-quiz-question-counter {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #5b6af5;
  font-weight: 700;
}

.dac-quiz-container[data-theme="bold-dark"] .dac-quiz-question-text {
  font-size: 28px;
  font-weight: 700;
  color: #f0f0f5;
  line-height: 1.3;
}

.dac-quiz-container[data-theme="bold-dark"] .dac-quiz-question-notes {
  color: #a0a0b0;
}

.dac-quiz-container[data-theme="bold-dark"] .dac-quiz-options {
  grid-template-columns: 1fr 1fr;
}

.dac-quiz-container[data-theme="bold-dark"] .dac-quiz-option {
  background: #161923;
  border: 1px solid #2a2d42;
  border-radius: 10px;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px;
  transition:
    border-color 0.18s,
    background 0.18s;
}

.dac-quiz-container[data-theme="bold-dark"] .dac-quiz-option:hover {
  border-color: #5b6af5;
  background: #1c1f32;
}

.dac-quiz-container[data-theme="bold-dark"] .dac-quiz-option.selected {
  border-color: #5b6af5;
  background: #1c1f32;
  box-shadow: 0 0 0 1px #5b6af5;
  border-width: 1px;
}

.dac-quiz-container[data-theme="bold-dark"] .dac-quiz-option-label {
  background: transparent;
  border: none;
  color: #5b6af5;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  border-radius: 0;
}

.dac-quiz-container[data-theme="bold-dark"] .dac-quiz-option-text {
  color: #c8cbee;
  font-size: 14px;
  padding: 0;
}

.dac-quiz-container[data-theme="bold-dark"] .dac-quiz-nav-btn {
  background: #5b6af5;
  border-radius: 8px;
}

.dac-quiz-container[data-theme="bold-dark"] .dac-quiz-nav-btn.btn-prev {
  background: #23263a;
}

.dac-quiz-container[data-theme="bold-dark"] .dac-quiz-start-btn,
.dac-quiz-container[data-theme="bold-dark"] .dac-quiz-completion-btn {
  background: #5b6af5;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.dac-quiz-container[data-theme="bold-dark"] .dac-quiz-header h2,
.dac-quiz-container[data-theme="bold-dark"] .dac-quiz-completion h2 {
  color: #f0f0f5;
}

.dac-quiz-container[data-theme="bold-dark"] .dac-quiz-start .welcome-message,
.dac-quiz-container[data-theme="bold-dark"] .dac-quiz-completion p {
  color: #7a7d9c;
}

.dac-quiz-container[data-theme="bold-dark"] .dac-quiz-name-input {
  background: #161923;
  border-color: #2a2d42;
  color: #f0f0f5;
  border-radius: 8px;
}

.dac-quiz-container[data-theme="bold-dark"] .dac-quiz-name-input:focus {
  border-color: #5b6af5;
}

.dac-quiz-container[data-theme="bold-dark"] .dac-quiz-name-input::placeholder {
  color: #4a4d6a;
}

.dac-quiz-container[data-theme="bold-dark"] .dac-quiz-error-message {
  color: #ff6b7a;
}

@media (max-width: 480px) {
  .dac-quiz-container[data-theme="bold-dark"] .dac-quiz-options {
    grid-template-columns: 1fr;
  }
}

/* ── Theme: Clinical Clean ───────────────────────────────── */
.dac-quiz-container[data-theme="clinical"] {
  background: #f7f9fc;
  border-radius: 12px;
  font-family: -apple-system, "Segoe UI", sans-serif;
}

.dac-quiz-container[data-theme="clinical"] .dac-quiz-progress-wrapper {
  height: 4px;
  background: #d0dcf0;
  border-radius: 2px;
}

.dac-quiz-container[data-theme="clinical"] .dac-quiz-progress-bar {
  background: #1e6ceb;
  border-radius: 2px;
}

.dac-quiz-container[data-theme="clinical"] .dac-quiz-question-counter {
  font-size: 12px;
  color: #8499b8;
  letter-spacing: 0.5px;
}

.dac-quiz-container[data-theme="clinical"] .dac-quiz-question-text {
  font-size: 22px;
  font-weight: 600;
  color: #12244a;
  line-height: 1.5;
}

.dac-quiz-container[data-theme="clinical"] .dac-quiz-question-notes {
  color: #4a6080;
}

.dac-quiz-container[data-theme="clinical"] .dac-quiz-option {
  background: #fff;
  border: 1px solid #d8e3f4;
  border-radius: 8px;
  transition: border-color 0.15s;
}

.dac-quiz-container[data-theme="clinical"] .dac-quiz-option:hover {
  border-color: #1e6ceb;
  background: #fff;
}

.dac-quiz-container[data-theme="clinical"] .dac-quiz-option.selected {
  border-color: #1e6ceb;
  background: #eef4ff;
  border-width: 1px;
}

.dac-quiz-container[data-theme="clinical"] .dac-quiz-option-label {
  border: 1.5px solid #b8c8e4;
  border-radius: 4px;
  color: #1e6ceb;
  background: transparent;
  font-size: 11px;
}

.dac-quiz-container[data-theme="clinical"]
  .dac-quiz-option.selected
  .dac-quiz-option-label {
  background: #1e6ceb;
  border-color: #1e6ceb;
  color: #fff;
}

.dac-quiz-container[data-theme="clinical"] .dac-quiz-option-text {
  color: #12244a;
  font-size: 15px;
}

.dac-quiz-container[data-theme="clinical"] .dac-quiz-nav-btn {
  background: #1e6ceb;
  border-radius: 8px;
}

.dac-quiz-container[data-theme="clinical"] .dac-quiz-nav-btn.btn-prev {
  background: #eef4ff;
  color: #1e6ceb;
}

.dac-quiz-container[data-theme="clinical"] .dac-quiz-start-btn,
.dac-quiz-container[data-theme="clinical"] .dac-quiz-completion-btn {
  background: #1e6ceb;
  border-radius: 8px;
}

.dac-quiz-container[data-theme="clinical"] .dac-quiz-header h2,
.dac-quiz-container[data-theme="clinical"] .dac-quiz-completion h2 {
  color: #12244a;
}

.dac-quiz-container[data-theme="clinical"] .dac-quiz-name-input {
  border-color: #d8e3f4;
  border-radius: 8px;
  background: #fff;
  color: #12244a;
}

.dac-quiz-container[data-theme="clinical"] .dac-quiz-name-input:focus {
  border-color: #1e6ceb;
}

/* ── Theme: Playful Cards ────────────────────────────────── */
.dac-quiz-container[data-theme="playful"] {
  background: #fffbf5;
  border-radius: 16px;
}

.dac-quiz-container[data-theme="playful"] .dac-quiz-progress-wrapper {
  height: 6px;
  background: #f0e8d8;
  border-radius: 4px;
}

.dac-quiz-container[data-theme="playful"] .dac-quiz-progress-bar {
  background: #ff7a45;
  border-radius: 4px;
}

.dac-quiz-container[data-theme="playful"] .dac-quiz-question-counter {
  display: inline-block;
  background: #ffe4b5;
  color: #a05a00;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.dac-quiz-container[data-theme="playful"] .dac-quiz-question-text {
  font-size: 26px;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.3;
}

.dac-quiz-container[data-theme="playful"] .dac-quiz-question-notes {
  color: #555;
}

.dac-quiz-container[data-theme="playful"] .dac-quiz-options {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.dac-quiz-container[data-theme="playful"] .dac-quiz-option {
  border-radius: 14px;
  border: 2.5px solid transparent;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px;
}

.dac-quiz-container[data-theme="playful"] .dac-quiz-option:nth-child(1) {
  background: #fff0f3;
  color: #9b1b3a;
}
.dac-quiz-container[data-theme="playful"] .dac-quiz-option:nth-child(2) {
  background: #f0f7ff;
  color: #1a4e8a;
}
.dac-quiz-container[data-theme="playful"] .dac-quiz-option:nth-child(3) {
  background: #f0fff4;
  color: #1a6b3a;
}
.dac-quiz-container[data-theme="playful"] .dac-quiz-option:nth-child(4) {
  background: #fff9e6;
  color: #8a5a00;
}
.dac-quiz-container[data-theme="playful"] .dac-quiz-option:nth-child(5) {
  background: #f5f0ff;
  color: #4a1b8a;
}
.dac-quiz-container[data-theme="playful"] .dac-quiz-option:nth-child(6) {
  background: #fff0f9;
  color: #8a1b5a;
}

.dac-quiz-container[data-theme="playful"] .dac-quiz-option:nth-child(1):hover,
.dac-quiz-container[data-theme="playful"]
  .dac-quiz-option:nth-child(1).selected {
  border-color: #e85070;
}
.dac-quiz-container[data-theme="playful"] .dac-quiz-option:nth-child(2):hover,
.dac-quiz-container[data-theme="playful"]
  .dac-quiz-option:nth-child(2).selected {
  border-color: #2a70cc;
}
.dac-quiz-container[data-theme="playful"] .dac-quiz-option:nth-child(3):hover,
.dac-quiz-container[data-theme="playful"]
  .dac-quiz-option:nth-child(3).selected {
  border-color: #2a9a55;
}
.dac-quiz-container[data-theme="playful"] .dac-quiz-option:nth-child(4):hover,
.dac-quiz-container[data-theme="playful"]
  .dac-quiz-option:nth-child(4).selected {
  border-color: #cc8a00;
}
.dac-quiz-container[data-theme="playful"] .dac-quiz-option:nth-child(5):hover,
.dac-quiz-container[data-theme="playful"]
  .dac-quiz-option:nth-child(5).selected {
  border-color: #6a3acc;
}
.dac-quiz-container[data-theme="playful"] .dac-quiz-option:nth-child(6):hover,
.dac-quiz-container[data-theme="playful"]
  .dac-quiz-option:nth-child(6).selected {
  border-color: #cc3a8a;
}

.dac-quiz-container[data-theme="playful"] .dac-quiz-option-label {
  display: none;
}

.dac-quiz-container[data-theme="playful"] .dac-quiz-option-text {
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.dac-quiz-container[data-theme="playful"] .dac-quiz-nav-btn {
  background: #1a1a1a;
  border-radius: 40px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.dac-quiz-container[data-theme="playful"] .dac-quiz-nav-btn.btn-prev {
  background: transparent;
  border: 2px solid #1a1a1a;
  color: #1a1a1a;
}

.dac-quiz-container[data-theme="playful"] .dac-quiz-start-btn,
.dac-quiz-container[data-theme="playful"] .dac-quiz-completion-btn {
  background: #1a1a1a;
  border-radius: 40px;
  font-weight: 700;
}

.dac-quiz-container[data-theme="playful"] .dac-quiz-name-input {
  border-color: #f0e8d8;
  border-radius: 10px;
}

.dac-quiz-container[data-theme="playful"] .dac-quiz-name-input:focus {
  border-color: #ff7a45;
}

@media (max-width: 480px) {
  .dac-quiz-container[data-theme="playful"] .dac-quiz-options {
    grid-template-columns: 1fr;
  }
}

/* ── Theme: Editorial Split ──────────────────────────────── */

/*
  Layout: CSS Grid on the container itself.
  Left column (40%): .dac-quiz-header — dark panel, shows title + step counter
  Right column (60%): all .dac-quiz-section and .dac-quiz-question elements

  The .dac-quiz-header is normally empty/hidden in other themes.
  For editorial we populate it with .dac-quiz-title and .dac-quiz-header-counter via JS.
*/

.dac-quiz-container[data-theme="editorial"] {
  background: transparent;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 40% 60%;
  padding: 0;
  overflow: hidden;
  align-items: stretch;
}

/* ── Left dark panel: header ── */
.dac-quiz-container[data-theme="editorial"] .dac-quiz-header {
  grid-column: 1;
  grid-row: 1;
  background: #1c1c1c;
  padding: 40px 28px 32px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  align-self: stretch;
}

/* Yellow accent line at top of left panel */
.dac-quiz-container[data-theme="editorial"] .dac-quiz-header::before {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  background: #f5c842;
  margin-bottom: 20px;
  flex-shrink: 0;
}

/* Quiz title in the dark left panel */
.dac-quiz-container[data-theme="editorial"] .dac-quiz-title {
  font-size: 20px;
  font-weight: 700;
  color: #f5f5f5;
  line-height: 1.5;
  margin: 0;
}

/* Large step number at the bottom of the left panel */
.dac-quiz-header-counter {
  /* hidden by default in all other themes */
  display: none;
}
.dac-quiz-container[data-theme="editorial"] .dac-quiz-header-counter {
  display: block;
  font-size: 64px;
  font-weight: 900;
  color: #2d2d2d;
  line-height: 1;
  font-family: Georgia, serif;
  margin-top: auto;
  padding-top: 24px;
}

/* Hide the inline question counter — left panel handles it */
.dac-quiz-container[data-theme="editorial"] .dac-quiz-question-counter {
  display: none;
}

/* Hide progress bar — editorial uses the step number instead */
.dac-quiz-container[data-theme="editorial"] .dac-quiz-progress-wrapper {
  display: none;
}

/* ── Right white panel: all sections ── */
/* Hidden sections stay hidden — only override display on active ones */
.dac-quiz-container[data-theme="editorial"] .dac-quiz-section,
.dac-quiz-container[data-theme="editorial"] .dac-quiz-question {
  grid-column: 2;
  background: #fff;
  padding: 40px 36px;
  color: #1c1c1c;
}

.dac-quiz-container[data-theme="editorial"] .dac-quiz-section.active,
.dac-quiz-container[data-theme="editorial"] .dac-quiz-question.active {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
}

/* Start section specifics */
.dac-quiz-container[data-theme="editorial"] .dac-quiz-start {
  grid-column: 2;
  text-align: left;
}

.dac-quiz-container[data-theme="editorial"] .dac-quiz-start.active {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
}

.dac-quiz-container[data-theme="editorial"] .dac-quiz-start .welcome-message,
.dac-quiz-container[data-theme="editorial"] .dac-quiz-start .welcome-message * {
  color: #333 !important;
  font-size: 16px;
  line-height: 1.7;
}

/* Completion section */
.dac-quiz-container[data-theme="editorial"] .dac-quiz-completion {
  grid-column: 2;
  background: #fff;
  color: #1c1c1c;
  text-align: left;
}

.dac-quiz-container[data-theme="editorial"] .dac-quiz-completion.active {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
}

.dac-quiz-container[data-theme="editorial"] .dac-quiz-completion h2 {
  color: #1c1c1c;
  font-size: 24px;
  font-weight: 700;
}

.dac-quiz-container[data-theme="editorial"] .dac-quiz-completion p {
  color: #444;
}

/* ── Question text label ── */
.dac-quiz-container[data-theme="editorial"] .dac-quiz-question-text {
  font-size: 13px;
  font-weight: 700;
  color: #1c1c1c;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  line-height: 1.5;
}

.dac-quiz-container[data-theme="editorial"] .dac-quiz-question-notes {
  color: #666;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
}

/* ── Options: underline style, no card boxes ── */
.dac-quiz-container[data-theme="editorial"] .dac-quiz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  background: transparent;
  border: none;
  border-bottom: 1px solid #ebebeb;
  border-radius: 0;
  padding: 14px 0;
  transition: none;
  cursor: pointer;
}

.dac-quiz-container[data-theme="editorial"] .dac-quiz-option:last-child {
  border-bottom: none;
}

.dac-quiz-container[data-theme="editorial"] .dac-quiz-option:hover {
  background: transparent;
}

/* The letter label becomes a horizontal dash */
.dac-quiz-container[data-theme="editorial"] .dac-quiz-option-label {
  width: 16px;
  height: 2px;
  background: #ddd;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
  font-size: 0;
  color: transparent;
  flex-shrink: 0;
  transition:
    background 0.2s,
    width 0.2s;
}

.dac-quiz-container[data-theme="editorial"]
  .dac-quiz-option:hover
  .dac-quiz-option-label,
.dac-quiz-container[data-theme="editorial"]
  .dac-quiz-option.selected
  .dac-quiz-option-label {
  background: #f5c842;
  width: 24px;
}

.dac-quiz-container[data-theme="editorial"] .dac-quiz-option-text {
  font-size: 15px;
  color: #1c1c1c;
  padding: 0;
  letter-spacing: 0.02em;
}

/* ── Navigation ── */
.dac-quiz-container[data-theme="editorial"] .dac-quiz-nav {
  margin-top: 32px;
  justify-content: flex-end;
}

.dac-quiz-container[data-theme="editorial"] .dac-quiz-nav-btn {
  background: #1c1c1c;
  border-radius: 0;
  width: auto;
  height: auto;
  padding: 12px 24px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
}

.dac-quiz-container[data-theme="editorial"] .dac-quiz-nav-btn.btn-prev {
  background: transparent;
  color: #1c1c1c;
  border: 1px solid #1c1c1c;
}

.dac-quiz-container[data-theme="editorial"] .dac-quiz-nav-btn svg {
  display: none;
}

.dac-quiz-container[data-theme="editorial"] .dac-quiz-nav-btn.btn-next::after {
  content: "CONTINUE";
}

.dac-quiz-container[data-theme="editorial"] .dac-quiz-nav-btn.btn-prev::before {
  content: "BACK";
}

/* ── Start / Completion buttons ── */
.dac-quiz-container[data-theme="editorial"] .dac-quiz-start-btn,
.dac-quiz-container[data-theme="editorial"] .dac-quiz-completion-btn {
  background: #1c1c1c;
  border-radius: 0;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 12px;
  padding: 14px 32px;
}

/* ── Name input ── */
.dac-quiz-container[data-theme="editorial"] .dac-quiz-name-input {
  border-color: #e0e0e0;
  border-radius: 0;
  border-width: 0 0 1px 0;
  background: transparent;
  padding-left: 0;
  padding-right: 0;
  color: #1c1c1c;
}

.dac-quiz-container[data-theme="editorial"] .dac-quiz-name-input:focus {
  border-color: #f5c842;
}

.dac-quiz-container[data-theme="editorial"] .dac-quiz-name-input::placeholder {
  color: #999;
}

/* ── Image overrides ── */
.dac-quiz-container[data-theme="editorial"] .dac-quiz-section-image {
  border-radius: 0;
}

/* ── Responsive: stack on mobile ── */
@media (max-width: 600px) {
  .dac-quiz-container[data-theme="editorial"] {
    grid-template-columns: 1fr;
  }
  .dac-quiz-container[data-theme="editorial"] .dac-quiz-header {
    grid-row: 1;
    min-height: auto;
    padding: 24px 20px 20px;
  }
  .dac-quiz-container[data-theme="editorial"] .dac-quiz-header-counter {
    font-size: 40px;
    padding-top: 16px;
  }
  .dac-quiz-container[data-theme="editorial"] .dac-quiz-section,
  .dac-quiz-container[data-theme="editorial"] .dac-quiz-question {
    grid-column: 1;
    padding: 24px 20px;
  }
}

/* ── Scored quiz inline result block ── */
.dac-quiz-score-result {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  text-align: left;
  line-height: 1.6;
}

/* Sensible typography resets so merchant HTML renders cleanly inside the embed */
.dac-quiz-score-result h1,
.dac-quiz-score-result h2,
.dac-quiz-score-result h3,
.dac-quiz-score-result h4 {
  margin: 0 0 10px;
  line-height: 1.25;
}
.dac-quiz-score-result p {
  margin: 0 0 12px;
}
.dac-quiz-score-result ul,
.dac-quiz-score-result ol {
  margin: 0 0 12px;
  padding-left: 1.4em;
}
.dac-quiz-score-result li {
  margin-bottom: 4px;
}
.dac-quiz-score-result a {
  color: inherit;
  text-decoration: underline;
}
.dac-quiz-score-result strong {
  font-weight: 700;
}
.dac-quiz-score-result em {
  font-style: italic;
}

/* Theme: classic */
.dac-quiz-container[data-theme="classic"] .dac-quiz-score-result {
  border-top-color: rgba(0, 0, 0, 0.1);
}

/* Theme: editorial */
.dac-quiz-container[data-theme="editorial"] .dac-quiz-score-result {
  border-top-color: rgba(255, 255, 255, 0.2);
}

/* ── Start screen disclaimer / fine print ── */
.dac-quiz-disclaimer {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.5;
  color: #888;
  text-align: center;
}
.dac-quiz-disclaimer a {
  color: inherit;
  text-decoration: underline;
}
.dac-quiz-disclaimer p {
  margin: 0 0 6px;
}
.dac-quiz-disclaimer p:last-child {
  margin-bottom: 0;
}
/* Slightly lighter on dark/editorial theme */
.dac-quiz-container[data-theme="editorial"] .dac-quiz-disclaimer {
  color: rgba(255, 255, 255, 0.5);
}

/* ── Quiz loading state ─────────────────────────────────────────────────────
   Shown while quiz data is being fetched. Replaced by quiz content on render.
   ─────────────────────────────────────────────────────────────────────────── */
.dac-quiz-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  min-height: 220px;
  gap: 0;
}

/* ── Branded loading orb ── */
.dac-quiz-loading-orb {
  position: relative;
  width: 72px;
  height: 72px;
  margin-bottom: 28px;
}

.dac-quiz-loading-orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #9f2b68;
  border-right-color: #b98d46;
  animation: dacOrbSpin 1.4s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

.dac-quiz-loading-orb-core {
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #b98d46, #9f2b68);
  animation: dacOrbPulse 1.4s ease-in-out infinite;
  opacity: 0.85;
}

@keyframes dacOrbSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dacOrbPulse {
  0%,
  100% {
    transform: scale(0.85);
    opacity: 0.7;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}

.dac-quiz-loading-title {
  font-size: 1em;
  font-weight: 600;
  color: #321748;
  margin: 0 0 8px;
  line-height: 1.4;
}

.dac-quiz-loading-subtitle {
  font-size: 0.85em;
  color: #9f2b68;
  margin: 0;
  transition: opacity 0.3s ease;
  letter-spacing: 0.02em;
}

/* Three-dot pulsing spinner — kept for backward compat if any theme uses it */
.dac-quiz-loading-spinner {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dac-quiz-loading-spinner span {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c09a5a;
  animation: dac-loading-bounce 1.2s ease-in-out infinite;
}

.dac-quiz-loading-spinner span:nth-child(1) {
  animation-delay: 0s;
}
.dac-quiz-loading-spinner span:nth-child(2) {
  animation-delay: 0.2s;
}
.dac-quiz-loading-spinner span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dac-loading-bounce {
  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.4;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ── Analyzing screen ──────────────────────────────────────────────────────── */

.dac-quiz-analyzing {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  min-height: 280px;
  animation: dacQuizFadeIn 0.4s ease;
}

.dac-quiz-analyzing.active {
  display: flex;
}

.dac-quiz-analyzing-orb {
  position: relative;
  width: 90px;
  height: 90px;
  margin-bottom: 32px;
}

.dac-quiz-analyzing-core {
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #b98d46, #9f2b68);
  animation: dacOrbPulse 1.6s ease-in-out infinite;
}

.dac-quiz-analyzing-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
}

.dac-quiz-analyzing-ring--1 {
  inset: 0;
  border-top-color: #9f2b68;
  border-right-color: rgba(159, 43, 104, 0.3);
  animation: dacOrbSpin 1.6s linear infinite;
}

.dac-quiz-analyzing-ring--2 {
  inset: 8px;
  border-top-color: #b98d46;
  border-left-color: rgba(185, 141, 70, 0.3);
  animation: dacOrbSpin 2.2s linear infinite reverse;
}

.dac-quiz-analyzing-ring--3 {
  inset: 16px;
  border-bottom-color: rgba(159, 43, 104, 0.5);
  border-right-color: rgba(185, 141, 70, 0.5);
  animation: dacOrbSpin 3s linear infinite;
}

.dac-quiz-analyzing-headline {
  font-size: 1.25em;
  font-weight: 700;
  color: #321748;
  margin: 0 0 12px;
  line-height: 1.3;
}

.dac-quiz-analyzing-sub {
  font-size: 0.9em;
  color: #9f2b68;
  margin: 0;
  transition: opacity 0.25s ease;
  letter-spacing: 0.02em;
}

/* ── Results Loading Screen ───────────────────────────────────────────────── */

.dac-quiz-rls {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 48px 24px 40px;
  animation: dacQuizFadeIn 0.4s ease;
}

.dac-quiz-rls.active {
  display: flex;
}

/* Dynamic-quiz results-loading cover — reuses the standard RLS styles but
   fills the dynamic-quiz screen area and centers vertically. */
.dac-dq-rls {
  flex: 1;
  min-height: 300px;
  justify-content: center;
}
.dac-dq-rls.active {
  display: flex;
}

/* "Please wait" reassurance + dots — hidden until checkmarks finish */
.dac-dq-rls-wait-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 8px;
  opacity: 0;
  transition: opacity 0.5s ease;
  will-change: opacity;
}
.dac-dq-rls-wait-wrap.visible {
  opacity: 1;
}
.dac-dq-rls-wait {
  font-size: 0.9em;
  color: #6d7175;
  margin: 0 0 16px;
  text-align: center;
  transition: opacity 0.4s ease;
}
.dac-dq-rls-wait-wrap .dac-dq-loading-dots {
  justify-content: center;
  margin-bottom: 0;
}

/* Optional image (replaces orb when set) */
.dac-quiz-rls-image-wrap {
  margin-bottom: 28px;
}

.dac-quiz-rls-image {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
}

/* Default animated orb (mirrors analyzing screen style) */
.dac-quiz-rls-orb {
  position: relative;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dac-quiz-rls-orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #b98d46;
  border-right-color: rgba(185, 141, 70, 0.3);
  animation: dacOrbSpin 2s linear infinite;
}

.dac-quiz-rls-orb-core {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.dac-quiz-rls-orb-core svg {
  display: block;
}

.dac-quiz-rls-orb-spin {
  display: inline-block;
  animation: dacRlsHourglassSpin 2s linear infinite;
}

@keyframes dacRlsHourglassSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Swap to CSS circle checkmark when animation completes */
.dac-quiz-rls-orb-done {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid #b98d46;
  display: flex !important; /* override theme div:empty { display:none } */
  align-items: center;
  justify-content: center;
  font-size: 0;
  animation: dacRlsCheckPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.dac-quiz-rls-orb-done span {
  display: none; /* hide the &nbsp; placeholder used to prevent :empty hiding */
}

.dac-quiz-rls-orb-done::after {
  content: "";
  display: block;
  width: 10px;
  height: 18px;
  border-right: 3px solid #b98d46;
  border-bottom: 3px solid #b98d46;
  transform: rotate(45deg) translate(-2px, -2px);
}

@keyframes dacRlsCheckPop {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Headline — passes through rich text HTML */
.dac-quiz-rls-headline {
  font-size: 1.3em;
  font-weight: 700;
  color: #321748;
  margin: 0 0 10px;
  line-height: 1.3;
}

.dac-quiz-rls-headline h1,
.dac-quiz-rls-headline h2,
.dac-quiz-rls-headline h3 {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

/* Sub-headline — rich text */
.dac-quiz-rls-sub {
  font-size: 0.9em;
  color: #6d7175;
  margin: 0 0 28px;
  max-width: 340px;
  line-height: 1.5;
}

.dac-quiz-rls-sub p {
  margin: 0;
}

/* Checkmark list */
.dac-quiz-rls-checks {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  width: 100%;
  max-width: 320px;
  text-align: left;
}

.dac-quiz-rls-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9em;
  color: #321748;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  will-change: opacity, transform;
}

.dac-quiz-rls-check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #b98d46;
  color: #fff;
  font-size: 0.8em;
  font-weight: 700;
  flex-shrink: 0;
}

/* CTA button */
.dac-quiz-rls-btn {
  display: inline-block;
  background: #321748;
  color: #fff;
  border: none;
  border-radius: 40px;
  padding: 14px 32px;
  font-size: 1em;
  font-weight: 700;
  cursor: pointer;
  transition:
    opacity 0.5s ease,
    background 0.2s ease;
  margin-top: 4px;
}

.dac-quiz-rls-btn:hover {
  background: #4a2068;
}

/* dac-quiz-rls-btn--hidden removed — cta-wrap handles visibility */

/* ── Result tease screen ──────────────────────────────────────────────────── */

.dac-quiz-tease {
  padding: 32px 20px 28px;
  text-align: center;
  animation: dacQuizFadeIn 0.5s ease;
}

.dac-quiz-tease-badge {
  display: inline-block;
  background: linear-gradient(135deg, #9f2b68, #b98d46);
  color: #fff;
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.dac-quiz-tease-headline {
  font-size: 1.35em;
  font-weight: 700;
  color: #321748;
  line-height: 1.35;
  margin: 0 0 14px;
}

@media (max-width: 480px) {
  .dac-quiz-tease-headline {
    font-size: 1.15em;
  }
}

.dac-quiz-tease-body {
  font-size: 0.92em;
  color: #555;
  line-height: 1.65;
  margin: 0 0 24px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

/* Blurred "preview" block that hints at content behind the gate */
.dac-quiz-tease-blur-wrap {
  position: relative;
  border: 2px solid #f0e6ed;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 0;
}

.dac-quiz-tease-blurred {
  height: 80px;
  background: repeating-linear-gradient(
    0deg,
    #f7f0f5 0px,
    #f7f0f5 12px,
    #ede0ea 12px,
    #ede0ea 14px
  );
  filter: blur(4px);
  opacity: 0.7;
}

.dac-quiz-tease-gate {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.92) 35%
  );
  padding: 12px 16px;
  gap: 12px;
}

.dac-quiz-tease-gate-text {
  font-size: 0.82em;
  color: #444;
  margin: 0;
  line-height: 1.4;
}

.dac-quiz-tease-gate-btn {
  background: linear-gradient(135deg, #9f2b68, #7d2254);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px 22px;
  font-size: 0.92em;
  font-weight: 700;
  cursor: pointer;
  transition:
    opacity 0.15s,
    transform 0.1s;
  white-space: nowrap;
}

.dac-quiz-tease-gate-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ── Advisor message banner (Option C) ──────────────────────────────────── */
.dac-dq-question-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* ── Dynamic Quiz Engine styles (.dac-dq-*) ─────────────────────────────────── */
.dac-dq-wrap {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 40px 24px 28px;
  font-family: inherit;
  box-sizing: border-box;
}
.dac-dq-wrap .dac-quiz-header-image-wrap {
  margin: -40px -24px 20px;
  width: calc(100% + 48px);
}
.dac-dq-screen {
  display: none;
  flex-direction: column;
  flex: 1;
  animation: dacDqFade 0.22s ease both;
  min-height: 300px;
}
.dac-dq-screen.active {
  display: flex;
}
@keyframes dacDqFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.dac-dq-opening-q,
.dac-dq-question {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.4;
  margin: 0 0 20px;
  text-align: center;
}
@media (max-width: 480px) {
  .dac-dq-opening-q,
  .dac-dq-question {
    font-size: 18px;
  }
}
.dac-dq-message {
  font-size: 17px;
  color: #6d7175;
  font-style: italic;
  margin: 0 0 10px;
  line-height: 1.5;
}
.dac-dq-counter {
  font-size: 12px;
  color: #aaa;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.dac-dq-chips,
.dac-dq-confirm-chips {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.dac-dq-chip,
.dac-dq-confirm-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  background: #fff;
  border: 2px solid #e1e3e5;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 500;
  color: #1a1a2e;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s,
    transform 0.1s;
  line-height: 1.4;
  box-sizing: border-box;
}
.dac-dq-chip-label {
  flex: 1;
}
.dac-dq-chip-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #e1e3e5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: transparent;
  background: #fff;
  flex-shrink: 0;
  transition: all 0.15s;
  order: -1;
}
.dac-dq-chip.selected .dac-dq-chip-check {
  border-color: #9f2b68;
  background: #9f2b68;
  color: #fff;
}
.dac-dq-confirm-chip {
  text-align: center;
}
span.persona-name {
  color: #e28db4;
  font-size: 38px;
}
.dac-dq-chip:hover,
.dac-dq-confirm-chip:hover {
  border-color: #9f2b68;
  background: #fdf4f8;
}
.dac-dq-chip:hover {
  transform: translateX(3px);
}
.dac-dq-chip.selected,
.dac-dq-confirm-chip.selected {
  border-color: #9f2b68;
  background: #fdf4f8;
  color: #9f2b68;
  font-weight: 700;
}
@media (max-width: 480px) {
  .dac-dq-chip,
  .dac-dq-confirm-chip {
    font-size: 16px;
    padding: 13px 16px;
  }
}
.dac-dq-text-wrap {
  margin-top: 4px;
  margin-bottom: 16px;
}
.dac-dq-text-input {
  width: 100%;
  min-height: 64px;
  padding: 12px 14px;
  border: 2px solid #e1e3e5;
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  color: #1a1a2e;
  resize: vertical;
  transition: border-color 0.15s;
  box-sizing: border-box;
  line-height: 1.5;
}
.dac-dq-text-input:focus {
  outline: none;
  border-color: #9f2b68;
}
.dac-dq-text-input::placeholder {
  color: #aaa;
  font-style: italic;
}
.dac-dq-submit {
  display: block;
  width: 100%;
  padding: 15px 20px;
  background: #9f2b68;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  margin-top: auto;
  transition:
    background 0.15s,
    transform 0.1s,
    opacity 0.15s;
  text-transform: none;
  letter-spacing: normal;
}
.dac-dq-submit:hover:not(:disabled) {
  background: #7d2254;
  transform: translateY(-1px);
}
.dac-dq-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.dac-dq-loading {
  flex: 1;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  text-align: center;
  animation: dacDqFade 0.22s ease both;
}
.dac-dq-loading.active {
  display: flex;
}
.dac-dq-loading-analyzing {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
  opacity: 0.9;
}
.dac-dq-loading-dots {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}
.dac-dq-loading-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #9f2b68;
  animation: dacDqDot 1.2s ease-in-out infinite;
}
.dac-dq-loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.dac-dq-loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes dacDqDot {
  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.4;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}
.dac-dq-loading-fact {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  max-width: 380px;
  min-height: 60px;
  transition: opacity 0.4s ease;
  font-style: italic;
  text-align: center;
}
.dac-dq-advisor-msg {
  margin-bottom: 20px;
  min-height: 0;
}
.dac-dq-fact-attr {
  display: block;
  font-size: 12px;
  font-style: normal;
  color: #aaa;
  margin-top: 8px;
  letter-spacing: 0.03em;
}

.dac-dq-confirm-text {
  font-size: 20px;
  color: #1a1a2e;
  line-height: 1.55;
  margin: 0 0 24px;
  text-align: center;
  font-style: italic;
}
@media (max-width: 480px) {
  .dac-dq-confirm-text {
    font-size: 15px;
  }
}
.dac-dq-result-heading {
  font-size: 15px;
  font-weight: 700;
  color: #9f2b68;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 16px;
  text-align: center;
}
.dac-dq-product-card {
  display: flex;
  flex-direction: column;
  border: 2px solid #f0e6ed;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
}
.dac-dq-product-body {
  padding: 16px;
}
.dac-dq-product-title {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 8px;
}
.dac-dq-product-explanation {
  font-size: 14px;
  color: #444;
  line-height: 1.6;
  margin: 0 0 14px;
}
.dac-dq-shop-btn {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background: #9f2b68;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.15s,
    transform 0.1s;
  box-sizing: border-box;
}
.dac-dq-shop-btn:hover {
  background: #7d2254;
  transform: translateY(-1px);
}
.dac-dq-secondary-card {
  border: 1px solid #e1e3e5;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
}
.dac-dq-secondary-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 4px;
}
.dac-dq-secondary-expl {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin: 0 0 8px;
}
.dac-dq-secondary-link {
  font-size: 13px;
  color: #9f2b68;
  font-weight: 600;
  text-decoration: none;
}
.dac-dq-secondary-link:hover {
  text-decoration: underline;
}
.dac-dq-email-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #f0e6ed;
}
.dac-dq-email-ask {
  font-size: 14px;
  color: #444;
  line-height: 1.6;
  margin: 0 0 14px;
  text-align: center;
}
.dac-dq-email-row {
  display: flex;
  gap: 10px;
}
.dac-dq-email-input {
  flex: 1;
  padding: 12px 14px;
  border: 2px solid #e1e3e5;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.dac-dq-email-input:focus {
  outline: none;
  border-color: #9f2b68;
}
.dac-dq-email-btn {
  padding: 12px 18px;
  background: #9f2b68;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.dac-dq-email-btn:hover {
  background: #7d2254;
}
.dac-dq-email-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.dac-dq-email-success {
  font-size: 14px;
  color: #2d8a4e;
  text-align: center;
  padding: 10px;
  background: #f0fdf4;
  border-radius: 8px;
  font-weight: 600;
}
.dac-dq-email-err {
  font-size: 13px;
  color: #c0392b;
  margin-top: 6px;
}
.dac-dq-nomatch {
  text-align: center;
  padding: 20px;
}
.dac-dq-nomatch p {
  font-size: 15px;
  color: #444;
  line-height: 1.6;
  margin: 0 0 16px;
}
.dac-dq-nomatch a {
  color: #9f2b68;
  font-weight: 600;
}
.dac-dq-error {
  font-size: 14px;
  color: #c0392b;
  background: #fdf0ee;
  border: 1px solid #f5c6c0;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 14px;
  text-align: center;
  display: none;
}
.dac-dq-error.vis {
  display: block;
}
.dac-dq-gate {
  display: none;
  flex-direction: column;
  flex: 1;
  animation: dacDqFade 0.22s ease both;
}
.dac-dq-gate.active {
  display: flex;
  text-align: center;
  align-items: center;
}
.dac-dq-gate-label {
  font-size: 14px;
  font-weight: 500;
  color: #adadad;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin: 15px 0;
}
.dac-dq-gate-headline {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.3;
  margin: 0 0 8px;
}
.dac-dq-gate-sub {
  font-size: 19px;
  color: #adadad;
  line-height: 1.6;
  margin: 0 0 18px;
}
.dac-dq-gate-tease {
  background: #f9f6fb;
  border: 1px solid #f0e6ed;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
  width: fit-content;
  box-sizing: border-box;
  position: relative;
}
.dac-dq-gate-tease-label {
  font-size: 14px;
  font-weight: 500;
  color: #9f2b68;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.dac-dq-gate-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 12px;
}
.dac-dq-gate-chip-symptom {
  font-size: 17px;
  padding: 3px 9px;
  border-radius: 20px;
  background: #fde8ee;
  color: #9f2b68;
  border: 1px solid #f5c6d8;
}
.dac-dq-gate-benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: fit-content;
  margin-inline: auto;
}
.dac-dq-gate-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.dac-dq-gate-blur-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e8d5f0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #9f2b68;
  font-weight: 700;
  margin-top: 2px;
}
.dac-dq-gate-blur-text {
  font-size: 18px;
  color: #321748;
  line-height: 1.4;
}
.dac-dq-gate-email-label {
  font-size: 22px;
  font-weight: 700;
  color: #333333;
  margin: 19px 0 4px;
}
.dac-dq-gate-email-sub {
  font-size: 19px;
  color: #adadad;
  line-height: 1.5;
  margin: 0 0 12px;
}
.dac-dq-gate-input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e1e3e5;
  border-radius: 10px;
  font-size: 18px;
  font-family: inherit;
  color: #1a1a2e;
  transition: border-color 0.15s;
  max-width: 500px;
  box-sizing: border-box;
  margin-bottom: 10px;
  margin-inline: auto;
}
.dac-dq-gate-input:focus {
  outline: none;
  border-color: #9f2b68;
}
.dac-dq-gate-btn {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background: #9f2b68;
  color: #fff;
  max-width: 500px;
  border: none;
  border-radius: 10px;
  font-size: 19px;
  font-weight: 700;
  margin-inline: auto;
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.1s,
    opacity 0.15s;
  text-transform: uppercase;
  letter-spacing: normal;
  font-family: inherit;
}
.dac-dq-gate-btn:hover:not(:disabled) {
  background: #7d2254;
  transform: translateY(-1px);
}
.dac-dq-gate-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.dac-dq-gate-trust {
  font-size: 15px;
  color: #aaa;
  text-align: center;
  margin-top: 10px;
}
.dac-dq-gate-err {
  font-size: 13px;
  color: #c0392b;
  margin-bottom: 8px;
  text-align: center;
}
.dac-dq-rich {
  display: none;
  flex-direction: column;
  flex: 1;
  animation: dacDqFade 0.22s ease both;
}
.dac-dq-rich.active {
  display: flex;
}
.dac-dq-rich-label {
  font-size: 16px;
  font-weight: 700;
  color: #adadad;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.dac-dq-rich-headline {
  font-size: 26px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 6px;
}
.dac-dq-rich-badge {
  display: none;
}
.dac-dq-rich-confidence {
  font-size: 13px;
  font-weight: 700;
  color: #9f2b68;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  padding-left: 2px;
}
.dac-dq-rich-section {
  border-top: 1px solid #f0e6ed;
  padding: 16px 0;
}
.dac-dq-rich-section-label {
  font-size: 16px;
  font-weight: 700;
  color: #adadad;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.dac-dq-rich-symptom-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 2px;
}
.dac-dq-rich-chip-red {
  font-size: 17px;
  padding: 4px 10px;
  border-radius: 20px;
  background: #fde8ee;
  color: #9f2b68;
  border: 1px solid #f5c6d8;
}
.dac-dq-rich-chip-amber {
  font-size: 17px;
  padding: 4px 10px;
  border-radius: 20px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}
.dac-dq-rich-narrative {
  font-size: 22px;
  color: #1a1a2e;
  line-height: 1.2;
  margin: 0 0 10px;
}
.dac-dq-rich-narrative-sub {
  font-size: 22px;
  color: #6d7175;
  line-height: 1.2;
  margin: 0;
}
.dac-dq-rich-review {
  background: #f9f6fb;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 4px;
  text-align: center;
}
.dac-dq-rich-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 8px;
  justify-content: center;
}
.dac-dq-rich-star {
  color: #e9a100;
  font-size: 22px;
}
.dac-dq-rich-quote {
  font-size: 19px;
  color: #1a1a2e;
  line-height: 1.3;
  font-style: italic;
  margin: 0 0 8px;
}
.dac-dq-rich-reviewer {
  font-size: 18px;
  color: #000000;
}
.dac-dq-rich-benefits-sub {
  font-size: 13px;
  color: #888;
  font-style: italic;
  margin: 0 0 14px;
}
.dac-dq-rich-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
}
.dac-dq-rich-benefit {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.dac-dq-rich-benefit-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #9f2b68;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 12px;
  color: #ffffff;
  font-weight: 700;
}
.dac-dq-rich-benefit-text {
  font-size: 21px;
  color: #1a1a2e;
  line-height: 1.2;
  margin: 0;
}
.dac-dq-rich-cta-label {
  font-size: 16px;
  font-weight: 700;
  color: #adadad;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.dac-dq-rich-cta-heading {
  font-size: 26px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 4px;
}
.dac-dq-rich-cta-sub {
  font-size: 22px;
  color: #adadad;
  line-height: 1.5;
  margin: 0 0 16px;
}
.dac-dq-rich-product-row {
  display: flex;
  gap: 27px;
  align-items: flex-start;
  margin-bottom: 14px;
}
/* ── Multi-product bundle card ─────────────────────────────────────────────── */
.dac-dq-rich-bundle-card {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 16px;
}
.dac-dq-rich-bundle-grid {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  justify-content: flex-start;
}
.dac-dq-rich-bundle-img {
  width: 165px;
  height: 165px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e1e3e5;
  background: #fff;
}
.dac-dq-rich-bundle-img-placeholder {
  width: 165px;
  height: 165px;
  border-radius: 10px;
  border: 1px solid #e1e3e5;
  background: #f1f2f3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.dac-dq-rich-bundle-info {
  text-align: left;
}
.dac-dq-rich-bundle-title {
  font-size: 22px;
  font-weight: 700;
  color: #321748;
  margin: 0 0 6px;
}
.dac-dq-rich-bundle-btn {
  margin-top: 14px;
}
.dac-dq-rich-product-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin: 20px 0;
}
.dac-dq-rich-review-inset {
  margin: 12px 0 0;
}
.dac-dq-rich-product-blurb {
  font-size: 22px;
  color: #444;
  line-height: 1.2;
  margin: 6px 0 0;
}
.dac-dq-rich-product-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dac-dq-rich-product-benefits {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dac-dq-rich-product-benefit {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 13px;
  color: #321748;
  line-height: 1.4;
}
.dac-dq-rich-product-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.dac-dq-rich-product-img {
  width: 200px;
  height: 200px;
  border-radius: 10px;
  border: 1px solid #f0e6ed;
  object-fit: cover;
  flex-shrink: 0;
}
.dac-dq-rich-product-img-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  border: 1px solid #f0e6ed;
  background: #f9f6fb;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 28px;
}
.dac-dq-rich-product-name {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 4px;
}
.dac-dq-rich-product-desc {
  font-size: 13px;
  color: #6d7175;
  line-height: 1.4;
  margin: 0 0 8px;
}
.dac-dq-rich-product-price {
  font-size: 19px;
  font-weight: 700;
  color: #1a1a2e;
}
.dac-dq-rich-shop-btn {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background: #9f2b68;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.15s,
    transform 0.1s;
  box-sizing: border-box;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: normal;
}
.dac-dq-rich-shop-btn:hover {
  background: #7d2254;
  transform: translateY(-1px);
}
.dac-dq-rich-trust {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 2px;
}
.dac-dq-rich-trust-item {
  font-size: 11px;
  color: #aaa;
}
