/* General styling for contact section */
.contact-section {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.contact-form {
    background-color: #fff;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.contact-form h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 30px;
}

.contact-form .form-floating {
    margin-bottom: 15px;
}

.contact-form .form-control {
    border-radius: 10px;
    padding: 15px;
    font-size: 14px;
    border: 1px solid #ddd;
}

.contact-form .form-row {
    display: flex;
    justify-content: center; /* Center the button horizontally */
}

/* Button Styling - Increased Specificity */
.contact-form button,
.contact-form button:focus,
.contact-form button:hover {
    font-size: 14px !important;
    padding: 10px 20px !important; /* Smaller padding */
    background-color: #FF5E15 !important;
    color: #fff !important;
    border-radius: 10px !important;
    border: none !important;
    transition: background-color 0.3s ease !important;
    display: inline-block !important;
    width: auto !important; /* Button takes width based on text */
    text-align: center !important;
    margin-top: 20px !important; /* Add some space above the button */
}

.contact-form button:hover {
    background-color: #001248 !important;
}

/* Contact Info Section */
.contact-info-item {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.contact-info-item i {
    color: #007bff;
}

.contact-info-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-info-item p {
    margin: 0;
    color: #6c757d;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .contact-form {
        padding: 30px;
    }

    .contact-section {
        padding: 60px 0;
    }

    .contact-map iframe {
        height: 400px;
    }
}

/* For tablets and smaller devices */
@media (max-width: 992px) {
    .contact-form {
        padding: 20px;
    }

    .contact-section {
        padding: 50px 0;
    }

    .contact-form h2 {
        font-size: 28px;
    }

    .contact-map iframe {
        height: 350px;
    }
}

/* For mobile devices */
@media (max-width: 768px) {
    .contact-section {
        display: block; /* Stack contact form and map vertically */
    }

    .contact-form {
        padding: 15px;
        margin-bottom: 30px; /* Add space below form */
    }

    .contact-section h2 {
        font-size: 24px !important;
    }

    /* Ensure smaller buttons and fields */
    .contact-form .form-floating {
        margin-bottom: 10px !important;
    }

    .contact-form .form-control {
        font-size: 12px !important;
        padding: 10px !important;
    }

    .contact-form button {
        font-size: 16px !important;
        padding: 10px 20px !important;  /* Even smaller padding on mobile */
        width: auto !important;        /* Ensure button width is auto */
        text-align: center !important;
        margin-top: 20px !important;
        background-color: #FF5E15 !important;
    }

    .contact-info-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-map iframe {
        height: 250px !important;
    }
}

/* For smaller screens (Mobile Portrait) */
@media (max-width: 576px) {
    .contact-section {
        padding: 20px 0;
    }

    .contact-form {
        padding: 15px;
    }

    .contact-form h2 {
        font-size: 22px !important;
    }

    .contact-form .form-floating {
        margin-bottom: 8px !important;
    }

    .contact-form .form-control {
        font-size: 14px !important;
        padding: 8px !important;
    }

    .contact-form button {
        font-size: 14px !important;
        padding: 10px 16px !important;  /* Even smaller padding on mobile */
        width: auto !important;        /* Ensure button width is auto */
        text-align: center !important;
        margin-top: 20px !important;
    }

    .contact-map iframe {
        height: 200px !important;
    }

    .contact-info-item {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 20px !important;
    }

    .contact-info-item i {
        margin-bottom: 10px;
    }

    .contact-info-item h4 {
        font-size: 16px !important;
    }

    .contact-info-item p {
        font-size: 14px !important;
    }
}

/* Ensure the map is beside the form on larger screens */
@media (min-width: 768px) {
    .contact-section {
        display: flex; /* Use flexbox to align the form and map side by side */
        justify-content: space-between;
        align-items: flex-start;
    }

    .contact-form {
        width: 60%; /* 60% width for the contact form */
    }

    .contact-map {
        width: 35%; /* 35% width for the map */
        margin-left: 20px; /* Add some space between the form and map */
    }

    .contact-map iframe {
        height: 500px; /* Adjust map height for desktop */
        border-radius: 10px;
    }
}
