/* ==========================================================================
   B.P.L Associates - Contact Page Stylesheet
   ========================================================================== */

:root {
    /* Map original contact page variables to core theme variables */
    --lux-navy: var(--primary, #081A33);
    --lux-gold: var(--secondary, #D4AF37);
    --lux-gold-light: rgba(212, 175, 55, 0.03);
    --lux-soft-gray: var(--bg-soft-grey, #f4f6f9);
    --lux-charcoal: var(--text-main, #2d3748);
    --border-glass: var(--border-color, rgba(8, 26, 51, 0.08));
    --transition-premium: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Specific body adjustment for contact page, while not disturbing main body layout */
#contact-page {
    background-color: #FAFAFB;
}

/* Premium Hero Intro Frame - Structured like about-hero-section for consistency */
.contact-hero-arena {
    position: relative;
    padding: 180px 0 100px 0;
    min-height: 50vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
                linear-gradient(135deg, var(--primary) 0%, var(--bg-dark) 100%);
    color: #FFFFFF;
    overflow: hidden;
}

.contact-hero-arena::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
}

.contact-hero-arena .hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.25;
    color: #FFFFFF !important;
    margin-bottom: 1.5rem;
    opacity: 1 !important; /* override homepage.css */
}

.contact-hero-arena .hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85) !important;
    max-width: 800px;
    font-weight: 400;
    border-left: 3px solid var(--secondary);
    padding-left: 1.5rem;
    text-align: left;
    margin-bottom: 0;
    opacity: 1 !important; /* override homepage.css */
}

.section-tag-lux {
    font-size: 0.75rem; 
    text-transform: uppercase; 
    letter-spacing: 5px;
    color: var(--lux-gold); 
    font-weight: 700; 
    display: block; 
    margin-bottom: 1rem;
}

/* ROW 1: Massive Cinematic Map Viewport Matrix Container */
.map-viewport-wrapper {
    position: relative;
    height: 520px;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 40px 80px rgba(8, 26, 51, 0.06);
    border: 1px solid var(--border-glass);
    margin-top: 5rem; /* Space between hero boundary and map */
    margin-bottom: 4rem;
    background: #E5E9F0;
}
.map-iframe-container {
    width: 100%; 
    height: 100%; 
    position: absolute; 
    top: 0; 
    left: 0;
    opacity: 0; 
    visibility: hidden; 
    transform: scale(1.04) translateY(10px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
    z-index: 1;
    filter: grayscale(0.1) contrast(1.05);
}
.map-iframe-container.active { 
    opacity: 1; 
    visibility: visible; 
    transform: scale(1) translateY(0); 
    z-index: 2; 
}
.map-iframe-container iframe { 
    width: 100%; 
    height: 100%; 
    border: 0; 
    display: block; 
}

/* Floating Interactive Action Panel Over Map */
.map-floating-overlay {
    position: absolute;
    bottom: 24px;
    left: 24px;
    z-index: 10;
    background: rgba(8, 26, 51, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    color: #FFFFFF;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.map-floating-overlay i {
    color: var(--lux-gold);
    font-size: 1rem;
}

/* ROW 2: Layout Node Architectural Matrices */
.office-selector-card {
    background: #FFFFFF;
    border: 1px solid rgba(8, 26, 51, 0.06);
    padding: 3rem 2.5rem; 
    position: relative; 
    cursor: pointer;
    height: 100%;
    border-radius: 4px;
    transition: var(--transition-premium);
}

/* Subtle architectural vector accent block */
.office-selector-card::before {
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    height: 100%;
    background: linear-gradient(180deg, var(--lux-gold) 0%, transparent 100%); 
    width: 0px; 
    transition: var(--transition-premium);
}
.office-selector-card::after {
    content: '\f5a0'; 
    font-family: 'Font Awesome 6 Free'; 
    font-weight: 900;
    position: absolute; 
    bottom: 30px; 
    right: 30px; 
    font-size: 3.5rem;
    color: rgba(8, 26, 51, 0.02); 
    transition: var(--transition-premium);
    pointer-events: none;
}

.office-selector-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.25); 
    box-shadow: 0 40px 70px rgba(8, 26, 51, 0.05);
}
.office-selector-card:hover::after {
    color: rgba(212, 175, 55, 0.04);
    transform: scale(1.1) rotate(-5deg);
}

.office-selector-card.active {
    border-color: var(--lux-navy);
    box-shadow: 0 40px 80px rgba(8, 26, 51, 0.08);
    background: linear-gradient(135deg, #FFFFFF 0%, var(--lux-gold-light) 100%);
}
.office-selector-card.active::before { 
    width: 4px; 
}

.office-card-header {
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    margin-bottom: 1.75rem;
}
.office-card-header h4 { 
    margin-bottom: 0px; 
    font-weight: 700; 
    font-size: 1.45rem; 
    transition: var(--transition-premium); 
}
.office-selector-card.active .office-card-header h4 { 
    color: var(--lux-gold); 
}

.active-hub-pill {
    background: transparent; 
    color: var(--lux-navy); 
    font-size: 0.65rem;
    font-weight: 700; 
    letter-spacing: 2px; 
    text-transform: uppercase;
    padding: 0.5rem 1rem; 
    display: block; 
    border-radius: 0;
    border: 1px solid rgba(8, 26, 51, 0.1);
    transition: var(--transition-premium);
}
.office-selector-card.active .active-hub-pill { 
    background-color: var(--lux-gold); 
    border-color: var(--lux-gold);
    color: var(--lux-navy); 
}

/* Micro Interactive Content Links layout */
.meta-links-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meta-link-row {
    font-size: 0.95rem; 
    color: var(--lux-charcoal); 
    display: flex; 
    align-items: center; 
    gap: 14px; 
    text-decoration: none !important; 
    width: fit-content; 
    transition: var(--transition-premium);
}
.meta-link-row i { 
    color: var(--lux-navy); 
    width: 32px; 
    height: 32px; 
    background: var(--lux-soft-gray); 
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 0.85rem; 
    transition: var(--transition-premium); 
}
.office-selector-card:hover .meta-link-row i { 
    background: rgba(8, 26, 51, 0.05);
    color: var(--lux-navy); 
}
.office-selector-card.active .meta-link-row i {
    background: #FFFFFF;
    box-shadow: 0 4px 10px rgba(8, 26, 51, 0.04);
}
.meta-link-row:hover { 
    color: var(--lux-gold); 
    transform: translateX(4px); 
}
.meta-link-row:hover i { 
    background: var(--lux-navy) !important; 
    color: #FFFFFF !important; 
}

/* Modern Glassmorphic Operations Hub Panel */
.scheduler-dock-panel {
    background: #FFFFFF;
    border: 1px solid var(--border-glass);
    padding: 4rem;
    margin-top: 2rem;
    margin-bottom: 7rem;
    position: relative;
    border-radius: 4px;
    box-shadow: 0 30px 60px rgba(8, 26, 51, 0.03);
    overflow: hidden;
}
.scheduler-dock-panel::before {
    content: ''; 
    position: absolute; 
    top: -50%; 
    left: -50%; 
    width: 200%; 
    height: 200%;
    background: radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.04), transparent 50%);
    pointer-events: none;
}
.clock-ticker-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0.6rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.75rem;
    border-radius: 50px;
    transition: var(--transition-premium);
}
.badge-open {
    background: rgba(25, 135, 84, 0.08);
    color: #147246;
    border: 1px solid rgba(25, 135, 84, 0.15);
}
.badge-closed {
    background: rgba(220, 53, 69, 0.08);
    color: #b92534;
    border: 1px solid rgba(220, 53, 69, 0.15);
}
.clock-ticker-badge .pulse-dot {
    width: 8px; 
    height: 8px; 
    border-radius: 50%;
    background-color: currentColor;
    animation: alphaPulse 2s infinite ease-in-out;
}
@keyframes alphaPulse {
    0% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0.3; transform: scale(0.8); }
}

.time-matrix-list {
    list-style: none; 
    padding: 0; 
    margin: 0;
}
.time-matrix-list li {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 1rem 0; 
    border-bottom: 1px dashed rgba(8, 26, 51, 0.08);
    font-size: 0.95rem;
}
.time-matrix-list li:last-child { 
    border-bottom: none; 
}
.time-matrix-list li strong { 
    color: var(--lux-navy); 
    font-weight: 600; 
}

@media (max-width: 991px) {
    .scheduler-dock-panel { 
        padding: 3rem 2rem; 
    }
    .border-md-none { 
        border: none !important; 
        padding-left: 0 !important; 
        margin-top: 2rem; 
    }
    .contact-hero-arena .hero-title {
        font-size: 2.5rem;
    }
    .contact-hero-arena .hero-subtitle {
        font-size: 1rem;
    }
}
@media (max-width: 767px) {
    .contact-hero-arena {
        padding-top: 120px;
        padding-bottom: 2rem;
        min-height: auto;
    }
    .map-viewport-wrapper { 
        height: 360px; 
        margin-top: 3rem; /* Spacing adjustment for mobile */
        margin-bottom: 2.5rem; 
    }
    .office-selector-card { 
        padding: 2.5rem 1.5rem; 
    }
}
