.fh-network-contact-band {
    padding-block: 36px 48px;
    background: #f4f8fb;
}

.fh-network-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: start;
    gap: clamp(24px, 5vw, 68px);
}

.fh-network-contact-details { padding-block-start: 12px; }
.fh-network-page-heading h1 {
    margin: 0;
    font-size: clamp(29px, 3.8vw, 46px);
    font-weight: 700;
    line-height: 1.2;
    text-wrap: balance;
}

.fh-network-contact-details h1 {
    margin: 0;
    font-size: clamp(26px, 3vw, 32px);
    font-weight: 600;
    line-height: 1.45;
}

.fh-network-eyebrow {
    margin: 0 0 9px;
    color: #08748a;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.4;
}

.fh-network-intro {
    margin: 10px 0 0;
    color: #415669;
    font-size: 17px;
    line-height: 1.65;
    text-wrap: pretty;
}

.fh-network-contact-list {
    display: grid;
    gap: 7px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
    color: #344d61;
    font-size: 17px;
    line-height: 1.65;
}

.fh-network-contact-list:empty { display: none; }
.fh-network-contact-list a { color: #08748a; overflow-wrap: anywhere; }
.fh-network-contact-list a:hover { text-decoration: underline; text-underline-offset: .18em; }

.fh-network-contact-qr {
    width: fit-content;
    max-width: 100%;
    margin: 22px 0 0;
    text-align: center;
}

.fh-network-contact-qr img,
.fh-network-rail-qr img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    background: #fff;
    aspect-ratio: 1;
    object-fit: contain;
}

.fh-network-contact-qr img {
    width: 188px;
    padding: 7px;
    border: 1px solid #e1eaee;
    border-radius: 10px;
}

.fh-network-contact-qr figcaption,
.fh-network-rail-qr figcaption {
    margin-top: 8px;
    color: #4c6170;
    font-size: 14px;
    line-height: 1.45;
}

.fh-network-form { min-width: 0; scroll-margin-top: 92px; }

.fh-network-form .contact-form-panel {
    padding: clamp(16px, 3vw, 30px);
    border: 1px solid #dce7ee;
    border-radius: 14px;
    background: #fff;
}

.fh-network-form .contact-form-panel h2 { margin: 0 0 16px; font-size: 23px; line-height: 1.3; }

.fh-network-contact .fh-network-form .contact-form-panel {
    padding: 0;
    border: 0;
    background: transparent;
}

.fh-inquiry-privacy {
    display: block;
    width: fit-content;
    margin-bottom: 12px;
    color: #08748a;
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: .18em;
}

.fh-network-form .field-grid,
.fh-network-dialog .field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
}

:is(.fh-network-form, .fh-network-dialog) .span-full { grid-column: 1 / -1; }
:is(.fh-network-form, .fh-network-dialog) .field { display: grid; min-width: 0; gap: 5px; }
:is(.fh-network-form, .fh-network-dialog) .field label { color: #263d50; font-weight: 600; font-size: 15px; }
:is(.fh-network-form, .fh-network-dialog) .field :is(input, textarea, select) {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #c5d5df;
    border-radius: 7px;
    background: #fff;
    color: #172c3d;
    font: inherit;
    font-size: 16px;
}

:is(.fh-network-form, .fh-network-dialog) .field textarea { resize: vertical; }
:is(.fh-network-form, .fh-network-dialog) .help { margin: 2px 0 0; color: #4c6170; font-size: 14px; }
:is(.fh-network-form, .fh-network-dialog) .check { display: flex; align-items: start; gap: 8px; margin: 14px 0; font-size: 15px; }
:is(.fh-network-form, .fh-network-dialog) .check input { margin-top: .25em; }
:is(.fh-network-form, .fh-network-dialog) .site-button {
    min-height: 44px;
    padding: 8px 18px;
    border: 1px solid #087f93;
    border-radius: 8px;
    background: #087f93;
    color: #fff;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}

:is(.fh-network-form, .fh-network-dialog) .site-button:hover { background: #086f80; }
:is(.fh-network-form, .fh-network-dialog) .site-button:disabled { cursor: wait; opacity: .7; }
:is(.fh-network-form, .fh-network-dialog) .site-notice {
    margin: 0 0 12px;
    padding: 12px 14px;
    border: 1px solid #c3e5d4;
    border-radius: 8px;
    background: #eefaf3;
    color: #205641;
}

:is(.fh-network-form, .fh-network-dialog) .site-notice.error { border-color: #f4c7c2; background: #fff2f0; color: #852a20; }
:is(.fh-network-form, .fh-network-dialog) .site-notice p { margin: 0; }

.fh-network-page-heading { padding-block: 42px 32px; background: #f4f8fb; }
.fh-network-page-action { margin-top: 17px; }
.fh-network-page-body { padding-block: 20px 42px; line-height: 1.75; }
.fh-network-page-body:empty { display: none; }

.fh-network-sidebar {
    position: fixed;
    z-index: 15;
    top: 50%;
    right: 16px;
    display: flex;
    width: 82px;
    flex-direction: column;
    padding: 5px;
    transform: translateY(-50%);
    border: 1px solid #e1eaee;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 7px 28px #142e4017;
    color: #3e5567;
}

.fh-network-sidebar > * + * { border-top: 1px solid #e9eff2; }
.fh-network-rail-item { position: relative; }
.fh-network-rail-control {
    display: flex;
    min-height: 61px;
    padding: 7px 3px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    border-radius: 7px;
    color: inherit;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    list-style: none;
    overflow-wrap: anywhere;
    text-align: center;
    text-decoration: none;
}

.fh-network-rail-control::-webkit-details-marker { display: none; }
.fh-network-rail-inquiry { color: #135469; }
.fh-network-rail-control:hover,
.fh-network-rail-item[open] > .fh-network-rail-control { background: #ebf8fc; color: #086e83; }

.fh-network-rail-icon { position: relative; display: block; width: 18px; height: 18px; }
.fh-network-rail-icon::before,
.fh-network-rail-icon::after { position: absolute; content: ''; }
.fh-network-icon-mail::before { inset: 3px 0; border: 1.5px solid; border-radius: 3px; }
.fh-network-icon-mail::after { inset: 4px 5px auto; width: 7px; height: 7px; transform: rotate(45deg); border: solid; border-width: 0 1.5px 1.5px 0; }
.fh-network-icon-phone { font-size: 19px; line-height: 1; }
.fh-network-icon-chat::before { inset: 2px 4px 5px 0; border: 1.5px solid; border-radius: 7px; }
.fh-network-icon-chat::after { inset: 7px 0 2px 6px; border: 1.5px solid; border-radius: 6px; background: #fff; }
.fh-network-icon-top::before { inset: 4px 2px; border-block: 2px solid; }

.fh-network-rail-card {
    position: absolute;
    top: 50%;
    right: calc(100% + 15px);
    width: 264px;
    padding: 16px;
    transform: translateY(-50%);
    border: 1px solid #e1eaee;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 12px 42px #152e4325;
}

.fh-network-rail-card::before { position: absolute; inset: 0 -18px 0 auto; width: 18px; content: ''; }
.fh-network-rail-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.fh-network-rail-card-head h2 { margin: 0; color: #263d50; font-size: 16px; line-height: 1.35; }
.fh-network-phone { display: block; margin: 0 0 12px; color: #135469; font-size: 21px; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; }
.fh-network-rail-cta,
.fh-network-inline-button {
    display: inline-flex;
    min-height: 36px;
    padding: 6px 10px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d5e9ee;
    border-radius: 7px;
    background: #eff8fb;
    color: #146072;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.fh-network-inline-button[hidden] { display: none; }
.fh-network-rail-cta:hover,
.fh-network-inline-button:hover { background: #e2f3f8; }
.fh-network-rail-qr { margin: 0; text-align: center; }
.fh-network-rail-qr img { width: 166px; }
.fh-network-wechat-account { display: grid; justify-items: center; gap: 6px; margin-top: 10px; text-align: center; }
.fh-network-wechat-account strong { color: #243f52; font-size: 16px; overflow-wrap: anywhere; user-select: text; }
.fh-network-copy-status { color: #4c6170; font-size: 14px; }
.fh-network-copy-status:empty { display: none; }

.fh-network-dialog {
    box-sizing: border-box;
    width: min(560px, calc(100% - 24px));
    max-height: min(780px, calc(100dvh - 28px));
    padding: 0;
    overflow: hidden;
    border: 1px solid #dce7ee;
    border-radius: 14px;
    background: #fff;
    color: #182e40;
    box-shadow: 0 14px 70px #112c4b33;
}

.fh-network-dialog[open] { display: flex; flex-direction: column; }
.fh-network-dialog::backdrop { background: rgb(16 32 48 / 58%); }
.fh-network-dialog-heading { display: flex; padding: 14px 20px; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid #dce7ee; }
.fh-network-dialog-heading h2 { margin: 0; font-size: 22px; line-height: 1.3; }
.fh-network-dialog-content { min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; padding: 16px 20px 20px; }
.fh-network-dialog-content > [role="status"]:not(:empty) { margin-bottom: 10px; }
.fh-network-dialog .contact-form-panel { margin: 0; padding: 0; border: 0; background: none; }

:is(.fh-network-sidebar, .fh-network-dialog, .fh-network-contact) :focus-visible { outline: 2px solid #087f93; outline-offset: 2px; }
html:has(dialog[open]) .fh-network-sidebar { visibility: hidden; }

@media (max-width: 1440px) {
    html:has(.fh-network-sidebar):not(:has(.fh-network-tool)) {
        scroll-padding-block-end: calc(76px + env(safe-area-inset-bottom));
    }
    .fh-network-sidebar {
        top: auto;
        right: auto;
        bottom: max(10px, env(safe-area-inset-bottom));
        left: 50%;
        width: min(360px, calc(100% - 26px));
        flex-direction: row;
        transform: translateX(-50%);
    }

    .fh-network-sidebar > * { flex: 1 1 0; min-width: 0; }
    .fh-network-sidebar > * + * { border-top: 0; border-left: 1px solid #e9eff2; }
    .fh-network-rail-control { min-height: 48px; gap: 3px; }
    .fh-network-rail-card {
        position: fixed;
        top: auto;
        right: auto;
        bottom: calc(100% + 9px);
        left: 50%;
        width: min(270px, calc(100vw - 32px));
        max-height: calc(100dvh - 100px);
        overflow-y: auto;
        overscroll-behavior-y: contain;
        transform: translateX(-50%);
    }

    .fh-network-rail-card::before { display: none; }
    .fh-network-sidebar[data-form-visible="true"],
    .fh-site:has(.fh-network-form :is(input, select, textarea):focus) .fh-network-sidebar,
    .fh-site:has(.fh-mobile-menu[open], .fh-language .language-menu[open]) .fh-network-sidebar,
    .fh-site:has(.fh-network-tool) .fh-network-sidebar { visibility: hidden; pointer-events: none; }
    .fh-site:has(.fh-network-sidebar):not(:has(.fh-network-tool)) footer { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}

@media (max-width: 680px) {
    .fh-network-contact-band { padding-block: 26px 34px; }
    .fh-network-contact-grid { grid-template-columns: 1fr; gap: 20px; }
    .fh-network-contact-details { padding-top: 0; }
    .fh-network-contact-list { margin-top: 14px; gap: 5px; }
    .fh-network-contact-list, .fh-network-intro { font-size: 16px; }
    .fh-network-contact-qr { margin-top: 14px; }
    .fh-network-contact-qr img { width: 172px; }
    .fh-network-page-heading { padding-block: 27px 22px; }
    .fh-network-page-body { padding-block: 16px 28px; }
    .fh-network-dialog-heading { padding: 11px 14px; }
    .fh-network-dialog-content { padding: 12px 14px 15px; }
}

@media (max-width: 470px) {
    :is(.fh-network-form, .fh-network-dialog) .field-grid { grid-template-columns: minmax(0, 1fr); }
}
