.popup,
.popup-overflow
{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.popup
{
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-overflow
{
    z-index: 99998;
    background: rgba(23, 23, 23, 0.64);
    backdrop-filter: blur(4px);
}

.popup.hidden,
.popup.hidden ~ .popup-overflow
{
    display: none;
    opacity: 0;
    visibility: hidden;
}

.popup.show,
.popup.show ~ .popup-overflow
{
    display: flex;
    opacity: 1;
    visibility: visible;
}

.popup__card
{
    padding: 32px;
    background: #fff;
    border-radius: 8px;
    max-width: 540px;
    width: 100%;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    margin: 10px;
}

.popup__card-header
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid #c5c5c5;
}

.popup__card-body
{
    overflow-y: auto;
    height: 100%;
    max-height: 512px;
    padding: 0 16px;
}

.popup__card-close
{
    cursor: pointer;
}

.popup__card-close svg path
{
    transition: fill .3s;
}

.popup__card-close:hover svg path
{
    fill: #e53637;
}

.popup__card-body form textarea
{
    height: 128px;
    resize: none;
}

.popup__card-body form textarea,
.popup__card-body form input[type="text"],
.popup__card-body form input[type="tel"],
.popup__card-body form input[type="email"]
{
    width: 100%;
    border: 1px solid #111;
    padding: 8px 16px;
    font-size: 15px;
    color: #111;
}

.popup__card-body form input[type="text"],
.popup__card-body form input[type="tel"],
.popup__card-body form input[type="email"]
{
    height: 50px;
}

.popup__card-body form input[type="submit"]
{
    transition: background .3s;
}

.popup__card-body form input[type="submit"]:hover
{
    background: #e53637;
}