/* Quiz Container */
.quiz-container {
    max-width: 800px;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 50px auto;
}

/* Intro Screen */
.quiz-intro {
    text-align: center;
    padding: 40px 20px;
}

.quiz-intro-content {
    max-width: 600px;
    margin: 0 auto;
}

.quiz-intro-content h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
}

.quiz-intro-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    margin-bottom: 30px;
    border-radius: 8px;
}

.quiz-intro-text {
    font-size: 18px;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.6;
}

.quiz-intro-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.feature-icon {
    font-size: 32px;
}

.feature-item span:last-child {
    font-size: 14px;
    color: #666;
}

.quiz-start-btn {
    color: white;
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
    background: #170a2c !important;
    border-radius: 0 !important;
    padding: 20px 20px !important;
    color: white !important;
}

.quiz-start-btn:hover {
    background: #170a2c !important;
    border: none !important;
}

/* Progress Bar */
.quiz-progress {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 5px;
}

/* Question Container */
.quiz-question {
    margin-bottom: 30px;
    text-align: center;
}

.quiz-question-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

.quiz-question h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.quiz-question-prompt {
    font-size: 18px;
    color: #666;
    margin-bottom: 25px;
    font-weight: 500;
}

/* Answer Options */
.quiz-answers {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.quiz-answer-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 50px;
    border: 3px solid #ddd;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 150px;
    background: #fff;
}

.quiz-answer-option:hover {
    border-color: #170a2c;
    background: #f9f9f9;
    transform: translateY(-2px);
}

.quiz-answer-option input[type="radio"] {
    display: none;
}

.quiz-answer-option .answer-label {
    font-weight: bold;
    color: #333;
    font-size: 20px;
    text-align: center;
}

.quiz-answer-option input[type="radio"]:checked + .answer-label {
    color: #170a2c;
}

.quiz-answer-option:has(input[type="radio"]:checked) {
    border-color: #170a2c;
    background: #f0f8ff;
    transform: translateY(-2px);
}

.quiz-answer-option p {
    margin: 0;
    color: #333;
    line-height: 1.6;
    flex: 1;
}

/* Navigation Buttons */
.quiz-navigation {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.quiz-prev-btn,
.quiz-next-btn,
.quiz-show-form-btn {
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    background: #170a2c !important;
    border-radius: 0 !important;
    padding: 20px 20px !important;
    color: white !important;
}

.quiz-prev-btn {
    background: #666;
    color: white;
}

.quiz-prev-btn:hover {
    background: #555;
}

.quiz-next-btn,
.quiz-show-form-btn {
    background: #0073aa;
    color: white;
}

.quiz-next-btn:hover,
.quiz-show-form-btn:hover {
    background: #005a87;
}

/* Form Screen */
.quiz-form {
    padding: 20px;
}

.quiz-form h3 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

/* Results Screen */
.quiz-results {
    padding: 20px;
}

.quiz-results h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.quiz-score {
    text-align: center;
    padding: 30px;
    background: #f0f8ff;
    border-radius: 8px;
    margin-bottom: 40px;
}

.quiz-score p {
    font-size: 24px;
    margin: 0;
    color: #333;
}

.quiz-score strong {
    color: #0073aa;
    font-size: 32px;
}

/* Results List */
.quiz-results-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.result-item {
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid #ddd;
}

.result-item.correct {
    background: #d4edda;
    border-left-color: #28a745;
}

.result-item.incorrect {
    background: #f8d7da;
    border-left-color: #dc3545;
}

.result-item h4 {
    margin: 0 0 15px 0;
    color: #333;
}

.result-item p {
    margin: 8px 0;
    color: #555;
}

.result-item .status {
    font-weight: bold;
    margin-top: 10px;
}

.result-item.correct .status {
    color: #28a745;
}

.result-item.incorrect .status {
    color: #dc3545;
}

/* Restart Button */
.quiz-restart-btn {
    display: block;
    margin: 30px auto 0;
    color: white;
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
    background: #170a2c !important;
    border-radius: 0 !important;
    padding: 20px 20px !important;
    color: white !important;
}

.quiz-restart-btn:hover {
    background: #170a2c !important;
    border-radius: 0 !important;
    padding: 20px 20px !important;
    color: white !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .quiz-container {
        padding: 20px;
    }

    .quiz-question h3 {
        font-size: 20px;
    }

    .quiz-answers {
        flex-direction: column;
    }

    .quiz-answer-option {
        width: 100%;
        min-width: unset;
    }

    .quiz-navigation {
        flex-direction: column;
    }

    .quiz-prev-btn,
    .quiz-next-btn,
    .quiz-show-form-btn {
        width: 100%;
    }
}
