/* Style the contact form container */
form {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px; /* Limit the width on large screens */
    margin: 2rem auto; /* Center the form on the page */
}

/* Style the form elements */
label {
    display: block;
    font-size: 1.2em;
    color: darkslategray;
    margin-bottom: 0.5rem;
}

input, textarea {
    width: 100%;
    padding: 1em;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 1.2em;
    box-sizing: border-box;
}

input:focus, textarea:focus {
    border-color: darksalmon;
    outline: none;
}

textarea {
    resize: vertical;
    min-height: 150px;
}

#formbutton {
    background-color: darkslategray;
    color: white;
    padding: 12px 25px;
    font-size: 1.2em;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

#formbutton:hover {
    background-color: darksalmon;
}

/* Styling for success/failure message after submission */
form .response-message {
    margin-top: 1rem;
    font-size: 1.2em;
    color: darkgreen;
}

/* Mobile responsiveness for contact form */
@media screen and (max-width: 768px) {
    form {
        padding: 1.5rem;
        width: 90%;
    }

    input, textarea {
        font-size: 1em; /* Adjust font size */
    }

    #formbutton {
        padding: 10px 20px; /* Slightly smaller #formbutton on mobile */
    }
}

@media screen and (max-width: 480px) {
    form {
        padding: 1rem;
        width: 90%;
    }

    label {
        font-size: 1em; /* Slightly smaller label text on mobile */
    }

    input, textarea {
        font-size: 0.9em; /* Adjust text size for better mobile viewing */
    }
}
