.contact-section {
    display: flex;
    justify-content: center; /* Change from space-between to center */
    padding: 20px;
    background-color: #f9f9f9;
    gap: 40px; /* Add space between columns */
    max-width: 1200px; /* Optional: limit maximum width */
    margin: 0 auto; /* Center the section horizontally */
}

.contact-form, .explanatory-text {
    flex: 1;
    margin: 10px;
    max-width: 45%; /* Keep max-width consistent for both columns */
}
.contact-form {
    max-width: 45%;
}

.contact-form h2, .explanatory-text h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

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

.contact-form label {
    margin-top: 10px;
}

.contact-form input, .contact-form textarea {
    padding: 10px;
    margin-top: 5px;
    border: 1px #474747;
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
    background-color: #ececec;
}

.contact-form textarea {
    max-width: 100%; /* Ensure the textarea does not expand beyond the form */
    font-family: 'Montserrat', 'Proxima Nova', 'Poppins', sans-serif;
}

.contact-form button {
    margin-top: 20px;
    padding: 10px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 20%;
}

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

.explanatory-text {
    max-width: 45%;
}

.explanatory-text p {
    margin-top: 10px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .contact-section {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .contact-form, .explanatory-text {
        max-width: 100%;
        width: 100%;
        margin: 0;
    }

    /* Change order of elements */
    .contact-section {
        display: flex;
        flex-direction: column;
    }

    .explanatory-text {
        order: -1; /* This moves it to the top */
    }

    .contact-form {
        order: 2;
    }

    /* Make the submit button wider on mobile */
    .contact-form button {
        width: 100%;
    }
}