/* Enhanced Health Assessment System Styles */

:root {
    --bs-primary: #198754;
    --bs-primary-rgb: 25, 135, 84;
    --bs-success: #20c997;
    --bs-info: #0dcaf0;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
    --gradient-primary: linear-gradient(135deg, #198754 0%, #20c997 100%);
    --gradient-purple: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Self-assessment specific variables */
:root {
    --primary-color: #4F46E5;
    --secondary-color: #61d27aff;
    --light-bg: #F9FAFB;
}

/* Global Enhancements */
body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #2d3748;
    line-height: 1.6;
}

/* Hero Section Enhancements */
.hero-section {
    height: 60vh;
    min-height: 400px;
    background: var(--gradient-purple);
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.8) 0%, rgba(102, 126, 234, 0.8) 100%);
    z-index: 1;
}

#bgvideo {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translateX(-50%) translateY(-50%);
    background-size: cover;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.2);
    animation: fadeInUp 0.8s ease-out;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Card Enhancements */
.card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    background: var(--gradient-primary) !important;
    border: none;
    padding: 20px 25px;
}

.card-body {
    padding: 30px;
}

/* Button Enhancements */
.btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 135, 84, 0.4);
}

.btn-success {
    background: var(--bs-success);
    box-shadow: 0 4px 12px rgba(32, 201, 151, 0.3);
}

.btn-success:hover {
    background: #1ab386;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(32, 201, 151, 0.4);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Assessment Result Styling */
.assessment-result {
    border-left: 5px solid var(--bs-primary);
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    transition: var(--transition-smooth);
}

.assessment-result:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

/* WhatsApp Chat Button */
.whatsapp-chat-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 1001;
    transition: var(--transition-smooth);
    text-decoration: none;
    animation: pulse 2s infinite;
}

.whatsapp-chat-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    color: white;
    animation: none;
}

/* Alert Enhancements */
.alert {
    border: none;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    color: #856404;
}

.alert-info {
    background: linear-gradient(135deg, #cfe2ff 0%, #9ec5fe 100%);
    color: #084298;
}

.alert-success {
    background: linear-gradient(135deg, #d1e7dd 0%, #a3cfbb 100%);
    color: #0a3622;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f1aeb5 100%);
    color: #842029;
}

/* Self Assessment Page Styles */
.assessment-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 0;
    border-radius: 0 0 50px 50px;
    box-shadow: 0 10px 40px rgba(79, 70, 229, 0.3);
}

.assessment-hero h1 {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.progress-tracker {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    position: relative;
}

.progress-tracker::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #E5E7EB;
    z-index: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.progress-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 3px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease;
}

.progress-step.active .progress-circle {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.progress-step.completed .progress-circle {
    background: var(--bs-success);
    border-color: var(--bs-success);
    color: white;
}

.progress-label {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6B7280;
}

.assessment-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.assessment-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.form-section {
    transition: opacity 0.3s ease;
}

.form-section.hidden {
    display: none;
}

.symptom-category {
    background: var(--light-bg);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: background 0.2s ease;
}

.symptom-category:hover {
    background: #F3F4F6;
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

.category-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.25rem;
}

.symptom-checkbox {
    position: relative;
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
    background: white;
    border: 2px solid transparent;
    margin-bottom: 0.75rem;
}

.symptom-checkbox:hover {
    background: #F9FAFB;
    border-color: var(--primary-color);
}

.symptom-checkbox input[type="checkbox"]:checked ~ label {
    color: var(--primary-color);
    font-weight: 600;
}

.symptom-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    cursor: pointer;
}

.custom-select {
    border-radius: 10px;
    border: 2px solid #E5E7EB;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.custom-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    outline: none;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    color: white;
}

.btn-primary-custom:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.btn-primary-custom:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-outline-custom {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: white;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background: var(--primary-color);
    color: white;
}

.results-card {
    border-radius: 20px;
    overflow: hidden;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.severity-badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
}

.severity-low {
    background: #D1FAE5;
    color: #065F46;
}

.severity-moderate {
    background: #FEF3C7;
    color: #92400E;
}

.severity-high {
    background: #FEE2E2;
    color: #991B1B;
}

.condition-card {
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.condition-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.match-score {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
}

.selected-count {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.4);
    font-weight: 600;
    z-index: 1000;
    transition: all 0.3s ease;
}

.selected-count.hidden {
    transform: translateY(100px);
    opacity: 0;
}

.spinner-custom {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.info-icon {
    cursor: help;
    color: var(--primary-color);
    margin-left: 0.5rem;
}

/* Form Enhancements */
.form-select,
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 16px;
    transition: var(--transition-smooth);
}

.form-select:focus,
.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.15);
}

/* Payment Modal Enhancements */
.payment-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    transition: var(--transition-smooth);
}

.payment-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.5s ease-out;
}

/* Loading Spinner */
.spinner-border {
    border-width: 0.3rem;
    width: 3rem;
    height: 3rem;
}

/* Badge Enhancements */
.badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Navbar Enhancements */
.navbar {
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

/* Footer Enhancements */
.footer {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: white;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-smooth);
}

.footer a:hover {
    color: var(--bs-success);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .whatsapp-chat-btn {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
    
    .card-body {
        padding: 20px;
    }

    .assessment-hero h1 {
        font-size: 1.75rem;
    }
    .selected-count {
        bottom: 1rem;
        right: 1rem;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    .progress-tracker {
        overflow-x: auto;
        justify-content: flex-start;
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 50vh;
        min-height: 350px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

/* Accessibility Enhancements */
:focus-visible {
    outline: 3px solid var(--bs-primary);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Print Styles */
@media print {
    .whatsapp-chat-btn,
    .navbar,
    .footer {
        display: none;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}