/* ==========================================================================
   CONTACT PAGE FULL RESPONSIVE CSS (Horizontal Scroll Fix)
   ========================================================================== */

/* 1. Global Reset - Sabse Important Fix */
html,
body {
    overflow-x: hidden !important;
    /* Page ko left-right hilne se rokega */
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

/* 2. Container & Row Fix */
.contact-page-section {
    position: relative;
    padding: 60px 0;
    width: 100%;
    overflow: hidden;
    /* Extra insurance */
}

/* Row ke negative margin ko neutralize karna zaroori hai */
.contact-page-section .container,
.contact-page-section .container-fluid {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.contact-page-section .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: flex;
    flex-wrap: wrap;
}

/* 3. Info Boxes (Address, Phone, Email) */
.contact-info-box {
    margin-bottom: 25px;
    padding: 0 10px !important;
}

.contact-info-box .box-inner {
    padding: 30px 20px;
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 8px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    word-wrap: break-word;
    /* Long emails break ho jayenge screen ke andar */
}

.contact-info-box h5 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #ff5a5f;
    /* Theme color */
    text-transform: uppercase;
}

/* 4. Contact Form Styling */
.contact-form {
    position: relative;
    width: 100%;
}

.contact-form .form-group {
    margin-bottom: 20px;
    width: 100%;
}

.contact-form .form-control,
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="number"],
.contact-form input[type="date"],
.contact-form textarea {
    width: 100% !important;
    display: block;
    border: 1px solid #ddd;
    padding: 12px 15px;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    /* Padding width mein include hogi */
}

/* Start/End Date gap fix */
.gap-3 {
    gap: 1rem !important;
}

/* 5. Google Map Fix */
.contact-map {
    width: 100%;
    height: 100%;
    min-height: 400px;
    overflow: hidden;
    border-radius: 8px;
}

.contact-map iframe {
    width: 100% !important;
    height: 100% !important;
    min-height: 450px;
    border: 0;
    display: block;
}

/* 6. Mobile Specific Fixes (@Media Queries) */

@media (max-width: 991px) {
    .contact-page-section {
        padding: 40px 0;
        padding-top: 40px;
        /* Header ke niche space dene ke liye */
    }

    .contact-map {
        margin-top: 40px;
        height: 400px;
    }
}

@media (max-width: 767px) {
    .contact-info-box {
        width: 100% !important;
        /* Mobile par boxes ek ke niche ek */
    }
}

@media (max-width: 576px) {

    /* Banner/Title Adjust */
    .page-title {
        padding: 60px 0 !important;
        height: auto !important;
        min-height: 242px;
    }

    .page-title h1 {
        font-size: 24px !important;
    }

    /* Form spacing for small screens */
    .contact-form {
        padding: 10px 5px;
    }

    /* Date Fields ko stack karna mobile par */
    .d-flex.justify-content-between.gap-3 {
        flex-direction: column !important;
    }

    .w-50 {
        width: 100% !important;
    }

    /* Google reCAPTCHA Mobile Fix - Yeh sabse bada culprit hai scroll ka */
    .g-recaptcha {
        transform: scale(0.77);
        /* Scale chota kiya taaki screen se bahar na jaye */
        transform-origin: 0 0;
        max-width: 100%;
    }

    /* Submit Button full width */
    .theme-btn {
        width: 100% !important;
        padding: 15px !important;
    }
}

/* 7. Extra Utility to kill any float scroll */
.clearfix::after {
    content: "";
    clear: both;
    display: table;
}