/* M367_GLOBAL_CONTACT_MODAL_V2 START */

.m367-contact-modal,
.m367-contact-modal * {
    box-sizing: border-box;
}

.m367-contact-modal {
    --m367-contact-orange: var(--m367-brand-orange, #ff5a00);
    --m367-contact-orange-rgb: var(--m367-brand-orange-rgb, 255, 90, 0);
    --m367-contact-surface: #101113;
    --m367-contact-card: #151619;
    --m367-contact-text: rgba(255, 255, 255, .94);
    --m367-contact-muted: rgba(255, 255, 255, .68);
    --m367-contact-border: rgba(var(--m367-contact-orange-rgb), .28);
    width: min(620px, calc(100vw - 40px));
    max-width: none;
    max-height: calc(100vh - 40px);
    margin: auto;
    padding: 0;
    overflow: hidden;
    color: var(--m367-contact-text);
    background: var(--m367-contact-surface);
    border: 1px solid var(--m367-contact-border);
    border-radius: 8px;
    font-family: var(--ui-font-family-primary, "Open Sans", Arial, sans-serif);
}

.m367-contact-modal::backdrop {
    background: rgba(0, 0, 0, .88);
    backdrop-filter: blur(2px);
}

.m367-contact-modal__panel {
    display: flex;
    max-height: calc(100vh - 40px);
    flex-direction: column;
}

.m367-contact-modal__head {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--m367-contact-border);
}

.m367-contact-modal__eyebrow {
    display: block;
    color: var(--m367-contact-orange);
    font-size: 11px;
    font-weight: var(--m367-font-weight-strong);
    letter-spacing: .08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.m367-contact-modal__head h2 {
    margin: 6px 0 0;
    color: var(--m367-contact-text);
    font-size: 28px;
    font-weight: var(--m367-font-weight-strong);
    line-height: 1.1;
}

.m367-contact-modal__close {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--m367-contact-text);
    background: var(--m367-contact-card);
    border: 1px solid var(--m367-contact-border);
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-size: 28px;
    line-height: 1;
}

.m367-contact-modal__form {
    padding: 20px;
    overflow: auto;
}

.m367-contact-modal__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.m367-contact-modal__field {
    display: block;
    margin-bottom: 16px;
}

.m367-contact-modal__field > span {
    display: block;
    margin-bottom: 7px;
    color: var(--m367-contact-text);
    font-size: 13px;
    font-weight: var(--m367-font-weight-strong);
}

.m367-contact-modal__field input,
.m367-contact-modal__field select,
.m367-contact-modal__field textarea {
    display: block;
    width: 100%;
    color: var(--m367-contact-text);
    background: var(--m367-contact-card);
    border: 1px solid var(--m367-contact-border);
    border-radius: 8px;
    font: inherit;
    font-size: 15px;
    outline: none;
}

.m367-contact-modal__field input,
.m367-contact-modal__field select {
    min-height: 46px;
    padding: 0 13px;
}

.m367-contact-modal__field textarea {
    min-height: 126px;
    padding: 12px 13px;
    line-height: 1.5;
    resize: vertical;
}

.m367-contact-modal__field input:focus,
.m367-contact-modal__field select:focus,
.m367-contact-modal__field textarea:focus {
    border-color: var(--m367-contact-orange);
    box-shadow: 0 0 0 2px rgba(var(--m367-contact-orange-rgb), .16);
}

.m367-contact-modal__contact-note {
    margin: -7px 0 15px;
    color: var(--m367-contact-muted);
    font-size: 12px;
    line-height: 1.4;
}

.m367-contact-modal__consent {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    color: var(--m367-contact-muted);
    font-size: 12px;
    line-height: 1.45;
}

.m367-contact-modal__consent input {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin: 2px 0 0;
    accent-color: var(--m367-contact-orange);
}

.m367-contact-modal__consent a {
    color: var(--m367-contact-text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.m367-contact-modal__status {
    display: none;
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px solid var(--m367-contact-border);
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.45;
}

.m367-contact-modal__status[data-state="error"],
.m367-contact-modal__status[data-state="success"] {
    display: block;
}

.m367-contact-modal__status[data-state="error"] {
    color: #fff;
    background: rgba(191, 38, 38, .22);
    border-color: rgba(255, 92, 92, .48);
}

.m367-contact-modal__status[data-state="success"] {
    color: #fff;
    background: rgba(var(--m367-contact-orange-rgb), .16);
}

.m367-contact-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.m367-contact-modal__submit,
.m367-contact-modal__cancel {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: var(--m367-font-weight-strong);
}

.m367-contact-modal__success {
    padding: 34px 28px 30px;
    overflow: auto;
    text-align: center;
}

.m367-contact-modal__success[hidden] {
    display: none;
}

.m367-contact-modal__success-mark {
    display: inline-flex;
    width: 62px;
    height: 62px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: #fff;
    background: var(--m367-contact-orange);
    border-radius: 50%;
    font-size: 32px;
    font-weight: var(--m367-font-weight-strong);
    line-height: 1;
}

.m367-contact-modal__success h3 {
    margin: 8px 0 10px;
    color: var(--m367-contact-text);
    font-size: 30px;
    font-weight: var(--m367-font-weight-strong);
    line-height: 1.15;
}

.m367-contact-modal__success > p {
    max-width: 440px;
    margin: 0 auto 22px;
    color: var(--m367-contact-muted);
    font-size: 15px;
    line-height: 1.55;
}

.m367-contact-modal__request-id {
    max-width: 360px;
    margin: 0 auto;
    padding: 13px 16px;
    background: var(--m367-contact-card);
    border: 1px solid var(--m367-contact-border);
    border-radius: 8px;
}

.m367-contact-modal__request-id span,
.m367-contact-modal__request-id strong {
    display: block;
}

.m367-contact-modal__request-id span {
    margin-bottom: 5px;
    color: var(--m367-contact-muted);
    font-size: 11px;
    font-weight: var(--m367-font-weight-strong);
    letter-spacing: .06em;
    text-transform: uppercase;
}

.m367-contact-modal__request-id strong {
    color: var(--m367-contact-text);
    font-size: 16px;
    font-weight: var(--m367-font-weight-strong);
}

.m367-contact-modal__success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 22px;
}

.m367-contact-modal__success-actions a {
    text-decoration: none;
}

.m367-contact-modal__submit {
    color: #fff;
    background: var(--m367-accent-strong);
    border: 1px solid var(--m367-contact-orange);
}

.m367-contact-modal__submit:disabled {
    cursor: wait;
    opacity: .62;
}

.m367-contact-modal__cancel {
    color: var(--m367-contact-text);
    background: var(--m367-contact-card);
    border: 1px solid var(--m367-contact-border);
}

.m367-contact-modal__trap {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

body.m367-contact-modal-open {
    overflow: hidden;
}

@media (max-width: 620px) {
    .m367-contact-modal {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
    }

    .m367-contact-modal__panel {
        max-height: calc(100vh - 20px);
    }

    .m367-contact-modal__head {
        min-height: 70px;
        padding: 11px 13px;
    }

    .m367-contact-modal__head h2 {
        font-size: 22px;
    }

    .m367-contact-modal__form {
        padding: 14px;
    }

    .m367-contact-modal__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .m367-contact-modal__actions {
        flex-direction: column;
    }

    .m367-contact-modal__submit,
    .m367-contact-modal__cancel {
        width: 100%;
    }

    .m367-contact-modal__success {
        padding: 28px 18px 22px;
    }

    .m367-contact-modal__success h3 {
        font-size: 25px;
    }

    .m367-contact-modal__success-actions {
        flex-direction: column;
    }
}

/* M367_GLOBAL_CONTACT_MODAL_V2 END */
