.modal_bgr {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 4, .8);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden auto;
}

.modal_bgr.show {
    display: flex;
}

.modal_window {
    background: #fff;
    color: #111;
    z-index: 10001;
    width: 600px;
    max-width: 600px;
    margin: auto;
    padding: 30px;
}

.modal_header {
    text-transform: uppercase;
    padding-bottom: 20px;
    display: flex;
    align-items: center;
    position: relative;
    font-size: 18px;
}

.modal_header:before {
    content: "";
    position: absolute;
    width: 100%;
    height: .125rem;
    background: -webkit-linear-gradient(left, rgba(0, 0, 0, .2) 35%, transparent 0) repeat-x 0 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, .2) 35%, transparent 0) repeat-x 0 100%;
    background-size: .3125rem .125rem;
    bottom: 0;
    left: 0;
}

.modal_title {
    flex-grow: 1;
    text-transform: uppercase;
    font-weight: bold;
    text-align: center;
}

.modal_form {
    display: flex;
    flex-direction: column;
    padding: 20px 20px 0;
}

.modal_form > * {
    width: 100%;
    padding: 0 15px;
    display: flex;
    align-items: center;
}

.modal_form .form-group {
    flex-direction: column;
    align-items: flex-start;
    margin: 0 0 1.6875rem;
}

.modal_form .modal_form_text {
    margin: 0 15px 1.6875rem;
    width: calc(100% - 30px);
    font-style: italic;
    border-bottom: 2px dashed #eaeaea;
    padding: 15px;
}

.modal_form .modal_form_text .form-group {
    margin-bottom: 0;
    margin-top: 0;
}

.modal_form .form-group > * {
    width: 100%;
}

.modal_form .form-group p {
    margin: .5rem 0 0;
    color: red;
    font-size: 12px;
}

.modal_form .form_buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal_form [type=text], .modal_form [type=tel], .modal_form [type=email], .modal_form textarea, .modal_form select {
    width: 100%;
    outline: none;
    -webkit-appearance: none;
    color: #111;
    font-size: .9375rem;
    padding: .5rem .9375rem;
    margin: 0;
    border: 1px solid #cacaca;
}

.modal_form input[readonly] {
    background-color: #eaeaea;
}

.modal_form [type=file] {
    color: #111;
    -webkit-appearance: none;
    font-size: .9375rem;
    display: none;
}

.modal_form label[for=file] {
    position: relative;
    padding-left: 1.625rem;
    cursor: pointer;
}

.modal_form label[for=file]:before {
    font-family: "icomoon";
    content: '\e9cd';
    position: absolute;
    left: .375rem;;
}

.modal_form [type=text], .modal_form [type=tel], .modal_form [type=email], .modal_form select {
    height: 3.125rem;
}

.modal_form textarea {
    height: 100px;
}

.modal_form select {
    text-transform: uppercase;
    font-weight: 700;
}

.form_block_select {
    position: relative;
}

.form_block_select:after {
    position: absolute;
    font-family: 'icomoon';
    content: '\e909';
    right: 1.875rem;
    font-size: 2.125rem;
    align-self: flex-start;
}

.form_block_icon {
    margin-right: .375rem;
}

.form_block_file label {
    cursor: pointer;
}

.form_block_file input {
    display: none;
}

.modal_form [type=text]::placeholder, .modal_form [type=tel]::placeholder,
.modal_form [type=email]::placeholder, .modal_form textarea::placeholder {
    color: #8f8f8f;
}

.modal_form .cancel_btn {
    cursor: pointer;
    padding-left: 10px;
    color: #555;
    transition: color .3s;
    text-transform: uppercase;
    font-weight: 700;
}

.modal_form .cancel_btn:hover {
    color: #000;
}

.modal_header_icon {
    cursor: pointer;
}
