/* Loader */
.page-loader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    z-index: 9999;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 52px;
    height: 52px;
    border: 4px solid rgba(255, 255, 255, 0.14);
    border-top-color: #00d4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes heroFadeInUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hide Elfsight branding when present */
.eapps-link,
[href*="elfsight"],
[href*="eapps"],
div[style*="elfsight"],
a[target="_blank"][rel="noopener noreferrer"][rel="nofollow"]:not([href*="google"]):not([href*="maps"]) {
    display: none !important;
}

.elfsight-app-35f0e9a3-930d-4353-a460-b51836541337 {
    border-radius: 8px;
    overflow: hidden;
}

:root {
    --contact-primary: #2563eb;
    --contact-secondary: #1d4ed8;
    --contact-accent: #00d4ff;
    --contact-ink: #0f172a;
    --contact-ink-soft: #334155;
    --contact-surface: #f4f8ff;
    --contact-border: rgba(37, 99, 235, 0.15);
    --contact-shadow: 0 16px 42px rgba(15, 23, 42, 0.1);
    --contact-shadow-hover: 0 24px 56px rgba(15, 23, 42, 0.16);
}

#main-content {
    background: radial-gradient(circle at 14% -5%, rgba(0, 212, 255, 0.09), transparent 42%),
        radial-gradient(circle at 92% 20%, rgba(37, 99, 235, 0.1), transparent 34%),
        linear-gradient(180deg, #f8fbff 0%, var(--contact-surface) 100%);
}

.hero-contact {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    padding: clamp(94px, 14vw, 138px) 0 clamp(70px, 9.5vw, 104px);
    background-image: url("https://images.unsplash.com/photo-1486312338219-ce68d2c6f44d?auto=format&fit=crop&w=1920&h=1080&q=80");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-contact::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(122deg, rgba(8, 15, 31, 0.9) 0%, rgba(17, 34, 68, 0.84) 52%, rgba(10, 82, 121, 0.72) 100%);
    z-index: 1;
}

.hero-contact::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 22% 16%, rgba(0, 212, 255, 0.18) 0%, transparent 46%),
        radial-gradient(circle at 86% 72%, rgba(59, 130, 246, 0.24) 0%, transparent 48%);
    z-index: 1;
}

.hero-contact .container {
    position: relative;
    z-index: 2;
}

.hero-contact h1 {
    font-size: clamp(2.35rem, 5.8vw, 4.15rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 1.05rem;
    text-wrap: balance;
    animation: heroFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero-contact .lead {
    max-width: 660px;
    margin: 0;
    color: rgba(248, 250, 252, 0.9);
    font-size: clamp(1.04rem, 2vw, 1.24rem);
    animation: heroFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.contact-hero-icon {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    color: rgba(248, 250, 252, 0.74);
    filter: drop-shadow(0 8px 18px rgba(8, 15, 31, 0.45));
    animation: heroFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.contact-section {
    padding: clamp(58px, 8vw, 92px) 0 clamp(30px, 4vw, 42px);
}

.contact-section h2 {
    color: var(--contact-ink);
    font-weight: 800;
    letter-spacing: -0.025em;
}

.contact-section .lead {
    color: var(--contact-ink-soft);
}

.contact-form {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    border-radius: 22px;
    padding: clamp(1.55rem, 3.5vw, 2.6rem);
    border: 1px solid var(--contact-border);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.97) 0%, rgba(247, 251, 255, 0.98) 100%);
    box-shadow: var(--contact-shadow);
}

.contact-form::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 86% 14%, rgba(0, 212, 255, 0.11), transparent 58%),
        radial-gradient(circle at 10% 92%, rgba(37, 99, 235, 0.1), transparent 64%);
    pointer-events: none;
}

.contact-form h3,
.contact-form form {
    position: relative;
    z-index: 1;
}

.contact-form h3 {
    margin-bottom: 1.1rem;
    color: var(--contact-ink);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.form-group {
    margin-bottom: 1.15rem;
}

.form-label {
    color: #1e293b;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.38rem;
}

.form-control {
    border: 1px solid rgba(148, 163, 184, 0.42);
    border-radius: 12px;
    padding: 0.78rem 0.92rem;
    font-size: 0.98rem;
    color: #0f172a;
    background: #ffffff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.form-control:focus {
    border-color: rgba(37, 99, 235, 0.56);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
    outline: 0;
}

.form-control.is-invalid {
    border-color: #ef4444;
}

.form-control.is-valid {
    border-color: #10b981;
}

textarea.form-control {
    min-height: 130px;
    resize: vertical;
}

.btn-contact {
    width: 100%;
    margin-top: 0.45rem;
    border: 0;
    border-radius: 12px;
    padding: 0.9rem 1.2rem;
    color: #f8fafc;
    font-size: 0.97rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--contact-primary) 0%, #0ea5e9 100%);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24);
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.btn-contact:hover {
    color: #f8fafc;
    transform: translateY(-3px);
    filter: brightness(1.03);
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.3);
}

.btn-contact:disabled {
    opacity: 0.7;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

.form-status {
    display: none;
    margin-bottom: 1rem;
    padding: 0.8rem 0.95rem;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 500;
}

.form-status.success {
    color: #065f46;
    background-color: #d1fae5;
    border-color: #6ee7b7;
}

.form-status.error {
    color: #991b1b;
    background-color: #fee2e2;
    border-color: #fca5a5;
}

.loading-spinner {
    display: none;
    margin-right: 10px;
}

.cf-turnstile {
    margin: 1.2rem 0 0.75rem;
}

.form-group .cf-turnstile {
    display: flex;
    justify-content: center;
}

.form-text.text-muted {
    margin-top: 0.4rem;
    font-size: 0.84rem;
    color: #64748b !important;
    text-align: center;
}

.contact-card {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    border: 1px solid var(--contact-border);
    background: #ffffff;
    box-shadow: var(--contact-shadow);
    padding: 1.45rem 1.2rem;
    transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: var(--contact-shadow-hover);
}

.contact-info-card {
    text-align: center;
}

.contact-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 0.9rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f8fafc;
    font-size: 1.45rem;
    background: linear-gradient(135deg, var(--contact-primary) 0%, #0ea5e9 100%);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.28);
}

.contact-info-card h4 {
    color: var(--contact-ink);
    margin-bottom: 0.65rem;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.contact-info-card p {
    margin-bottom: 0.45rem;
    color: #475569;
    line-height: 1.45;
}

.contact-info-card a {
    color: var(--contact-primary);
    text-decoration: none;
    font-weight: 600;
}

.contact-info-card a:hover {
    color: var(--contact-secondary);
    text-decoration: underline;
}

.contact-info-grid .col-sm-6 {
    display: flex;
}

.contact-info-grid .contact-card {
    width: 100%;
}

.reviews-section {
    padding: 0 !important;
    background: transparent !important;
}

.map-title {
    color: var(--contact-ink);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.map-container {
    border-radius: 20px;
    border: 1px solid var(--contact-border);
    overflow: hidden;
    box-shadow: var(--contact-shadow);
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-cta {
    position: relative;
    overflow: hidden;
    margin-top: clamp(2rem, 4vw, 3rem);
    border-radius: 24px 24px 0 0;
    background: linear-gradient(130deg, #0f172a 0%, #1d4ed8 56%, #0891b2 100%);
    color: #f8fafc;
    padding: clamp(2.3rem, 6vw, 4rem) 0;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.24);
}

.contact-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 24%, rgba(0, 212, 255, 0.24) 0%, transparent 50%),
        radial-gradient(circle at 82% 78%, rgba(125, 211, 252, 0.2) 0%, transparent 45%);
    pointer-events: none;
}

.contact-cta .container {
    position: relative;
    z-index: 1;
}

.contact-cta h2 {
    font-size: clamp(2rem, 4.8vw, 2.9rem);
    margin-bottom: 0.55rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.contact-cta .lead {
    color: rgba(248, 250, 252, 0.9);
}

.contact-cta .btn-light {
    border: 0;
    font-weight: 700;
    color: #0f172a;
}

.contact-cta .btn-outline-light {
    border-width: 1px;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .contact-section {
        padding-top: 44px;
    }

    .contact-form {
        margin-bottom: 0.6rem;
    }
}

@media (max-width: 767.98px) {
    .hero-contact {
        text-align: center;
        padding-top: 88px;
        padding-bottom: 70px;
    }

    .hero-contact .lead {
        margin: 0 auto 0.8rem;
    }

    .contact-form {
        border-radius: 18px;
        padding: 1.45rem;
    }

    .contact-card {
        border-radius: 16px;
        padding: 1.25rem 1rem;
    }

    .contact-cta {
        border-radius: 18px 18px 0 0;
    }
}

@media (max-width: 576px) {
    .contact-info-grid {
        display: flex !important;
        flex-direction: column !important;
    }

    .contact-info-grid .col-6,
    .contact-info-grid .col-sm-6 {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 1rem;
    }

    .map-container {
        height: 340px;
    }
}
