/* General styles for the form section */
#form {
    max-width: 800px;
    margin: 30px auto;
    padding: 50px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

#form h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #333;
}

#form p {
    font-size: 1em;
    margin-bottom: 20px;
    color: #555;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
}

/* Align labels and inputs horizontally */
.contact-form div {
    display: flex;
    align-items: center;
}

.contact-form label {
    width: 25%;
    align-items: center;
    font-size: 1em;
    color: #555;
    text-align: left;
    
}

.contact-form input {
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    transition: border-color 0.3s;
    width: 100%;
}

.contact-form input:focus {
    border-color: #007BFF;
    outline: none;
}

.name-inputs{
    display: flex;
    align-items: stretch;
    gap: 5%;
}
.name-inputs div{
    width: 50%
}
.name-inputs label{
    width: 50%;
}
/* Styling for the submit button */
.contact-form button {
    background-color: #2aaaff;
    color: white;
    border: none;
    padding: 15px;
    font-size: 1.1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.contact-form button:hover {
    background-color: #06287e;
}

/* Responsive design */
@media (max-width: 768px) {
    .contact-form div {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-form label {
        text-align: center;
        margin-right: 0;
        width: 100%;
    }
    .contact-form input {
        width: 100%;
    }
    .name-inputs div, 
    .name-inputs label, 
    .contact-form label{
        width: 100%
    }

    .name-inputs{
        gap: 10px;
    }
}

