body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

header, footer {
   
    color: rgb(0, 0, 0);
    padding: 20px;
}

main {
    flex: 1;
    /* display: flex; */
    justify-content: center;
    align-items: center;
}
/* --- Form Typography --- */

h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #111;
    margin-top: 0;
    margin-bottom: 30px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

/* --- Form Input Fields --- */

/* Common styles for all text inputs and the textarea */
#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fdfdfd;
    box-sizing: border-box; /* Ensures padding doesn't affect the width */
    font-size: 16px;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Style for when a user clicks into a field (improves user experience) */
#contact-form input[type="text"]:focus,
#contact-form input[type="email"]:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: #007bff; /* A subtle blue highlight on focus */
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

#contact-form textarea {
    min-height: 140px;
    resize: vertical; /* Allows user to resize height only, not width */
}

/* --- Submit Button --- */

#contact-form input[type="submit"] {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background-color: #111111; /* A strong, contrasting black */
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#contact-form input[type="submit"]:hover {
    background-color: #333333; /* A slightly lighter black on hover */
    transform: translateY(-2px); /* A subtle lift effect */
}

#contact-form input[type="submit"]:active {
    transform: translateY(0); /* Button returns to original position on click */
}

@media (max-width: 768px) {
    #contact-form {
        width: 90%; /* Adjust form width for smaller screens */
        padding: 10px; /* Reduce padding */
    }

    .centered-form h2 {
        font-size: 1.5rem; /* Reduce the heading size */
    }

    .centered-form input[type="text"],
    .centered-form input[type="email"],
    .centered-form textarea {
        font-size: 1rem; /* Adjust font size for inputs */
        padding: 8px; /* Reduce padding in input fields */
    }

    .centered-form input[type="submit"] {
        font-size: 1rem; /* Adjust button font size */
        padding: 8px 15px; /* Reduce button padding */
    }
}

@media (max-width: 480px) {
    #contact-form {
        width: 100%; /* Take up full width for very small screens */
        padding: 5px;
    }

    .centered-form input[type="text"],
    .centered-form input[type="email"],
    .centered-form textarea {
        font-size: 0.9rem; /* Further reduce font size */
        padding: 6px; /* Further reduce padding */
    }

    .centered-form input[type="submit"] {
        font-size: 0.9rem; /* Adjust button font size further */
        padding: 6px 10px; /* Further reduce button padding */
    }
}

/* Media Query for Submit Button */
@media (max-width: 768px) {
    .centered-form input[type="submit"] {
        font-size: 1rem; /* Smaller font size for medium screens */
        padding: 8px 12px; /* Reduce padding */
        width: 80%; /* Adjust width for medium screens */
        margin: 10px auto; /* Center the button */
    }
}

@media (max-width: 480px) {
    .centered-form input[type="submit"] {
        font-size: 0.9rem; /* Even smaller font size for small screens */
        padding: 6px 10px; /* Further reduce padding */
        width: 100%; /* Full width for small screens */
        margin: 8px auto; /* Ensure centering */
    }
}
