@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400&family=Baloo+2:wght@500;600;700;800&family=Public+Sans:ital,wght@0,400;0,500;0,600;0,700&display=swap');

* { box-sizing: border-box; }
body { margin: 0; }
a { color: #2563EB; text-decoration: none; }
a:hover { color: #1D4ED8; }
::selection { background: #FEE9C8; }
html { scroll-behavior: smooth; }

/* Custom form styles for Support page */
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #141A22;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(20,26,34,0.15);
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2563EB;
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'Baloo 2', sans-serif;
}
.btn-submit:hover {
    background: #1D4ED8;
}
.form-message {
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: none;
    font-weight: 600;
    font-size: 15px;
}
.form-message.success {
    display: block;
    background: rgba(46,125,50,0.1);
    color: #2E7D32;
    border: 1px solid rgba(46,125,50,0.2);
}

/* Responsive media queries for mobile devices */
@media (max-width: 768px) {
    /* Navigation Bar */
    .nav-container {
        flex-direction: column !important;
        gap: 12px !important;
        padding: 12px 16px !important;
    }
    .nav-links {
        gap: 12px 18px !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        width: 100% !important;
    }
    .nav-links div {
        border-left: none !important;
        padding-left: 0 !important;
    }

    /* Hero Section */
    .hero-grid {
        grid-template-columns: 1fr !important;
        padding: 32px 16px 40px !important;
        gap: 32px !important;
        text-align: center !important;
    }
    .hero-title {
        font-size: 38px !important;
        line-height: 1.1 !important;
    }
    .hero-grid p {
        margin: 0 auto 28px !important;
    }
    .hero-ctas {
        justify-content: center !important;
    }
    .hero-stats {
        justify-content: center !important;
        gap: 12px 24px !important;
    }
    .hero-stats div {
        text-align: center !important;
    }
    /* Hide the dividing vertical lines on mobile */
    .hero-stats div[style*="width:1px"] {
        display: none !important;
    }
    #hero-phones {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 24px !important;
    }

    /* Grids (How it works & Features) - Convert to horizontal scrollable peek carousel on mobile */
    .grid-3, #feature-grid {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        scroll-snap-type: x mandatory !important;
        gap: 16px !important;
        padding-bottom: 8px !important;
        margin-left: -32px !important;
        margin-right: -32px !important;
        padding-left: 32px !important;
        padding-right: 32px !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important; /* Hide scrollbars for Firefox */
        -ms-overflow-style: none !important;  /* Hide scrollbars for IE/Edge */
    }
    .grid-3::-webkit-scrollbar, #feature-grid::-webkit-scrollbar {
        display: none !important; /* Hide scrollbars for Chrome/Safari */
    }
    .grid-3 > div, .grid-3 > a, #feature-grid > div {
        flex: 0 0 280px !important; /* fixed card width on mobile */
        scroll-snap-align: center !important;
    }

    /* AI Generation */
    .ai-container {
        gap: 32px !important;
        padding: 0 16px !important;
    }
    .ai-container > div {
        text-align: center !important;
    }
    .ai-container h2 {
        font-size: 30px !important;
        line-height: 1.2 !important;
    }
    .ai-container p {
        margin: 0 auto 24px !important;
    }
    .ai-container div[style*="background:#fff"] {
        max-width: 480px !important;
        margin: 0 auto !important;
    }

    /* Accessibility Section */
    .a11y-grid {
        grid-template-columns: 1fr !important;
        padding: 32px 20px !important;
        gap: 28px !important;
    }
    .a11y-grid h2 {
        font-size: 28px !important;
    }
    .a11y-grid div[style*="border-radius:20px"] {
        aspect-ratio: 16/10 !important;
    }

    /* Support page contact layout */
    .contact-grid {
        grid-template-columns: 1fr !important;
        padding: 36px 20px !important;
        gap: 28px !important;
    }
}
