/* =========================
   CONTACT PAGE ROOT & UTILS
========================= */
.relative { position: relative; }
.z-index-1 { z-index: 1; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.center-flex { display: flex; justify-content: center; gap: 16px; }
.text-white { color: var(--white); }
.opacity-80 { opacity: 0.8; }
.glassmorphism { background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.5); box-shadow: 0 20px 40px rgba(0,0,0,0.05); border-radius: 24px; }
.hidden { display: none !important; }

/* Scroll Reveals */
.reveal-up { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-scale { opacity: 0; transform: scale(0.9); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.is-visible { opacity: 1; transform: translate(0) scale(1); filter: blur(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* =========================
   CONTACT HERO
========================= */

/* =========================
   CONTACT HERO
========================= */
/* =========================
   CONTACT HERO
========================= */

/* ... keep the .contact-hero, .contact-hero-bg, etc. above this ... */

/* REPLACE the old .hero-container with this: */
.hero-container { 
    position: relative; 
    z-index: 1; 
    display: grid; 
    grid-template-columns: 1fr 1fr; /* Creates the 2-column layout */
    gap: 40px;
    align-items: center; 
}

/* Add these two rules to align the text and buttons to the left */
.hero-content {
    text-align: left !important;
}

.hero-buttons {
    justify-content: flex-start !important;
}

.contact-hero {
    position: relative;
    padding-top: 180px; /* Increased massively to clear the navbar */
    padding-bottom: 80px; /* Added breathing room at the bottom */
    background: var(--white);
    overflow: hidden;
    /* Removed min-height and flex-centering so tall content flows naturally downwards */
}


/* .contact-hero { min-height: 80vh; display: flex; align-items: center; position: relative; padding-top: 100px; background: var(--white); overflow: hidden; } */
.contact-hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
#contact-particles { position: absolute; width: 100%; height: 100%; top:0; left:0; pointer-events: none; }
.hero-glow-blob { position: absolute; top: 20%; left: 50%; width: 50vw; height: 50vw; transform: translateX(-50%); background: radial-gradient(circle, rgba(11,94,215,0.08) 0%, transparent 60%); filter: blur(40px); border-radius: 50%; }
/* .hero-container { grid-template-columns: 1fr; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; } */
.hero-title { font-size: 3.5rem; margin-bottom: 24px; line-height: 1.1; }
.hero-subtitle { font-size: 1.15rem; color: var(--gray); margin: 0 auto 32px; max-width: 600px; }

/* =========================
   HERO GRAPHICS
========================= */
.hero-visual { width: 100%; max-width: 700px; margin-top: 40px; }
.connection-network { width: 100%; height: auto; overflow: visible; }
.network-line { stroke: rgba(18, 184, 201, 0.3); stroke-width: 2; fill: none; stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: drawLine 2s forwards 0.5s; }
.core-node { filter: drop-shadow(0 0 15px rgba(11,94,215,0.6)); }
.pulse-core { animation: pulseCore 3s infinite alternate; }
.outer-node { transition: all 0.3s; transform-origin: center; animation: floatNode 4s infinite alternate ease-in-out; }
.n1 { animation-delay: 0s; } .n2 { animation-delay: -1s; } .n3 { animation-delay: -2s; } .n4 { animation-delay: -3s; }
.signal-dot { opacity: 0; animation: sendSignal 3s infinite; }
.s1 { offset-path: path('M300 150 L150 80'); animation-delay: 1s; }
.s2 { offset-path: path('M300 150 L450 80'); animation-delay: 2.5s; }

@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes pulseCore { 0% { transform: scale(0.95); } 100% { transform: scale(1.05); filter: drop-shadow(0 0 25px rgba(11,94,215,0.8)); } }
@keyframes floatNode { 0% { transform: translateY(0); } 100% { transform: translateY(-10px); } }
@keyframes sendSignal { 0% { offset-distance: 0%; opacity: 0; } 10% { opacity: 1; filter: drop-shadow(0 0 5px white); } 90% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }

/* =========================
   CONTACT OPTIONS
========================= */
.quick-cards-grid { gap: 24px; }
.quick-card { background: var(--white); border: 1px solid var(--gray-light); border-radius: 16px; padding: 32px 24px; display: flex; flex-direction: column; position: relative; overflow: hidden; transition: var(--transition); z-index: 1; text-decoration: none; color: inherit; }
.qc-icon { width: 40px; height: 40px; color: var(--primary); margin-bottom: 20px; transition: var(--transition); }
.quick-card h4 { font-size: 1.1rem; margin-bottom: 12px; }
.quick-card p { font-size: 0.9rem; color: var(--gray); margin-bottom: 24px; flex-grow: 1; }
.qc-cta { font-family: var(--font-heading); font-size: 0.9rem; font-weight: 700; color: var(--primary); display: flex; align-items: center; transition: var(--transition); }
.qc-glow { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at top right, rgba(11,94,215,0.05) 0%, transparent 60%); opacity: 0; transition: var(--transition); z-index: -1; }
.quick-card:hover { transform: translateY(-5px); border-color: rgba(11, 94, 215, 0.3); box-shadow: 0 15px 30px rgba(11, 94, 215, 0.08); }
.quick-card:hover .qc-icon { transform: scale(1.1); color: var(--accent); }
.quick-card:hover .qc-cta { letter-spacing: 0.5px; }
.quick-card:hover .qc-glow { opacity: 1; }

/* =========================
   CONTACT INFORMATION
========================= */
.main-contact-section { background: var(--dark-alt); overflow: hidden; }
.contact-grid { gap: 60px; align-items: center; }
.contact-info-panel { position: relative; padding: 40px 0; }
.info-bg-visual { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 150%; height: 150%; z-index: 0; pointer-events: none; opacity: 0.15; }
.radar-ring { fill: none; stroke: var(--secondary); stroke-width: 1; stroke-dasharray: 4 4; transform-origin: center; animation: spin 40s linear infinite; }
.r2 { animation-direction: reverse; animation-duration: 30s; }
.info-blocks { display: flex; flex-direction: column; gap: 32px; margin-top: 40px; }
.info-block { display: flex; align-items: flex-start; gap: 16px; }
.ib-icon { width: 48px; height: 48px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; border: 1px solid rgba(255,255,255,0.1); }
.ib-text h5 { color: var(--white); font-size: 1.1rem; margin-bottom: 4px; }
.ib-text p { color: rgba(255,255,255,0.7); font-size: 0.95rem; margin: 0; line-height: 1.5; }

/* =========================
   CONTACT FORM
========================= */
.contact-form-panel { padding: 40px; }
.form-title { font-size: 2rem; margin-bottom: 32px; color: var(--dark); }
.premium-form { display: flex; flex-direction: column; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.input-group { position: relative; display: flex; flex-direction: column; }
.input-group input, .input-group textarea, .input-group select { width: 100%; background: rgba(255,255,255,0.8); border: 1px solid var(--gray-light); border-radius: 12px; padding: 16px; font-family: var(--font-body); font-size: 1rem; color: var(--dark); transition: var(--transition); outline: none; }
.input-group select { appearance: none; cursor: pointer; color: var(--gray); }
.input-group select:focus, .input-group select:valid { color: var(--dark); }
.input-group label { position: absolute; left: 16px; top: 16px; font-size: 1rem; color: var(--gray); pointer-events: none; transition: var(--transition); background: transparent; padding: 0 4px; }
/* Floating Label Logic */
.input-group input:focus, .input-group textarea:focus { border-color: var(--primary); background: var(--white); box-shadow: 0 0 0 4px rgba(11,94,215,0.1); }
.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: -10px; left: 12px; font-size: 0.8rem; font-weight: 600; color: var(--primary); background: var(--white); border-radius: 4px; }

/* Custom Select Arrow */
.select-group::after { content: ''; position: absolute; right: 16px; top: 22px; width: 10px; height: 10px; border-right: 2px solid var(--gray); border-bottom: 2px solid var(--gray); transform: rotate(45deg); pointer-events: none; }

/* =========================
   FORM VALIDATION & STATES
========================= */
.error-msg { font-size: 0.8rem; color: #dc3545; margin-top: 6px; display: none; opacity: 0; transform: translateY(-5px); transition: all 0.3s; }
.input-group.error input, .input-group.error textarea, .input-group.error select { border-color: #dc3545; background: #fff8f8; }
.input-group.error .error-msg { display: block; opacity: 1; transform: translateY(0); }

.btn-submit { position: relative; width: 100%; overflow: hidden; }
.loader-spinner { display: none; width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 1s linear infinite; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.btn-submit.loading .btn-text { opacity: 0; }
.btn-submit.loading .loader-spinner { display: block; }

.form-success-state { text-align: center; padding: 40px 20px; }
.success-icon { width: 64px; height: 64px; background: rgba(67, 217, 163, 0.1); color: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.success-icon svg { width: 32px; height: 32px; }
@keyframes scaleIn { 0% { transform: scale(0); } 100% { transform: scale(1); } }

/* =========================
   TEAM CONTACT SECTION
========================= */
.switcher-layout { max-width: 800px; margin: 0 auto; }
.switcher-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.switcher-tab { padding: 10px 20px; border-radius: 50px; background: transparent; border: 1px solid var(--gray-light); font-family: var(--font-heading); font-weight: 600; color: var(--gray); cursor: pointer; transition: var(--transition); }
.switcher-tab:hover { border-color: var(--primary); color: var(--primary); }
.switcher-tab.active { background: var(--primary); border-color: var(--primary); color: var(--white); box-shadow: 0 4px 15px rgba(11,94,215,0.3); }
.switcher-content { padding: 40px; border-radius: 20px; text-align: center; background: var(--white); position: relative; min-height: 250px; }
.switcher-pane { display: none; opacity: 0; transform: translateY(10px); transition: all 0.4s; }
.switcher-pane.active { display: block; opacity: 1; transform: translateY(0); }
.pane-icon { width: 56px; height: 56px; margin: 0 auto 20px; color: var(--primary); }
.switcher-pane h4 { font-size: 1.5rem; margin-bottom: 12px; }
.switcher-pane p { color: var(--gray); margin-bottom: 24px; }

/* =========================
   MAP SECTION
========================= */
.map-container { width: 100%; max-width: 1000px; margin: 0 auto; background: var(--light); border-radius: 24px; overflow: hidden; border: 1px solid var(--gray-light); }
.stylized-map { width: 100%; height: auto; display: block; }
.map-route { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: drawLine 4s forwards infinite; }
.map-point { animation: pulseCore 2s infinite alternate; }
.pulse-ring { transform-origin: center; animation: pulseGlow 3s infinite; }
.r2 { animation-delay: -1.5s; }
@keyframes pulseGlow { 0% { transform: scale(0.8); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }

/* =========================
   DIRECT CONTACT
========================= */
.dc-card { text-align: center; padding: 32px 24px; background: var(--white); border-radius: 16px; border: 1px solid var(--gray-light); transition: var(--transition); }
.dc-icon { width: 40px; height: 40px; color: var(--primary); margin: 0 auto 16px; }
.dc-card h4 { font-size: 1.1rem; margin-bottom: 8px; }
.dc-value { font-size: 1rem; font-weight: 600; color: var(--gray); margin-bottom: 24px; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.dc-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.05); border-color: rgba(11,94,215,0.3); }

/* =========================
   FAQ
========================= */
.faq-accordion { display: flex; flex-direction: column; gap: 16px; }
.accordion-item { border: 1px solid var(--gray-light); border-radius: 12px; background: var(--white); overflow: hidden; transition: var(--transition); }
.accordion-header { width: 100%; text-align: left; padding: 20px 24px; background: transparent; border: none; font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600; color: var(--dark); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: var(--transition); }
.acc-icon { width: 20px; height: 20px; position: relative; flex-shrink: 0; }
.acc-icon::before, .acc-icon::after { content: ''; position: absolute; background: var(--primary); transition: all 0.3s; }
.acc-icon::before { top: 9px; left: 0; width: 20px; height: 2px; }
.acc-icon::after { top: 0; left: 9px; width: 2px; height: 20px; }
.accordion-item.active .accordion-header { color: var(--primary); }
.accordion-item.active .acc-icon::after { transform: rotate(90deg); opacity: 0; }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; }
.accordion-content p { padding: 0 24px 24px; color: var(--gray); margin: 0; }
.accordion-item.active { border-color: rgba(11,94,215,0.3); box-shadow: 0 5px 15px rgba(11,94,215,0.05); }

/* =========================
   SOCIAL SECTION
========================= */
.social-circle { display: inline-flex; width: 48px; height: 48px; background: rgba(255,255,255,0.1); border-radius: 50%; align-items: center; justify-content: center; color: var(--white); transition: var(--transition); border: 1px solid rgba(255,255,255,0.1); }
.social-circle svg { width: 20px; height: 20px; }
.social-circle:hover { background: var(--primary); transform: translateY(-5px); box-shadow: 0 10px 20px rgba(11,94,215,0.4); }

/* =========================
   FINAL CTA
========================= */
.final-cta-section { position: relative; background: linear-gradient(135deg, var(--dark-alt) 0%, var(--dark) 100%); overflow: hidden; }
.cta-bg-elements { position: absolute; top:0; left:0; width:100%; height:100%; }
.cta-glow { position: absolute; bottom:-50%; left:50%; transform:translateX(-50%); width:80%; height:100%; background: radial-gradient(circle, rgba(18,184,201,0.15) 0%, transparent 60%); filter:blur(40px); }
#cta-particles-layer { position: absolute; width:100%; height:100%; top:0; left:0; pointer-events:none; }
.cta-title { font-size: 3rem; margin-bottom: 24px; }
.cta-desc { font-size: 1.1rem; color: rgba(255,255,255,0.7); max-width: 600px; margin: 0 auto; }

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
    .contact-grid { grid-template-columns: 1fr; }
    .contact-info-panel { padding: 20px 0; }
    .info-blocks { flex-direction: row; flex-wrap: wrap; }
    .info-block { flex: 1 1 45%; }
    .faq-section .grid-2 { grid-template-columns: 1fr; gap: 30px; }
    .faq-text { text-align: center; }
}


   @media (max-width: 768px) {
    /* Add this to your existing mobile rules */
    .hero-container {
        grid-template-columns: 1fr; /* Stacks vertically on mobile */
    }
    .hero-content {
        text-align: center !important;
    }
    .hero-buttons {
        justify-content: center !important;
    }
    .hero-title { font-size: 2.5rem; }
    .quick-cards-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; gap: 16px; }
    .contact-form-panel { padding: 24px; }
    .info-blocks { flex-direction: column; }
    .info-block { flex: 1 1 100%; }
    .grid-4 { grid-template-columns: 1fr; gap: 16px; }
    .switcher-layout { margin-top: 24px; }
    .cta-title { font-size: 2rem; }
    .center-flex { flex-direction: column; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
    #contact-particles, #cta-particles-layer { display: none; }
}