/* Форимируем слой затемнения фона */
.overlay {
	position:fixed;
    bottom:0;
    left:0;
	right:0;
    top:0;
	background-color:rgba(0,0,0,0.5);
    opacity:0;
    
	cursor:default;
    visibility:hidden;
	
	-webkit-transition:opacity .5s;
	-moz-transition:opacity .5s;
	-o-transition:opacity .5s;
	transition:opacity .5s;
    z-index:50;
}
.overlay:target {
    visibility:visible;
    opacity:1;
}

/* Popup 1 */
.popup{ 
	position:fixed;
    visibility:hidden;
	
	width:344px;
	background:rgba(255,255,255,0.9);
	box-shadow:0px 3px 15px rgba(0,0,0,0.35);
	
	-webkit-transition:margin ease 1s;
    -moz-transition:margin ease 1s;
    -o-transition:margin ease 1s;
    transition:margin ease 1s;
	
	z-index:55;
}
.popup-title{
	height:104px;
}
.popup h3{
	padding:27px 0px 3px;
	text-transform:uppercase;
	font:400 2.4rem/1 'Open Sans';
	color:#2c435a;
}
.popup p{
	font-size:1.6rem;
	line-height:2.4rem;
}
.popup form input.text{
	margin:0 10px 12px;
	padding-left:11px;
	width:271px;
	height:34px;
	border:1px solid #a4bce8;
	
	font:1.4rem 'Open Sans';
}
.popup form input.date{
	padding-left:11px;
	width:235px !important;
	height:34px;
	border:1px solid #a4bce8;
	
	font:1.4rem 'Open Sans';
}
.popup form textarea{
	box-sizing:border-box;
	margin:12px 0;
	padding:9px 9px;
	width:284px;
	height:94px;
	border:1px solid #a4bce8;
	
	font:1.4rem 'Open Sans';
	resize:none;
}
.popup input[type="file"]{
	position:absolute;
	opacity:0;
}
.popup .label-for-file{
	position:relative;
	display:inline-block !important;
	margin-left:29px;
	border-bottom:1px dashed #406391;
	font-size:1.6rem;
	color:#406391;
	cursor:pointer;
}
#filePopupLabel{
	display:inline-block;
	vertical-align:-4px;
	margin-left:8px;
	max-width:106px;
	overflow:hidden;
	text-overflow:ellipsis;
	font:1.4rem 'Open Sans';
}
.popup .label-for-file:hover{
	border-bottom-style:solid;
}
.popup .label-for-file:before{
	content:'';
	position:absolute;
	top:1px;
	left:-30px;
	
	width:20px;
	height:18px;
	background:url(../assets/images/sprite-icons.png)-2px -24px no-repeat;
}
.popup form button.button{
	margin:19px 0 24px;
	width:240px;
	height:40px;
}
.popup-sum-container{
	display:inline-block;
	margin:0 10px 12px;
	width:284px;
	text-align:right;
}
.popup .sumLabel{
	display:inline-block;
	font-size:1.4rem;
}
.popup .sumInput{
	margin-left:10px;
	padding-left:11px;
	width:90px;
	height:34px;
	border:1px solid #a4bce8;
	
	font:1.4rem 'Open Sans';
}
.popup-thank-you .popup-title{
	height:auto;
}
.popup-thank-you .popup-title p{
	padding:18px;
}
.clear-request-container{
	padding-bottom:24px;
}
.clear-request{
	margin:12px;
	width:90px;
	height:36px;
	line-height:36px;
}


/* Устанавливаем позицию появления окна */ 
.overlay:target+.popup{
    top:10%;
	left:50%;
	margin-left:-172px;
    opacity:1;
    visibility:visible;
}
/* Оформляем и позицонируем кнопку закрытия */
.close-btn{
	display:block;
	position:absolute;
	top:6px;
	right:8px;
		
	padding:0;
	width:17px;
	height:17px;
	background:url('../assets/images/sprite-icons.png')-24px -24px no-repeat;
	
	-webkit-transition:all ease .5s;
	-moz-transition:all ease .5s;
	-o-transition:all ease .5s;
	transition:all ease .5s;
}
.close-btn:hover{
	-webkit-transform:rotate(90deg);
	-moz-transform:rotate(90deg);
	-ms-transform:rotate(90deg);
	-o-transform:rotate(90deg);
	transform:rotate(90deg);
}