@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap');

/* General body styles */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height:50vh;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f4f4f4;
}

/* Main content area should grow to fill available space */
.main-content {
    flex: 1 0 auto;
}

/* Styling for the main contact section container */
.contact-section {
    padding: 40px 20px;
    max-width: 800px;
    margin: 40px auto;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Styling for the main heading (h2) in the contact section */
.contact-section h2 {
    color: #000000;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
    border-bottom: 2px solid #f4b41a;
    padding-bottom: 10px;
    display: inline-block;
}

/* Styling for paragraphs within the contact information block */
.contact-section .contact-info p {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.8;
    text-align: center;
}

/* Styling for strong (bold) text within contact information */
.contact-section .contact-info p strong {
    color: #000000;
}

/* Styling for the contact form */
.contact-form {
    margin-top: 30px;
    position: relative;
}

/* Styling for labels in the contact form */
.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #000000;
}

/* Styling for email input and textarea fields */
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
}

/* Styling for focused email input and textarea fields */
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: #f4b41a;
    outline: none;
    box-shadow: 0 0 5px rgba(244, 180, 26, 0.5);
}

/* Styling for the submit button */
.contact-form button[type="submit"] {
    background-color: #f4b41a;
    color: #000000;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, top 0.3s ease-out, left 0.3s ease-out;
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

/* Hover effect for the submit button */
.contact-form button[type="submit"]:hover {
    background-color: #000000;
    color: #f4b41a;
}

/* Container for centering the main heading */
.contact-heading-container {
    text-align: center;
    margin-bottom: 30px;
}

/* Ensure textarea for message uses the Montserrat font */
textarea#message {
    font-family: 'Montserrat', sans-serif;
}

/* Responsive adjustments for tablets and smaller devices (max-width 768px) */
@media (max-width: 768px) {
    .contact-section {
        margin: 20px;
        padding: 30px 15px;
    }

    .contact-section h2 {
        font-size: 2em;
    }

    .contact-form button[type="submit"] {
        padding: 10px 20px;
        font-size: 1em;
    }
}

/* Responsive adjustments for mobile phones (max-width 480px) */
@media (max-width: 480px) {
    .contact-section h2 {
        font-size: 1.8em;
    }
}

/* Footer styles */
.footer {
    flex-shrink: 0;
}