.title_form,
.description_form {
    text-align: center;
}

.description_form {
    margin-bottom: 1em;
    margin-top: -1em;
}


.form-page {
    text-align: center;
    display: flex;
    flex-wrap: wrap;
}

.form-page .input_page input {
    text-align: center;
    width: 100%;
    margin-bottom: 0.5em;
    background: transparent;
    border: none;
    position: relative;
}

.form-page .input_page input {}

.form-page .input_page {
    margin-bottom: .5em;
}

.input_page:after {
    content: "";
    position: absolute;
    border-bottom: 1px solid var(--main-color);
    bottom: calc(.5em - 1px);
    left: calc(15px + .5em + 3px);
    width: calc(100% - 36px - 1em);

}

.point {
    color: red;
    font-weight: 900;
}

.text-danger {
    margin-top: 1em;
    color: red;
}

.text-danger p {
    /* font-size: .8em; */
    margin-bottom: 0;

}

.input_modal .text-danger {
    line-height: 1.2em;
    font-size: 0.875em;
    margin-top: 0.5em;
    text-align: left;
    padding-left: calc(1em + 5px);

}

/* .message_send {
    background: var(--bg-html-color);
    padding: 0;
    margin-top: 0;
    text-align: center;
    height: 0;
    overflow: hidden;
    font-size: 1.2em;
    line-height: 1.2em;
}

.message_send_view {
    height: auto;
    padding: 1em;
    margin-top: 1em;
} */

input[type="checkbox"]:focus {
    border: 0;
    outline: 0;
}

.form-page input[type="tel"]:focus {
    letter-spacing: 2px;
    color: var(--main-color);
}


.form-page .input_page input:focus {
    background: var(--form-input-focus);
    border-radius: 1em;
}

.input_page .input-label {
    position: absolute;
    text-align: center;
    font-size: .8em;
    left: calc(15px + .5em + 3px);
    width: calc(100% - 36px - 1em);
    bottom: -1em;
    transform: scaleY(1) scaleX(1);
}

.input_page input:placeholder-shown~.input-label {
    transform: scaleY(0) scaleX(0);
}

.input_page input:focus~.input-label {
    transform: scaleY(1) scaleX(1);
}


.form-page input:focus::placeholder {
    color: transparent;
}


.form-page .input_modal input {
    width: 100%;
    margin-top: 2.625em;
    padding: .5em 1em;
    font-size: 1.125em;
    border-radius: 1em;
    border: 1px solid var(--main-color);
}


.form-page .input_modal .input-label {
    text-align: left;
    margin-left: calc(1em + 1px);
    top: 1em;
    position: absolute;
    font-size: 1.125em;
    font-weight: 600;
}

.input_modal .input-label {

    /* left: calc(15px + .5em + 3px); */
    /* width: calc(100% - 36px - 1em); */
    /* transform: scaleY(1) scaleX(1); */
}

.acceptance_checkbox input {
    margin-top: 1px;
    width: auto;
    margin-right: .5em;

}

.modal .acceptance_checkbox {
    margin-top: 2em;
    justify-content: flex-start;
    margin-left: calc(1em + 7px);
    text-align: left;
    /* background: red; */
    align-items: flex-start;
}

.acceptance_checkbox {
    margin-top: 1.5em;
    display: flex;
    line-height: 1.2em;
    font-size: .8em;
    justify-content: center;

    /* flex-direction: column; */
}

.accept_link {
    text-align: left;
}

.robot_checkbox {
    height: 0;
    overflow: hidden;
}

/* ** модальное окно формы **   */

/* свойства модального окна по умолчанию */
.modal {
    /*     display: flex;
    align-items: center; */
    position: fixed;
    /* фиксированное положение */
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    /* цвет фона */
    z-index: 1050;
    opacity: 0;
    /* по умолчанию модальное окно прозрачно */
    -webkit-transition: opacity 0.2s cubic-bezier(0, .30, 1, .70);
    -moz-transition: opacity 0.2s cubic-bezier(0, .30, 1, .70);
    transition: opacity 0.2s cubic-bezier(0, .30, 1, .70);
    /* анимация перехода */
    pointer-events: none;
    /* элемент невидим для событий мыши */
    display: flex;
    padding:10px 0 ;
}

.modal-message {
    z-index: 1060;
}

.div-btn-open-modal {
    width: 100%;
    text-align: center;
}


.btn_align_left{
text-align: left;
}

.btn_align_center{
text-align: center;
}

.btn_align_right{
text-align: right;
}



/* при отображении модального окно */
.modal.open {
    opacity: 1;
    pointer-events: auto;
    overflow-y: auto;

}

/* ширина модального окна и его отступы от экрана */
.modal-dialog {
    position: relative;
    width: auto;
    margin: auto 10px;

}

/* свойства для блока, содержащего контент модального окна */
.modal-content {
    position: relative;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    background-color: #fff;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: .3rem;
    outline: 0;

}



/* свойства для заголовка модального окна */
.modal-header {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    /* -webkit-box-pack: justify; */
    /* -webkit-justify-content: space-between; */
    /* -ms-flex-pack: justify; */
    /* justify-content: space-between; */
    padding: 20px 15px 0 15px;
    /* border-bottom: 1px solid #eceeef; */
    flex-direction: column;
    /* width: calc(100% - 6em); */
    margin-left: 3em;
    margin-right: 3em;
    text-align: center;
}

.modal-header .modal-title {
    line-height: 1em;
    font-size: 1.4375em;
    font-weight: 600;
}

.modal-header .modal-title .description_form {
    line-height: 1.25em;
    font-size: 0.7em;
    margin-top: 0.25em;
    /* font-weight: 500; */
}

.modal-header h4 {
    line-height: 1.2em;
    font-size: 1.125em;
    font-weight: 600;
    padding-top: 0;
}

.modal-header .description_form {
    line-height: 1.25em;
    font-size: 0.875em;
    margin-top: .75em;
    /* margin: 0; */
    /* background: #050; */
}


.modal-title {
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.5;
    font-size: 1.25rem;
    font-weight: 500;
}

/* свойства для кнопки "Закрыть" */
.close {

    color: var(--second-color-font-active);
    background: var(--btn-color);
    border-radius: .3rem;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 1em;
    height: 1em;
    top: 0.5em;
    right: 0.5em;
    padding: .22em;
    font-size: 2em;
    line-height: .55em;
    position: absolute;
    border: 1px solid var(--btn-color);
    /*border-radius: 5px;*/
    /*border: 1px solid var(--second-color);*/
    /*color: var(--btn-color);*/
    transition: 400ms ease all;


}

/* свойства для кнопки "Закрыть" при нахождении её в фокусе или наведении */
.close:focus,
.close:hover {
    color: #000;
    text-decoration: none;
    cursor: pointer;
    /* opacity: .75; */

    background: var(--btn-color);
    border: 1px solid var(--btn-color);
    border: 1px solid var(--second-color-font-active);
    transition: 400ms ease all;
}

/* свойства для блока, содержащего основное содержимое окна */


.modal-body {
    position: relative;
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    padding: 0 15px 15px 15px;
    overflow: auto;
    text-align: center;
}

.modal-dialog-acceptance .modal-body {
    text-align: left;
}


/* ** модальное окно формы **   */


@media (min-width: 576px) {
    .modal-dialog {
        max-width: 500px;
        margin: auto auto;
    }

    .modal-dialog-acceptance {
        max-width: calc(100% - 100px);
        max-width: 1000px;
        padding: 0 30px;
    }

    .modal-dialog-acceptance .close {
        right: calc(.5em + 30px);
    }
}


@media (min-width: 768px) {
    .modal-content {
        -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
        box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
    }
}


@media (max-width: 575.98px) {
    .modal-dialog-acceptance {
        font-size: .9em;
        /* padding: 0; */
    }
}
