/* Digestive Health Quiz Styles */
.digestive-quiz-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    direction: rtl;
    text-align: right;
}

.quiz-header {
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 3px solid #f0f0f0;
}

.quiz-header h2 {
    color: #2c3e50;
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: 700;
}

.quiz-subtitle {
    font-size: 18px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.quiz-instructions {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 16px;
    color: #666;
    border-right: 4px solid #3498db;
    line-height: 1.6;
}

.quiz-form {
    margin-top: 30px;
}

.quiz-question {
    margin-bottom: 35px;
    padding: 25px;
    background: #fafafa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.quiz-question:hover {
    background: #f5f5f5;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.quiz-question h3 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.5;
}

.quiz-answers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-answer {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.quiz-answer:hover {
    border-color: #3498db;
    background: #f0f8ff;
    transform: translateX(-3px);
}

.quiz-answer input[type="radio"] {
    margin-left: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #3498db;
}

.quiz-answer input[type="radio"]:checked + span {
    font-weight: 600;
    color: #2c3e50;
}

.quiz-answer:has(input[type="radio"]:checked) {
    border-color: #3498db;
    background: #e3f2fd;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

.quiz-submit-btn,
.quiz-restart-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 40px auto 0;
    padding: 18px 40px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.quiz-submit-btn:hover,
.quiz-restart-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #21618c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.quiz-submit-btn:active,
.quiz-restart-btn:active {
    transform: translateY(0);
}

.quiz-results {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    border-right: 5px solid #27ae60;
    animation: fadeIn 0.5s ease;
}

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

.quiz-results h2 {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 700;
}

.results-content {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
}

.results-content p {
    margin-bottom: 15px;
}

.results-content strong {
    color: #2c3e50;
    font-weight: 700;
}

.result-warning {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.result-danger {
    background: #f8d7da;
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.result-success {
    background: #d4edda;
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.quiz-restart-btn {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    box-shadow: 0 4px 15px rgba(149, 165, 166, 0.3);
}

.quiz-restart-btn:hover {
    background: linear-gradient(135deg, #7f8c8d 0%, #636e72 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .digestive-quiz-container {
        padding: 20px;
        margin: 20px auto;
    }
    
    .quiz-header h2 {
        font-size: 26px;
    }
    
    .quiz-subtitle {
        font-size: 16px;
    }
    
    .quiz-question {
        padding: 20px;
    }
    
    .quiz-question h3 {
        font-size: 16px;
    }
    
    .quiz-answer {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .quiz-submit-btn,
    .quiz-restart-btn {
        font-size: 16px;
        padding: 15px 30px;
    }
}

@media (max-width: 480px) {
    .digestive-quiz-container {
        padding: 15px;
    }
    
    .quiz-answer {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .quiz-answer input[type="radio"] {
        width: 18px;
        height: 18px;
    }
}
