#rec1163050291 .t-popup__container,
#rec1163068886 .t-popup__container,
#rec1168666311 .t-popup__container {
    pointer-events: none; /* close by overlay because width of popup smaller then container */
    background: transparent;
}

.custom-form-in-popup,
.custom-form-in-popup * {
    box-sizing: border-box;
}

.custom-form-in-popup {
    pointer-events: all; /* see  #rec1160851906 .t-popup__container */
    color: #000;
    max-width: 560px;
    width: 100%;
    padding: 40px 45px;
    border-radius: 10px;
    margin: 0 auto;
    font-family: 'Arial';
    background: #fff;
}

.custom-form-in-popup__title {
    font-size: 36px;
    line-height: 1.23;
    font-weight: 600;
    text-align: center;
    margin-bottom: 24px;
}

.custom-form-in-popup__result {
    font-size: 16px;
    line-height: 1.4;
    text-align: center;
}

.custom-form-in-popup__result:empty {
    display: none;
}

.custom-form__field {
    margin-bottom: 25px;
}

.custom-form__input {
    color: #000;
    width: 100%;
    font-size: 16px;
    line-height: 1;
    font-family: 'Arial';
    padding: 20.5px 0;
    border: none;
    border-bottom: 1px solid #000;
}

.custom-form__input:focus {
    outline: none;
}

.custom-form__field.invalid .custom-form__input {
    border-color: red;
}

.custom-form__error {
    margin-top: 5px;
    color: red;
    font-size: 13px;
}

.custom-form__error:empty {
    display: none;
}

.custom-form__input:focus::placeholder {
    color: transparent;
}

.custom-form__btn {
    position: relative;
    appearance: none;
    display: block;
    width: 100%;
    cursor: pointer;
    color: #000;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    font-family: Arial;
    text-align: center;
    padding: 19px 12px;
    border: none;
    border-radius: 10px;
    background: #c2c2c2;
    box-sizing: border-box;
}

.custom-form__btn:hover {
    background: #5a5a5a
}

.custom-form__btn_sending {
    color: transparent;
    pointer-events: none;
}

.custom-form__btn_sending:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    transform: translate(-50%, -50%);
    background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='50' viewBox='0 0 100 100'%3E%3Cpath fill='%23ffffff' d='M73 50c0-12.7-10.3-23-23-23S27 37.3 27 50m3.9 0c0-10.5 8.5-19.1 19.1-19.1S69.1 39.5 69.1 50'%3E%3CanimateTransform attributeName='transform' attributeType='XML' type='rotate' dur='1s' from='0 50 50' to='360 50 50' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E") no-repeat;
    background-size: contain;
}

.custom-form__btn:focus {
    outline: none;
}

@media (max-width: 1200px) {
    .custom-form-in-popup {
        max-width: 460px;
    }

    .custom-form-in-popup__title {
        font-size: 32px;
    }
}

@media screen and (max-width: 640px) {
    .custom-form-in-popup {
        padding: 20px;
    }

    .custom-form-in-popup__title {
        font-size: 28px;
        margin-bottom: 14px;
    }

    .custom-form__field {
        margin-bottom: 20px;
    }

    .custom-form__input {
        padding: 15.5px 0;
    }

    .custom-form__btn-wrap {
        margin-top: 25px;
    }
}