/* Contact Page Specific Styles */
:root {
    --contact-bg-dark: #072A30;
    --contact-accent: #17C64F;
    --contact-text-light: #EDF2F2;
    --contact-text-muted: #B8C1C1;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Fix Background Issues */
html,
body {
    background-color: var(--contact-bg-dark) !important;
    /* Override globals.css */
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    color: var(--contact-text-light);
    overflow-x: hidden;
    position: relative;
}

/* Page Main Container */
.contact-page-main {
    position: relative;
    padding-top: var(--header-height);
    min-height: 100vh;
    overflow: hidden;
    z-index: 1;
}

/* Animated Background Blobs */
.contact-bg-anim {
    position: fixed;
    /* Fixed to cover scroll */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: blobFloat 20s infinite ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--contact-accent) 0%, transparent 70%);
    animation-delay: 0s;
}

.blob-2 {
    bottom: 20%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #0a8f8f 0%, transparent 70%);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 30%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0.2;
    animation-delay: -10s;
}

@keyframes blobFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Doodle Flow Animation */
.contact-doodle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
}

.doodle-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: dash 20s linear infinite;
}

.doodle-path--1 {
    animation-duration: 25s;
}

.doodle-path--2 {
    animation-duration: 35s;
    animation-direction: reverse;
}

.doodle-path--3 {
    animation-duration: 30s;
}

@keyframes dash {
    to {
        stroke-dashoffset: 0;
    }
}

/* Contact Hero */
.contact-hero {
    position: relative;
    z-index: 2;
    padding: 60px 20px 40px;
    text-align: center;
}

.contact-hero h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 0%, #a5f3c3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.contact-hero p {
    font-size: 1.25rem;
    color: var(--contact-text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Split Section */
.contact-split {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    padding: 0 20px 100px;
    align-items: start;
}

/* Contact Info (Left) */
.contact-info {
    padding-top: 40px;
}

.info-group {
    margin-bottom: 48px;
    border-left: 2px solid rgba(23, 198, 79, 0.3);
    padding-left: 24px;
    transition: all 0.3s ease;
}

.info-group:hover {
    border-left-color: var(--contact-accent);
    padding-left: 32px;
}

.info-label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--contact-accent);
    margin-bottom: 12px;
    font-weight: 600;
}

.info-value {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--contact-text-light);
    display: block;
    text-decoration: none;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.info-value:hover {
    color: var(--contact-accent);
}

.info-value.address {
    font-size: 1.4rem;
    line-height: 1.5;
    font-style: normal;
}

/* Contact Form Wrapper */
.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.6);
    border-color: rgba(23, 198, 79, 0.2);
}

.form-header {
    margin-bottom: 32px;
}

.form-header h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 8px;
}

.form-header p {
    color: var(--contact-text-muted);
}

.form-row {
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--contact-text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group label .required {
    color: var(--contact-accent);
    margin-left: 4px;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--contact-accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(23, 198, 79, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: var(--contact-accent);
    color: #072A30;
    border: none;
    border-radius: 100px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #14a83f;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(23, 198, 79, 0.4);
}

.submit-btn svg {
    transition: transform 0.3s ease;
}

.submit-btn:hover svg {
    transform: translateX(4px);
}

.mandatory-note {
    display: block;
    text-align: right;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 12px;
}

/* Success Message */
.success-message {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    opacity: 0;
    transition: all 0.5s ease;
}

.success-message.visible {
    opacity: 1;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(23, 198, 79, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--contact-accent);
    margin-bottom: 24px;
    animation: successPulse 2s infinite;
}

@keyframes successPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(23, 198, 79, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(23, 198, 79, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(23, 198, 79, 0);
    }
}

.success-message h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 12px;
}

.success-message p {
    color: var(--contact-text-muted);
    margin-bottom: 30px;
}

.btn-outline-dark {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline-dark:hover {
    border-color: var(--contact-accent);
    color: var(--contact-accent);
}

/* Map Section */
.map-section {
    position: relative;
    width: 100%;
    padding: 0 0 60px;
    /* Reduced padding */
    z-index: 2;
}

.map-container {
    max-width: 1400px;
    margin: 0 auto;
    height: 450px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-frame {
    width: 100%;
    height: 100%;
    border: 0;
    filter: invert(90%) hue-rotate(180deg) brightness(85%) contrast(1.1);
    transition: filter 0.5s ease;
}

.map-container:hover .map-frame {
    filter: invert(0%);
}

/* Footer Fixes */
.footer-section {
    position: relative;
    z-index: 2;
    background-color: var(--contact-bg-dark) !important;
    /* Ensure footer matches body */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 900px) {
    .contact-split {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .contact-info {
        padding-top: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .contact-hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .contact-info {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
    }

    .info-value {
        font-size: 1.4rem;
    }
}