/* EI Quiz Plugin Styles */

/* Quiz Modal Overlay */
.quiz-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.quiz-overlay.show {
    display: flex;
}

/* Quiz Modal */
.quiz-modal {
    background: #FFFFFF;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease-out;
    position: relative;
}

/* Quiz Header */
.quiz-header {
    background: linear-gradient(135deg, #3951F5, #09CEC2);
    color: white;
    padding: 30px;
    border-radius: 20px 20px 0 0;
    text-align: center;
    position: relative;
}

.quiz-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.quiz-header p {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    opacity: 0.9;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Quiz Content */
.quiz-content {
    padding: 40px;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 16px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #E5E5E5;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #3951F5;
    box-shadow: 0 0 0 3px rgba(57, 81, 245, 0.1);
}

/* Quiz Questions */
.quiz-question {
    display: none;
    margin-bottom: 30px;
}

.quiz-question.active {
    display: block;
}

.question-text {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.6;
}

.question-options {
    display: grid;
    gap: 12px;
}

.option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #E5E5E5;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
}

.option:hover {
    border-color: #3951F5;
    background: rgba(57, 81, 245, 0.05);
}

.option.selected {
    border-color: #3951F5;
    background: rgba(57, 81, 245, 0.1);
}

.option input[type="radio"] {
    margin-right: 12px;
    width: auto;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 30px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #E5E5E5;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3951F5, #09CEC2);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}

/* Buttons */
.btn {
    background: linear-gradient(135deg, #3951F5, #09CEC2);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(57, 81, 245, 0.3);
}

.btn:disabled {
    background: #CCCCCC;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Results */
.results {
    display: none;
    text-align: center;
}

.results.show {
    display: block;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3951F5, #09CEC2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    font-weight: 700;
}

.score-text {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.score-description {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .quiz-modal {
        width: 95%;
        margin: 20px;
    }
    
    .quiz-header {
        padding: 20px;
    }
    
    .quiz-header h2 {
        font-size: 24px;
    }
    
    .quiz-content {
        padding: 20px;
    }
}
