:root {
  --tbe-quiz-gold: #b8945c;
  --tbe-quiz-gold-hover: #c9a96e;
  --tbe-quiz-ink: #2e2820;
  --tbe-quiz-ink-muted: rgba(46, 40, 32, 0.45);
  --tbe-quiz-border: rgba(46, 40, 32, 0.12);
}

.tbe-quiz-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--tbe-quiz-border);
  box-shadow: 0 8px 48px rgba(46, 40, 32, 0.08), 0 2px 12px rgba(46, 40, 32, 0.05);
  padding: clamp(28px, 4vw, 48px);
  position: relative;
  box-sizing: border-box;
  width: 100%;
}

.tbe-quiz-corner-tl {
  position: absolute;
  top: 0; left: 0;
  width: 32px; height: 32px;
  border-top: 1px solid var(--tbe-quiz-gold);
  border-left: 1px solid var(--tbe-quiz-gold);
  opacity: 0.7;
  pointer-events: none;
}

.tbe-quiz-corner-br {
  position: absolute;
  bottom: 0; right: 0;
  width: 32px; height: 32px;
  border-bottom: 1px solid var(--tbe-quiz-gold);
  border-right: 1px solid var(--tbe-quiz-gold);
  opacity: 0.7;
  pointer-events: none;
}

/* Progress Bar */
.tbe-quiz-header {
  margin-bottom: 32px;
}

.tbe-quiz-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.tbe-quiz-step-count {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--tbe-quiz-gold);
}

.tbe-quiz-step-percentage {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tbe-quiz-ink-muted);
}

.tbe-quiz-progress-track {
  height: 3px;
  background: rgba(46, 40, 32, 0.10);
  position: relative;
  overflow: visible;
  border-radius: 2px;
}

.tbe-quiz-progress-fill {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(184,148,92,0.6), var(--tbe-quiz-gold));
  transition: width 0.65s cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 2px;
}

.tbe-quiz-pulse-dot {
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tbe-quiz-gold);
  box-shadow: 0 0 6px 2px rgba(184,148,92,0.4);
  animation: quizPulseDot 1.6s ease-in-out infinite;
}

@keyframes quizPulseDot {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px 2px rgba(184,148,92,0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 10px 4px rgba(184,148,92,0.7); }
}

/* Question & Options */
.tbe-question-box {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.38s cubic-bezier(0.23, 1, 0.32, 1), transform 0.38s cubic-bezier(0.23, 1, 0.32, 1);
}

.tbe-question-box.fade-out {
  opacity: 0;
  transform: translateY(-12px);
}

.tbe-question-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.25;
  color: var(--tbe-quiz-ink);
  margin: 0 0 8px 0;
}

.tbe-question-hint {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--tbe-quiz-ink-muted);
  letter-spacing: 0.04em;
  margin: 0 0 28px 0;
}

.tbe-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Widget Scoped UL/LI Reset */
.tbe-quiz-card ul,
.tbe-quiz-card ol,
.tbe-quiz-card li,
.elementor-widget-find_your_edit_quiz_widget ul,
.elementor-widget-find_your_edit_quiz_widget ol,
.elementor-widget-find_your_edit_quiz_widget li,
.tbe-options-list,
.tbe-matched-products {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.tbe-option-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start !important;
  text-align: left !important;
  width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--tbe-quiz-border) !important;
  background: rgba(255, 255, 255, 0.6) !important;
  color: rgba(46, 40, 32, 0.70) !important;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  line-height: 1.4 !important;
  letter-spacing: 0.02em;
  cursor: pointer;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
  box-sizing: border-box;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
}

.tbe-option-btn span {
  display: block;
  text-align: left !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  flex: 1 1 auto;
  min-width: 0;
}

.tbe-option-btn:hover {
  border-color: rgba(46, 40, 32, 0.20) !important;
  background: rgba(46, 40, 32, 0.04) !important;
  color: var(--tbe-quiz-ink) !important;
}

.tbe-option-btn.selected {
  border-color: var(--tbe-quiz-gold) !important;
  background: rgba(184, 148, 92, 0.08) !important;
  color: var(--tbe-quiz-gold) !important;
}

.tbe-quiz-disclaimer {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(46, 40, 32, 0.25);
  text-align: center;
  margin-top: 32px;
}

/* Results Screen */
.tbe-results-box {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1), transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.tbe-results-box.visible {
  opacity: 1;
  transform: translateY(0);
}

.tbe-matched-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--tbe-quiz-gold);
  margin-bottom: 14px;
}

.tbe-matched-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  color: var(--tbe-quiz-ink);
  margin: 0 0 12px 0;
}

.tbe-matched-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--tbe-quiz-ink-muted);
  line-height: 1.65;
  margin-bottom: 28px;
}

.tbe-quiz-hairline {
  height: 1px;
  background: rgba(46, 40, 32, 0.10);
  margin-bottom: 28px;
}

.tbe-matched-products {
  display: flex;
  flex-direction: column;
}

.tbe-product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid rgba(46, 40, 32, 0.10);
  text-decoration: none;
  transition: background 0.15s ease;
}

.tbe-product-row:hover .tbe-p-name {
  color: var(--tbe-quiz-gold);
}

.tbe-p-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--tbe-quiz-ink);
  margin: 0 0 2px 0;
  transition: color 0.18s ease;
}

.tbe-p-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: var(--tbe-quiz-ink-muted);
  letter-spacing: 0.04em;
  margin: 0;
}

.tbe-p-price {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  color: var(--tbe-quiz-gold-hover);
  margin: 0;
  text-align: right;
}

.tbe-p-view {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  color: rgba(46, 40, 32, 0.35);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0;
  text-align: right;
}

.tbe-quiz-actions-row {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.tbe-quiz-cta-btn {
  flex: 1;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 18px 24px;
  background: var(--tbe-quiz-gold);
  color: var(--tbe-quiz-ink);
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: background 0.2s ease;
  min-width: 140px;
  box-sizing: border-box;
}

.tbe-quiz-cta-btn:hover {
  background: var(--tbe-quiz-gold-hover);
}

.tbe-quiz-retake-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 18px 20px;
  background: transparent;
  color: var(--tbe-quiz-ink-muted);
  border: 1px solid rgba(46, 40, 32, 0.20);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  box-sizing: border-box;
}

.tbe-quiz-retake-btn:hover {
  border-color: var(--tbe-quiz-ink-muted);
  color: var(--tbe-quiz-ink);
}
