/* ✅ Base fix for screen switching */
.quiz-screen {
  display: none;
  width: 100%;
}

.quiz-screen.active {
  display: block;
}

/* ✅ Center all intro/question screens */
#quiz-intro,
#quiz-question,
#quiz-results {
  max-width: 900px;
  margin: 0 auto;            /* Center horizontally */
  padding: 0 !important;     /* Remove large top padding that caused scroll */
}

/* ✅ Fix body background */
body {
  background-color: #FAF7F5;
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}

/* ✅ Prevent leftover intro showing behind questions */
#quiz-intro:not(.active),
#quiz-question:not(.active),
#quiz-results:not(.active) {
  display: none !important;
}

/* ✅ Fix answer buttons alignment */
.answer-btn {
  width: 100%;
  background: white;
  border: 2px solid #E8DDD5;
  border-radius: 16px;
  padding: 16px 20px;
  text-align: left;
  transition: all 0.3s ease;
}

.answer-btn:hover {
  border-color: #D4A5A5;
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.answer-btn.selected {
  border-color: #D4A5A5;
  background-color: #D4A5A5;
  color: white;
}

.answer-btn .dot {
  width: 14px;
  height: 14px;
  background: #D4A5A5;
  border-radius: 50%;
  display: none;
}

.answer-btn.selected .dot {
  display: block;
}

/* ✅ Progress bar */
.progress-fill {
  background-color: #D4A5A5;
  height: 100%;
  border-radius: 20px;
  transition: width 0.4s ease;
}

/* ✅ Center all illustrations */
.question-image,
.intro-image {
  margin-left: auto;
  margin-right: auto;
  display: block;
}

/* ✅ Next/Back buttons */
#next-btn,
.back-btn {
  border-radius: 50px;
  padding: 12px 28px;
  font-weight: 600;
  transition: all 0.3s ease;
}

#next-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

#next-btn:hover:not(:disabled) {
  transform: scale(1.05);
}

/* ✅ Result screen cards */
.action-card {
  transition: all 0.3s ease;
  border-radius: 20px;
}

.action-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 8px 20px rgba(0,0,0,0.15);
}

/* ✅ Fix scrolling inside quiz */
html, body {
  scroll-behavior: smooth;
}

/* ✅ Remove extra top margin caused by Tailwind container spacing */
#quiz-intro,
#quiz-question,
#quiz-results {
  margin-top: 20px !important;
}
