/* Prevent horizontal overflow */
body, html {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Wrapper and container adjustments */
.footer_wrapper {
    background-color: black;
    padding: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
}

/* Centered container with tighter max-width */
.container {
    max-width: 800px; /* Adjust this width as needed */
    margin: 0 auto; /* Centers the container */
    padding: 0 15px; /* Adds slight padding for inner spacing */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Centering contact section */
.contact_section {
    width: 100%;
    margin: 0 auto;
    padding: 1rem;
}

/* Fully centered contact info */
.contact_info {
    display: flex;
    flex-direction: column; /* Stack items vertically on large screens */
    align-items: center; /* Center items */
    justify-content: center; /* Center content */
    gap: 2rem; /* Adds space between the two sections */
    width: 100%;
}

/* Detail and map adjustments */
.detail-contact, .map-loc {
    width: 100%; 
    padding: 1rem;
    text-align: left; /* Left align text for better readability */
}

/* Form styling */
.section-contact-main {
    display: flex;
    flex-direction: column; /* Keep form elements in a column */
    align-items: stretch; /* Allow form elements to stretch */
    width: 100%;
}

input[type="text"], input[type="email"], textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Form button styling */
.btn {
    background-color: #007bff;
    color: #fff;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Footer bottom styling */
.footer_bottom {
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
}

/* Media Query for Mobile Screens */
@media (max-width: 768px) {
    .contact_info {
        flex-direction: column; /* Stack elements in a column for mobile */
        align-items: center; /* Center items */
    }

    .detail-contact {
        max-width: 100%; /* Allow full width on mobile */
        padding: 0.5rem; /* Less padding for smaller screens */
    }

    .map-loc {
        max-width: 100%; /* Ensure map takes full width on mobile */
    }

    .section-contact-main {
        align-items: stretch; /* Stretch form elements */
        width: 100%;
    }
}

/* Adjusting on larger screens for better visibility */
@media (min-width: 769px) {
    .contact_info {
        flex-direction: column; /* Stack items vertically */
        align-items: stretch; /* Allow stretching to fit */
        width: 100%; /* Full width */
    }
    
    .map-loc {
        position: relative; /* Positioning for z-index adjustments */
        z-index: 1; /* Ensure it is above other elements */
        padding: 1rem; /* Adjust padding to prevent overlap */
    }
    
    .detail-contact {
        max-width: 100%; /* Allow full width */
        padding: 1rem; /* Add padding to avoid overlap */
    }
}
