/* ==========================================================================
   Advanced Modern Contact Page - Agency Pattern (Redesign)
   Aesthetic: Technical White, Mission Green, Engineering Precision
   ========================================================================== */

:root {
    --brand-lime: #a3e635;
    --brand-lime-glow: rgba(163, 230, 53, 0.4);
    --brand-dark: #ffffff;
    --brand-dark-alt: #f9f9f9;
    --text-muted: #666666;
    --border-light: rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(0, 0, 0, 0.08);
}

.contact-page-wrapper {
    font-family: 'Inter', 'Rajdhani', sans-serif !important;
    background-color: var(--brand-dark-alt);
    color: #111111;
}

.contact-page-wrapper p,
.contact-page-wrapper label,
.contact-page-wrapper input,
.contact-page-wrapper textarea {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

/* --- 1. Dark Hero Section --- */
.contact-hero-dark {
    background:
        linear-gradient(to bottom, rgba(2, 6, 23, 0.75), rgba(15, 23, 42, 0.95)),
        url('../images/contact-bg.png') center/cover no-repeat;
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* scanline effect */
.contact-hero-dark::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 50%, rgba(0, 0, 0, 0.2) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 2;
}

.contact-hero-dark .hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--brand-lime-glow) 0%, transparent 70%);
    top: -250px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    filter: blur(80px);
}

.contact-hero-dark h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(48px, 8vw, 92px);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    position: relative;
    z-index: 5;
    letter-spacing: -2px;
    line-height: 1;
    text-shadow: 0 0 30px rgba(163,230,53,0.3);
}

.contact-breadcrumb {
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-lime);
    letter-spacing: 2px;
    display: flex;
    justify-content: center;
    gap: 12px;
    position: relative;
    z-index: 5;
    text-transform: uppercase;
}

.contact-breadcrumb a {
    color: #94a3b8;
    text-decoration: none;
    transition: 0.3s;
}

.contact-breadcrumb a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--brand-lime);
}

/* --- 2. Service Marquee (Updated to sleek line) --- */
.contact-marquee {
    background: #ffffff;
    padding: 20px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 10;
}

.marquee-content {
    display: inline-flex;
    animation: marquee-scroll 80s linear infinite;
    gap: 60px;
    align-items: center;
}

.marquee-item {
    font-size: 14px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.marquee-item i {
    font-size: 10px;
    color: var(--brand-lime);
}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* --- 3. Split Info Section --- */
.contact-split-section {
    padding: 100px 0;
    background: var(--brand-dark-alt);
    position: relative;
}

/* Add an ambient background glow for the split section */
.contact-split-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--brand-lime-glow) 0%, transparent 60%);
    filter: blur(120px);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.split-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: flex-start;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Form Side */
.contact-form-side h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 40px;
    letter-spacing: -1px;
    color: #111111;
}

/* Glass Form Styles */
.glass-form {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group-full {
    grid-column: span 2;
}

/* Floating Labels */
.floating-label-group {
    position: relative;
    display: flex;
    flex-direction: column;
}

.floating-label-group input,
.floating-label-group textarea,
.floating-label-group select {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-light);
    padding: 24px 20px 10px; /* space for floating label */
    font-size: 16px;
    color: #111111;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
    width: 100%;
}

.floating-label-group select {
    padding: 18px 20px 18px; /* Slightly different padding for select since there's no floating label */
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
}

.floating-label-group select:focus {
    border-color: var(--brand-lime);
    background-color: rgba(163, 230, 53, 0.03);
    box-shadow: 0 0 15px rgba(163,230,53,0.1);
}

.floating-label-group textarea {
    min-height: 140px;
    resize: vertical;
}

.floating-label-group label {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 15px;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.2s ease-out;
}

/* When input is focused or has content, float the label */
.floating-label-group input:focus,
.floating-label-group textarea:focus,
.floating-label-group input:not(:placeholder-shown),
.floating-label-group textarea:not(:placeholder-shown) {
    border-color: var(--brand-lime);
    background: rgba(163, 230, 53, 0.03);
    box-shadow: 0 0 15px rgba(163,230,53,0.1);
}

.floating-label-group input:focus ~ label,
.floating-label-group textarea:focus ~ label,
.floating-label-group input:not(:placeholder-shown) ~ label,
.floating-label-group textarea:not(:placeholder-shown) ~ label {
    top: 8px;
    font-size: 11px;
    color: var(--brand-lime);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Send Button */
.btn-send-technical {
    background: var(--brand-lime);
    border: 1px solid var(--brand-lime);
    padding: 16px 20px 16px 32px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #000;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 100px;
    margin-top: 35px;
    letter-spacing: 1px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.btn-send-technical::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0; height: 100%;
    background: #ffffff;
    transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 0;
}

.btn-send-technical span {
    position: relative;
    z-index: 1;
}

.btn-send-technical:hover::before {
    width: 100%;
}

.btn-send-technical:hover {
    box-shadow: 0 10px 25px var(--brand-lime-glow);
}

.circle-arrow {
    width: 40px;
    height: 40px;
    background: #000;
    color: var(--brand-lime);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: 0.3s;
    position: relative;
    z-index: 1;
}

.btn-send-technical:hover .circle-arrow {
    transform: translateX(4px);
}


/* --- Info Side (Glass Cards) --- */
.contact-info-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--brand-lime);
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(163, 230, 53, 0.15);
}

/* Branded Identity Strip */
.branded-identity-strip {
    background: transparent;
    color: #111111;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 0;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.branded-identity-strip i {
    font-size: 6px;
    opacity: 0.4;
}

.info-block {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 35px;
    border-radius: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.info-block:hover {
    transform: translateY(-5px);
    border-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.info-block h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #111111;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-block h4::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background: #111111;
    border-radius: 50%;
}

.info-block p,
.info-block a {
    font-size: 15px;
    color: #444444;
    text-decoration: none;
    display: block;
    line-height: 1.6;
    margin-bottom: 8px;
}

.info-block a:hover {
    color: #111111;
    text-decoration: underline;
}

.social-stack {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-node-dark {
    width: 48px;
    height: 48px;
    background: rgba(0,0,0,0.8) !important;
    border: 1px solid rgba(0,0,0,0.8) !important;
    color: #fff !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.social-node-dark:hover {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: #000 !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* --- 4. Technical Map --- */
.contact-map-section {
    padding: 0 40px 100px;
    background: var(--brand-dark-alt);
}

.map-wrapper-modern {
    height: 500px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-light);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.map-wrapper-modern iframe {
    width: 100%;
    height: 100%;
}

/* --- Alert / Flash Messages --- */
.contact-alert {
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.contact-alert-success {
    background: rgba(163, 230, 53, 0.1);
    border: 1px solid rgba(163, 230, 53, 0.3);
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-alert-success .contact-alert-icon {
    width: 36px;
    height: 36px;
    background: var(--brand-lime);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-alert-success .contact-alert-icon i {
    color: #000;
    font-size: 16px;
}

.contact-alert-success p {
    margin: 0;
    color: #111111;
    font-size: 15px;
    font-weight: 500;
}

.contact-alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.contact-alert-error .contact-alert-title {
    margin: 0 0 10px 0;
    color: #ff6b6b;
    font-weight: 700;
    font-size: 15px;
}

.contact-alert-error ul {
    margin: 0;
    padding-left: 20px;
}

.contact-alert-error li {
    color: #ffcccc;
    font-size: 14px;
    margin-bottom: 6px;
}

/* --- User Badge --- */
.contact-user-badge {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-user-badge img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--brand-lime);
}

.contact-user-name {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #111111;
}

.contact-user-email {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
}

/* --- Badge Pill Override --- */
.contact-badge-pill {
    background: rgba(163, 230, 53, 0.1) !important;
    border: 1px solid var(--brand-lime);
    color: var(--brand-lime) !important;
    margin-bottom: 20px;
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* ==========================================================================
   RESPONSIVE OVERRIDES
   ========================================================================== */

@media (max-width: 1200px) {
    .split-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .glass-form {
        padding: 40px;
    }
}

@media (max-width: 991px) {
    .contact-hero-dark h1 {
        font-size: clamp(36px, 7vw, 60px);
    }
    .contact-split-section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-group-full {
        grid-column: span 1;
    }
    .glass-form {
        padding: 30px 20px;
    }
    .contact-hero-dark {
        padding: 120px 0 60px;
    }
    .info-block {
        padding: 25px;
    }
}
