
/* ==========================================
   CONTACT US PAGE
   Alabaster Theme with Gold Focus Interactions
   ========================================== */

/* The Canvas */
.contact-section {
    background-color: #E6E4E0; /* Textured Alabaster */
    color: #050505;
    min-height: 100vh;
    padding: 12rem 5% 8rem 5%; /* Clears the taller navbar */
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    gap: 8rem; /* Wide, airy gap between form and details */
}

/* --- LEFT: FORM COLUMN --- */
.contact-form-column {
    flex: 1;
}

.contact-title {
    font-size: clamp(3.5rem, 5vw, 4.5rem);
    line-height: 1;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.contact-title .cursive-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
}

.contact-title .gold-dot {
    color: #C89B3C;
}

.contact-subtitle {
    color: #555555;
    font-size: 1.1rem;
    margin-bottom: 3.5rem;
    max-width: 80%;
}

/* Form Inputs */
.custom-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
}

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

.form-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(5, 5, 5, 0.3); 
    padding: 1rem 0;
    font-family: var(--font-main);
    font-size: 1rem;
    color: #050505;
    transition: border-color 0.3s ease;
    display: block; /* Fixes the baseline gap */
}

.form-textarea {
    resize: vertical; /* Allows the user to drag the bottom corner to expand it */
    height: 3.5rem; /* Forces the initial height to match your other form inputs */
    min-height: 3.5rem; /* Removes the massive 100px gap */
    vertical-align: bottom; 
    margin-bottom: -1px; 
}

.form-input::placeholder {
    color: rgba(5, 5, 5, 0.5);
    font-weight: 400;
}

/* Remove default focus outlines */
.form-input:focus {
    outline: none;
}

/* --- THE GOLD FOCUS INTERACTION --- */
/* This span sits exactly over the bottom border and scales from 0 to 100% width on focus */
.border-highlight {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #C89B3C; /* Matte Gold */
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.form-input:focus ~ .border-highlight {
    transform: scaleX(1);
}

/* The Submit Button (Inverted Pill) */
.contact-submit-btn {
    align-self: flex-start; /* Keeps it tight to its own padding, not full width */
    background: #050505;
    color: #ffffff;
    border: 2px solid #050505;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    margin-top: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.contact-submit-btn:hover {
    background: transparent;
    color: #050505;
}

/* Success Message State */
.form-success-msg {
    position: absolute;
    inset: 0;
    background: #E6E4E0; /* Matches background to cover form smoothly */
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
}

.form-success-msg p {
    font-size: 1.5rem;
    color: #C89B3C;
    font-family: 'Playfair Display', serif;
    font-style: italic;
}


/* --- RIGHT: DETAILS COLUMN --- */
.contact-details-column {
    flex: 0 0 300px;
    border-left: 2px solid #C89B3C; /* The Architectural Gold Line */
    padding-left: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3rem;
}

.detail-block .detail-heading {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #555555;
    margin-bottom: 0.75rem;
    font-weight: bold; /* Added to maintain the standard heading weight */
}

.detail-block p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #050505;
}

/* --- SOCIAL ICONS (ALABASTER THEME) --- */
.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-icon {
    color: #050505; /* Standard dark text color for resting state */
    font-size: 1.25rem; /* Scales the Font Awesome typography */
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    color: #C89B3C; /* Matte Gold interaction */
    transform: translateY(-3px); /* Subtle architectural lift */
}

/* --- LIGHT THEME NAV OVERRIDES --- */
.light-theme-nav .flip-link {
    color: #555555; /* Dark grey for resting state */
}
.light-theme-nav .flip-link::before {
    color: #050505; /* Solid black on hover */
}
.light-theme-nav .nav-btn {
    border-color: #050505;
    color: #050505;
}
.light-theme-nav .nav-btn:hover {
    background-color: #050505;
    color: #ffffff;
}
.light-theme-nav .mobile-menu-btn {
    color: #050505;
}

/* --- CUSTOM ENTRANCE ANIMATION --- */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpEntrance 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fadeUpEntrance {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- EDGE-TO-EDGE MAPBOX --- */
.edge-to-edge-map {
    width: 100%;
    height: 50vh; /* Takes up half the screen height */
    min-height: 400px;
    background-color: #D8D6D2; /* Fallback color matching your theme */
    border-top: 2px solid #C89B3C; /* Architectural gold line to separate from the form */
    position: relative;
    z-index: 10;
}

/* Overriding default Mapbox popup/UI styles to keep it clean */
.mapboxgl-ctrl-bottom-right {
    bottom: 20px;
    right: 20px;
}

/* --- KILL THE DARK SCROLL OVERLAY FROM NAV.JS --- */
.navbar.light-theme-nav.scrolled {
    background: transparent !important; 
    border-bottom: none; 
}

/* Get Directions link in the details column */
.get-directions-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: #050505;
    text-decoration: none;
    border-bottom: 2px solid #C89B3C;
    padding-bottom: 2px;
    transition: color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.get-directions-link:hover {
    color: #C89B3C;
    border-bottom-color: #050505;
    transform: translateX(4px);
}

/* If you prefer a button style instead, use this instead: */
.get-directions-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.8rem;
    background: #050505;
    color: #fff;
    border: 2px solid #050505;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.get-directions-btn:hover {
    background: transparent;
    color: #050505;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        gap: 5rem;
    }

    .contact-details-column {
        flex: auto;
        border-left: none;
        padding-left: 0;
        border-top: 2px solid #C89B3C;
        padding-top: 3.5rem;
    }
}

/* --- MOBILE CENTERING (≤ 768px) --- */
@media (max-width: 768px) {
    /* ---- Center heading & subtitle only ---- */
    .contact-title {
        text-align: center;
        width: 100%;
    }

    .contact-subtitle {
        text-align: center;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 2.5rem;
    }

    /* ---- Center the entire details column ---- */
    .contact-details-column {
        align-items: center;
        text-align: center;
        border-left: none;
        padding-left: 0;
        border-top: 2px solid #C89B3C;
        padding-top: 2.5rem;
        gap: 2rem;
    }

    .detail-block h4,
    .detail-block p {
        text-align: center;
    }

    /* ---- Center social icons ---- */
    .social-links {
        justify-content: center;
        width: 100%;
    }
}

/* Optional: fine-tune for very small phones */
@media (max-width: 480px) {
    .contact-title {
        font-size: 2.8rem;
    }
    .contact-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .detail-block .detail-heading,
    .detail-block p {
        text-align: center;
    }
}

/* ==========================================
   DATA CONSENT CHECKBOX
   ========================================== */
.consent-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* Custom Checkbox Styling */
.consent-wrapper input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(5, 5, 5, 0.4);
    border-radius: 2px;
    background-color: transparent;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    margin-top: 3px;
    transition: all 0.3s ease;
}

.consent-wrapper input[type="checkbox"]:checked {
    background-color: #C89B3C;
    border-color: #C89B3C;
}

/* The checkmark */
.consent-wrapper input[type="checkbox"]:checked::after {
    content: '✔';
    position: absolute;
    color: #ffffff;
    font-size: 12px;
    left: 3px;
    top: 0px;
}

.consent-wrapper label {
    font-size: 0.9rem;
    color: #555555;
    line-height: 1.5;
    cursor: pointer;
}