/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Government color palette inspired by MAHA */
:root {
    --navy-blue: #1e3a8a;
    --deep-navy: #1e40af;
    --light-navy: #3b82f6;
    --red-accent: #dc2626;
    --gold-accent: #f59e0b;
    --charcoal: #374151;
    --light-gray: #f8fafc;
    --medium-gray: #64748b;
    --white: #ffffff;
}

/* Header */
.header {
    background: linear-gradient(180deg, var(--white) 0%, #f8fafc 100%);
    border-bottom: 3px solid var(--navy-blue);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.15);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.maha-logo {
    height: 60px;
    width: auto;
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--deep-navy) 100%);
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(30, 58, 138, 0.3);
}

.logo-text h1 {
    font-family: 'Merriweather', serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--navy-blue);
    letter-spacing: -0.5px;
    margin: 0;
}

.logo-text .tagline {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--red-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.doctor-icon {
    height: 40px;
    width: auto;
    opacity: 0.8;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    background: none;
    border: 2px solid var(--navy-blue);
    color: var(--navy-blue);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    background: var(--navy-blue);
    color: var(--white);
}

/* Main content */
.main {
    flex: 1;
    background: linear-gradient(180deg, var(--light-gray) 0%, #e2e8f0 100%);
    padding: 3rem 2rem;
}

.hero-section {
    max-width: 1000px;
    margin: 0 auto;
    background: linear-gradient(180deg, var(--white) 0%, #f8fafc 100%);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.15);
    overflow: hidden;
    border: 1px solid rgba(30, 58, 138, 0.1);
}

.hero-header {
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--deep-navy) 100%);
    color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
}

.hero-title {
    font-family: 'Merriweather', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.9;
    margin: 0;
}

/* Preamble section */
.preamble {
    padding: 3rem 2rem;
    background: var(--white);
}

.preamble-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.lead-paragraph {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--charcoal);
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--light-gray) 0%, #e2e8f0 100%);
    border-left: 4px solid var(--red-accent);
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.1);
}

.preamble p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--charcoal);
}

.preamble p:last-child {
    margin-bottom: 0;
}

.preamble strong {
    color: var(--red-accent);
    font-weight: 700;
}

/* Features section */
.features-section {
    padding: 2rem;
    background: linear-gradient(180deg, var(--light-gray) 0%, #e2e8f0 100%);
    border-top: 1px solid #e5e7eb;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(180deg, var(--white) 0%, #f8fafc 100%);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(30, 58, 138, 0.1);
    border: 1px solid rgba(30, 58, 138, 0.05);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(30, 58, 138, 0.15);
}

.feature-item h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy-blue);
    margin-bottom: 0.5rem;
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--medium-gray);
    line-height: 1.5;
}

/* Instructions */
.instructions {
    padding: 2rem;
    text-align: center;
    background: var(--white);
}

.instructions-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--charcoal);
}

.note {
    font-style: italic;
    color: var(--medium-gray);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.privacy-note {
    font-size: 0.95rem;
    color: var(--medium-gray);
}

.privacy-link {
    background: none;
    border: none;
    color: var(--navy-blue);
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
}

.privacy-link:hover {
    color: var(--deep-navy);
}

/* CTA Section */
.cta-section {
    padding: 3rem 2rem;
    background: linear-gradient(180deg, var(--light-gray) 0%, #cbd5e1 100%);
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

.start-btn {
    background: linear-gradient(135deg, var(--red-accent) 0%, #ef4444 100%);
    color: var(--white);
    border: none;
    padding: 1.25rem 3rem;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(220, 38, 38, 0.3);
    position: relative;
    overflow: hidden;
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(220, 38, 38, 0.4);
    background: linear-gradient(135deg, #ef4444 0%, var(--red-accent) 100%);
}

.start-btn:active {
    transform: translateY(0);
}

.start-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, var(--navy-blue) 0%, #1e40af 100%);
    color: var(--white);
    padding: 2rem;
    text-align: center;
    border-top: 3px solid var(--red-accent);
    box-shadow: 0 -4px 6px rgba(30, 58, 138, 0.1);
}

.footer p {
    font-size: 0.9rem;
    margin: 0;
}

.footer a {
    color: var(--white);
    text-decoration: underline;
}

.footer a:hover {
    color: var(--gold-accent);
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 2rem;
    margin: 0;
    border-radius: 12px 12px 0 0;
    font-size: 1.5rem;
}

.modal-body {
    padding: 2rem;
}

.modal-body h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.modal-body h4 {
    color: #2c3e50;
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.1rem;
}

.modal-body p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.modal-body ul {
    margin: 1rem 0 1rem 2rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
}

.close {
    color: white;
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 0 0.5rem;
}

.close:hover {
    opacity: 0.7;
}

/* Responsive design */
@media (max-width: 768px) {
    .header-content {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .logo-section {
        flex-direction: column;
        gap: 0.5rem;
    }

    .maha-logo {
        height: 50px;
    }

    .logo-text h1 {
        font-size: 1.5rem;
    }

    .hero-header {
        padding: 2rem 1.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .preamble {
        padding: 2rem 1.5rem;
    }

    .preamble-content {
        text-align: left;
    }

    .lead-paragraph {
        font-size: 1.1rem;
        padding: 1rem;
    }

    .preamble p {
        font-size: 1rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .main {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .start-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .logo-text h1 {
        font-size: 1.3rem;
    }

    .logo-text .tagline {
        font-size: 0.8rem;
    }

    .feature-item {
        padding: 1rem;
    }

    .lead-paragraph {
        font-size: 1rem;
    }
}
