/* Quiz Styles */
.quiz-container {
  padding: 24px 20px;
  padding-bottom: 8px;
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
}

.quiz-title {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  color: #111;
  line-height: 1.35;
}

.quiz-subtitle {
  font-size: 13px;
  color: #9ca3af;
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.4;
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.option {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.option:active {
  transform: scale(0.98);
}

.option.selected {
  border-color: #fe2c55;
  background-color: rgba(254, 44, 85, 0.04);
  box-shadow: 0 0 0 1px rgba(254, 44, 85, 0.1);
}

.option-content {
  display: flex;
  align-items: center;
  flex: 1;
}

.option-emoji {
  margin-right: 12px;
  min-width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
  transition: color 0.2s ease;
}

.option-emoji svg {
  width: 24px;
  height: 24px;
}

.option.selected .option-emoji {
  color: #fe2c55;
}

.option-text {
  font-size: 15px;
  color: #374151;
  line-height: 1.3;
}

.custom-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  flex-shrink: 0;
}

.option.selected .custom-checkbox {
  background-color: #fe2c55;
  border-color: #fe2c55;
}

.custom-checkbox::after {
  content: "";
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.15s;
}

.option.selected .custom-checkbox::after {
  opacity: 1;
}

.continue-btn {
  background-color: #fe2c55;
  color: white;
  border: none;
  padding: 14px;
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: block;
  transition: transform 0.2s ease, background-color 0.2s ease;
  margin: 0 auto;
}

.continue-btn:disabled {
  background-color: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
}

.continue-btn:not(:disabled):active {
  transform: scale(0.97);
  background-color: #e0264c;
}

/* Question number indicator */
.quiz-question-number {
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  text-align: center;
}

/* Quiz transition animations - fade only, no sliding to avoid jitter */
.quiz-container.quiz-exit {
  animation: quizFadeOut 0.15s ease-out forwards;
}

.quiz-container.quiz-enter {
  animation: quizFadeIn 0.25s ease forwards;
}

@keyframes quizFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes quizFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Options staggered entrance */
.quiz-enter .option {
  opacity: 0;
  animation: optionFadeIn 0.25s ease-out forwards;
}

.quiz-enter .option:nth-child(1) { animation-delay: 0.03s; }
.quiz-enter .option:nth-child(2) { animation-delay: 0.06s; }
.quiz-enter .option:nth-child(3) { animation-delay: 0.09s; }
.quiz-enter .option:nth-child(4) { animation-delay: 0.12s; }
.quiz-enter .option:nth-child(5) { animation-delay: 0.15s; }
.quiz-enter .option:nth-child(6) { animation-delay: 0.18s; }

@media (prefers-reduced-motion: reduce) {
  .quiz-container.quiz-exit,
  .quiz-container.quiz-enter,
  .quiz-enter .option {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

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