/* Quiz Styles */
.quiz-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
    text-align: center;
    color: white;
}

.quiz-hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.quiz-hero p {
    font-size: 20px;
    opacity: 0.9;
}

.quiz-section {
    padding: 60px 0;
    background: #f9fafb;
}

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

/* Progress Bar */
.quiz-progress {
    margin-bottom: 40px;
}

.progress-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.5s ease;
    width: 20%;
}

.progress-text {
    text-align: center;
    color: var(--gray);
    font-size: 14px;
}

/* Questions */
.quiz-question {
    display: none;
}

.quiz-question.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

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

/* Options */
.quiz-options {
    display: grid;
    gap: 15px;
    margin-bottom: 40px;
}

.quiz-option {
    display: block;
    cursor: pointer;
}

.quiz-option input[type="radio"] {
    display: none;
}

.option-content {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: white;
}

.option-content:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.quiz-option input[type="radio"]:checked + .option-content {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.option-content i {
    font-size: 24px;
    color: var(--primary);
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-content span {
    font-size: 18px;
    font-weight: 500;
    color: var(--dark);
}

/* Navigation */
.quiz-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.quiz-navigation .btn {
    min-width: 150px;
}

/* Results */
.quiz-results {
    animation: fadeIn 0.5s ease;
}

.quiz-results h2 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark);
}

.quiz-results .cards-grid {
    margin-bottom: 40px;
}

.quiz-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Match Score Badge */
.match-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .quiz-hero h1 {
        font-size: 32px;
    }
    
    .quiz-hero p {
        font-size: 18px;
    }
    
    .quiz-container {
        padding: 30px 20px;
    }
    
    .quiz-question h2 {
        font-size: 24px;
    }
    
    .option-content {
        padding: 15px 20px;
    }
    
    .option-content i {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .option-content span {
        font-size: 16px;
    }
    
    .quiz-navigation {
        flex-direction: column;
    }
    
    .quiz-navigation .btn {
        width: 100%;
    }
    
    .quiz-results h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .quiz-hero h1 {
        font-size: 28px;
    }
    
    .option-content {
        flex-direction: column;
        text-align: center;
    }
}