.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.quiz-button {
    background: linear-gradient(135deg, #d0222a 0%, #b01e25 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quiz-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(208, 34, 42, 0.3);
}

.quiz-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.quiz-loading, .quiz-error {
    text-align: center;
    padding: 40px 20px;
    font-size: 18px;
}

.quiz-error {
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
}

.quiz-question-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 20px 0;
}

.quiz-progress {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.quiz-progress-bar {
    background: #e9ecef;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.quiz-progress-fill {
    background: linear-gradient(135deg, #d0222a 0%, #b01e25 100%);
    height: 100%;
    transition: width 0.3s ease;
}

.quiz-progress-text {
    text-align: center;
    font-weight: 600;
    color: #495057;
}

.quiz-question {
    padding: 30px;
}

.quiz-question h3 {
    font-size: 24px;
    color: #212529;
    margin-bottom: 25px;
    line-height: 1.4;
}

.quiz-options {
    margin: 25px 0 35px 0;
}

.quiz-option {
    display: block;
    margin: 15px 0;
    padding: 15px 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.quiz-option:hover {
    background: #ffe7e8;
    border-color: #d0222a;
}

.quiz-option input[type="radio"],
.quiz-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.quiz-option input[type="radio"]:checked + .quiz-option-text,
.quiz-option input[type="checkbox"]:checked + .quiz-option-text {
    color: #d0222a;
    font-weight: 600;
}

.quiz-option input[type="radio"]:checked,
.quiz-option input[type="checkbox"]:checked {
    background: #d0222a;
    border-color: #d0222a;
}

.quiz-option input[type="checkbox"]:checked + .quiz-option-text::before {
    content: "✓ ";
    color: #d0222a;
    font-weight: bold;
    margin-right: 5px;
}

.quiz-option-text {
    font-size: 16px;
    line-height: 1.5;
    display: block;
    color: #495057;
}

.quiz-instruction {
    text-align: center;
    font-size: 14px;
    color: #d0222a;
    font-weight: 600;
    margin: 15px 0 25px 0;
    font-style: italic;
}

.submit-answer-btn {
    display: block;
    margin: 0 auto;
    min-width: 180px;
}

/* Results Styles */
.quiz-results {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    text-align: center;
    margin: 20px 0;
}

.quiz-results-header h2 {
    color: #212529;
    margin-bottom: 30px;
    font-size: 32px;
}

.quiz-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #d0222a 0%, #b01e25 100%);
}

.score-percentage {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.score-details {
    text-align: left;
}

.score-fraction {
    font-size: 24px;
    font-weight: bold;
    color: #212529;
    margin-bottom: 5px;
}

.score-grade {
    font-size: 18px;
    font-weight: 600;
}

.grade-excellent .score-circle {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
}

.grade-excellent .score-grade {
    color: #00b894;
}

.grade-good .score-circle {
    background: linear-gradient(135deg, #0984e3 0%, #74b9ff 100%);
}

.grade-good .score-grade {
    color: #0984e3;
}

.grade-average .score-circle {
    background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
}

.grade-average .score-grade {
    color: #e17055;
}

.grade-fail .score-circle {
    background: linear-gradient(135deg, #e17055 0%, #d63031 100%);
}

.grade-fail .score-grade {
    color: #d63031;
}

.quiz-results-actions {
    margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .quiz-container {
        padding: 15px;
    }
    
    .quiz-question {
        padding: 20px;
    }
    
    .quiz-question h3 {
        font-size: 20px;
    }
    
    .quiz-score {
        flex-direction: column;
        gap: 20px;
    }
    
    .score-details {
        text-align: center;
    }
    
    .quiz-results {
        padding: 25px;
    }
    
    .quiz-results-header h2 {
        font-size: 24px;
    }
}

/* Quiz Container */
#quiz-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#quiz-content {
    padding: 20px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

/* Question Container */
.question-container {
    overflow-y: auto;
    padding: 20px;
    margin-bottom: 20px;
}

.question-text {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.6;
    color: #333;
    word-wrap: break-word;
    max-height: 150px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Results Container */
.results-container {
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 2px solid #d0222a;
}

/* Hide LearnPress complete button when quiz is in LearnPress mode */
.quiz-container[data-completion-mode="learnpress"] ~ form.learn-press-form .lp-btn-complete-item,
#quiz-container[data-completion-mode="learnpress"] ~ form.learn-press-form .lp-btn-complete-item,
form.learn-press-form .lp-btn-complete-item.quiz-hidden {
    display: none !important;
} 