:root {
    --navy: #a78bfa;
    --navy-dark: #050212;
    --navy-soft: #0f0724;
    --light-bg: transparent;
    --card-bg: rgba(255, 255, 255, 0.02);
    --text-dark: #ffffff;
    --text-muted: #d8b4fe;
    --line-soft: rgba(168, 85, 247, 0.15);
    --border-soft: rgba(255, 255, 255, 0.1);
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.25);
    --shadow-hover: 0 25px 55px rgba(0, 0, 0, 0.35);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 16px;
    --transition: all 0.35s ease;
    --hero-bg: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-soft) 100%);
    --hero-text-color: #ffffff;
    --hero-badge-bg: rgba(255,255,255,0.10);
    --hero-badge-color: #eef5fc;
    --hero-subtitle-color: rgba(255,255,255,0.84);
}

:root[data-theme="light"],
body.light-theme {
    --navy: #8b5cf6;
    --navy-dark: #581c87;
    --navy-soft: #7c3aed;
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #4b5563;
    --line-soft: rgba(15, 23, 42, 0.08);
    --border-soft: rgba(15, 23, 42, 0.1);
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.04);
    --shadow-hover: 0 25px 55px rgba(15, 23, 42, 0.06);
    --hero-bg: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    --hero-text-color: #0f172a;
    --hero-badge-bg: rgba(15, 23, 42, 0.05);
    --hero-badge-color: #0f172a;
    --hero-subtitle-color: #475569;
}

* {
    box-sizing: border-box;
}

.contact-page-wrapper {
    overflow: hidden;
    background: var(--light-bg);
}

.contact-main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HERO */
.contact-hero-section {
    position: relative;
    background: var(--hero-bg);
    padding: 110px 0 120px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-soft);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 42px 42px;
    opacity: 0.25;
    pointer-events: none;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    animation: floaty 8s ease-in-out infinite;
}

.hero-shape-1 {
    width: 300px;
    height: 300px;
    top: 30px;
    right: 8%;
}

.hero-shape-2 {
    width: 95px;
    height: 95px;
    top: 140px;
    right: 24%;
    animation-delay: 1.5s;
}

.hero-shape-3 {
    width: 190px;
    height: 190px;
    left: 5%;
    bottom: 35px;
    animation-delay: 2.5s;
}

.contact-header {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    color: var(--hero-text-color);
    animation: fadeUp 0.9s ease;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--hero-badge-bg);
    border: 1px solid var(--border-soft);
    color: var(--hero-badge-color);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

.contact-header h1,
.contact-header h2 {
    font-size: clamp(2.4rem, 5vw, 4.25rem);
    line-height: 1.08;
    font-weight: 800;
    margin: 0 0 20px;
    letter-spacing: -0.02em;
}

.contact-header p {
    font-size: 1.12rem;
    line-height: 1.9;
    color: var(--hero-subtitle-color);
    max-width: 760px;
    margin: 0 auto;
}

/* FORM AREA */
.contact-form-section {
    background: var(--light-bg);
    padding: 70px 0 85px;
}

.alert {
    max-width: 900px;
    margin: 0 auto 24px;
    background: #fff;
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: var(--shadow-soft);
}

.contact-content {
    display: grid;
    grid-template-columns: 1.6fr 0.8fr;
    gap: 30px;
    align-items: start;
}

.contact-card,
.info-card,
.map-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--line-soft);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition);
}

.contact-card:hover,
.info-card:hover,
.map-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.contact-card::before,
.info-card::before,
.map-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.04), transparent 45%);
    pointer-events: none;
}

.contact-card {
    padding: 34px 32px;
}

.info-card {
    padding: 32px 28px;
}

.card-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: #e8f0f8;
    color: var(--navy-soft);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 14px;
}

.contact-card h3,
.info-card h3,
.map-card h3 {
    font-size: 2.15rem;
    line-height: 1.15;
    color: var(--text-dark);
    margin: 0 0 12px;
    font-weight: 800;
}

.card-subtext {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 24px;
}

/* FORM STYLING */
.contact-method p {
    margin-bottom: 18px;
}

.contact-method label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark) !important;
    font-size: 0.98rem;
    font-weight: 700;
}

.contact-method input,
.contact-method textarea,
.contact-method select {
    width: 100%;
    border: 1px solid var(--border-soft);
    background: var(--card-bg);
    color: var(--text-dark);
    border-radius: 16px;
    padding: 15px 16px;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    box-shadow: inset 0 0 0 1px transparent;
}

.contact-method input::placeholder,
.contact-method textarea::placeholder {
    color: #8a9bb0;
}

.contact-method textarea {
    min-height: 170px;
    resize: vertical;
}

.contact-method input:hover,
.contact-method textarea:hover,
.contact-method select:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--navy);
}

.contact-method input:focus,
.contact-method textarea:focus,
.contact-method select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--navy);
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.2);
    transform: translateY(-2px);
}

.contact-method button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    padding: 15px 28px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--navy-soft), var(--navy));
    color: #fff;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 16px 32px rgba(168, 85, 247, 0.22);
}

.contact-method button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -130%;
    width: 80%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.26), transparent);
    transform: skewX(-20deg);
    transition: left 0.75s ease;
}

.contact-method button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 22px 38px rgba(168, 85, 247, 0.26);
}

.contact-method button:hover::before {
    left: 130%;
}

/* INFO CARD */
.info-list {
    display: grid;
    gap: 16px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    padding: 18px 16px;
    transition: var(--transition);
}

.info-item:hover {
    transform: translateX(8px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-hover);
}

.info-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #dbeaf8, #edf5fd);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
}

.info-item h4 {
    margin: 0 0 5px;
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 800;
}

.info-item p,
.info-item a {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
    text-decoration: none;
}

.info-item a:hover {
    color: var(--navy-soft);
}

/* MAP */
.contact-map-section {
    position: relative;
    background: linear-gradient(135deg, #143f70 0%, #133866 100%);
    padding: 105px 0 75px;
    overflow: hidden;
}

.map-bg-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
}

.map-bg-shape-1 {
    width: 220px;
    height: 220px;
    top: 40px;
    left: 8%;
}

.map-bg-shape-2 {
    width: 90px;
    height: 90px;
    right: 14%;
    bottom: 40px;
}

.map-card {
    max-width: 1100px;
    margin: 50px auto 0;
    padding: 28px;
}

.map-frame-wrap {
    border-radius: 22px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(168, 85, 247, 0.06);
}

.google-map-embed {
    width: 100%;
    height: 300px;
    border: none;
    display: block;
    transition: transform 0.7s ease;
}

.map-card:hover .google-map-embed {
    transform: scale(1.03);
}

/* CTA */
.contact-cta-section {
    background: #ffffff;
    padding: 70px 0 110px;
}

.cta-wrap {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.cta-glow {
    position: absolute;
    inset: 30px 80px -10px 80px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.18), transparent 70%);
    filter: blur(30px);
    z-index: 0;
}

.cta-card {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
    background: linear-gradient(135deg, #102f56 0%, #143f70 55%, #18497f 100%);
    border-radius: 30px;
    padding: 52px 38px;
    text-align: center;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(16, 49, 87, 0.22);
}

.cta-shape {
    position: absolute;
    background: rgba(255,255,255,0.08);
}

.cta-shape-1 {
    width: 150px;
    height: 150px;
    border-radius: 40px 0 0 40px;
    top: -24px;
    right: -12px;
}

.cta-shape-2 {
    width: 78px;
    height: 78px;
    border-radius: 0 24px 0 24px;
    left: -14px;
    bottom: -12px;
}

.cta-badge {
    margin-bottom: 18px;
}

.cta-card h3 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
    margin: 0 0 16px;
    position: relative;
    z-index: 2;
}

.cta-card p {
    max-width: 680px;
    margin: 0 auto 26px;
    color: rgba(255,255,255,0.84);
    line-height: 1.9;
    font-size: 1.03rem;
    position: relative;
    z-index: 2;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.cta-btn {
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 999px;
    font-weight: 700;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
}

.cta-btn-primary {
    background: #ffffff;
    color: var(--navy);
    box-shadow: 0 14px 30px rgba(255,255,255,0.14);
}

.cta-btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.30);
}

.cta-btn:hover {
    transform: translateY(-4px);
}

.cta-btn-primary:hover {
    box-shadow: 0 20px 36px rgba(255,255,255,0.18);
}

.cta-btn-secondary:hover {
    background: rgba(255,255,255,0.08);
}

/* ANIMATIONS */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floaty {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-16px);
    }
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-hero-section {
        padding: 90px 0 95px;
    }

    .contact-header h1,
.contact-header h2 {
        font-size: 2.8rem;
    }

    .map-card {
        margin-top: 35px;
    }

    .google-map-embed {
        height: 260px;
    }
}

@media (max-width: 576px) {
    .contact-main {
        padding: 0 14px;
    }

    .contact-header h1,
.contact-header h2 {
        font-size: 2.1rem;
    }

    .contact-header p {
        font-size: 1rem;
    }

    .contact-card,
    .info-card,
    .map-card {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .contact-card h3,
    .info-card h3,
    .map-card h3 {
        font-size: 1.75rem;
    }

    .contact-method textarea {
        min-height: 140px;
    }

    .google-map-embed {
        height: 220px;
    }

    .cta-card {
        padding: 38px 22px;
        border-radius: 24px;
    }

    .cta-actions {
        flex-direction: column;
    }

    .cta-btn {
        width: 100%;
    }
}

/* =========================
   LIGHT THEME OVERRIDES FOR CARDS & FORM
   ========================= */
body.light-theme .contact-card,
:root[data-theme="light"] .contact-card,
body.light-theme .info-card,
:root[data-theme="light"] .info-card,
body.light-theme .map-card,
:root[data-theme="light"] .map-card {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body.light-theme .contact-method label,
:root[data-theme="light"] .contact-method label {
    color: #183a62 !important;
}

body.light-theme .contact-method input,
:root[data-theme="light"] .contact-method input,
body.light-theme .contact-method textarea,
:root[data-theme="light"] .contact-method textarea,
body.light-theme .contact-method select,
:root[data-theme="light"] .contact-method select {
    background: #f8fbff !important;
    color: #173a63 !important;
    border-color: rgba(168, 85, 247, 0.15) !important;
}

body.light-theme .contact-method input:hover,
:root[data-theme="light"] .contact-method input:hover,
body.light-theme .contact-method textarea:hover,
:root[data-theme="light"] .contact-method textarea:hover,
body.light-theme .contact-method select:hover,
:root[data-theme="light"] .contact-method select:hover {
    background: #ffffff !important;
    border-color: rgba(168, 85, 247, 0.26) !important;
}

body.light-theme .contact-method input:focus,
:root[data-theme="light"] .contact-method input:focus,
body.light-theme .contact-method textarea:focus,
:root[data-theme="light"] .contact-method textarea:focus,
body.light-theme .contact-method select:focus,
:root[data-theme="light"] .contact-method select:focus {
    background: #ffffff !important;
    border-color: rgba(31, 83, 140, 0.35) !important;
    box-shadow: 0 0 0 4px rgba(31, 83, 140, 0.08) !important;
}

body.light-theme .info-item,
:root[data-theme="light"] .info-item {
    background: #f6f9fd !important;
    border-color: rgba(168, 85, 247, 0.07) !important;
}

body.light-theme .info-item:hover,
:root[data-theme="light"] .info-item:hover {
    background: #ffffff !important;
    box-shadow: 0 14px 30px rgba(168, 85, 247, 0.08) !important;
}

/* ===================================
   DARK THEME OVERRIDES
   =================================== */
body.dark-theme .contact-cta-section,
html[data-theme="dark"] .contact-cta-section {
    background: transparent !important;
}