.advice-modal {
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    width: calc(100% - 32px);
    max-width: 540px;
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 32px;
    border: 0;
    border-radius: 32px;
    background: #FFFFFF;
    color: #181B1E;
    font-family: Gilroy, sans-serif;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.advice-modal::backdrop { background: #181B1E4D; }
html.advice-modal-open { overflow: hidden; }
.advice-modal__close {
    position: absolute;
    top: 17px;
    right: 17px;
    width: 14px;
    height: 14px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #A1A7AD;
    cursor: pointer;
}
.advice-modal__close::before,
.advice-modal__close::after {
    content: '';
    position: absolute;
    top: 6px;
    left: -2px;
    width: 18px;
    height: 2px;
    background: currentColor;
    transform: rotate(45deg);
}
.advice-modal__close::after { transform: rotate(-45deg); }
.advice-modal__close:hover,
.advice-modal__close:active { color: #181B1E; }
.advice-modal__title {
    margin: 0 0 24px;
    padding-right: 8px;
    color: #181B1E;
    font-family: Gilroy, sans-serif;
    font-weight: 700;
    font-size: 26px;
    line-height: 32px;
    text-transform: none;
}
.advice-modal__description {
    margin: 0 0 24px;
    font-family: Gilroy, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
}
.advice-modal__form { margin: 0; }
.advice-modal .advice-modal__input {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 11px 16px;
    border: 1px solid #C8C8CC;
    border-radius: 12px;
    background: #FFFFFF;
    color: #181B1E;
    font-family: Gilroy, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    box-shadow: none;
}
.advice-modal__input::placeholder { color: #626C77; opacity: 1; }
.advice-modal .advice-modal__input + .advice-modal__input { margin-top: 8px; }
.advice-modal__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    height: 48px;
    margin-top: 24px;
    padding: 0 16px;
    border: 0;
    border-radius: 12px;
    background: #FF0032;
    transition: background-color 250ms ease;
    color: #FFFFFF;
    font-family: Gilroy, sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
    cursor: pointer;
}
.advice-modal__submit:hover { background: #00A8AE; }
.advice-modal :is(button, input):focus-visible { outline: 2px solid #181B1E; outline-offset: 3px; }
.advice-modal__status { margin: 16px 0 0; font-size: 14px; line-height: 20px; }
@media (max-width: 768px) {
    .advice-modal {
        inset: auto 0 0;
        width: 100%;
        max-height: 100dvh;
        margin: 0 auto;
        padding: 32px 24px;
        border-radius: 24px 24px 0 0;
    }
    .advice-modal__title { margin-bottom: 20px; font-size: 22px; line-height: 28px; }
    .advice-modal__description { margin-bottom: 20px; }
    .advice-modal__submit { margin-top: 20px; }
}

.advice-modal__submit:disabled { opacity: .65; cursor: wait; }
.advice-modal__trap { display: none !important; }

@media (prefers-reduced-motion: reduce) {
    .advice-modal__submit { transition: none; }
}
