/* Choose Program Page Specific Styles */

.program-selector-page {
  padding: 120px 0 80px; /* Adjust for fixed header */
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f2ff 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
/* ✨ Help Me Choose Button (Shiny Yellow) */
.nav-cta-yellow {
  background: #fbb016;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 30px;
  padding: 12px 28px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(251, 176, 22, 0.4);
  text-decoration: none;
  display: inline-block;
}

.nav-cta-yellow:hover,
.nav-cta-yellow.active {
  background: #d8920f;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(251, 176, 22, 0.5);
}

.quiz-container {
  background: white;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  padding: 3rem;
  max-width: 800px;
  width: 100%;
  margin-top: 2rem;
  position: relative;
  overflow: hidden; /* For question transitions */
}

.quiz-progress {
  width: 100%;
  height: 10px;
  background-color: #e0e0e0;
  border-radius: 5px;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
  border-radius: 5px;
  transition: width 0.5s ease-out;
}

.progress-text {
  position: absolute;
  top: -25px;
  right: 0;
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

.quiz-question {
  display: none;
  animation: fadeIn 0.6s ease-out forwards;
  padding-bottom: 1rem; /* Space for navigation buttons */
}

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

.quiz-question h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 2rem;
  text-align: center;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.option-card {
  display: block;
  cursor: pointer;
  background: #f8f9fa;
  border: 2px solid #e0e0e0;
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.option-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-color: #2575fc;
}

.option-card input[type="radio"],
.option-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-card input:checked + .option-content {
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
  border-color: transparent; /* Hide border when checked */
}

.option-card input:checked + .option-content .option-icon {
  color: white; /* Ensure icon color changes */
  -webkit-text-fill-color: white;
}

.option-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  height: 100%;
  width: 100%;
  border-radius: 12px; /* Inner border radius */
  transition: all 0.3s ease;
  padding: 0.5rem; /* Inner padding */
}

.option-icon {
  font-size: 2.5rem;
  color: #2575fc;
  transition: all 0.3s ease;
}

.option-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
  transition: color 0.3s ease;
}

.option-card p {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.option-card input:checked + .option-content h3,
.option-card input:checked + .option-content p {
  color: white;
}

/* Checkbox specific styles */
.checkbox-grid .option-card input[type="checkbox"]:checked + .option-content::after {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.5rem;
  color: white;
  background-color: #7ed321;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: popIn 0.3s ease-out;
}

.quiz-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

.quiz-navigation .btn-primary,
.quiz-navigation .btn-secondary {
  padding: 0.85rem 1.8rem;
  font-size: 1rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.quiz-navigation .btn-primary {
  background: linear-gradient(135deg, #2575fc 0%, #6a11cb 100%);
  color: white;
}

.quiz-navigation .btn-primary:hover {
  background: linear-gradient(135deg, #1a5ed8 0%, #5a0fb0 100%);
}

.quiz-navigation .btn-secondary {
  background: #f0f4ff;
  color: #2575fc;
  border: 2px solid #2575fc;
}

.quiz-navigation .btn-secondary:hover {
  background: #e0e8f5;
  color: #1a5ed8;
}

/* Result Section */
.quiz-result {
  text-align: center;
  animation: fadeIn 0.6s ease-out forwards;
}

.quiz-result h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #1a1a1a;
  background: linear-gradient(135deg, #7ed321, #a8e063);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.recommendation-card {
  background: linear-gradient(135deg, #e6ffe6 0%, #f0fff0 100%);
  border: 2px solid #7ed321;
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  animation: popIn 0.5s ease-out;
}

.recommendation-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: bounce 2s infinite;
}

.recommendation-card h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.recommendation-card p {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.6;
  max-width: 500px;
  margin-bottom: 1.5rem;
}

.book-now-btn {
  margin-top: 1rem;
  background: linear-gradient(135deg, #7ed321 0%, #a8e063 100%) !important;
  box-shadow: 0 8px 25px rgba(126, 211, 33, 0.3) !important;
}

.book-now-btn:hover {
  background: linear-gradient(135deg, #6bb01a 0%, #90c750 100%) !important;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

@keyframes popIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-15px);
  }
  60% {
    transform: translateY(-7px);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .program-selector-page {
    padding: 100px 0 60px;
  }

  .quiz-container {
    padding: 2rem;
    margin-top: 1rem;
  }

  .quiz-question h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }

  .options-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .option-card {
    padding: 1rem;
  }

  .option-icon {
    font-size: 2rem;
  }

  .option-card h3 {
    font-size: 1rem;
  }

  .option-card p {
    font-size: 0.8rem;
  }

  .quiz-navigation {
    flex-direction: column;
    gap: 0.75rem;
  }

  .quiz-navigation button {
    width: 100%;
    justify-content: center;
  }

  .quiz-result h2 {
    font-size: 2rem;
  }

  .recommendation-card {
    padding: 2rem;
  }

  .recommendation-icon {
    font-size: 3rem;
  }

  .recommendation-card h3 {
    font-size: 1.5rem;
  }

  .recommendation-card p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .quiz-container {
    padding: 1.5rem;
  }

  .quiz-question h2 {
    font-size: 1.5rem;
  }

  .option-card {
    padding: 0.75rem;
  }

  .option-icon {
    font-size: 1.8rem;
  }

  .option-card h3 {
    font-size: 0.9rem;
  }

  .option-card p {
    font-size: 0.75rem;
  }
}
