/* ============================================
   CONTACT PAGE — MODERN DUAL-COLUMN LAYOUT
   ============================================ */

/* ── HERO ── */
.contact-hero {
    padding: 140px 0 50px !important;
    margin-top: 0 !important;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(36, 114, 191, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(111, 179, 255, 0.08) 0%, transparent 50%),
        linear-gradient(160deg, #081220 0%, #0B1F36 30%, #10345D 60%, #2472BF 100%) !important;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.4;
    z-index: 0;
}

/* ── Hero two-column grid ── */
.contact-hero-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.contact-hero-content {
    flex: 1;
    max-width: 640px;
}

.contact-hero-graphic {
    flex: 0 0 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

/* ── Breadcrumb ── */
.contact-hero .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.contact-hero .breadcrumb-item a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
}

.contact-hero .breadcrumb-item a:hover {
    color: #ffffff;
}

.contact-hero .breadcrumb-item.active {
    color: rgba(255,255,255,0.9);
}

.contact-hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.4);
}

/* ── Pill badge ── */
.hero-pill {
    display: inline-block;
    background: rgba(111, 179, 255, 0.12);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #6FB3FF;
    border: 1px solid rgba(111, 179, 255, 0.2);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

/* ── Gradient title ── */
.contact-hero h1 {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #6FB3FF 60%, #a8d8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Subtitle ── */
.contact-hero .hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 480px;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* ── CTA buttons ── */
.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #2472BF 0%, #1a5a9e 100%);
    color: #fff;
    padding: 0.85rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 20px rgba(36, 114, 191, 0.3);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-hero-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 35px rgba(36, 114, 191, 0.5);
    color: #fff;
}

.btn-hero-outline {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.85rem 2.2rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* ── Metrics row ── */
.hero-metrics {
    display: flex;
    gap: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-metric {
    display: flex;
    flex-direction: column;
}

.hero-metric-number {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, #6FB3FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-metric-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
    font-weight: 500;
}

/* ── Floating graphic ── */
.graphic-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.graphic-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(111, 179, 255, 0.12);
    border: 2px solid rgba(111, 179, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #6FB3FF;
    position: relative;
    z-index: 2;
    animation: floatIcon 6s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

.pulse-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(111, 179, 255, 0.15);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulseRing 4s ease-in-out infinite;
}

.pulse-ring-1 {
    width: 140px;
    height: 140px;
    animation-delay: 0s;
}

.pulse-ring-2 {
    width: 180px;
    height: 180px;
    animation-delay: 1s;
}

.pulse-ring-3 {
    width: 220px;
    height: 220px;
    animation-delay: 2s;
}

@keyframes pulseRing {
    0% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.1; transform: translate(-50%, -50%) scale(1.15); }
    100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
}

/* Layout content section */
.contact-content-section {
    padding: 60px 0 80px;
    position: relative;
    z-index: 2;
    overflow: hidden;
    max-width: none;
}

/* ── FLEXBOX ROW — equalize column heights ── */
.contact-layout-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
}

.contact-layout-row > [class*="col-"] {
    display: flex !important;
    flex-direction: column !important;
}

/* Right column sidebar wrapper */
.contact-sidebar-wrapper {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: 1.5rem;
    height: 100% !important;
}

/* Contact cards */
.contact-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: visible;
}

.contact-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
}

.contact-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1e293b;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.contact-card strong {
    color: #1e293b;
}

/* ── MAP CONTAINMENT — flex-grown, strictly bounded ── */
.contact-map-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0 !important;
    overflow: hidden !important;
    position: relative !important;
    flex-grow: 1 !important;
    min-height: 250px !important;
    max-height: 320px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    contain: paint;
}

.contact-map-container {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 250px !important;
    overflow: hidden !important;
    border-radius: 12px;
    contain: paint;
}

#contactMap,
#map {
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Leaflet panes must not escape the container */
.contact-map-container .leaflet-pane,
.contact-map-container .leaflet-top,
.contact-map-container .leaflet-bottom,
.contact-map-container .leaflet-left,
.contact-map-container .leaflet-right {
    z-index: 1 !important;
}

.contact-map-fallback {
    display: none;
    height: 100%;
    min-height: 250px;
    width: 100%;
    border-radius: 12px;
    border: 1px dashed #dee2e6;
    background: #fff;
    padding: 2rem;
    text-align: center;
}

/* Info items (inside contact card) */
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #eff6ff;
    color: #1e40af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-item .info-text h6 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.15rem;
}

.info-item .info-text p {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.15rem;
    line-height: 1.5;
}

.info-item .info-text a {
    color: #2563eb;
    text-decoration: none;
}

.info-item .info-text a:hover {
    text-decoration: underline;
}

/* Form floating labels */
.contact-form .form-floating {
    position: relative;
}

.contact-form .form-floating > .form-control,
.contact-form .form-floating > .form-select {
    height: calc(3.5rem + 2px);
    line-height: 1.25;
    padding: 1rem 0.75rem;
}

.contact-form .form-floating > label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 1rem 0.75rem;
    overflow: hidden;
    text-align: start;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    color: #94a3b8;
    font-size: 0.875rem;
    transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
}

.contact-form .form-floating > .form-control:focus ~ label,
.contact-form .form-floating > .form-control:not(:placeholder-shown) ~ label,
.contact-form .form-floating > .form-select ~ label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
    color: #2563eb;
}

.contact-form .form-control {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form .form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Honeypot field — hidden from real users */
.contact-form .hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none;
    tab-index: -1;
}

/* Branch offices grid */
.branch-grid {
    padding: 60px 0 80px;
    background: #f8fafc;
    position: relative;
    z-index: 2;
    overflow: hidden;
    max-width: none;
}

.branch-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.branch-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}

.branch-card .branch-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #eff6ff;
    color: #1e40af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.branch-card h6 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.branch-card .branch-address {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.branch-card .branch-contact {
    font-size: 0.8rem;
    color: #64748b;
}

.branch-card .branch-contact a {
    color: #2563eb;
    text-decoration: none;
}

.branch-card .branch-contact a:hover {
    text-decoration: underline;
}

/* ── RESPONSIVE ── */
@media (max-width: 991px) {
    .contact-hero {
        padding: 100px 0 40px !important;
    }

    .contact-hero-grid {
        flex-direction: column;
        text-align: center;
    }

    .contact-hero-content {
        max-width: 100%;
    }

    .contact-hero .hero-subtitle {
        max-width: 100%;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-metrics {
        justify-content: center;
    }

    .contact-hero-graphic {
        flex: 0 0 auto;
        min-height: 180px;
    }

    .contact-layout-row {
        display: block !important;
    }

    .contact-layout-row > [class*="col-"] {
        display: block !important;
    }

    .contact-sidebar-wrapper {
        display: block !important;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .contact-hero h1 {
        font-size: 2rem;
    }

    .contact-card {
        padding: 20px;
    }

    .contact-content-section {
        padding: 40px 0 60px;
    }

    .contact-hero-graphic {
        display: none;
    }

    .hero-metrics {
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .hero-metric-number {
        font-size: 1.4rem;
    }

    .contact-map-container {
        height: 250px !important;
        min-height: 200px !important;
    }

    .contact-map-card {
        max-height: 250px !important;
        min-height: 200px !important;
    }

    #contactMap,
    #map {
        height: 200px !important;
    }

    .branch-grid {
        padding: 40px 0 60px;
    }
}

@media (max-width: 576px) {
    .hero-metrics {
        gap: 1rem;
    }

    .hero-metric-number {
        font-size: 1.2rem;
    }

    .hero-metric-label {
        font-size: 0.6rem;
    }

    .btn-hero-primary,
    .btn-hero-outline {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}
