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

.demo-request,
.demo-request * {
    box-sizing: border-box;
}

.demo-request {
    position: fixed;
    inset: 0;
    width: 500px;
    max-width: calc(100% - 32px);
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    overflow-y: auto;
    border: 0;
    border-radius: 20px;
    background: #ffffff;
    color: #3b368c;
    box-shadow: 0 24px 80px rgba(32, 24, 79, 0.25);
}

.demo-request:not([open]) {
    display: none;
}

.demo-request::backdrop {
    background: rgba(27, 23, 61, 0.6);
    backdrop-filter: blur(3px);
}

.demo-request__content {
    position: relative;
    padding: 36px;
}

.demo-request h2 {
    margin: 0 40px 12px 0;
    color: #3b368c;
    font-size: 30px;
    line-height: 1.25;
}

.demo-request #demo-request-description {
    margin: 0 0 24px;
    color: #66627e;
    font-size: 15px;
    line-height: 1.6;
}

.demo-request .demo-request__close {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f2f0fa;
    color: #3b368c;
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
}

.demo-request__field {
    margin-bottom: 18px;
}

.demo-request label {
    display: block;
    margin: 0 0 7px;
    color: #3b368c;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.demo-request input {
    display: block;
    width: 100%;
    height: 50px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #dcd9eb;
    border-radius: 9px;
    background: #ffffff;
    color: #302c52;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
}

.demo-request input::placeholder {
    color: #89849e;
}

.demo-request input:focus {
    border-color: #7752dc;
    outline: 3px solid rgba(119, 82, 220, 0.16);
    outline-offset: 1px;
}

.demo-request .demo-request__note {
    margin: 4px 0 20px;
    color: #66627e;
    font-size: 13px;
    line-height: 1.6;
}

.demo-request .demo-request__submit {
    width: 100%;
    height: auto;
    min-height: 50px;
    margin: 0;
    padding: 12px 22px;
    border: 0;
    border-radius: 25px;
    background: linear-gradient(110deg, #ad5de5, #2456fa);
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
}

.demo-request .demo-request__submit:hover {
    background: linear-gradient(110deg, #9845d2, #1945db);
}

.demo-request button:focus-visible {
    outline: 3px solid #7752dc;
    outline-offset: 3px;
}

@media (max-width: 575px) {
    .demo-request__content {
        padding: 28px 22px;
    }

    .demo-request h2 {
        font-size: 27px;
    }
}
