/*
 * XP_CONTACT_V1_20260928
 */

html.xp-contact-open,
body.xp-contact-open {
    overflow: hidden !important;
}


.xp-contact {
    position: fixed;
    inset: 0;

    z-index: 2147482500;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;
}


.xp-contact[hidden] {
    display: none !important;
}


.xp-contact__backdrop {
    position: absolute;
    inset: 0;

    background: rgba(17, 22, 28, .56);
}


.xp-contact__panel {
    position: relative;

    z-index: 1;

    width: min(640px, 100%);
    max-height: calc(100vh - 48px);

    overflow: auto;

    color: #27323c;

    background: #ffffff;

    border: 1px solid #d8e0e5;
    border-radius: 8px;

    box-shadow:
        0 22px 65px rgba(17, 22, 28, .24);
}


.xp-contact__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    padding: 22px 24px 19px;

    background: #fbfcfd;

    border-bottom: 1px solid #e6ebef;
}


.xp-contact__eyebrow {
    margin: 0 0 7px;

    color: #768490;

    font-size: 10px;
    line-height: 1;
    font-weight: 700;

    letter-spacing: .08em;
}


.xp-contact__head h2 {
    margin: 0;

    color: #17222c;

    font-size: 22px;
    line-height: 1.2;
}


.xp-contact__intro {
    max-width: 500px;

    margin: 8px 0 0;

    color: #63717c;

    font-size: 12px;
    line-height: 1.5;
}


.xp-contact__close {
    width: 32px;
    height: 32px;

    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin: -3px -5px 0 0;
    padding: 0;

    color: #6b7882;

    background: transparent;

    border: 0;
    border-radius: 5px;

    font-size: 22px;
    line-height: 1;

    cursor: pointer;
}


.xp-contact__close:hover {
    color: #17222c;

    background: #eef2f4;
}


.xp-contact__form {
    padding: 22px 24px 24px;
}


.xp-contact__grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 15px;
}


.xp-contact__field {
    display: flex;
    flex-direction: column;

    gap: 7px;
}


.xp-contact__field--full {
    grid-column: 1 / -1;
}


.xp-contact__field[hidden] {
    display: none !important;
}


.xp-contact__field > span {
    color: #46545f;

    font-size: 10.5px;
    line-height: 1;
    font-weight: 650;
}


.xp-contact__field input,
.xp-contact__field select,
.xp-contact__field textarea {
    width: 100%;

    box-sizing: border-box;

    color: #24313b;

    background: #ffffff;

    border: 1px solid #cfd8df;
    border-radius: 5px;

    outline: 0;

    font: inherit;
    font-size: 12px;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}


.xp-contact__field input,
.xp-contact__field select {
    min-height: 40px;

    padding: 0 11px;
}


.xp-contact__field textarea {
    min-height: 130px;

    padding: 11px;

    resize: vertical;

    line-height: 1.45;
}


.xp-contact__field input:focus,
.xp-contact__field select:focus,
.xp-contact__field textarea:focus {
    border-color: #1a9fc2;

    box-shadow:
        0 0 0 3px rgba(26, 159, 194, .10);
}


.xp-contact__field input[readonly] {
    color: #66747f;

    background: #f4f6f7;
}


.xp-contact__turnstile {
    margin-top: 17px;
}


.xp-contact__turnstile[hidden] {
    display: none !important;
}


.xp-contact__status {
    min-height: 0;

    margin-top: 13px;

    font-size: 11px;
    line-height: 1.4;
}


.xp-contact__status:empty {
    display: none;
}


.xp-contact__status.is-error {
    padding: 9px 10px;

    color: #8a2430;

    background: #fff4f5;

    border: 1px solid #efd2d6;
    border-radius: 5px;
}


.xp-contact__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 9px;

    margin-top: 20px;
    padding-top: 17px;

    border-top: 1px solid #e7ecef;
}


.xp-contact__primary,
.xp-contact__secondary {
    min-height: 36px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 14px;

    border-radius: 5px;

    font-size: 11px;
    line-height: 1;
    font-weight: 650;

    cursor: pointer;
}


.xp-contact__primary {
    color: #ffffff;

    background: #202a34;

    border: 1px solid #202a34;
}


.xp-contact__primary:hover {
    background: #151d25;
    border-color: #151d25;
}


.xp-contact__primary:disabled {
    opacity: .55;

    cursor: wait;
}


.xp-contact__secondary {
    color: #35434e;

    background: #ffffff;

    border: 1px solid #cbd4db;
}


.xp-contact__secondary:hover {
    background: #f5f7f8;
}


.xp-contact__success {
    padding: 42px 30px;

    text-align: center;
}


.xp-contact__success[hidden] {
    display: none !important;
}


.xp-contact__success-icon {
    width: 42px;
    height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 15px;

    color: #ffffff;

    background: #17875a;

    border-radius: 999px;

    font-size: 20px;
    font-weight: 700;
}


.xp-contact__success h3 {
    margin: 0;

    color: #17222c;

    font-size: 19px;
}


.xp-contact__success p {
    max-width: 420px;

    margin: 10px auto 20px;

    color: #64727d;

    font-size: 12px;
    line-height: 1.55;
}


.xp-contact__honeypot {
    position: absolute !important;

    left: -10000px !important;

    width: 1px !important;
    height: 1px !important;

    overflow: hidden !important;
}


@media (max-width: 640px) {

    .xp-contact {
        align-items: flex-end;

        padding: 12px;
    }


    .xp-contact__panel {
        max-height: calc(100vh - 24px);

        border-radius: 7px;
    }


    .xp-contact__head {
        padding: 18px 18px 16px;
    }


    .xp-contact__head h2 {
        font-size: 19px;
    }


    .xp-contact__form {
        padding: 18px;
    }


    .xp-contact__grid {
        grid-template-columns: 1fr;
    }


    .xp-contact__field--full {
        grid-column: auto;
    }


    .xp-contact__actions {
        flex-direction: column-reverse;
    }


    .xp-contact__primary,
    .xp-contact__secondary {
        width: 100%;
    }
}
