/* =========================================
   CONTACT PAGE - STANDALONE STYLES
========================================= */


/* Unified Background Wrapper */

.contact-unified-bg {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: #1a2a3a;
    background-position: 50% 0%;
    z-index: 2;
}

.parallax-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 125%;
    background-image: url('Assets/Img/AFA%20Container.webp');
    background-size: cover;
    background-position: center top;
    z-index: -1;
    pointer-events: none;
}

.unified-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 20, 35, 0.7);
    z-index: 0;
}

.contact-hero,
.contact-main-section {
    position: relative;
    z-index: 1;
    background: transparent !important;
}

.giant-headline {
    margin-bottom: 0;
}

.hero-subtitle {
    font-family: sans-serif;
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.8);
    transform: translateY(200%);
    max-width: 800px;
    white-space: nowrap;
}

.contact-hero {
    height: 50vh;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 5vh;
}

.contact-main-section {
    padding: 5vh 5vw 15vh 5vw;
}

.contact-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    align-items: stretch;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4rem;
    text-align: left;
}

.info-block {
    display: flex;
    flex-direction: column;
}

.info-title {
    font-family: 'Clash', sans-serif;
    font-size: 2.5rem;
    color: #fff;
    margin: 0.5rem 0;
}

.info-sub {
    color: #888;
    font-size: 1.4rem;
    line-height: 1.5;
    margin: 0;
}

.contact-form-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.afa-form {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.input-group {
    position: relative;
    width: 100%;
}

.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-family: sans-serif;
    font-size: 1.6rem;
    padding: 1rem 0;
    outline: none;
    transition: border-color 0.3s;
    border-radius: 0;
}

.input-group select {
    cursor: pointer;
    color: #888;
}

.input-group select option {
    background: #091423;
    color: #fff;
}

.input-group label {
    position: absolute;
    top: 1rem;
    left: 0;
    color: #888;
    font-size: 1.6rem;
    pointer-events: none;
    transition: 0.3s ease all;
}

.input-group input:focus,
.input-group textarea:focus {
    border-bottom: 1px solid #4caf50;
}

.input-group input:focus~label,
.input-group input:not(:placeholder-shown)~label,
.input-group textarea:focus~label,
.input-group textarea:not(:placeholder-shown)~label {
    top: -1.5rem;
    font-size: 1.2rem;
    color: #4caf50;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-submit {
    border: none;
    cursor: pointer;
    align-self: flex-start;
    margin-top: 1rem;
}


/* --- FANCY MAP STYLES --- */

.map-section-wrapper {
    max-width: 1200px;
    margin: 6rem auto 0 auto;
}

.map-header {
    margin-bottom: 1.5rem;
}

#company-map {
    width: 100%;
    height: 400px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    z-index: 1;
}
/* Darken base map tiles for ALL screen sizes */
.map-base-tiles img,
.map-base-tiles .leaflet-tile {
    filter: brightness(0.5) contrast(1.3) !important;
}

/* Brighten street labels to white for ALL screen sizes */
.map-street-labels img,
.map-street-labels .leaflet-tile {
	filter: brightness(10) invert(1) !important;
}


/* Customizing Leaflet Dark Popup */

.leaflet-popup-content-wrapper {
    background: #091423 !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    font-family: sans-serif;
}

.leaflet-popup-tip {
    background: #091423 !important;
}

.map-popup-title {
    font-family: 'Clash', sans-serif;
    font-size: 1.4rem;
    font-weight: bold;
    color: #4caf50;
    margin-bottom: 4px;
}

.map-popup-sub {
    font-size: 1.1rem;
    color: #ccc;
    margin: 0;
}


/* Contact Mobile Adjustments */

@media (max-width: 768px) {
    .parallax-bg-image {
        background-image: url('Assets/Img/AFA Container Mobile.jpg');
        background-position: center center;
        height: 75%;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .contact-info-panel {
        padding: 3rem;
        gap: 3rem;
    }
    .contact-hero {
        height: auto;
        padding-top: 15vh;
    }
    .hero-subtitle {
        white-space: normal;
        max-width: 90vw;
        line-height: 1.5;
    }
    .form-submit {
        align-self: center;
    }
    #company-map {
        height: 300px;
    }
	/* Darken the map tile background */
	#company-map .leaflet-tile {
    	filter: brightness(0.5) contrast(1.3);
	}
	/* Boost street names to bright white */
	/* Darken base map tiles */



}