/* HERO MOBILE FIX - ABSOLUTE FINAL OVERRIDE */

html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

/* Desktop: Two columns side by side */
.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-text {
    text-align: center;
}

.hero-title {
    text-align: center;
    margin: 0 auto 2rem;
}

.hero-subtitle {
    text-align: center;
    margin: 0 auto 2rem;
}

.hero-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

/* Mobile: Stack vertically, everything centered */
@media (max-width: 768px) {
    * {
        box-sizing: border-box !important;
    }

    .hero {
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    .hero-content {
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    .hero-layout {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    .hero-text {
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100vw !important;
        max-width: 100vw !important;
        padding: 0 1rem !important;
        margin: 0 !important;
    }

    .hero-title {
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 1.5rem 0 !important;
        padding: 0 !important;
    }

    .hero-subtitle {
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 2rem 0 !important;
        padding: 0 !important;
    }

    .hero-cta {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .hero-form {
        width: calc(100vw - 2rem) !important;
        max-width: calc(100vw - 2rem) !important;
        margin: 0 1rem !important;
        padding: 1.5rem 1rem !important;
    }

    .hero-form input,
    .hero-form select,
    .hero-form textarea {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .checkbox-group {
        width: 100% !important;
        max-width: 100% !important;
        margin: 1rem 0 !important;
        padding: 0 !important;
    }

    .checkbox-label {
        display: flex !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .checkbox-label input[type="checkbox"] {
        flex-shrink: 0 !important;
        width: 20px !important;
        min-width: 20px !important;
        height: 20px !important;
        margin-top: 0.2rem !important;
    }

    .checkbox-text {
        flex: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }

    .form-submit {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}
