/* quiz.css */
.quiz-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.quiz-modal.active {
    display: flex;
}

.quiz-content {
    background: white;
    border-radius: 32px;
    padding: 2.5rem;
    max-width: 560px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

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

.quiz-close {
    position: absolute;
    right: 1.25rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    color: #94a3b8;
    transition: color 0.2s;
}

.quiz-close:hover {
    color: #1e293b;
}

.quiz-step h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #0f172a;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quiz-option {
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    color: #1e293b;
}

.quiz-option:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.quiz-option.selected {
    border-color: #3b82f6;
    background: #dbeafe;
}

.quiz-progress {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.quiz-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
    transition: background 0.3s;
}

.quiz-dot.active {
    background: #3b82f6;
}

#quizForm input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: border 0.2s;
}

#quizForm input:focus {
    outline: none;
    border-color: #3b82f6;
}

.quiz-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 16px;
    display: none;
}

.quiz-message.success {
    display: block;
    background: #dcfce7;
    color: #166534;
}

.quiz-message.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
}

@media (max-width: 480px) {
    .quiz-content {
        padding: 1.5rem;
    }
    
    .quiz-step h3 {
        font-size: 1.2rem;
    }
    
    .quiz-option {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
}