.demo-popup {
    position: fixed;
    z-index: 125;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: hidden auto;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(2px);
    color: #fff;
    font-family: Gilroy, Arial, sans-serif;
}

.demo-popup.is-open {
    display: flex;
}

body.demo-popup-open {
    overflow: hidden;
}

.demo-popup__dialog {
    position: relative;
    width: min(874px, 100%);
    max-height: calc(100vh - 48px);
    max-height: calc(100svh - 48px);
    overflow: hidden auto;
    background: #0b0b0b url("../img/front/products_bg.jpg") center / cover no-repeat;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    scrollbar-color: rgba(255, 255, 255, 0.4) transparent;
    scrollbar-width: thin;
}

.demo-popup__dialog::-webkit-scrollbar {
    width: 6px;
}

.demo-popup__dialog::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
}

.demo-popup__close {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    display: grid;
    place-items: center;
    width: 33px;
    height: 33px;
    padding: 0;
    border: 0;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.demo-popup__close:hover,
.demo-popup__close:focus-visible {
    background: rgba(255, 255, 255, 0.34);
}

.demo-popup__content {
    width: 100%;
}

.demo-popup__view {
    min-height: 601px;
    padding: 50px 67px 46px;
}

.demo-popup__view--request {
    min-height: 820px;
}

.demo-popup__view--success {
    display: flex;
    min-height: 440px;
    flex-direction: column;
    justify-content: center;
}

.demo-popup__title {
    margin: 0 0 39px;
    color: #fff;
    font-family: "Monument Extended", Arial Black, sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
}

.demo-popup__subtitle {
    margin: 0 auto 56px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.35;
    text-align: center;
}

.demo-popup__form {
    margin: 0;
}

.demo-popup__field {
    position: relative;
    display: flex;
    min-height: 100px;
    flex-direction: column;
    justify-content: flex-end;
    margin: 0;
    padding: 0 0 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.demo-popup__label {
    position: absolute;
    left: 0;
    bottom: 15px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    pointer-events: none;
    transition: transform 0.2s ease, color 0.2s ease, font-size 0.2s ease;
}

.demo-popup__field:focus-within .demo-popup__label,
.demo-popup__field.is-filled .demo-popup__label,
.demo-popup__field--select .demo-popup__label {
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    transform: translateY(-30px);
}

.demo-popup__field input,
.demo-popup__field select {
    width: 100%;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 18px;
    font-weight: 600;
    line-height: 34px;
}

.demo-popup__field select {
    padding-right: 30px;
    appearance: none;
    cursor: pointer;
}

.demo-popup__field select option {
    background: #0b0b0b;
    color: #fff;
}

.demo-popup__select-arrow {
    position: absolute;
    right: 1px;
    bottom: 24px;
    color: rgba(255, 255, 255, 0.8);
    pointer-events: none;
}

.demo-popup__field.has-error {
    border-color: #d22029;
}

.demo-popup__error {
    margin: 18px 0 0;
    color: #ff5d65;
    font-size: 14px;
    line-height: 1.35;
}

.demo-popup__submit {
    display: flex;
    width: 100%;
    height: 53px;
    align-items: center;
    justify-content: space-between;
    margin: 86px 0 0;
    padding: 0 24px;
    border: 0;
    background: linear-gradient(90deg, #740009 0%, #b10d17 100%);
    color: #fff;
    font-family: Gilroy, Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    text-transform: uppercase;
    cursor: pointer;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

.demo-popup__submit:hover,
.demo-popup__submit:focus-visible {
    filter: brightness(1.18);
}

.demo-popup__submit:disabled {
    cursor: wait;
    opacity: 0.62;
}

.demo-popup__switch {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 39px 0 0;
    color: #fff;
    font-size: 16px;
    line-height: 1.3;
    text-transform: uppercase;
}

.demo-popup__switch button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-transform: inherit;
    cursor: pointer;
}

.demo-popup__switch button span {
    border-bottom: 1px solid currentColor;
}

.demo-popup__switch button:hover,
.demo-popup__switch button:focus-visible {
    color: #d22029;
}

.demo-popup__view--request .demo-popup__title {
    margin-bottom: 30px;
}

.demo-popup__view--request .demo-popup__subtitle {
    margin-bottom: 38px;
}

.demo-popup__view--request .demo-popup__field {
    min-height: 100px;
}

.demo-popup__recaptcha {
    margin: 57px 24px 0;
    color: rgba(255, 255, 255, 0.56);
    font-size: 14px;
    line-height: 1.35;
}

.demo-popup__recaptcha a {
    color: inherit;
    text-decoration: underline;
}

.demo-popup__view--request .demo-popup__submit {
    margin-top: 12px;
}

.demo-popup__view--request .demo-popup__switch {
    margin-top: 27px;
}

.demo-popup__view--success .demo-popup__subtitle {
    margin-bottom: 0;
}

.demo-popup__view--success .demo-popup__submit {
    margin-top: 55px;
}

@media (max-width: 600px) {
    .demo-popup {
        display: none;
        align-items: flex-start;
        padding: 0;
        background: #0b0b0b;
    }

    .demo-popup.is-open {
        display: block;
    }

    .demo-popup__dialog {
        width: 100%;
        min-height: 100vh;
        min-height: 100svh;
        max-height: none;
        overflow: visible;
        background-position: center top;
        box-shadow: none;
    }

    .demo-popup__close {
        position: fixed;
        top: 0;
        right: 0;
        width: 40px;
        height: 40px;
    }

    .demo-popup__view {
        min-height: 100vh;
        min-height: 100svh;
        padding: 47px 12px 44px;
    }

    .demo-popup__title {
        margin-bottom: 32px;
        padding: 0 32px;
        font-size: 13px;
        line-height: 1.3;
    }

    .demo-popup__subtitle {
        margin-bottom: 52px;
        font-size: 14px;
    }

    .demo-popup__field {
        min-height: 100px;
    }

    .demo-popup__label,
    .demo-popup__field input,
    .demo-popup__field select {
        font-size: 16px;
    }

    .demo-popup__submit {
        height: 40px;
        margin-top: 38px;
        padding: 0 12px;
        font-size: 13px;
    }

    .demo-popup__submit svg {
        width: 12px;
        height: 12px;
    }

    .demo-popup__switch {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
        margin: 19px 12px 0;
        font-size: 13px;
    }

    .demo-popup__view--request {
        padding-top: 47px;
    }

    .demo-popup__view--request .demo-popup__title {
        margin-bottom: 24px;
    }

    .demo-popup__view--request .demo-popup__subtitle {
        max-width: 310px;
        margin-bottom: 24px;
    }

    .demo-popup__view--request .demo-popup__field {
        min-height: 86px;
    }

    .demo-popup__recaptcha {
        margin: 35px 0 0;
        font-size: 11px;
    }

    .demo-popup__view--request .demo-popup__submit {
        margin-top: 12px;
    }

    .demo-popup__view--request .demo-popup__switch {
        margin-top: 20px;
    }
}
