.black_bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .6);
    z-index: 99;
    display: flex;
    justify-content: center;
    /*align-content: space-between;*/
    align-items: center;
    /*flex-direction: column;*/
}

.request_form_block {
    position: relative;
    background-color: #fff;
    /*	background-image: url('pic/bg.png');
        background-size: auto;
        background-attachment: fixed;*/
    max-width: 580px;
    background-color: rgba(253, 253, 253, 1);
    -moz-box-shadow: 0px 4px 8px 0px rgba(34, 60, 80, 0.2);
    box-shadow: 0px 4px 8px 0px rgba(34, 60, 80, 0.2);
}

.request_form_block.form-photo {
    max-width: 930px;
}

.content_form .request_form_block {
    max-width: 100%;
    background-color: rgba(228, 233, 235, 1);
}

.request_form_block form {
    /*	background-image: url('pic/bg_right.svg');
        background-size: 265px 170px;
        background-repeat: no-repeat;
        background-position: right 4% bottom;*/
    padding: 1rem;
}

.request_form_block form ul:nth-child(2),
.request_form_block form ul:nth-child(6),
.request_form_block form ul:nth-child(7) {
    display: none;
}

.contain {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

.form-container {
    max-width: 560px;
}

.reqest-photo {
    width: 330px;
    height: 300px;
    margin: 5px 5px 0 20px;
}

.form_massage {
    padding: 3rem 1.5rem 4rem 1.5rem;
    text-align: center;
}

.upload_title {
    text-align: center;
    background-color: #3596cd;
    background-color: #f7941d;
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
    margin: 0 auto 0 auto;
    padding: 1rem 0 1rem 0;
    font-size: 1.15rem;
}

.upload_input {
    display: table;
    list-style: none;
    padding: 0;
    margin: 0 0 5px 0;
}

.upload_input li {
    display: table-cell;
    vertical-align: middle;
    padding: 0 0px 0 0;
}

.upload_input li:nth-child(1) {
    width: 30%;
}

.upload_input li small {
    display: inline-block;
    text-align: left;
    font-size: .9rem;
    line-height: 1;
    width: 380px;
}

.upload_input li sup {
    color: red;
}

.content_block .content .upload_input li .but {
    margin: 0;
}

.upload_input input[type="tel"],
.upload_input input[type="email"],
.upload_input input[type="text"],
.upload_input input[type="file"],
.upload_input textarea {
    width: 380px;
    border: solid 1px #aaa;
    background-color: #fff;
    font-size: .9rem;
    font-family: pragmatica_lightcregular, Tahoma, Arial, Helvetica, Roboto, Calibri, sans-serif;
    padding: .15rem .25rem;
}

.upload_input input[type="tel"],
.upload_input input[type="email"],
.upload_input input[type="text"] {
    height: 1.5rem;
}

.upload_input textarea {
    height: 5rem;
}

.upload_input button {
    font-size: 1rem;
}

.upload_input label {
    font-size: 90%;
}

.upload_but {
    text-align: right;
    padding: 10px 3px 0 0;
}

.close {
    width: 55px;
    height: 46px;
    position: absolute;
    right: 0;
    top: 0;
    cursor: pointer;
    z-index: 99;
}

.close:after {
    position: absolute;
    top: 22px;
    right: 20px;
    display: block;
    height: 4px;
    width: 20px;
    border-top: 2px solid #255598;
    border-bottom: 2px solid #255598;
    content: ''
}

.close:before {
    position: absolute;
    top: 16px;
    right: 20px;
    display: block;
    height: 2px;
    width: 20px;
    background: #255598;
    content: ''
}

.close:after {
    top: 23px;
    border: 0;
    height: 2px;
    width: 19px;
    background: #fff;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg)
}

.close:before {
    top: 23px;
    background: #fff;
    width: 19px;
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg)
}


form .but {
    text-transform: uppercase;
    text-align: center;
    display: inline-block;
    text-decoration: none;
    color: #fff;
    padding: .6rem 1rem;
    transition: all .25s ease;
    cursor: pointer;
    background-color: #f7941d;
    border: solid 3px #fff;
    border-radius: 0.5rem;
    padding: .7rem 2.5rem;
}

form .but:hover,
form .but:active {
    background-color: #d46fba;
}


@media all and (max-width: 930px) {
    .request_form_block.form-photo {
        max-width: 765px;
    }

    .reqest-photo {
        width: 165px;
        height: 150px;
    }
}


@media all and (max-width: 780px) {
    .request_form_block.form-photo {
        max-width: 700px;
    }

    .reqest-photo {
        width: 100px;
        height: 91px;
        margin-left: 15px;
        margin-right: 0px;
    }
}

@media all and (max-width: 700px) {
    .request_form_block.form-photo {
        max-width: 580px;
    }

    .reqest-photo {
        display: none;
    }

}


@media all and (max-width: 600px) {
    .upload_input {
        width: 100%;
    }

    .upload_input li:nth-child(3) {
        width: 2px;
        padding: 0;
    }

    .upload_input input[type="tel"],
    .upload_input input[type="email"],
    .upload_input input[type="text"],
    .upload_input input[type="file"],
    .upload_input textarea {
        width: 100%;
    }

    .upload_block button,
    .upload_block .but {
        width: 100%;
    }

    .upload_notes {
        display: none;
    }

    .upload_notes p {
        display: none;
    }

    .content_form form {
        margin-left: 0;
    }

}


@media all and (max-width: 599px) {
    .upload_input {
        display: block;
    }

    .upload_input li {
        display: block;
        padding: 0;
    }

    .upload_input li:nth-child(1) {
        width: auto;
        padding-bottom: 5px;
    }

    .upload_but {
        text-align: center;
        padding: 15px 0 0 0;
    }

    .upload_input li small {
        width: auto;
    }
}
