.contact-page {
    background: #ffffff;
    color: #111827;
}

.contact-page-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(220px, 32vw, 340px);
    overflow: hidden;
    text-align: center;
}

.contact-page-hero-mosaic {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 0;
    width: 100%;
    height: 100%;
    background: #0b1220;
}

.contact-page-hero-tile {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: #e8eef6;
    filter: saturate(1.02) contrast(1.04);
}

.contact-page-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 12, 18, 0.58) 0%, rgba(8, 12, 18, 0.76) 100%),
        linear-gradient(90deg, rgba(11, 74, 158, 0.32) 0%, transparent 58%);
}

.contact-page-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: clamp(2.5rem, 6vw, 4rem) 1rem;
    max-width: 820px;
}

.contact-page-hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.85rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.contact-page-breadcrumb {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.4;
}

.contact-page-breadcrumb a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.contact-page-breadcrumb a:hover {
    opacity: 0.85;
}

.contact-page-breadcrumb-sep {
    opacity: 0.75;
    font-size: 0.72rem;
}

.contact-page-hero-sub {
    margin: 0.15rem 0 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: 600;
    line-height: 1.4;
}

.contact-page-hero-desc {
    margin: 0.35rem 0 0;
    max-width: 38rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.65;
}

.contact-main-section {
    background: #ffffff;
    padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.contact-main-section .container {
    width: min(1140px, 92%);
    max-width: min(1140px, 92%);
}

.contact-main-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: start;
}

.contact-form-panel,
.contact-sidebar-panel {
    background: #ffffff;
    border: 1px solid #e8edf2;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.contact-form-panel {
    padding: clamp(1.5rem, 3vw, 2rem);
}

.contact-form-kicker {
    display: inline-block;
    margin-bottom: 0.55rem;
    color: var(--brand-primary, #0379c3);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-form-panel h2 {
    margin: 0 0 0.45rem;
    color: #111827;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.contact-form-intro {
    margin: 0 0 1.5rem;
    color: #4b5563;
    font-size: 0.92rem;
    line-height: 1.65;
}

.contact-form-label {
    display: block;
    margin-bottom: 0.35rem;
    color: #111827;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.4;
}

.contact-form-label span {
    color: var(--brand-primary, #0379c3);
}

.contact-form-panel .form-control,
.contact-form-panel .form-select {
    min-height: 46px;
    padding: 0.65rem 0.85rem;
    border: 1px solid #d8e3ee;
    border-radius: 6px;
    background: #ffffff;
    color: #111827;
    font-size: 0.9rem;
    line-height: 1.45;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form-panel textarea.form-control {
    min-height: auto;
    resize: vertical;
}

.contact-form-panel .form-control::placeholder {
    color: #9ca3af;
}

.contact-form-panel .form-control:focus,
.contact-form-panel .form-select:focus {
    border-color: var(--brand-primary, #0379c3);
    background: #ffffff;
    color: #111827;
    box-shadow: 0 0 0 3px rgba(3, 121, 195, 0.12);
    outline: none;
}

.contact-form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 48px;
    padding: 0.75rem 1.65rem;
    border: 0;
    border-radius: 6px;
    background: var(--brand-primary, #0379c3);
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-form-submit:hover {
    background: var(--brand-primary-dark, #026aaa);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(3, 121, 195, 0.28);
}

.contact-sidebar-panel {
    padding: clamp(1.35rem, 2.5vw, 1.75rem);
    background: linear-gradient(180deg, #f8fbfd 0%, #ffffff 100%);
}

body.cms-editing .contact-sidebar-panel {
    padding-top: 3rem;
}

.contact-sidebar-block + .contact-sidebar-block {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e8edf2;
}

.contact-sidebar-block h3 {
    margin: 0 0 1rem;
    color: #111827;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.35;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(3, 121, 195, 0.1);
    color: var(--brand-primary, #0379c3);
    font-size: 0.95rem;
}

.contact-info-copy h4 {
    margin: 0 0 0.15rem;
    color: #111827;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.35;
}

.contact-info-copy p,
.contact-info-copy a {
    margin: 0;
    color: #4b5563;
    font-size: 0.84rem;
    line-height: 1.6;
    text-decoration: none;
}

.contact-info-copy a:hover {
    color: var(--brand-primary, #0379c3);
}

.contact-address-block {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0.55rem;
    color: #4b5563;
    font-size: 0.84rem;
    line-height: 1.55;
}

.contact-address-block:first-of-type {
    margin-top: 0.35rem;
}

.contact-address-block + .contact-address-block {
    margin-top: 0.95rem;
    padding-top: 0.85rem;
    border-top: 1px solid #e5ebf2;
}

.contact-address-block strong {
    margin-bottom: 0.35rem;
    color: #111827;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.contact-address-block .company-address-lines,
.contact-address-block .company-address-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.contact-address-block .company-address-pin {
    font-weight: 400;
    color: #4b5563;
    letter-spacing: 0;
}

.contact-address-block .company-address-contacts {
    margin-top: 0.45rem;
    padding-top: 0.45rem;
    border-top: 1px solid #edf2f7;
}

.contact-address-block a {
    color: var(--brand-primary, #0379c3);
    font-weight: 600;
}

.contact-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.contact-benefit-item:last-child {
    margin-bottom: 0;
}

.contact-benefit-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(3, 121, 195, 0.1);
    color: var(--brand-primary, #0379c3);
    font-size: 0.88rem;
}

.contact-benefit-copy h4 {
    margin: 0 0 0.12rem;
    color: #111827;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.35;
}

.contact-benefit-copy p {
    margin: 0;
    color: #6b7280;
    font-size: 0.82rem;
    line-height: 1.55;
}

.contact-map-section {
    background: #f8fafc;
    padding: clamp(2.5rem, 5vw, 3.5rem) 0;
    border-top: 1px solid #eef2f6;
}

.contact-map-section .container {
    width: min(1140px, 92%);
    max-width: min(1140px, 92%);
}

.contact-section-heading {
    text-align: center;
    margin-bottom: 1.5rem;
}

.contact-section-kicker {
    display: inline-block;
    margin-bottom: 0.45rem;
    color: var(--brand-primary, #0379c3);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-section-heading h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    font-weight: 800;
    line-height: 1.3;
}

.contact-map-wrap {
    position: relative;
    overflow: hidden;
    height: clamp(280px, 42vw, 420px);
    border: 1px solid #e3ebf3;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.contact-map-wrap iframe {
    display: block;
    width: 100%;
    height: calc(100% + 52px);
    border: 0;
    margin: 0;
    pointer-events: auto;
}

.contact-map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(280px, 42vw, 420px);
    color: #cbd5e1;
    font-size: 3rem;
    background: #ffffff;
}

.office-locations-section {
    background: #ffffff;
    padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.office-locations-section .container {
    width: min(1140px, 92%);
    max-width: min(1140px, 92%);
}

.office-card,
.network-panel {
    height: 100%;
    background: #ffffff;
    border: 1px solid #e8edf2;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.office-card:hover,
.network-panel:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.office-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(3, 121, 195, 0.12) 0%, rgba(3, 121, 195, 0.04) 100%);
    border-bottom: 1px solid #e8edf2;
}

.office-card-image i {
    font-size: 2.5rem;
    color: var(--brand-primary, #0379c3);
    opacity: 0.75;
}

.office-card-body {
    padding: 1.25rem 1.35rem 1.4rem;
}

.office-card-body h3 {
    margin: 0 0 0.85rem;
    color: #111827;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
}

.office-detail {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 0.55rem;
    color: #4b5563;
    font-size: 0.84rem;
    line-height: 1.55;
}

.office-detail:last-child {
    margin-bottom: 0;
}

.office-detail i {
    flex-shrink: 0;
    margin-top: 0.15rem;
    color: var(--brand-primary, #0379c3);
}

.network-panel {
    display: flex;
    flex-direction: column;
    padding: 1.35rem;
}

.network-panel h3 {
    margin: 0 0 0.65rem;
    color: #111827;
    font-size: 1rem;
    font-weight: 800;
}

.network-panel p {
    margin: 0 0 1rem;
    color: #4b5563;
    font-size: 0.88rem;
    line-height: 1.65;
}

.network-map-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    margin-bottom: 1rem;
    border: 1px dashed #d8e3ee;
    border-radius: 6px;
    background: #f8fbfd;
}

.network-map-visual i {
    font-size: 3.5rem;
    color: rgba(3, 121, 195, 0.25);
}

.contact-network-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    min-height: 46px;
    padding: 0.7rem 1rem;
    border: 1px solid var(--brand-primary, #0379c3);
    border-radius: 6px;
    background: transparent;
    color: var(--brand-primary, #0379c3);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.contact-network-btn:hover {
    background: var(--brand-primary, #0379c3);
    color: #ffffff;
}

.contact-stats-section {
    background: var(--brand-primary, #0379c3);
    padding: clamp(1.75rem, 3vw, 2.25rem) 0;
}

.contact-stats-section .container {
    width: min(1140px, 92%);
    max-width: min(1140px, 92%);
}

.contact-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

.contact-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
    color: #ffffff;
}

.contact-stat-item i {
    font-size: 1.35rem;
    opacity: 0.9;
    margin-bottom: 0.15rem;
}

.contact-stat-item strong {
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 800;
    line-height: 1.2;
}

.contact-stat-item span {
    font-size: 0.78rem;
    font-weight: 500;
    opacity: 0.92;
    line-height: 1.35;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .contact-stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .contact-page-hero-mosaic {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }

    .contact-main-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem 0.75rem;
    }
}

@media (max-width: 575.98px) {
    .contact-page-hero {
        min-height: 200px;
    }

    .contact-page-hero-mosaic {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(4, 1fr);
    }

    .contact-main-section .container,
    .contact-map-section .container,
    .office-locations-section .container,
    .contact-stats-section .container {
        width: 94%;
        max-width: 94%;
    }

    .contact-stats-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
