/**
 * Xeosol Contact page — premium theme (scoped under .xeosol-contact)
 */

.xeosol-contact {
    --xeo-navy: #07182F;
    --xeo-navy-mid: #0E2342;
    --xeo-orange: #F5A623;
    --xeo-orange-dark: #e09410;
    --xeo-surface: #F5F7FB;
    --xeo-text: #0f1a2e;
    --xeo-muted: #5a6778;
    --xeo-border: rgba(15, 26, 46, 0.08);
    --xeo-shadow: 0 8px 32px rgba(7, 24, 47, 0.08);
    --xeo-shadow-lg: 0 20px 48px rgba(7, 24, 47, 0.12);
    --xeo-radius: 12px;
    --xeo-radius-lg: 16px;
    --xeo-site-header-h: 118px;
    --xc-max: 1120px;
    overflow-x: hidden;
}

.xeosol-contact * { box-sizing: border-box; }

html:has(.xeosol-contact) { scroll-behavior: smooth; }

.page-wrapper:has(.xeosol-contact) .main-footer { margin-top: 0; }

/* Header — dark hero */
.page-wrapper:has(.xeosol-contact) .main-header.header-style-four .header-lower {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.page-wrapper:has(.xeosol-contact) .main-header.header-style-four .main-menu .navigation > li > a {
    color: rgba(255, 255, 255, 0.88);
}
.page-wrapper:has(.xeosol-contact) .main-header.header-style-four .main-menu .navigation > li.current > a,
.page-wrapper:has(.xeosol-contact) .main-header.header-style-four .main-menu .navigation > li > a:hover {
    color: var(--xeo-orange);
}
.page-wrapper:has(.xeosol-contact:not(.xeosol-contact--past-hero)) .main-header .site-logo--light,
.page-wrapper:has(.xeosol-contact:not(.xeosol-contact--past-hero)) .sticky-header .site-logo--light {
    display: block;
}
.page-wrapper:has(.xeosol-contact:not(.xeosol-contact--past-hero)) .main-header .site-logo--dark,
.page-wrapper:has(.xeosol-contact:not(.xeosol-contact--past-hero)) .sticky-header .site-logo--dark {
    display: none;
}
.page-wrapper:has(.xeosol-contact) .sticky-header.fixed-header {
    background: rgba(7, 24, 47, 0.98);
    backdrop-filter: blur(12px);
}

.page-wrapper:has(.xeosol-contact--past-hero) .main-header.header-style-four .header-lower {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--xeo-border);
}
.page-wrapper:has(.xeosol-contact--past-hero) .main-header .site-logo--light,
.page-wrapper:has(.xeosol-contact--past-hero) .sticky-header .site-logo--light {
    display: none;
}
.page-wrapper:has(.xeosol-contact--past-hero) .main-header .site-logo--dark,
.page-wrapper:has(.xeosol-contact--past-hero) .sticky-header .site-logo--dark {
    display: block;
}
.page-wrapper:has(.xeosol-contact--past-hero) .main-header.header-style-four .main-menu .navigation > li > a,
.page-wrapper:has(.xeosol-contact--past-hero) .sticky-header.fixed-header .main-menu .navigation > li > a {
    color: var(--xeo-text);
}
.page-wrapper:has(.xeosol-contact--past-hero) .main-header.header-style-four .main-menu .navigation > li.current > a,
.page-wrapper:has(.xeosol-contact--past-hero) .main-header.header-style-four .main-menu .navigation > li > a:hover,
.page-wrapper:has(.xeosol-contact--past-hero) .sticky-header.fixed-header .main-menu .navigation > li.current > a,
.page-wrapper:has(.xeosol-contact--past-hero) .sticky-header.fixed-header .main-menu .navigation > li > a:hover {
    color: var(--xeo-orange-dark);
}
.page-wrapper:has(.xeosol-contact--past-hero) .sticky-header.fixed-header {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 0 var(--xeo-border);
}

/* Shared */
.xc-shell {
    width: 100%;
    max-width: var(--xc-max);
    margin: 0 auto;
    padding: 0 24px;
}

.xc-heading {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--xeo-text);
    margin: 0 0 16px;
}

.xc-lead {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--xeo-muted);
    margin: 0;
}

.xc-lead--light {
    color: rgba(255, 255, 255, 0.72);
}

.xc-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--xeo-orange);
    margin-bottom: 14px;
}

.xc-section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}

.xc-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.xc-reveal.is-visible {
    opacity: 1;
    transform: none;
}

.xeosol-contact a.xc-inline {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(245, 166, 35, 0.45);
    text-underline-offset: 3px;
}
.xeosol-contact a.xc-inline:hover {
    color: var(--xeo-orange-dark);
}

/* Hero */
.xc-hero {
    position: relative;
    padding: calc(var(--xeo-site-header-h) + 48px) 0 88px;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(180deg, rgba(147, 197, 253, 0.06) 0%, transparent 38%),
        radial-gradient(ellipse 54% 58% at 78% 44%, rgba(59, 154, 230, 0.22) 0%, transparent 62%),
        radial-gradient(ellipse 46% 42% at 10% 88%, rgba(245, 166, 35, 0.08) 0%, transparent 55%),
        linear-gradient(168deg, #040810 0%, #07182f 48%, #0e2342 100%);
}

.xc-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        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: 22px 22px, 56px 56px, 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 82% 72% at 50% 42%, #000 12%, transparent 80%);
    mask-image: radial-gradient(ellipse 82% 72% at 50% 42%, #000 12%, transparent 80%);
    pointer-events: none;
    z-index: 1;
}

.xc-hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
    animation: xc-float 8s ease-in-out infinite;
}

.xc-hero__orb--1 {
    width: 400px;
    height: 400px;
    background: rgba(59, 154, 230, 0.22);
    top: -6%;
    right: -4%;
}

.xc-hero__orb--2 {
    width: 280px;
    height: 280px;
    background: rgba(245, 166, 35, 0.1);
    bottom: 8%;
    left: -6%;
    animation-delay: -3s;
}

@keyframes xc-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(18px, -22px) scale(1.04); }
}

.xc-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.xc-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 28px;
}

.xc-hero__badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--xeo-orange);
    box-shadow: 0 0 8px rgba(245, 166, 35, 0.55);
}

.xeosol-contact .xc-hero .xc-hero__title {
    font-size: clamp(2.25rem, 4.8vw, 3.5rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.038em;
    margin: 0 0 22px;
    color: #fff;
}

.xeosol-contact .xc-hero .xc-hero__title-line {
    display: block;
    color: rgba(255, 255, 255, 0.96);
    margin-bottom: 0.12em;
}

.xeosol-contact .xc-hero .xc-hero__title em {
    display: block;
    font-style: normal;
    font-size: 0.92em;
    font-weight: 700;
    background: linear-gradient(90deg, #ffe8b8 0%, var(--xeo-orange) 35%, #ffd56a 55%, #7ec8f0 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.xc-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.xc-hero__stat strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}

.xc-hero__stat span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.58);
}

/* Form section */
.xc-form-section {
    padding: 80px 0;
    background: #fff;
}

.xc-form-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: start;
}

.xc-form-card {
    padding: 36px 32px;
    background: var(--xeo-surface);
    border: 1px solid var(--xeo-border);
    border-radius: var(--xeo-radius-lg);
    box-shadow: var(--xeo-shadow);
}

.xc-form-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--xeo-navy);
    margin: 0 0 8px;
}

.xc-form-card .xc-form-sub {
    font-size: 14px;
    color: var(--xeo-muted);
    margin: 0 0 28px;
}

.xc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.xc-field {
    margin-bottom: 16px;
}

.xc-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--xeo-text);
    margin-bottom: 6px;
}

.xc-field input,
.xc-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(15, 26, 46, 0.12);
    border-radius: 10px;
    font-size: 15px;
    color: var(--xeo-text);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.xc-field input:focus,
.xc-field textarea:focus {
    outline: none;
    border-color: rgba(245, 166, 35, 0.55);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.12);
}

.xc-field input.is-invalid {
    border-color: #dc3545;
}

.xc-field-error {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #dc3545;
}

.xc-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.xc-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--xeo-orange) 0%, var(--xeo-orange-dark) 100%);
    color: var(--xeo-navy);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.xc-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(245, 166, 35, 0.35);
}

.xc-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 10px;
    border: 1px solid rgba(15, 26, 46, 0.15);
    background: #fff;
    color: var(--xeo-text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.xc-btn-ghost:hover {
    border-color: rgba(245, 166, 35, 0.45);
    background: rgba(245, 166, 35, 0.06);
}

.xc-form-msg {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.25);
    color: #1e5631;
}

.xc-form-msg:empty { display: none; }

/* Contact sidebar */
.xc-sidebar {
    display: grid;
    gap: 16px;
}

.xc-channel {
    display: flex;
    gap: 16px;
    padding: 22px 20px;
    background: #fff;
    border: 1px solid var(--xeo-border);
    border-radius: var(--xeo-radius);
    box-shadow: var(--xeo-shadow);
}

.xc-channel__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(245, 166, 35, 0.12);
    color: var(--xeo-orange-dark);
    font-size: 18px;
}

.xc-channel h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--xeo-navy);
    margin: 0 0 4px;
}

.xc-channel p,
.xc-channel a {
    font-size: 14px;
    line-height: 1.5;
    color: var(--xeo-muted);
    margin: 0;
    text-decoration: none;
}

.xc-channel a:hover {
    color: var(--xeo-orange-dark);
}

.xc-channel__phones {
    display: grid;
    gap: 4px;
}

/* Hubs */
.xc-hubs {
    padding: 80px 0;
    background: var(--xeo-surface);
}

.xc-hubs__layout {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: stretch;
}

.xc-hubs__card {
    padding: 36px 32px;
    background: #fff;
    border: 1px solid rgba(42, 60, 94, 0.14);
    border-radius: var(--xeo-radius-lg);
    box-shadow: var(--xeo-shadow);
}

.xc-hubs__flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 20px;
    margin-bottom: 16px;
    border-radius: 3px;
    overflow: hidden;
    line-height: 0;
    background: transparent;
    border: 1px solid #ddd;
}

.xc-hubs__flag svg {
    display: block;
    width: 28px;
    height: 20px;
    border-radius: 2px;
}

.xc-hubs__card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--xeo-navy);
    margin: 0 0 6px;
}

.xc-hubs__card-sub {
    font-size: 13px;
    font-weight: 600;
    color: var(--xeo-orange-dark);
    margin: 0 0 18px;
}

.xc-hubs__card address {
    font-style: normal;
    font-size: 14px;
    line-height: 1.55;
    color: var(--xeo-muted);
    margin: 0 0 16px;
    padding: 12px 14px;
    background: var(--xeo-surface);
    border-radius: 8px;
}

.xc-hubs__meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.xc-hubs__meta li {
    font-size: 14px;
    color: var(--xeo-muted);
}

.xc-hubs__meta a {
    color: var(--xeo-text);
    text-decoration: none;
}

.xc-hubs__meta a:hover {
    color: var(--xeo-orange-dark);
}

.xc-hubs__connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 8px;
}

.xc-hubs__connector-line {
    width: 2px;
    flex: 1;
    min-height: 24px;
    background: linear-gradient(180deg, transparent, rgba(42, 60, 94, 0.2), transparent);
}

.xc-hubs__connector-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--xeo-muted);
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 100px;
    border: 1px solid rgba(42, 60, 94, 0.12);
    background: #fff;
}

/* Maps */
.xc-maps {
    background: var(--xeo-navy);
    padding: 0;
}

.xc-maps__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.xc-map {
    position: relative;
    min-height: 360px;
}

.xc-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 360px;
    border: 0;
    filter: grayscale(20%) contrast(1.05);
}

.xc-map__label {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    padding: 8px 14px;
    border-radius: 8px;
    background: rgba(7, 24, 47, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

@media (max-width: 991px) {
    .xc-form-grid {
        grid-template-columns: 1fr;
    }
    .xc-hubs__layout {
        grid-template-columns: 1fr;
    }
    .xc-hubs__connector {
        flex-direction: row;
        padding: 8px 0;
    }
    .xc-hubs__connector-line {
        width: auto;
        flex: 1;
        height: 2px;
        min-height: 0;
    }
    .xc-maps__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .xc-hero {
        padding-top: calc(var(--xeo-site-header-h) + 32px);
    }
    .xc-hero__stats {
        grid-template-columns: 1fr;
    }
    .xc-form-row {
        grid-template-columns: 1fr;
    }
    .xc-form-card {
        padding: 28px 20px;
    }
}
