/* Quiz container with neutral background */
#quiz-app {
  max-width: 600px;
  margin: 30px auto;
  font-family: Arial, sans-serif;
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

/* Progress bar */
#quiz-progress {
  width: 100%;
  background: #e0e0e0; /* lighter neutral for modern look */
  height: 10px;
  border-radius: 5px;
  margin-bottom: 20px;
  overflow: hidden;
}
#quiz-progress-bar {
  height: 100%;
  width: 0%;
  background: #4a90e2; /* professional blue accent */
  border-radius: 5px;
  transition: width 0.3s ease;
}

/* Step styling */
.quiz-step {
  text-align: center;
  opacity: 0;
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  transition: all 0.5s ease;
  transform: translateX(50px);
}
.quiz-step.active {
  opacity: 1;
  position: relative;
  transform: translateX(0);
}

/* Step number */
.quiz-step-number {
  font-size: 0.9em;
  color: #666; /* subtle gray */
  margin-bottom: 10px;
}

/* Step heading */
.quiz-step h2 {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: #222;
}

/* Tooltip / helper text */
.quiz-tooltip {
  display: block;
  font-size: 0.85em;
  color: #555;
  margin-bottom: 15px;
  background: #f4f4f4;
  padding: 6px 10px;
  border-radius: 6px;
  border-left: 4px solid #4a90e2;
  text-align: left;
}

/* Option buttons */
.quiz-option {
  display: block;
  background: linear-gradient(90deg, #4a90e2, #357ABD);
  color: #fff;
  border: none;
  padding: 15px 20px;
  margin: 10px auto;
  font-size: 1em;
  border-radius: 8px;
  cursor: pointer;
  width: 80%;
  max-width: 400px;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  text-align: center;
}
.quiz-option:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(53,123,189,0.5);
  background: linear-gradient(90deg, #357ABD, #2A5C8C);
}

/* Form input styling */
#quiz-form input[type="text"],
#quiz-form input[type="email"],
#quiz-form input[type="tel"] {
  width: 80%;
  max-width: 400px;
  padding: 12px 15px;
  margin: 10px auto;
  display: block;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
  transition: border-color 0.3s, box-shadow 0.3s;
}
#quiz-form input[type="text"]:focus,
#quiz-form input[type="email"]:focus,
#quiz-form input[type="tel"]:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 10px rgba(74,144,226,0.2);
}

/* Submit button */
#quiz-form button[type="submit"] {
  background: linear-gradient(90deg, #28a745, #1c7c3b);
  color: #fff;
  border: none;
  padding: 15px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}
#quiz-form button[type="submit"]:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(28,124,59,0.5);
  background: linear-gradient(90deg, #1c7c3b, #14572a);
}

/* Thank you message */
#quiz-thankyou {
  text-align: center;
  padding: 40px 20px;
}
#quiz-thankyou h2 { color: #4a90e2; font-size: 1.8em; margin-bottom: 15px; }
#quiz-thankyou p { font-size: 1.1em; color: #555; }

/* Confetti animation */
.confetti-container { position: fixed; top: 0; left: 0; width: 100%; height: 0; pointer-events: none; overflow: visible; z-index: 9999; }
.confetti { position: absolute; width: 10px; height: 10px; opacity: 0.8; top: -10px; animation-name: fall; animation-timing-function: linear; }
@keyframes fall { 0% { transform: translateY(0) rotate(0deg); } 100% { transform: translateY(600px) rotate(360deg); } }

/* Responsive */
@media (max-width: 650px) {
  #quiz-app { padding: 20px; }
  .quiz-option, #quiz-form input[type="text"], #quiz-form input[type="email"], #quiz-form input[type="tel"] { width: 90%; }
}
