/* Diagnostic Quiz Styles */

.diagnostic-quiz-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    font-family: 'BioSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Quiz Header */
.quiz-header {
    text-align: center;
    margin-bottom: 2rem;
}

.quiz-title {
    font-family: 'HeroNew', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #041840;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.quiz-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Progress Bar */
.quiz-progress {
    margin-bottom: 2rem;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0073aa, #005177);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 20%;
}

.progress-text {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Quiz Questions */
.quiz-questions {
    margin-bottom: 2rem;
}

.quiz-question {
    animation: fadeIn 0.3s ease-in;
}

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

.question-title {
    font-family: 'HeroNew', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #041840;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option-label {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.option-label:hover {
    background: #e9ecef;
    border-color: #0073aa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.15);
}

.option-label input[type="radio"] {
    margin: 0;
    margin-right: 1rem;
    margin-top: 0.2rem;
    width: 18px;
    height: 18px;
    accent-color: #0073aa;
    cursor: pointer;
}

.option-label input[type="radio"]:checked + .option-text {
    color: #0073aa;
    font-weight: 600;
}

.option-label:has(input[type="radio"]:checked) {
    background: #e3f2fd;
    border-color: #0073aa;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.2);
}

.option-text {
    flex: 1;
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
    transition: all 0.2s ease;
}

/* Navigation */
.quiz-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.quiz-navigation .btn {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: #0073aa;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #005177;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.btn-secondary {
    background-color: #6c757d;
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #545b62;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Results */
.quiz-results {
    animation: slideIn 0.5s ease-out;
}

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

.result-content {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 2px solid #0073aa;
}

.result-title {
    font-family: 'HeroNew', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #0073aa;
    margin-bottom: 1rem;
}

.result-message {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.result-recommendations {
    text-align: left;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.result-recommendations h4 {
    font-family: 'HeroNew', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #041840;
    margin-bottom: 1rem;
    text-align: center;
}

.recommendations-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recommendations-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #333;
    line-height: 1.5;
}

.recommendations-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
    font-size: 1.1rem;
}

.result-cta {
    margin-top: 1.5rem;
}

.cta-button {
    display: inline-block;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #0073aa, #005177);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 115, 170, 0.4);
    color: #ffffff;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .diagnostic-quiz-container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .quiz-title {
        font-size: 1.5rem;
    }
    
    .question-title {
        font-size: 1.3rem;
    }
    
    .option-label {
        padding: 0.8rem;
    }
    
    .quiz-navigation {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .quiz-navigation .btn {
        width: 100%;
    }
    
    .result-content {
        padding: 1.5rem;
    }
    
    .result-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .diagnostic-quiz-container {
        margin: 0.5rem;
        padding: 1rem;
    }
    
    .quiz-title {
        font-size: 1.3rem;
    }
    
    .question-title {
        font-size: 1.2rem;
    }
    
    .option-text {
        font-size: 0.9rem;
    }
}

/* Loading States */
.quiz-loading {
    opacity: 0.6;
    pointer-events: none;
}

.quiz-loading .btn {
    position: relative;
}

.quiz-loading .btn:after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility */
.option-label:focus-within {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.btn:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .option-label {
        border: 2px solid #000;
    }
    
    .option-label:has(input[type="radio"]:checked) {
        background: #000;
        color: #fff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .quiz-question,
    .quiz-results,
    .option-label,
    .btn,
    .cta-button {
        transition: none;
        animation: none;
    }
    
    .progress-fill {
        transition: none;
    }
}
