/* =========================================
   CONTACT PAGE SPECIFIC CSS
   ========================================= */

.contact-hero {
    background-image: url(/img/full-table.png); /* Update image path if needed */
    background-size: cover;
    background-position: center;
    height: 60vh;
    min-height: 300px;
    display: flex;
    align-items: end;
    justify-content: center;
    position: relative;
}

/* Dark overlay so text is readable */
.contact-hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.contact-hero .hero-content {
    z-index: 2;
}

.contact-hero .hero-title {
    font-size: 30px;
    color: var(--white);
    margin-bottom: 60px;
}

/* --- 2. Contact Section Wrapper --- */
.contact-section {
    padding: 60px 20px;
}

.contact-grid {
    max-width: 1400px;
    margin: 0 auto;
}

/* --- 3. Info Side Styling --- */
.contact-info {
    text-align: center;
}

.contact-info .section-title {
    color: var(--dark-blue);
    margin-bottom: 20px;
}

.contact-info .intro-text {
    font-size: 14px;
    color: var(--gray-text-dark);
    line-height: 1.6;
    margin-bottom: 40px;
}

.contact-info p {
    font-size: 14px;
    color: var(--gray-text-dark);
    line-height: 1.5;
    margin-bottom: 24px;
}

.info-title {
    font-family: var(--font-display);
    color: var(--dark-blue);
    font-size: 18px;
    margin-bottom: 8px;
}

/* --- Social Icons --- */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    font-weight: bold;
}

.social-icons a {
    text-decoration: none;
    color: var(--dark-blue);
    transition: opacity 0.3s ease;
}

.social-icons a:hover {
    opacity: 0.6;
}

/* --- Map --- */
.map-wrapper img {
    width: 100%;
    max-width: 400px; /* Keeps the map from getting too huge before we add columns */
    border-radius: 8px;
    margin: 0 auto;
    display: block;
}
/* --- 4. Form Side Styling --- */
.contact-form-wrapper {
    background-color: var(
        --white
    ); /* Solid white background so it pops off the cream */
    padding: 40px 30px;
}

.input-group {
    margin-bottom: 20px;
    text-align: left; /* Ensures labels always sit cleanly on the left */
}

.input-group label {
    display: block;
    font-size: 12px;
    color: var(--gray-text-dark);
    margin-bottom: 8px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    background-color: #e8e8e8; /* The modern light gray from your mockup */
    border: none; /* Removes the ugly default browser borders */
    padding: 15px;
    font-family: inherit;
    font-size: 14px;
    color: var(--gray-text-dark);
    transition: outline 0.3s ease;
}

/* Adds a sharp navy outline when the user clicks inside to type */
.input-group input:focus,
.input-group textarea:focus {
    outline: 2px solid var(--dark-blue);
}

.form-btn {
    width: 100%; /* Stretches the red button all the way across */
    padding: 16px;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    font-size: 16px;
}
/* Mobile: Flex Column Reverse */
.contact-grid {
    display: flex;
    flex-direction: column-reverse;
    gap: 50px;
}

/* Desktop sizing test */
@media (min-width: 768px) {
    .contact-section {
        padding: 80px 20px;
    }
    .contact-hero .hero-title {
        font-size: 56px;
    }
    .map-wrapper img {
        width: 100%;
        max-width: 600px; /* Keeps the map from getting too huge before we add columns */
        border-radius: 8px;
        margin: 0 auto;
        display: block;
    }
    
    
    .contact-grid {
        flex-direction: row; /* Flips it to side-by-side */
        align-items: center;
        gap: 60px;
    }

    .contact-info,
    .contact-form-wrapper {
        padding: 80px 40px;
        flex: 1; /* Forces them to be exactly 50% wide */
    }
}
