#contact-form-section {
    background: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)), url('static/contact1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 4rem 1rem;
    position: relative;
    /* Ensure it overlays any background if needed */
}

.contact-form-container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

#contact-form h3 {
    color: var(--brand-petrol);
    margin-bottom: 2rem;
    font-size: 1.6rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--accent-color);
    display: inline-block;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--brand-petrol);
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: #fcfcfc;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-turquoise);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(0, 184, 216, 0.1);
}

.narrow-field input {
    max-width: 100%;
    /* Be flexible on small screens, limit on large if needed */
}

/* On larger screens, limit width of contact info fields if desired, 
   but 100% of container (600px) is also fine. If user wants narrow: */
@media (min-width: 600px) {
    .narrow-field input {
        max-width: 350px;
    }

    /* This rule is overridden by the 768px media query for grid layout */
    .form-group textarea {
        max-width: 100%;
    }
}

.form-group textarea {
    min-height: 180px;
    resize: vertical;
}

/* Grid Layout for Laptop/Desktop */
.form-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-grid-right .form-group {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.form-grid-right textarea {
    flex-grow: 1;
    min-height: 200px;
}

@media (min-width: 768px) {
    .form-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .narrow-field input {
        max-width: 100%;
        /* Let it fill the column */
    }

    .form-group textarea {
        height: 100%;
        /* Fill the column height */
        max-width: 100%;
    }
}

.form-submit-container {
    text-align: center;
    margin-top: 3rem;
}

.submit-btn {
    display: inline-block;
    /* Helps with margins */
    width: auto;
    min-width: 250px;
    padding: 14px 40px;
    background: var(--brand-petrol);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background: var(--brand-turquoise);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 184, 216, 0.3);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#my-form-status {
    margin-top: 1.5rem;
    font-weight: 600;
    text-align: center;
    min-height: 1.5rem;
    /* Reserve space */
}

@media (max-width: 600px) {
    .contact-form-container {
        padding: 2rem 1.5rem;
    }

    .contact-form-container h3 {
        font-size: 1.3rem;
    }
}