body { background-color: #f8faff; }
.quiz-section { padding: 160px 0 100px; min-height: 100vh; display: flex; flex-direction: column; align-items: center; }
.quiz-header { text-align: center; margin-bottom: 40px; }
.quiz-header h1 { font-size: 2.5rem; color: var(--dark); margin-bottom: 15px; }
.quiz-header h1 span { color: var(--primary); }
.quiz-header p { color: var(--gray); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.quiz-container {
  width: 100%; max-width: 750px; background: white; border-radius: 24px;
  box-shadow: 0 15px 50px rgba(0,0,0,0.06); padding: 50px; position: relative;
}

/* Progress */
.progress-wrapper { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.progress-bar { flex: 1; height: 8px; background: #e2e8f0; border-radius: 4px; margin: 0 20px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--secondary)); width: 25%; transition: width 0.5s ease; border-radius: 4px; }
.progress-text { font-weight: 600; color: var(--gray); font-size: 0.9rem; }

/* Steps */
.quiz-step { display: none; animation: slideUp 0.5s ease forwards; }
.quiz-step.active { display: block; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.quiz-question { font-size: 1.6rem; font-weight: 700; color: var(--dark); margin-bottom: 30px; text-align: center; }

/* Options Grid */
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.quiz-option {
  border: 2px solid #e2e8f0; border-radius: 16px; padding: 25px 20px; text-align: center;
  cursor: pointer; transition: all 0.3s ease; position: relative; overflow: hidden;
}
.quiz-option i { font-size: 2.5rem; color: #94a3b8; margin-bottom: 15px; transition: all 0.3s ease; }
.quiz-option span { display: block; font-weight: 600; color: var(--dark); font-size: 1.1rem; }

.quiz-option:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,102,204,0.1); }
.quiz-option:hover i { color: var(--primary); }

.quiz-option.selected { border-color: var(--primary); background: rgba(0,102,204,0.05); }
.quiz-option.selected i { color: var(--primary); }
.quiz-option.selected::after {
  content: '\f058'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  position: absolute; top: 15px; right: 15px; color: var(--primary); font-size: 1.2rem;
}

/* Actions */
.quiz-actions { margin-top: 40px; display: flex; justify-content: space-between; align-items: center; }
.quiz-actions .btn { padding: 12px 30px; font-size: 1rem; border-radius: 50px; }
.btn-back { background: transparent; border: 2px solid #e2e8f0; color: var(--gray); font-weight: 600; }
.btn-back:hover { background: #f8fafc; color: var(--dark); border-color: #cbd5e1; }

/* Loading state */
.loading-state { text-align: center; padding: 60px 0; display: none; }
.spinner { width: 60px; height: 60px; border: 5px solid #e2e8f0; border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 20px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-state h3 { color: var(--dark); font-size: 1.5rem; }

/* Results */
#results { display: none; }
.result-intro { text-align: center; margin-bottom: 40px; }
.result-intro h2 { font-size: 2rem; color: var(--dark); margin-bottom: 10px; }
.result-intro p { color: var(--gray); font-size: 1.1rem; }

.match-card {
  display: flex; background: white; border: 1px solid #e2e8f0; border-radius: 16px;
  overflow: hidden; margin-bottom: 20px; transition: all 0.3s ease; align-items: center;
}
.match-card:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); border-color: var(--primary); }
.match-img { width: 140px; height: 140px; object-fit: cover; }
.match-content { padding: 20px; flex: 1; }
.match-badge { background: #10b981; color: white; padding: 4px 12px; border-radius: 50px; font-size: 0.8rem; font-weight: 700; display: inline-block; margin-bottom: 8px; }
.match-card h3 { font-size: 1.3rem; margin-bottom: 5px; color: var(--dark); }
.match-card p { color: var(--gray); font-size: 0.95rem; margin-bottom: 10px; line-height: 1.5; }
.match-tags span { background: #f1f5f9; color: #475569; font-size: 0.8rem; padding: 4px 10px; border-radius: 4px; margin-right: 5px; font-weight: 500; }
.match-action { padding: 0 25px; }

@media (max-width: 768px) {
  .quiz-container { padding: 30px 20px; border-radius: 16px; }
  .quiz-options { grid-template-columns: 1fr; }
  .quiz-option { padding: 15px; display: flex; align-items: center; text-align: left; gap: 15px; }
  .quiz-option i { margin-bottom: 0; font-size: 1.8rem; width: 40px; text-align: center; }
  .match-card { flex-direction: column; align-items: stretch; text-align: center; }
  .match-img { width: 100%; height: 160px; }
  .match-action { padding: 20px; border-top: 1px solid #e2e8f0; }
  .match-action .btn { width: 100%; }
}
