/* Contact Section Styles */
.contact-section {
    padding: 60px 20px;
    background: var(--light-bg);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.contact-container h2 {
    color: var(--brand-green);
    margin-top: 0;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-dark);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--brand-green);
    outline: 2px solid rgba(13, 91, 2, 0.1);
}

.submit-btn {
    background: var(--brand-green);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #0a4601;
}

.g-recaptcha {
    margin-bottom: 20px;
}

.map-container {
    width: 100%;
    margin: 40px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.map-wrapper {
    max-width: 800px; /* Matches your .contact-container width */
    margin: 20px auto 40px auto; /* Centers the map and adds spacing */
    padding: 0; /* Remove padding to keep the map edge-to-edge within the 800px */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); /* Matches your form's shadow */
}

/* ============================================================
    MOBILE ADJUSTMENTS (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
    /* 1. Reset Body - No more blue background */
    body { 
        background: #ffffff !important; 
    }

    /* 2. Standard Mobile Adjustments */
    .contact-section { 
        padding: 20px 0 !important; 
    }
    
    .contact-container { 
        padding: 30px 15px !important; 
        border-radius: 0 !important; 
        box-shadow: none !important;
    }

    /* 3. The Hero Container Fix */
    section.contact-hero-container {
        height: 250px !important;
        max-height: 250px !important;
        min-height: 250px !important;
        display: block !important;
        overflow: hidden !important;
        position: relative !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important; /* Ensures space around image is white, not blue */
    }

    /* 4. The Inner Wrapper Reset */
    .contact-hero-inner {
        height: 250px !important;
        max-height: 250px !important;
        width: 100% !important;
        display: block !important;
        background: transparent !important;
    }

    /* 5. The Image - Using 'fill' to stop the blue/black gaps */
    section.contact-hero-container img {
        height: 250px !important;
        max-height: 250px !important;
        min-height: 250px !important;
        width: 100% !important;
        /* 'fill' stretches the image to fit the 250px box exactly */
        object-fit: cover !important; 
        object-position: center !important;
        display: block !important;
        margin: 0 !important;
    }

    /* 6. Overlay adjustment */
    .slider-overlay {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 85% !important;
        padding: 15px !important;
        text-align: center !important;
        z-index: 10 !important;
    }
     .map-container {
        margin: 20px 0;
        height: 300px; /* Shorter map for mobile screens */
    }
    
    .map-container iframe {
        height: 300px;
    }
    .map-wrapper {
        width: 90%; /* On mobile, give it a tiny bit of breathing room on the sides */
        height: 300px;
        margin: 10px auto 30px auto;
        border-radius: 0; /* Optional: squared edges look better on mobile */
    }
    
    .map-wrapper iframe {
        height: 300px;
    }
}
/* ============================================================
    RECAPTCHA MOBILE FIX (Updated for Spacing)
   ============================================================ */

@media (max-width: 400px) {
    .g-recaptcha {
        transform: scale(0.85);
        -webkit-transform: scale(0.85);
        transform-origin: 0 0;
        -webkit-transform-origin: 0 0;
        
        /* Adjust these to fix the "closeness" */
        margin-top: 10px;    /* Space above the captcha */
        margin-bottom: 5px;  /* Space below the scaled box */
    }

    /* Target the button specifically to push it away from the scaled captcha */
    #manual-submit {
        margin-top: 25px !important; 
    }
}