/* styles.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3a8d3f;
    --secondary-color: #fda600;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f9f9f9;
    --white: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}
.logo1{
    color: var(--primary-color);
}

.logo2{
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    cursor: pointer;
}


.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Home Button*/
.home-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(38, 220, 108, 0.4);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 999;
    transition: transform 0.3s;
}

.home-btn:hover {
    transform: scale(1.05);
}


/* Emergency Button */
.emergency-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #dc2626;
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 999;
    transition: transform 0.3s;
}

.emergency-btn:hover {
    transform: scale(1.05);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
}

.emergency-numbers {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.emergency-number {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    transition: background 0.3s;
}

.emergency-number:hover {
    background: #2d6e31;
}

.emergency-note {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), #2d6e31);
    color: white;
    padding: 5rem 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

/* ─── CTA Button Hierarchy ─────────────────────────────────────────────────── */

/* Base cta-btn stays as-is for backwards compatibility.
   Add modifier classes on top for hierarchy. */

.cta-btn--primary {
    background: var(--secondary-color);
    color: var(--text-dark);
    padding: 1.2rem 3rem;
    font-size: 1.3rem;
    border-radius: 50px;
    box-shadow: 0 6px 24px rgba(253, 166, 0, 0.45);
    display: block;
    width: fit-content;
    margin: 0 auto 1.2rem auto;
    transition: transform 0.25s, box-shadow 0.25s;
    letter-spacing: 0.02em;
}

.cta-btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(253, 166, 0, 0.55);
    background: #e69500;
}

/* Group the two secondary buttons side by side */
.cta-secondary-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.cta-btn--secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.7);
    padding: 0.75rem 1.8rem;
    font-size: 1rem;
    border-radius: 50px;
    transition: background 0.25s, border-color 0.25s, transform 0.2s;
    letter-spacing: 0.01em;
}

.cta-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    transform: translateY(-2px);
}

/* Mobile: stack secondary buttons vertically on small screens */
@media (max-width: 480px) {
    .cta-btn--primary {
        width: 100%;
        text-align: center;
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }

    .cta-secondary-group {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn--secondary {
        width: 100%;
        text-align: center;
    }
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--text-dark);
}

.btn-primary:hover {
    background: #e69500;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Sections */
.section {
    padding: 4rem 2rem;
}

.section-white {
    background: white;
}

.section-gray {
    background: var(--bg-light);
}

.section-primary {
    background: var(--primary-color);
    color: white;
}

.section-secondary {
    background: var(--secondary-color);
    color: var(--text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.section-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid Layout */
.grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Team Cards */
.teamCard {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.teamCard:hover {
    transform: translateY(-5px);
}

.teamCard-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.teamCard-icon.primary {
    color: var(--primary-color);
}

.teamCard-icon.secondary {
    color: var(--secondary-color);
}

.teamCard-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.teamCard-text {
    color: var(--text-light);
}

/* Cards */
.card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card-icon.primary {
    color: var(--primary-color);
}

.card-icon.secondary {
    color: var(--secondary-color);
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.card-text {
    color: var(--text-light);
}

/* Service Cards */
.service-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.service-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Screening Tools */
.screening-tool {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid var(--bg-light);
    cursor: pointer;
    transition: all 0.3s;
}

.screening-tool:hover {
    background: var(--secondary-color);
    color:white;
    box-shadow: 0 4px 15px rgba(58, 141, 63, 0.2);
}



.screening-tool h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.screening-tool button {
    margin-top: 1rem;
}

/* Contact Form */
.contact-section {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.message-box {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.message-box h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.messages-display {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 5px;
    min-height: 200px;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.message-item {
    background: white;
    padding: 0.8rem;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

.message-item strong {
    color: var(--primary-color);
}

/* Map Container 
.map-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.map-container h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background: var(--bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.location-info {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 5px;
}*/

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 2rem 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem 2rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .nav-menu.show {
        display: flex;
    }

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

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

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

    .contact-section {
        grid-template-columns: 1fr;
    }

    .emergency-btn span {
        display: none;
    }

    .emergency-btn {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        justify-content: center;
        padding: 0;
    }

    .home-btn span {
        display: none;
    }

    .home-btn {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        justify-content: center;
        padding: 0;
    }
}

/* Screening tools */
.testBody {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-color) 100%);
            min-height: 100vh;
            padding: 20px;
        }

        .testcontainer {
            max-width: 900px;
            margin: 0 auto;
            background: white;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            overflow: hidden;
        }

        .testheader {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 100%);
            color: white;
            padding: 30px;
            text-align: center;
        }

        .testheader h1 {
            font-size: 2em;
            margin-bottom: 10px;
        }

        .testheader p {
            opacity: 0.9;
            font-size: 1.1em;
        }

        .testtabs {
            display: flex;
            background: #f8f9fa;
            overflow-x: auto;
            border-bottom: 2px solid #e0e0e0;
        }

        .testtab {
            padding: 15px 20px;
            cursor: pointer;
            border: none;
            background: none;
            font-size: 14px;
            font-weight: 500;
            color: #666;
            white-space: nowrap;
            transition: all 0.3s;
            border-bottom: 3px solid transparent;
        }

        .testtab:hover {
            background: #e9ecef;
            color: #333;
        }

        .testtab.active {
            color: var(--primary-color);
            border-bottom-color: var(--primary-color);
            background: white;
        }

        .testcontent {
            padding: 40px;
        }

        .test-section {
            display: none;
        }

        .test-section.active {
            display: block;
            animation: fadeIn 0.3s;
        }

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

        .test-intro {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 30px;
            border-left: 4px solid var(--primary-color);
        }

        .testquestion {
            margin-bottom: 30px;
            padding: 20px;
            background: #f8f9fa;
            border-radius: 10px;
        }

        .question-text {
            font-weight: 600;
            margin-bottom: 15px;
            color: #333;
            font-size: 16px;
        }

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

        .option {
            display: flex;
            align-items: center;
            padding: 12px;
            background: white;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .option:hover {
            border-color: var(--primary-color);
            background: #f0f4ff;
        }

        .option input[type="radio"] {
            margin-right: 10px;
            width: 18px;
            height: 18px;
            cursor: pointer;
        }

        .option label {
            cursor: pointer;
            flex: 1;
        }

        .submit-btn {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 100%);
            color: white;
            border: none;
            padding: 15px 40px;
            font-size: 16px;
            font-weight: 600;
            border-radius: 10px;
            cursor: pointer;
            transition: transform 0.2s;
            width: 100%;
            margin-top: 20px;
        }

        .submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
        }

        .submit-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .results {
            display: none;
            padding: 30px;
            background: #f8f9fa;
            border-radius: 10px;
            margin-top: 30px;
        }

        .results.show {
            display: block;
            animation: fadeIn 0.5s;
        }

        .results h3 {
            color: #333;
            margin-bottom: 20px;
            font-size: 24px;
        }

        .score-display {
            font-size: 48px;
            font-weight: bold;
            color: var(--primary-color);
            margin: 20px 0;
        }

        .interpretation {
            padding: 20px;
            background: white;
            border-radius: 10px;
            margin-top: 20px;
            border-left: 4px solid var(--primary-color);
        }

        .interpretation h4 {
            margin-bottom: 10px;
            color: #333;
        }

        .severity-minimal { border-left-color: #28a745; }
        .severity-mild { border-left-color: #ffc107; }
        .severity-moderate { border-left-color: #ff9800; }
        .severity-moderately-severe { border-left-color: #f44336; }
        .severity-severe { border-left-color: #d32f2f; }

        .question-nav{
            display: flex;
            justify-content: space-between;
        }
        .btn-next{
            background: #6c757d;
            color: white;
            border: none;
            padding: 12px 30px;
            font-size: 14px;
            font-weight: 600;
            border-radius: 8px;
            cursor: pointer;
            margin-top: 20px;
        }

        .btn-next:hover {
            background: #5a6268;
        }

        .btn-prev{
            background: #6c757d;
            color: white;
            border: none;
            padding: 12px 30px;
            font-size: 14px;
            font-weight: 600;
            border-radius: 8px;
            cursor: pointer;
            margin-top: 20px;
        }

        .btn-prev:hover {
            background: #5a6268;
        }

        .reset-btn {
            background: #6c757d;
            color: white;
            border: none;
            padding: 12px 30px;
            font-size: 14px;
            font-weight: 600;
            border-radius: 8px;
            cursor: pointer;
            margin-top: 20px;
        }

        .reset-btn:hover {
            background: #5a6268;
        }

        .disclaimer {
            background: #fff3cd;
            border: 1px solid #ffc107;
            padding: 15px;
            border-radius: 10px;
            margin-bottom: 20px;
            font-size: 14px;
            color: #856404;
        }

