/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
    min-height: 100vh;
}

.contact-container {
    width: 80vw;
    max-width: 1200px; /* Limit the width for large screens */
    margin: 2em auto;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.map {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* Aspect ratio 16:9 */
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.contact-details {
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.contact-details h2 {
    margin-top: 0;
}

.contact-details p {
    margin: 10px 0;
}

.contact-details a {
    color: inherit;
    text-decoration: none;
    font-weight: bold;
}

.contact-details a:hover {
    color: #4CAF50;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    color: #333;
    font-size: 24px;
    text-decoration: none;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #4CAF50;
}

.contact-form {
    flex: 1;
    min-width: 350px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
    margin-top: 0;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-form label {
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
}

.contact-form textarea {
    resize: none;
}

.contact-form button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.contact-form button:hover {
    background-color: #45a049;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* For larger screens */
@media screen and (min-width: 851px) {
    .image-slide {
        background-position: top 40% right;
    }

    .contact-container {
        flex-direction: row;
    }

    .contact-info, .contact-form {
        flex: 1;
        min-width: 350px;
    }
}

/* For smaller screens */
@media screen and (max-width: 851px) {
    .contact-container {
        flex-direction: column;
        align-items: center;
        flex-wrap: nowrap;
    }

    .contact-info, .contact-form {
        min-width: 100%;
    }

    .map {
        height: 250px; /* Reduced height for smaller screens */
    }
}