html.contact-modal-open,
body.contact-modal-open {
    overflow: hidden;
    overscroll-behavior: none;
}

.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.contact-modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.contact-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 18, 44, 0.72);
    backdrop-filter: blur(6px);
}

.contact-modal__dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
    width: min(100%, 1060px);
    max-height: min(760px, calc(100vh - 48px));
    overflow: auto;
    overscroll-behavior: contain;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
}

.contact-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.86);
    color: #1e2430;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.contact-modal__close:hover {
    background: #f7bd20;
    transform: rotate(90deg);
}

.contact-modal__form-panel {
    padding: 52px 52px 48px;
}

.contact-modal__eyebrow {
    display: inline-flex;
    padding: 7px 14px;
    margin-bottom: 18px;
    border-radius: 6px;
    background: #eef2fa;
    color: #304c91;
    font-size: 13px;
}

.contact-modal__form-panel h2 {
    margin: 0 0 14px;
    color: #20242b;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 700;
}

.contact-modal__intro,
.contact-modal__info-intro {
    color: #687181;
    line-height: 1.8;
}

.contact-modal__intro {
    max-width: 560px;
    margin: 0 0 26px;
}

.contact-modal__form label {
    display: block;
    margin: 0 0 16px;
    color: #20242b;
    font-size: 14px;
    font-weight: 600;
}

.contact-modal__form label > span {
    display: block;
    margin-bottom: 7px;
}

.contact-modal__form input,
.contact-modal__form select,
.contact-modal__form textarea {
    display: block;
    width: 100%;
    border: 1px solid #d9dfe9;
    border-radius: 8px;
    background: #fff;
    color: #20242b;
    font: inherit;
    font-weight: 400;
    outline: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-modal__form input,
.contact-modal__form select {
    height: 48px;
    padding: 0 14px;
}

.contact-modal__form select {
    cursor: pointer;
}

.contact-modal__native-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.contact-modal-select {
    position: relative;
    width: 100%;
}

.contact-modal-select__trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 48px;
    padding: 0 44px 0 14px;
    border: 1px solid #d9dfe9;
    border-radius: 8px;
    background: #ffffff;
    color: #737b89;
    font: inherit;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
    outline: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-modal-select__trigger:hover {
    border-color: #aeb9cc;
    background: #fbfcff;
}

.contact-modal-select__trigger:focus-visible,
.contact-modal-select.is-open .contact-modal-select__trigger {
    border-color: #304c91;
    box-shadow: 0 0 0 3px rgba(48, 76, 145, 0.12);
}

.contact-modal-select__trigger.is-invalid {
    border-color: #d74848;
    box-shadow: 0 0 0 3px rgba(215, 72, 72, 0.1);
}

.contact-modal-select__trigger.has-value {
    color: #20242b;
}

.contact-modal-select__value {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-modal-select__arrow {
    position: absolute;
    top: 50%;
    right: 17px;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    border-right: 2px solid #526078;
    border-bottom: 2px solid #526078;
    transform: rotate(45deg);
    transform-origin: center;
    transition: transform 0.2s ease, margin-top 0.2s ease, border-color 0.2s ease;
}

.contact-modal-select.is-open .contact-modal-select__arrow {
    margin-top: -2px;
    border-color: #304c91;
    transform: rotate(225deg);
}

.contact-modal-select__menu {
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    left: 0;
    z-index: 20;
    max-height: 208px;
    padding: 6px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    opacity: 0;
    border: 1px solid #d9dfe9;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(23, 39, 79, 0.18);
    transform: translateY(-5px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    scrollbar-width: thin;
    scrollbar-color: #aebbd3 transparent;
}

.contact-modal-select.is-open .contact-modal-select__menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.contact-modal-select__menu::-webkit-scrollbar {
    width: 6px;
}

.contact-modal-select__menu::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #aebbd3;
}

.contact-modal-select__option {
    display: block;
    width: 100%;
    min-height: 38px;
    padding: 8px 11px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #303744;
    font: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    text-align: left;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.contact-modal-select__option:hover,
.contact-modal-select__option:focus-visible {
    color: #253f84;
    background: #eef3ff;
    outline: 0;
}

.contact-modal-select__option.is-selected {
    color: #ffffff;
    background: #304c91;
}

.contact-modal__form textarea {
    min-height: 104px;
    padding: 13px 14px;
    resize: vertical;
}

.contact-modal__form input:focus,
.contact-modal__form select:focus,
.contact-modal__form textarea:focus {
    border-color: #304c91;
    box-shadow: 0 0 0 3px rgba(48, 76, 145, 0.12);
}

.contact-modal__form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
}

.contact-modal__submit {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-width: 190px;
    padding: 13px 16px 13px 22px;
    border: 0;
    border-radius: 6px;
    background: #304c91;
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.contact-modal__submit span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}

.contact-modal__submit:hover {
    background: #243e83;
    transform: translateY(-2px);
}

.contact-modal__submit:disabled {
    cursor: not-allowed;
    opacity: 0.68;
    transform: none;
}

.contact-modal__submit.is-submitting {
    pointer-events: none;
}

.contact-modal__form-status {
    display: none;
    margin: 14px 0 0;
    color: #304c91;
    font-size: 13px;
}

.contact-modal__form-status.is-visible {
    display: block;
}

.contact-modal__form-status.is-success {
    color: #16834a;
}

.contact-modal__form-status.is-error {
    color: #c53b3b;
}

.contact-modal__info {
    padding: 40px 42px 32px;
    background: #f0f4fb;
}

.contact-modal__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.contact-modal__brand img {
    width: 150px;
    height: auto;
}

.contact-modal__brand span {
    max-width: 150px;
    color: #304c91;
    font-size: 13px;
    line-height: 1.5;
}

.contact-modal__info h3 {
    margin: 0 0 10px;
    color: #20242b;
    font-size: 25px;
    font-weight: 700;
}

.contact-modal__info-intro {
    margin: 0 0 18px;
}

.contact-modal__contact-list {
    display: grid;
    gap: 10px;
}

.contact-modal__contact-list > a,
.contact-modal__contact-list > div {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #20242b;
}

.contact-modal__contact-list a:hover {
    color: #304c91;
}

.contact-modal__contact-list i {
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #f7bd20;
    color: #20242b;
    font-size: 18px;
}

.contact-modal__contact-list span {
    padding-top: 1px;
    font-size: 14px;
    line-height: 1.55;
}

.contact-modal__contact-list small {
    display: block;
    margin-bottom: 2px;
    color: #687181;
    font-size: 12px;
}

.contact-modal__qr-card {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(48, 76, 145, 0.14);
}

.contact-modal__qr-image {
    display: block;
    flex: 0 0 120px;
    width: 120px;
    height: 120px;
    padding: 5px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(20, 38, 88, 0.12);
    object-fit: contain;
}

.contact-modal__qr-card > p {
    margin: 0;
    color: #304c91;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
}

@media only screen and (max-width: 991px) {
    .contact-modal {
        padding: 12px;
    }

    .contact-modal__dialog {
        grid-template-columns: 1fr;
        max-height: calc(100vh - 24px);
        border-radius: 16px;
    }

    .contact-modal__form-panel {
        padding: 40px 24px 28px;
    }

    .contact-modal__info {
        padding: 30px 24px 32px;
    }

    .contact-modal__close {
        top: 12px;
        right: 12px;
    }
}

@media only screen and (max-width: 767px) {
    .contact-modal__form-panel h2 {
        padding-right: 30px;
        font-size: 28px;
    }

    .contact-modal__form-grid {
        grid-template-columns: 1fr;
    }

    .contact-modal__qr-card {
        align-items: flex-start;
    }
}
