/* General Styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f8f8f8;
}


/* branch-info */
.branch-info {
    display: flex;
    justify-content: space-between; /* Ensure branches are spaced evenly */
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap; /* Allow wrapping to new lines */
}

.branch {
    flex: 1 1 calc(33.333% - 20px); /* Each branch takes 1/3 of the container width minus the gap */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    background-color: #f9f9f9;
}

.branch-icon {
    color: #007bff;
    font-size: 24px;
    margin-right: 15px;
}

@media (max-width: 768px) {
    .branch {
        flex: 1 1 calc(50% - 20px); /* Each branch takes 50% of the container width minus the gap on smaller screens */
    }
}

@media (max-width: 480px) {
    .branch {
        flex: 1 1 100%; /* Each branch takes 100% of the container width on the smallest screens */
    }
}

@media (min-width: 769px) {
    .branch-info > .branch:nth-child(3) {
        flex: 1 1 100%; /* Make the third branch take the full width */
        display: flex;
        justify-content: center; /* Center the content */
    }
}

/* Contact Container */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px;
    margin: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative; /* Ensure relative positioning for overlay */
}

h3 {
    margin-top: 0; /* Adjust margin as needed */
    text-align: center; /* Center align the heading */
}


/* Contact Container */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px;
    margin: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative; /* Ensure relative positioning for overlay */
}


/* Contact Information Section */
.contact-infoc {
    flex: 1;
    background-color: #f0f0f0;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    height: 450px; /* Fixed height for alignment */
    overflow-y: auto; /* Enable scrolling if content exceeds height */
    box-sizing: border-box; /* Ensure padding is included in height calculation */
}

.contact-detail {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.icon {
    width: 20px;
    height: auto;
    margin-right: 10px;
}

/* Map Section */
.map-container {
    flex: 1;
    margin-left: 20px; /* Add spacing between contact info and map */
    height: 450px; /* Fixed height for alignment */
    overflow: hidden; /* Hide overflow to prevent scroll bars */
}

.map {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 aspect ratio for responsive iframe */
}

.map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Contact Form Section */
.contact-form-container {
    padding: 20px;
    margin: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.contact-form-container h1 {
    margin-bottom: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin-bottom: 5px;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-form button {
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: #0056b3;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
}

footer a {
    color: #fff;
    text-decoration: none;
}

/* Media Queries */
@media (max-width: 768px) {
    .contact-infoc,
    .map-container {
        flex: 1 1 100%; /* Stack vertically on smaller screens */
        margin-left: 0; /* Adjust margin for smaller screens if necessary */
    }

    .map-container {
        margin-left: 0; /* Ensure no additional margin on smaller screens */
    }
}
