/* Quarantined in the `legacy` cascade layer: aura.css (tokens, type,
   components) wins over everything here regardless of selector weight.
   New work goes in aura.css, not this file. */
@layer legacy {
/* =============================================================================
   FILE: public/css/quiz.css
   Scent Profile Quiz (ScentQuiz.js). Mobile-first. Warm-cream palette.
   ============================================================================= */

.ae-quiz-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 24, 18, 0.72);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ae-quiz-overlay.ae-quiz-visible  { opacity: 1; }
.ae-quiz-overlay.ae-quiz-fade-out { opacity: 0; pointer-events: none; }

.ae-quiz-modal {
  background: #FAF7F2;
  width: 100%;
  max-width: 520px;
  border-radius: 20px 20px 0 0;
  padding: 0 0 env(safe-area-inset-bottom, 16px);
  transform: translateY(40px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  max-height: 92dvh;
  overflow-y: auto;
}
.ae-quiz-overlay.ae-quiz-visible .ae-quiz-modal { transform: translateY(0); }

@media (min-width: 640px) {
  .ae-quiz-overlay { align-items: center; }
  .ae-quiz-modal   {
    border-radius: 16px;
    max-height: 88vh;
    transform: translateY(20px) scale(0.97);
  }
  .ae-quiz-overlay.ae-quiz-visible .ae-quiz-modal { transform: translateY(0) scale(1); }
}

.ae-quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 12px;
}
.ae-quiz-brand {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8B7355;
}
.ae-quiz-step-label { font-size: 12px; color: #9e9182; }

.ae-quiz-progress-track {
  height: 3px;
  background: #EDE8E1;
  margin: 0 24px;
  border-radius: 2px;
  overflow: hidden;
}
.ae-quiz-progress-bar {
  height: 100%;
  background: #C8956C;
  border-radius: 2px;
  transition: width 0.4s ease;
}

.ae-quiz-body { padding: 24px 24px 8px; }
.ae-quiz-heading {
  font-size: 18px;
  font-weight: 600;
  color: #2C2416;
  line-height: 1.4;
  margin: 0 0 6px;
}
.ae-quiz-sub { font-size: 13px; color: #8B7355; margin: 0 0 18px; }

.ae-quiz-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
}
.ae-quiz-option {
  flex: 1 1 calc(50% - 5px);
  min-width: 120px;
  min-height: 44px;
  padding: 12px 14px;
  border: 1.5px solid #DDD5C8;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  color: #3D3427;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.ae-quiz-option:hover   { border-color: #C8956C; background: #FDF5EE; }
.ae-quiz-option.selected{ border-color: #C8956C; background: #FDF5EE; color: #7A4F2A; font-weight: 600; }
.ae-quiz-option:active  { transform: scale(0.98); }

.ae-quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  gap: 12px;
}
.ae-quiz-back,
.ae-quiz-skip {
  background: none;
  border: none;
  font-size: 14px;
  color: #9e9182;
  cursor: pointer;
  padding: 10px 4px;
  min-height: 44px;
}
.ae-quiz-back:hover, .ae-quiz-skip:hover { color: #5C4A33; }

.ae-quiz-next {
  background: #2C2416;
  color: #FAF7F2;
  border: none;
  border-radius: 10px;
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  transition: background 0.15s, transform 0.1s;
}
.ae-quiz-next:hover:not(.disabled)  { background: #C8956C; }
.ae-quiz-next:active:not(.disabled) { transform: scale(0.98); }
.ae-quiz-next.disabled { background: #C8BDB3; cursor: not-allowed; }

.ae-quiz-complete { text-align: center; padding: 8px 0 16px; }
.ae-quiz-check    { font-size: 36px; color: #C8956C; margin-bottom: 12px; }
.ae-quiz-complete h3 { font-size: 20px; font-weight: 700; color: #2C2416; margin: 0 0 8px; }
.ae-quiz-complete p  { font-size: 14px; color: #6B5C48; margin: 0 0 20px; }

.ae-quiz-pro-callout {
  background: #F0EBE3;
  border-radius: 12px;
  padding: 16px;
  font-size: 13px;
  color: #4A3C2C;
  margin: 0 0 20px;
  text-align: left;
}
.ae-quiz-pro-callout strong { display: block; margin-bottom: 4px; }
.ae-quiz-pro-cta {
  display: inline-block;
  margin-top: 10px;
  background: #C8956C;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.ae-quiz-loading {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 40px 0;
}
.ae-quiz-loading span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #C8956C;
  animation: ae-dot-pulse 1.2s ease-in-out infinite;
}
.ae-quiz-loading span:nth-child(2) { animation-delay: 0.2s; }
.ae-quiz-loading span:nth-child(3) { animation-delay: 0.4s; }

@keyframes ae-dot-pulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.9); }
  40%           { opacity: 1;   transform: scale(1.1); }
}
}
