/* SOULULAB - глобальная форма обратного звонка */

html.is-callback-open,
html.is-callback-open body {
    overflow: hidden !important;
}

.soulu-callback[hidden] {
    display: none !important;
}

.soulu-callback {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 24px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.soulu-callback.is-open {
    opacity: 1;
    visibility: visible;
}

.soulu-callback__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 22% 18%, rgba(111, 44, 255, .18), transparent 34%),
        radial-gradient(circle at 80% 76%, rgba(31, 79, 207, .16), transparent 38%),
        rgba(3, 6, 12, .76);
    backdrop-filter: blur(18px) saturate(1.08);
    -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

.soulu-callback__dialog {
    position: relative;
    isolation: isolate;
    width: min(560px, 100%);
    max-height: calc(100dvh - 48px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 38px;
    box-sizing: border-box;
    color: #f6f7fb;
    border: 1px solid rgba(111, 44, 255, .70);
    border-radius: 30px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .018) 42%),
        linear-gradient(145deg, rgba(25, 29, 39, .97), rgba(7, 10, 17, .985) 72%);
    box-shadow:
        0 36px 100px rgba(0, 0, 0, .58),
        0 0 46px rgba(111, 44, 255, .17),
        inset 0 1px 0 rgba(255, 255, 255, .14);
    backdrop-filter: blur(28px) saturate(1.14);
    -webkit-backdrop-filter: blur(28px) saturate(1.14);
    transform: translateY(16px) scale(.975);
    transition: transform 220ms cubic-bezier(.2, .78, .2, 1);
}

.soulu-callback.is-open .soulu-callback__dialog {
    transform: translateY(0) scale(1);
}

.soulu-callback__dialog::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    left: 28px;
    right: 28px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        #6f2cff 18%,
        #b940f5 43%,
        #1f4fcf 70%,
        #22d6e8 88%,
        transparent
    );
    box-shadow: 0 0 18px rgba(111, 44, 255, .72);
}

.soulu-callback__glow {
    position: absolute;
    z-index: -1;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    filter: blur(72px);
    opacity: .20;
    pointer-events: none;
}

.soulu-callback__glow--one {
    top: -150px;
    right: -80px;
    background: #6f2cff;
}

.soulu-callback__glow--two {
    bottom: -180px;
    left: -90px;
    background: #1f4fcf;
}

.soulu-callback__close {
    position: absolute;
    z-index: 3;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0;
    color: rgba(255, 255, 255, .74);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 12px;
    background: rgba(255, 255, 255, .055);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09);
    cursor: pointer;
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.soulu-callback__close:hover {
    color: #fff;
    border-color: rgba(185, 64, 245, .62);
    background: rgba(185, 64, 245, .12);
}

.soulu-callback__close svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.soulu-callback__head {
    position: relative;
    z-index: 1;
    padding-right: 42px;
}

.soulu-callback__eyebrow {
    display: block;
    margin-bottom: 12px;
    color: rgba(185, 64, 245, .96);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.soulu-callback__head h2 {
    margin: 0;
    color: #fff;
    font-family: Montserrat, Arial, sans-serif;
    font-size: clamp(30px, 5vw, 42px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -.04em;
}

.soulu-callback__head p {
    max-width: 440px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, .64);
    font-size: 14px;
    line-height: 1.62;
}

.soulu-callback__form {
    position: relative;
    z-index: 1;
    margin-top: 28px;
}

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

.soulu-callback__field {
    min-width: 0;
    display: grid;
    gap: 8px;
}

.soulu-callback__field > span {
    color: rgba(255, 255, 255, .84);
    font-size: 12px;
    font-weight: 650;
}

.soulu-callback__field input {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 13px 15px;
    box-sizing: border-box;
    color: rgba(255, 255, 255, .94);
    font: inherit;
    font-size: 13px;
    border: 1px solid rgba(111, 44, 255, .42);
    border-radius: 15px;
    outline: none;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .035));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.soulu-callback__field input::placeholder {
    color: rgba(255, 255, 255, .34);
}

.soulu-callback__field input:focus {
    border-color: rgba(185, 64, 245, .90);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .045));
    box-shadow:
        0 0 0 3px rgba(185, 64, 245, .11),
        inset 0 1px 0 rgba(255, 255, 255, .10);
}

.soulu-callback__consent {
    margin: 20px 0 0 !important;
}

.soulu-callback__consent .soulu-form-consent__text,
.soulu-callback__consent .soulu-form-consent__text * {
    color: rgba(255, 255, 255, .57) !important;
    font-size: 11px !important;
    line-height: 1.48 !important;
}

.soulu-callback__consent .soulu-form-consent__text a {
    color: rgba(255, 255, 255, .78) !important;
    text-decoration-color: rgba(255, 255, 255, .38) !important;
}

.soulu-callback__submit {
    position: relative;
    width: 100%;
    min-height: 52px;
    margin-top: 22px;
    padding: 0 22px;
    overflow: hidden;
    color: #fff !important;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    border: 1px solid rgba(111, 44, 255, .92) !important;
    border-radius: 15px;
    background:
        linear-gradient(115deg, transparent 5%, rgba(255, 255, 255, .17) 36%, transparent 62%),
        linear-gradient(135deg, #6f2cff, #4b1aa8 55%, #17203f) !important;
    box-shadow:
        0 17px 36px rgba(111, 44, 255, .28),
        inset 0 1px 0 rgba(255, 255, 255, .22) !important;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.soulu-callback__submit:hover {
    color: #fff !important;
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow:
        0 20px 42px rgba(111, 44, 255, .36),
        inset 0 1px 0 rgba(255, 255, 255, .28) !important;
}

.soulu-callback__submit > span {
    position: relative;
    z-index: 2;
}

.soulu-callback__status {
    margin-top: 16px;
}

.soulu-callback .soulu-form-status.is-pending {
    color: rgba(255, 255, 255, .82);
    background: rgba(255, 255, 255, .055);
    border-color: rgba(255, 255, 255, .14);
}

.soulu-callback .soulu-form-status.is-success {
    color: #bff7d7;
    background: rgba(38, 173, 104, .12);
    border-color: rgba(76, 220, 145, .32);
}

.soulu-callback .soulu-form-status.is-error {
    color: #ffd2dc;
    background: rgba(194, 59, 82, .13);
    border-color: rgba(255, 105, 137, .34);
}

@media (max-width: 620px) {
    .soulu-callback {
        align-items: end;
        padding: 12px;
    }

    .soulu-callback__dialog {
        width: 100%;
        max-height: calc(100dvh - 24px);
        padding: 30px 20px 22px;
        border-radius: 25px;
        transform: translateY(22px) scale(.985);
    }

    .soulu-callback__close {
        top: 14px;
        right: 14px;
    }

    .soulu-callback__head {
        padding-right: 34px;
    }

    .soulu-callback__head h2 {
        font-size: 31px;
    }

    .soulu-callback__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .soulu-callback,
    .soulu-callback__dialog,
    .soulu-callback__submit {
        transition: none !important;
    }
}
