html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-image: linear-gradient(rgb(245, 245, 245), rgb(252, 250, 246), white);
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-image: linear-gradient(rgb(245, 245, 245), rgb(252, 250, 246), white); /* Ensure the background color is consistent */
    padding-bottom: 30px; /* Add padding to the bottom to match the payment page */
}

.content-box {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px; /* Add margin-bottom to create space between content and footer */
    margin-top: 30px;
    margin-left: 30px;
    margin-right: 30px;
}

.contact {
    width: 100%;
    text-align: center;
    background-color: white;
    padding: 30px;
    border-radius: 8px; /* Ensure the contact section takes up the remaining space */
}

.contact-container {
    display: flex;
    justify-content: space-between; /* Adjust the gap between the divs as needed */
    padding: 20px;
    margin-bottom: 30px; /* Add margin-bottom to create space between content and footer */
    margin-top: 10px;
    margin-left: 10px;
    margin-right: 10px;
    gap: 30px;
    flex: 1; /* Ensure the container takes up the remaining space */
    overflow: hidden; /* Prevent overflow */
}

.contact-info, .contact-form-section {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden; /* Prevent overflow */
    flex: 1 1 45%; /* Adjust the width of the contact info and form divs */
    text-align: center;
}

.contact-form {
    width: 100%;
}

.contact-map {
    width: calc(100% - 40px); /* Full width minus 20px margin on each side */
    margin: 30px 20px 0 20px; /* 30px margin-top, 0 margin-bottom, 20px margin-left and margin-right */
    flex: 0 1 auto; /* Allow the map to shrink and grow with the div */
    height: 200px; /* Set the height of the map container */
}

#map {
    width: 100%;
    height: 100%; /* Ensure the map takes up the full height of its container */
    border-radius: 8px; /* Match the border radius of the parent container */
}

.homephone-container, .mobile-container {
    display: flex;
    align-items: center; /* Vertically center the icon and heading */
    justify-content: center; /* Horizontally center the icon and heading */
    gap: 10px; /* Adjust the gap between the icon and the heading as needed */
    font-weight: bold;
}

.homephone-container ion-icon, .mobile-container ion-icon {
    font-size: 1.4rem;
    color: rgb(55, 89, 151);
}

.contact-info h1 {
    font-size: 2em;
    color: rgb(55, 89, 151);
    margin-bottom: 20px;
}

.contact-info h2 {
    color: rgb(39, 59, 97);
    margin-top: 30px;
    font-size: 2rem;
}

.contact-info p {
    font-size: 18px;
    color: black;
    margin-top: 20px;
    margin-bottom: 20px;
}

.contact-form-section h1 {
    font-size: 2em;
    color: rgb(39, 59, 97);
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: black;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid rgb(200, 200, 200);
    border-radius: 4px;
    box-sizing: border-box;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: rgb(55, 89, 151);
    outline: none;
}

.contact-form button {
    background-color: rgb(55, 89, 151);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

.contact-form button:hover {
    background-color: rgb(39, 59, 97);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

@media (max-width: 850px) {
    .contact-container {
        flex-direction: column;
        gap: 30px; /* Adjust the gap between the divs when stacked */
    }

    .contact-info, .contact-form-section {
        flex: 1 1 100%; /* Make each div take full width on smaller screens */
    }
}

footer {
    margin-top: auto; /* Push the footer to the bottom */
     /* Ensure the footer background color is consistent */
   /* Add padding to the footer */
    text-align: center; /* Center the footer content */
}
