/* ============================================
   INTERACTIVE QUIZ
   ============================================ */

.quiz-card, .quiz-result {
  max-width: 600px;
  margin: 0 auto;
  padding: 2.5rem;
  border-radius: 1.5rem;
  position: relative;
}

.quiz-progress {
  height: 6px;
  background: rgba(136, 199, 138, 0.1);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-sage), #6FA871);
  border-radius: 9999px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.quiz-step {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(136, 199, 138, 0.1);
  color: var(--color-sage);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.quiz-question {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-graphite);
  line-height: 1.3;
  margin: 0;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: white;
  border: 2px solid rgba(136, 199, 138, 0.15);
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  width: 100%;
}

.quiz-option:hover {
  border-color: var(--color-sage);
  background: rgba(136, 199, 138, 0.05);
  transform: translateX(8px);
  box-shadow: 0 8px 20px rgba(136, 199, 138, 0.15);
}

.option-icon {
  width: 40px;
  height: 40px;
  background: rgba(136, 199, 138, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-sage);
  flex-shrink: 0;
  transition: all 0.3s;
}

.quiz-option:hover .option-icon {
  background: var(--color-sage);
  color: white;
  transform: scale(1.1);
}

.option-text {
  flex: 1;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-graphite);
}

.option-arrow {
  color: var(--color-sage);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s;
}

.quiz-option:hover .option-arrow {
  opacity: 1;
  transform: translateX(0);
}

.quiz-back {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 1px solid rgba(136, 199, 138, 0.2);
  border-radius: 0.75rem;
  color: var(--color-sage);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.quiz-back:hover {
  background: rgba(136, 199, 138, 0.1);
  border-color: var(--color-sage);
}

/* Quiz Result */
.quiz-result {
  text-align: center;
  animation: resultAppear 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.result-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  animation: iconBounce 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

@keyframes iconBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.result-title {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(46, 46, 46, 0.6);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.result-therapy {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-graphite);
  margin-bottom: 1rem;
}

.result-desc {
  font-size: 1.125rem;
  color: rgba(46, 46, 46, 0.7);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.result-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.quiz-restart {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 1px solid rgba(136, 199, 138, 0.2);
  border-radius: 0.75rem;
  color: var(--color-sage);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.quiz-restart:hover {
  background: rgba(136, 199, 138, 0.1);
  border-color: var(--color-sage);
  transform: translateY(-2px);
}

[data-theme="dark"] .quiz-option {
  background: #2a2a2a;
  border-color: rgba(136, 199, 138, 0.2);
}

[data-theme="dark"] .quiz-option:hover {
  background: rgba(136, 199, 138, 0.1);
}

[data-theme="dark"] .option-text {
  color: #f5f5f5;
}

[data-theme="dark"] .result-therapy {
  color: #f5f5f5;
}

[data-theme="dark"] .result-desc {
  color: rgba(245, 245, 245, 0.7);
}

@media (max-width: 768px) {
  .quiz-card, .quiz-result {
    padding: 1.5rem;
  }
  
  .quiz-question {
    font-size: 1.5rem;
  }
  
  .result-therapy {
    font-size: 2rem;
  }
  
  .result-actions {
    flex-direction: column;
  }
  
  .result-actions .btn {
    width: 100%;
  }
}
