.scc-support-popup {
    --scc-support-blue: #0467C3;
    --scc-support-blue-dark: #004889;
    --scc-support-green: #32DE8A;
    --scc-support-gray: #828282;
    --scc-support-border: #E0E0E0;
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 16px;
    font-family: "Avenir Next", Arial, sans-serif;
    opacity: 0;
    overflow-y: auto;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.scc-support-popup.is-open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.scc-support-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 31, 62, 0.42);
}

.scc-support-popup__dialog {
    position: relative;
    width: min(640px, 100%);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    border: 1px solid var(--scc-support-border);
    border-radius: 8px;
    background: #FFFFFF;
    box-shadow: 0 24px 80px rgba(0, 49, 94, 0.24);
}

.scc-support-popup__form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px;
}

.scc-support-popup__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.scc-support-popup__head h2 {
    margin: 0;
    background: linear-gradient(112deg, var(--scc-support-blue) 7.158%, var(--scc-support-blue-dark) 92.834%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 28px;
    font-style: italic;
    font-weight: 700;
    line-height: 1.2;
}

.scc-support-popup__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: -4px -4px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #4F4F4F;
    cursor: pointer;
    font: 400 36px/1 Arial, sans-serif;
}

.scc-support-popup__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 15px;
}

.scc-support-popup__field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.scc-support-popup__field--full {
    grid-column: 1 / -1;
}

.scc-support-popup__field span {
    color: var(--scc-support-blue);
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
}

.scc-support-popup__field em {
    color: var(--scc-support-green);
    font-style: normal;
}

.scc-support-popup__field input {
    width: 100%;
    height: 56px;
    padding: 10px;
    border: 1px solid var(--scc-support-border);
    border-radius: 10px;
    background: #FFFFFF;
    color: var(--scc-support-blue-dark);
    font: 500 16px/1.2 "Jost", "Avenir Next", Arial, sans-serif;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.scc-support-popup__field input::placeholder {
    color: #BDBDBD;
}

.scc-support-popup__field input:focus {
    border-color: var(--scc-support-green);
    box-shadow: 0 0 0 3px rgba(50, 222, 138, 0.18);
}

.scc-support-popup__field input.is-invalid {
    border-color: #D11F5E;
    box-shadow: 0 0 0 3px rgba(209, 31, 94, 0.12);
}

.scc-support-popup__cfp {
    width: fit-content;
    max-width: 100%;
    margin-right: auto;
    margin-left: 0;
}

.scc-support-popup__cfp .sfc-cfp-wrap {
    display: inline-block !important;
    width: fit-content;
    max-width: 100%;
}

.scc-support-popup__cfp .sfc-cfp-widget {
    display: block !important;
    width: 300px;
    max-width: 100%;
}

.scc-support-popup__cfp .sfc-cfp-widget.sfc-cfp-invisible {
    position: static;
    width: 300px;
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    clip: auto;
    clip-path: none;
    overflow: visible;
}

.scc-support-popup__cfp .sfc-cfp-box {
    display: flex !important;
    box-sizing: border-box;
    min-height: 58px;
    padding: 14px 16px;
    border-radius: 10px;
}

.scc-support-popup__cfp .sfc-cfp-slider {
    width: 100%;
    max-width: 300px;
}

.scc-support-popup__status {
    display: none;
    margin: -4px 0 0;
    color: var(--scc-support-blue);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.scc-support-popup__status.is-visible {
    display: block;
}

.scc-support-popup__status.is-error {
    color: #D11F5E;
}

.scc-support-popup__status.is-success {
    color: #168A59;
}

.scc-support-popup__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
}

.scc-support-popup__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 142px;
    min-height: 54px;
    padding: 16px 42px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.64px;
    text-transform: uppercase;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.scc-support-popup__button:hover,
.scc-support-popup__button:focus-visible {
    transform: translateY(-1px);
}

.scc-support-popup__button--cancel {
    border: 1px solid var(--scc-support-green);
    background: #FFFFFF;
    color: var(--scc-support-gray);
}

.scc-support-popup__button--submit {
    border: 1px solid var(--scc-support-green);
    background: var(--scc-support-green);
    color: #FFFFFF;
}

.scc-support-popup__button[disabled] {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

body.scc-support-popup-lock {
    overflow: hidden;
}

@media screen and (max-width: 680px) {
    .scc-support-popup {
        align-items: center;
        padding: 16px;
    }

    .scc-support-popup__form {
        gap: 20px;
        padding: 22px;
    }

    .scc-support-popup__head h2 {
        font-size: 22px;
        white-space: normal;
    }

    .scc-support-popup__fields {
        grid-template-columns: 1fr;
    }

    .scc-support-popup__field--full {
        grid-column: auto;
    }

    .scc-support-popup__actions {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 12px;
    }

    .scc-support-popup__button {
        width: 100%;
    }
}
