/* PHQ-9 Assessment Styles */

.phq9-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.phq9-progress-wrapper {
    margin-bottom: 30px;
}

.phq9-progress-wrapper .progress {
    border-radius: 15px;
    overflow: hidden;
}

.phq9-progress-wrapper .progress-bar {
    font-size: 16px;
    font-weight: bold;
    transition: width 0.5s ease;
}

.phq9-question-wrapper {
    min-height: 400px;
}

.phq9-question-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
    border: 2px solid #e9ecef;
    animation: fadeIn 0.5s ease;
}

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

.phq9-question-card p:first-of-type {
    color: #555;
    font-size: 21px;
    margin-bottom: 20px;
    font-weight: 600;
}

.phq9-question-text {
    font-size: 18px;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.6;
}

.phq9-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.phq9-option {
    position: relative;
}

.phq9-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.phq9-option label {
    display: block;
    padding: 15px 20px;
    background: #ffffff;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    color: #495057;
}

.phq9-option label:hover {
    background: #e7f3ff;
    border-color: #0d6efd;
    transform: translateX(5px);
}

.phq9-option input[type="radio"]:checked + label {
    background: #0d6efd;
    color: #ffffff;
    border-color: #0d6efd;
    font-weight: 600;
}

.phq9-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.phq9-btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.phq9-btn-primary {
    background: #0d6efd;
    color: #ffffff;
}

.phq9-btn-primary:hover {
    background: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

.phq9-btn-primary:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

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

.phq9-btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.phq9-btn-success {
    background: #28a745;
    color: #ffffff;
}

.phq9-btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.phq9-btn-outline {
    background: transparent;
    color: #0d6efd;
    border: 2px solid #0d6efd;
}

.phq9-btn-outline:hover {
    background: #0d6efd;
    color: #ffffff;
}

/* Result Styles */
.phq9-result-wrapper {
    animation: fadeIn 0.5s ease;
}

.phq9-result-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
}

.phq9-result-card h2 {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 700;
}

.phq9-score-display {
    font-size: 72px;
    font-weight: 900;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.phq9-severity-label {
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
}

.phq9-message-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.phq9-message-card h3 {
    color: #333;
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
}

.phq9-message-text {
    color: #555;
    font-size: 16px;
    line-height: 1.8;
}

.phq9-result-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .phq9-container {
        padding: 20px;
    }
    
    .phq9-question-card h3 {
        font-size: 20px;
    }
    
    .phq9-question-text {
        font-size: 16px;
    }
    
    .phq9-navigation {
        flex-direction: column;
    }
    
    .phq9-btn {
        width: 100%;
    }
    
    .phq9-score-display {
        font-size: 56px;
    }
    
    .phq9-result-card h2 {
        font-size: 24px;
    }
    
    .phq9-severity-label {
        font-size: 18px;
    }
    
    .phq9-result-actions {
        flex-direction: column;
    }
    
    .phq9-result-actions .phq9-btn {
        width: 100%;
    }
}

/* Loading Spinner */
.phq9-loading {
    text-align: center;
    padding: 40px;
}

.phq9-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0d6efd;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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