﻿
@import url(https://fonts.googleapis.com/css?family=Roboto+Condensed:400,700&subset=latin,cyrillic,cyrillic-ext);
@import url(https://fonts.googleapis.com/css?family=Roboto+Condensed:400,700&subset=latin,cyrillic);

/* Обнуление */ 
*,
*::before,
*::after {
    padding: 0;
    margin: 0;
    border: 0;
    box-sizing: border-box;
}
a {
    text-decoration: none;
}
ul,
ol,
li {
    padding-top: 10px;
    line-height: 1.3;
    font-size: 16px;
}
img {
    vertical-align: top;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: inherit;
    font-size: inherit;
}
html,
body {
   height: 100%;
   line-height: 1;
   font-size: 14px;
   background-color: #fff;
   /*font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; */
   font-family: Roboto Condensed, sans-serif;
}
.wrapper {
    min-height: 100%;
    overflow: hidden;
}
.container {
    padding-top: 0rem;
    width: 800px;
    margin: 0 auto;
}

.btn {
    color: #42b983;
    position: relative;
    border-radius: 99px;
    border: 1px solid #42b983;
    text-decoration: none;
    text-transform: uppercase;
    padding: 0.5rem 1.5rem;
    font-weight: 700;
    outline: none;
    background: #fff;
    transition: all 0.22s;
    cursor: pointer;
    margin-right: 1rem;
}
.btn.primary {
    background: #42b983;
    color: #fff;
}
.btn:active {
    box-shadow: inset 1px 1px 1px rgba(0, 0, 0, 0.3);
}
.btn:hover {
    cursor: pointer;
    opacity: 0.8;
}
input[type=file]._error {
    box-shadow: 0 0 15px red;
}
.preview {
    display: flex; 
    flex-wrap: wrap;
    padding: .5rem;

}
.preview-image {
    position: relative;
    margin-bottom: .5rem;
    margin-right: .5rem;
    overflow: hidden;
}
.preview-image.removing {
    transform: scale(0);
    transition: transform .3s;
}
.preview-image img {
    width: 180px;
    height: auto;
}
.preview-image:hover .preview-remove {
    opacity: 1;
}
.preview-image:hover .preview-info {
    bottom: 4px;
}
.preview-remove {
    opacity: 0;
    width: 20px;
    height: 20px;
    position: absolute;
    right: 0;
    top: 0;
    font-weight: bold;
    background: rgba(255, 255, 255, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity .22s;
}
.preview-info {
    position: absolute;
    right: 0;
    bottom: -30px;
    left: 0;
    font-weight: bold;
    height: 24px;
    font-size: .8rem;
    background: rgba(255, 255, 255, .5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    transition: bottom .22s;
}

/* ------------------- */

.form {
    max-width: 550px;
    margin: 0px auto;
    color: #555;
    padding: 30px 10px;
}
.form * {
    outline: none;
}
.form__body {
    position: relative;
}
.form__body::after {
   content: ""; 
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: rgba(51,51,51,0.8) url('../img/loading.gif') center / 50px no-repeat;
   opacity: 0;
   visibility: hidden;
   transition: all 0.5s ease 0s;
}
.form__body._sending::after {
   opacity: 1;
   visibility: visible;
} 
.form__logo {
	display: block;
	margin-left: auto;
	margin-right: auto;
    margin-top: 10px; 
}
.form__title {
    font-size: 30px;
    font-weight: 700;
    margin: 10px 0px 40px 0px;
    text-align: center;
    color: #1476c6;
    padding: 0 15px;
}
.span_step {
    margin-top: 5px;
}
.form__titlebox {
	padding-bottom: 25px;
	font-size: 19px !important;
	color: #1476c6;
	font-weight: bold;
	text-transform: uppercase;
}
.form__titlebox img {
    vertical-align: middle; 
  }
.formTextRed{
	color: red !important;
}
.form__item {
    margin: 0px 0px 20px 0px;
}
.form__label {
    font-size: 16px;
    display: block;
    margin: 0px 0px 6px 0px;
}
.form__label_checkbox {
    font-size: 16px;
    margin: 0 0 0 3px;
}
.form__input {
    height: 40px;
    padding: 0px 15px;
    border: 1px solid #AEADAD;
    border-radius: 5px;
    width: 100%;
    font-size: 19px;
    transition: all 0.5s ease 0s;
    background-color: #eee;
}
.form__input:focus {
    box-shadow: 0 0 10px #1476c6;;
}
.form__input._error {
    box-shadow: 0 0 15px red;
}
textarea.form__input {
    min-height: 120px;
    resize: vertical;
}
.options {
    padding: 10px 0px 0px 0px;
}
.options__item {
    margin: 0px 0px 10px 0px;
}
.options__input {
    display: none;
}
.options__input:checked + .options__label::after {
    transform: scale(1);
}
.options__label {
    display: inline-flex;
    font-size: 16px;
    line-height: 140%;
    align-items: center;
    position: relative;
    cursor: pointer;
}
.options__label::before {
    content: "";
    align-self: flex-start;
    flex: 0 0 24px;
    height: 24px;
    background-color: #1476c6;
    border-radius: 50%;
    margin: 0px 10px 0px 0px;
}
.options__label::after {
    transition: transform 0.3s ease 0s;
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 16px;
    height: 16px;
    background-color: #7a956b;
    border-radius: 50%;
    transform: scale(0);
}
.select {
    height: 50px;
    width: 100%;
    border-radius: 5px;
    font-size: 18px;
    padding: 0px 20px;
}
.file__item {
    position: relative;
}
.file__input {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    opacity: 0;
    font-size: 0;
    cursor: pointer;
}
.file__button {
    display: inline-flex;
    min-height: 40px;
    border-radius: 30px;
    align-items: center;
    background-color: #77608d;
    padding: 0px 20px;
}
.file__preview {
    display: inline-block;
    max-width: 100px;
    padding: 10px 0px 0px 0px;
}
.file__preview img {
    max-width: 100%;
}
.checkbox._error .checkbox__label::before {
    box-shadow: 0 0 15px red;
}
.checkbox__input {
    display: none;
    margin-top: 10px;
}
.checkbox__input:checked + .checkbox__label::after {
    transform: scale(1);
}
.checkbox__label {
    font-size: 16px;
    line-height: 140%;
    display: inline-flex;
    align-items: center;
    position: relative;
    cursor: pointer;
}
.checkbox__label::before {
    content: "";
    align-self: flex-start;
    flex: 0 0 24px;
    height: 24px;
    background-color: #e0e3e6;;
    border-radius: 4px;
    margin: 0px 10px 0px 0px;
    border: 1px solid #7e7d7d;
}
.checkbox__label::after {
    transition: transform 0.5s ease 0s;
    content: "";
    width: 16px;
    height: 16px;
    position: absolute;
    top: 4px;
    left: 4px;
    background-color: #1476c6;
    border-radius: 4px;
    transform: scale(0);
}
.form__button {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60px;
    background-color: #1476c6;
    color: #fff;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 20px;
    box-shadow: 0 5px 5px #656863;
    transition: background-color 0.5s ease 0s;
    position: relative;
    top: 0;
}
.form__button:hover {
    background-color: #045597;
}
.form__button:active {
    top: 3px;
    box-shadow: 0 2px 0 #161b13;
}

/* ------------------- */
.header_image {
    width: 200px;
}
.alert-info {
    background-color: #cef1fc;
    border-color: #9ee3f9;
    color: #12718f;
    padding: 8px 35px 8px 14px;
    margin-bottom: 20px;
    text-shadow: 0 1px 0 rgba(255,255,255,0.5);
    border-radius: 2px;
    line-height: 20px;
}    
.form-block {
    margin-bottom: 25px;
    padding-bottom: 20px;
}
.form-block h3 {
    font-size: 18px;
    color: #333;
    text-transform: uppercase;
    margin: 12px 0 12px;
    font-weight: 700;
}
.medium {
    width: 256px;
}
.short {
    width: 166px;
}
.block {
    display: block;
    margin-bottom: 6px;
}
.text_1 {
    margin: 5px 5px 5px 10px;
}
.input_adres {
    border: 1px solid #AEADAD;
    color: #000d50;
    font-weight: 200;
    margin-bottom: 7px;
    width: 300px;
    height: 33px;
    margin-top: 4px;
    line-height: 30px;
    cursor: pointer;
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 2px;
}
.input_adres._error {
    box-shadow: 0 0 15px red;
}
.input_adres_dom {
    border: 1px solid #AEADAD;
    color: #000d50;
    font-weight: 200;
    margin-bottom: 7px;
    width: 164px;
    height: 33px;
    margin-top: 4px;
    line-height: 30px;
    cursor: pointer;
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 2px;
}
#adres2div, #adres3div, #adres4div {
    display: none;
}
.text_1, .text_2, .text_3, .text_4 {visibility: hidden; display: none; margin-top: 10px; margin-bottom: 10px; transition: .5s;}
#equipment_checkbox_1:checked ~ .text_1 {visibility: visible; display: block;}
#equipment_checkbox_2:checked ~ .text_2 {visibility: visible; display: block;}
#equipment_checkbox_3:checked ~ .text_3 {visibility: visible; display: block;}
#equipment_checkbox_4:checked ~ .text_4 {visibility: visible; display: block;}

/* --- popup ---*/
.popup {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    overflow-x: hidden;
    transition: all 0.8s ease 0s;
}
.popup.open {
    opacity: 1;
    visibility: visible;
}
.popup.open .popup__content {
    transform: perspective(600px) translate(0px, 0%) rotateX(0deg);
    opacity: 1;
}
.popup__area {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}
.popup__body {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 10px;
}
.popup__content {
    background-color: #fff;
    color: #000;
    max-width: 800px;
    padding: 30px;
    border-radius: 10px;
    position: relative;
    transition: all 0.8s ease 0s;
    opacity: 0;
    transform: perspective(600px) translate(0px, -100%) rotateX(45deg);
}
.popup__close {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 20px;
    color: #000;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif !important;
}
.popup__title {
    font-size: 34px;
    color: #4faa05;
    margin: 0px 0px 0px 0px;
    padding-left: 30px;
}
.popup__title_img {
    width: 70px;
    margin:-14px auto 0px auto;
}
.popup__text {
    font-size: 20px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .form__title {
         font-size: 25px;
     }
     .form__item {
         width: 100%;
     }
     .form__item_adaptive {
         width: 335px;
     }
 }