/* windows */

.window {
	width: 365px;
    padding-bottom: 42px;
	background: white;
	position: relative;
    background: url(../img/zayavka-bg.png) center 0 white;
    background-repeat: no-repeat;
}

.window .close_button {
	width: 20px;
	height: 20px;
	cursor: pointer;
	opacity: 0.5;
	position: absolute;
	top: 15px;
	right: 15px;
}

.window .close_button:hover {
	opacity: 0.8;
}

.window .close_button:before, 
.window .close_button:after {
	display: block;
	content: "";
	width: 20px;
	height: 2px;
	background: #000;
	position: absolute;
	top: 50%;
	margin-top: -1px;
	left: 50%;
	margin-left: -10px;
}

.window .close_button:before {
	-webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
	-ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.window .close_button:after {
	-webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}

.window p {
	font: 400 30px Cuprum, sans-serif;
	line-height: 26px;
	color: #000;
	text-align: center;
    padding-top: 40px;
    margin-bottom: 20px;
}

#spasibo {
    font: 300 21px Roboto;
    line-height: 23px;
    height: 100px;
}

.operator {
    display: block;
    float: left;
    width: 185px;
    margin-left: 61px;
    margin-top: 21px;
}




.window input {
	float: none;
	margin: 0 auto 10px auto;
}
/* windows */
.demo1 {
    max-width: 400px;
    padding: 25px;
    margin: 45px auto;
    background-color: #F5F5F5;
    border: 1px solid #E3E3E3;
    border-radius: 4px;
    text-align: center;
}
/* Стили модального окна */
.modal-header h2 {
    color: #555;  
    font-size: 20px;
    font-weight: normal;
    line-height: 1;    
    margin: 0;
}
/* кнопка закрытия окна */
.modal .btn-close {
    color: #aaa;
    cursor: pointer;
    font-size: 30px;
    text-decoration: none;
    position: absolute;
    right: 5px;
    top: 0;
}
.modal .btn-close:hover {
    color: red;
}
input {
	outline: none;
}
input.error {
	border-color: #cc0000;
}
button {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	padding: 0 0 5px 0;
	border: none;
	outline: none;
	cursor: pointer;
}
#order_window .input-main {
    margin: 0 auto;
    display: block;
    border-style: none;
    border-radius: 4px;
    background: url(../img/input-name.png) 15px 15px no-repeat, #fff;
    font: 500 19px Cuprum;
    color: rgb(150,150,150);
    padding: 15px 0 19px 65px;
    box-sizing: border-box;
    width: 285px;
    border: 1px solid rgb(130,130,130);
    margin-bottom: 10px;
}
#order_window .phone {
    background: url(../img/input-phone.png) 15px 15px no-repeat, #fff;
    position: relative;
    left: 0;
}
.modal-button {
    margin: 0 auto;
    display: block;
    width: 285px;
    height: 56px;
    border: none;
    color: rgb(65,55,15);
    font: 300 22px Cuprum;
    text-shadow: 0 1px 0 rgba(255,255,255,0.5);
    border-radius: 4px;
    background: url(../img/button-bg-offer.png) repeat-x;
    cursor: pointer;
}
.modal-button:hover {
    background-position: 0 -56px;
}
.modal-zakazat {
    background: url(../img/zakazat-big-bg.png);
    width: 300px;
    height: 56px;
    position: absolute;
    top: 230px;
}
@media (max-width: 400px) {
   .window {
        width: 301px;
        padding-bottom: 32px;
    }
    #order_window .input-main, .modal-button {
        width: 235px;
    }
    .window p {
        font-size: 25px;
        line-height: 23px;
        padding-top: 30px;
        margin-bottom: 14px;
    }
}
@media (max-width: 334px) {
   .window {
        width: 260px;
        padding-bottom: 28px;
    }
    #order_window .input-main, .modal-button {
        width: 215px;
    }
    .window p {
        font-size: 24px;
        line-height: 21px;
        padding-top: 26px;
        margin-bottom: 14px;
    } 
}