/* Frontend Styles for Quiz Plugin */

.custom-quiz-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 40px;
    background: #d0f0f0;
    border-radius: 0;
    box-shadow: none;
}

.quiz-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: none;
}

.quiz-header h2 {
    margin: 0 0 15px 0;
    font-size: 28px;
    color: #00a0a0;
}

.quiz-description {
    color: #00a0a0;
    line-height: 1.6;
}

/* Progress Bar */
.quiz-progress-container {
    margin-bottom: 30px;
}

.quiz-progress-bar {
    display: none;
}

.quiz-progress-text {
    text-align: left;
    font-size: 20px;
    color: #00a0a0;
    font-weight: 700;
    margin-bottom: 20px;
}

.quiz-question {
    margin-bottom: 30px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    transition: all 0.3s ease;
    min-height: 400px;
}

.quiz-question-error {
    border: none;
    background: transparent;
}

.question-title {
    margin: 0 0 25px 0;
    font-size: 28px;
    color: #00a0a0;
    line-height: 1.4;
    font-weight: 400;
}

.question-number {
    display: none;
}

.quiz-options {
    margin-top: 25px;
}

.quiz-option-wrapper {
    margin-bottom: 15px;
}

.quiz-option {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    background: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.quiz-option:hover {
    background: #e0f7f7;
    transform: translateX(0);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.quiz-option input[type="radio"] {
    display: none;
}

.quiz-option input[type="radio"]:checked + .option-text {
    font-weight: 600;
}

.quiz-option input[type="radio"]:checked ~ * {
    color: white;
}

.quiz-option:has(input[type="radio"]:checked) {
    background: #00b8b8;
    color: white;
}

.quiz-option:has(input[type="radio"]:checked) .option-text {
    color: white;
}

.quiz-option .option-text {
    font-size: 17px;
    color: #333;
    line-height: 1.5;
    flex: 1;
}

/* Navigation Buttons */
.quiz-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    padding-top: 0;
    border-top: none;
    gap: 15px;
}

.quiz-nav-btn,
.quiz-submit-btn {
    padding: 16px 50px;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quiz-prev-btn {
    background: #b0e0e0;
}

.quiz-prev-btn:hover {
    background: #90d0d0;
}

.quiz-next-btn,
.quiz-submit-btn {
    background: #00d4d4;
    margin-left: 0;
}

.quiz-next-btn:hover,
.quiz-submit-btn:hover {
    background: #00b8b8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 180, 180, 0.3);
}

.quiz-nav-btn:disabled,
.quiz-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.quiz-loading {
    margin-left: 15px;
    color: #00a0a0;
    font-style: italic;
}

.quiz-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 50px;
    text-align: center;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quiz-message.quiz-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.quiz-message.quiz-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .custom-quiz-container {
        padding: 25px;
        margin: 15px;
    }
    
    .quiz-header h2 {
        font-size: 24px;
    }
    
    .question-title {
        font-size: 22px;
    }
    
    .quiz-question {
        min-height: 300px;
        padding: 0;
    }
    
    .quiz-navigation {
        flex-direction: column;
    }
    
    .quiz-prev-btn,
    .quiz-next-btn,
    .quiz-submit-btn {
        width: 100%;
        margin-left: 0 !important;
    }
    
    .quiz-nav-btn,
    .quiz-submit-btn {
        padding: 14px 30px;
    }
    
    .quiz-progress-text {
        font-size: 16px;
    }
}
