/* Quiz Styles */
#quiz-section {
  padding: 60px 0;
  font-family: 'Inter', sans-serif;
}

#quiz-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hide main content initially */
#main-content.hidden {
  display: none;
  opacity: 0;
}

#main-content {
  animation: fadeIn 0.8s ease forwards;
}

.quiz-wrapper {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  width: 100%;
  padding: 30px;
  animation: fadeIn 0.5s ease;
}

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

.quiz-header {
  text-align: center;
  margin-bottom: 30px;
}

.quiz-title {
  font-size: 2rem;
  color: #c03d2f;
  font-weight: 800;
  margin-bottom: 12px;
}

.quiz-subtitle {
  font-size: 1rem;
  color: #666;
  line-height: 1.5;
  max-width: 500px;
  margin: 0 auto 20px;
}

.progress-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0f0f0;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}

.current-question {
  color: #c03d2f;
  font-size: 1.2rem;
}

.question-slide {
  display: none;
  animation: slideIn 0.4s ease;
}

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.question-title {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 25px;
  text-align: center;
  font-weight: 600;
}

.question-subtitle {
  text-align: center;
  color: #666;
  font-size: 0.95rem;
  margin-top: -20px;
  margin-bottom: 20px;
}

.options-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
}

.btn.option {
  background: white;
  border: 2px solid #e0e0e0;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #333;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.btn.option:hover {
  border-color: #c03d2f;
  background: #fff5f4;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(192, 61, 47, 0.1);
}

.btn.option.selected {
  background: #c03d2f;
  color: white;
  border-color: #c03d2f;
}

/* Checkbox Styles */
.form-check-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 400px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .form-check-container {
    grid-template-columns: 1fr;
  }
}

.form-check {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-check:hover {
  border-color: #c03d2f;
  background: #fff5f4;
}

.form-check-input {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  cursor: pointer;
  accent-color: #c03d2f;
}

.form-check-label {
  cursor: pointer;
  font-size: 1rem;
  color: #333;
  font-weight: 500;
  user-select: none;
}

/* Navigation Buttons */
.quiz-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  gap: 12px;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-prev {
  background: white;
  color: #666;
  border: 2px solid #e0e0e0;
}

.btn-prev:hover {
  background: #f8f8f8;
  border-color: #c03d2f;
  color: #c03d2f;
  transform: translateX(-3px);
}

.btn-next, .btn-calculate {
  background: #c03d2f;
  color: white;
  margin-left: auto;
}

.btn-next:hover, .btn-calculate:hover {
  background: #a03327;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(192, 61, 47, 0.3);
}

/* Loading Screen */
#loading-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.loading-wrapper {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  width: 100%;
  padding: 35px;
  text-align: center;
}

.loading-title {
  font-size: 1.6rem;
  color: #c03d2f;
  margin-bottom: 15px;
  font-weight: 700;
}

.loading-subtitle {
  font-size: 1rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 30px;
}

.progress-bar {
  background: #f0f0f0;
  height: 25px;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 15px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #c03d2f 0%, #e04d3f 100%);
  width: 0%;
  transition: width 0.5s ease;
  border-radius: 15px;
}

.time-remaining {
  font-size: 1rem;
  color: #666;
  margin-bottom: 30px;
}

#countdown {
  font-weight: 700;
  color: #c03d2f;
}

.loading-messages {
  margin-top: 20px;
}

.loading-message {
  display: none;
  font-size: 1rem;
  color: #333;
  font-style: italic;
}

.loading-message.active {
  display: block;
  animation: pulse 1s ease infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

/* Results Screen */
#results-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.results-wrapper {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  width: 100%;
  padding: 35px;
}

.results-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 768px) {
  .results-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.results-title {
  font-size: 2rem;
  color: #c03d2f;
  margin-bottom: 15px;
  font-weight: 800;
}

.results-description {
  font-size: 1.05rem;
  color: #333;
  line-height: 1.5;
  margin-bottom: 15px;
}

.results-bonus {
  font-size: 1rem;
  color: #666;
  margin-bottom: 15px;
}

.results-bonus strong {
  color: #c03d2f;
  font-weight: 700;
}

.results-benefits {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 20px;
}

.results-cta {
  font-size: 1rem;
  color: #333;
  font-weight: 600;
  margin-bottom: 15px;
}

.btn-results {
  background: #c03d2f;
  color: white;
  padding: 15px 30px;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 5px 15px rgba(192, 61, 47, 0.3);
}

.btn-results:hover {
  background: #a03327;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(192, 61, 47, 0.4);
}

.results-image img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .quiz-wrapper {
    padding: 20px 15px;
  }
  
  .quiz-title {
    font-size: 1.5rem;
  }
  
  .options-container {
    grid-template-columns: 1fr;
    max-width: 300px;
  }
  
  .loading-wrapper {
    padding: 25px;
  }
  
  .results-wrapper {
    padding: 25px;
  }
  
  .results-title {
    font-size: 1.5rem;
  }
}