/* Quiz Leervorm Adviseur Styles */

/* Quiz CTA Section */
.quiz-cta-section.card {
    border: none;
    border-radius: 8px;
}

.quiz-cta-section h5 {
    font-weight: 600;
    font-size: 1.1rem;
}

.quiz-cta-section .btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid white;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    align-self: flex-start;
    width: auto;
}

.quiz-cta-section .btn-outline-white:hover {
    background: white;
    color: #0d364b;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.quiz-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.quiz-trigger .material-symbols-sharp {
    font-size: 20px;
}

/* Modal Styles - Based on azure-quote-modal */
#quizLeervormModal .modal-dialog {
    max-width: 650px;
}

#quizLeervormModal .modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

#quizLeervormModal .modal-header {
    padding: 24px 24px 20px;
    background: linear-gradient(135deg, #1987c9 0%, #2f99d5 100%);
    border-radius: 12px 12px 0 0;
    border-bottom: none;
    position: relative;
}

#quizLeervormModal .modal-title {
    margin: 0;
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
}

#quizLeervormModal .modal-body {
    padding: 24px;
}

#quizLeervormModal .close {
    color: #ffffff;
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    line-height: 32px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.3s;
    opacity: 1;
    padding: 0;
    border: none;
    background: transparent;
    text-align: center;
}

#quizLeervormModal .close:hover,
#quizLeervormModal .close:focus {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) rotate(90deg);
    opacity: 1;
}

/* Quiz Progress Bar */
.quiz-question .progress {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
}

.quiz-question .progress-bar {
    background: linear-gradient(90deg, #5fa500, #9ada44);
    transition: width 0.4s ease;
}

/* Quiz Question */
.quiz-question h4 {
    color: #0d364b;
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.quiz-question h5 {
    color: #7a8a94;
    font-size: 0.85rem;
    font-weight: normal;
}

/* Quiz Answer Buttons */
.quiz-answer {
    background: #fafbfc;
    border: 1px solid #e2e6e9;
    color: #4a5568;
    transition: all 0.2s ease;
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: normal;
    word-wrap: break-word;
    padding: 0.75rem 1rem;
}

/* Override Bootstrap btn+btn margin for quiz buttons */
.quiz-answers .quiz-answer + .quiz-answer {
    margin-left: 0;
}

.quiz-answer:hover {
    background: white;
    border-color: #1987c9;
    color: #0d364b;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(25, 135, 201, 0.1);
}

.quiz-answer:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.2);
}

/* Quiz Results */
.quiz-results h3 {
    color: #0d364b;
    font-weight: 600;
    margin-bottom: 1rem;
}

.quiz-results h4 {
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.quiz-results p {
    color: #5a7d8f;
    line-height: 1.6;
    font-size: 1.05rem;
}

/* Buttons gebruiken default styles uit main stylesheet */

/* Responsive Design */
@media (max-width: 768px) {
    .quiz-cta-section .d-flex {
        flex-direction: column;
        text-align: center;
    }

    .quiz-cta-section .btn {
        margin-top: 1rem;
        width: 100%;
    }

    #quizLeervormModal .modal-dialog {
        max-width: 95%;
        margin: 1rem auto;
    }

    .quiz-answer {
        font-size: 0.95rem;
    }
}