/* Global Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9; /* Light gray background */
    height: 100%; /* Ensure body takes up full height */
    display: flex;
    flex-direction: column;
}

/* Contact Container */
.contact-container {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align items to the top of the screen */
    flex-grow: 1; /* Allow the form to take available space */
    padding: 0 20px; /* Padding only on sides */
    box-sizing: border-box; /* Ensure padding doesn't overflow */
}

/* Contact Form */
.contact-form {
    background-color: white;
    padding: 20px; /* Reduced padding */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); /* Larger shadow */
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s ease; /* Smooth transition */
    box-sizing: border-box; /* Ensures padding doesn't overflow */
}

/* Hover effect for contact form */
.contact-form:hover {
    transform: scale(1.02); /* Slightly scale up the form */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); /* Stronger shadow on hover */
}

/* Contact Form Header */
.contact-form h2 {
    text-align: center;
    margin: 0 0 10px 0; /* Reduced bottom margin */
    color: #ff7f50; /* Coral color */
    font-size: 1.8rem;
    text-transform: uppercase;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3); /* Soft shadow */
}

/* Input and Textarea Styles */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin: 5px 0; /* Reduced margin */
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

/* Focus effect for input/textarea */
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #ff7f50; /* Coral border on focus */
}

/* Button Styles */
.contact-form button {
    width: 100%;
    padding: 12px;
    background-color: #f1c40f; /* Coral color */
    border: none;
    color: white;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

/* Hover effect for button */
.contact-form button:hover {
    background-color: #e67e22; /* Slightly darker coral */
    transform: translateY(-2px); /* Lift the button on hover */
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center;
    width: 100%;
    margin-top: auto; /* Push footer to the bottom of the screen */
}

/* Responsive Styles */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        justify-content: flex-start; /* Align form at the top */
        padding: 10px 20px; /* Adjust padding for mobile */
    }

    .contact-form {
        width: 100%;
        max-width: 100%;
    }

    .contact-form h2 {
        font-size: 1.6rem; /* Adjust header size on smaller screens */
        margin-bottom: 10px; /* Reduce margin */
    }

    .contact-form input,
    .contact-form textarea {
        margin: 5px 0; /* Less space between inputs */
        padding: 8px; /* Adjust padding */
    }

    .contact-form button {
        font-size: 14px; /* Smaller button text on mobile */
        padding: 10px; /* Adjust padding on button */
    }
}
