/****Form****/

#form {
	padding-top: 14px;
	margin: 0 0 40px;
	position: relative;
	overflow: hidden;
}

#form input {
	width: 100%;
	height: 41px;
	float:left;
	background: none;
	color: #777777;
    font: 500 14px/24px 'Roboto', sans-serif;
	border: 1px solid #dadada;
    padding: 7px 11px;

    box-sizing: border-box;
	-webkit-appearance: none;
	-moz-box-sizing: border-box; /*Firefox 1-3*/
	-webkit-box-sizing: border-box; /* Safari */
}

#form textarea {
	width: 100%;
	height: 258px;
	background: none;
	position: relative;
	resize:none;
	overflow: hidden;
	float:left;
	color: #777777;
	margin: 0;
    font: 500 14px/24px 'Roboto', sans-serif;
    padding: 7px 11px;
    border: 1px solid #dadada;

    box-sizing: border-box;
	-webkit-appearance: none;
	-moz-box-sizing: border-box; /*Firefox 1-3*/
	-webkit-box-sizing: border-box; /* Safari */
}

#form ._placeholder {
	color: #777777;
    font: normal 500 13px/24px 'Roboto', sans-serif;
	border: 1px solid #dadada;
    padding: 6px 13px;
	height: 41px !important;
	width: 100% !important;
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	left: 0;
	cursor: text !important;
	display: block;
	
	box-sizing: border-box;
	-moz-box-sizing: border-box; /*Firefox 1-3*/
	-webkit-box-sizing: border-box; /* Safari */
	transition: 0.5s ease;
	-o-transition: 0.5s ease;
	-webkit-transition: 0.5s ease;
}

#form ._placeholder.hidden {
	display: none;
}

#form ._placeholder.focused {
	opacity: 0.3;
}

#form .message ._placeholder {
	height: 100% !important;
}

#form label {
	position:relative;
	display: block;
	min-height: 40px;
	float: left;
	width: 232px;
	margin: 0 0 19px 0!important;
}

#form label.email,
#form label.phone {margin-left: 37px!important;}

#form label.message {
	width: 100%;
	margin-left: 0;
	margin-bottom: 6px!important;
}

#form .error-message, #form .empty-message {
	color: #154189;
	font-size: 13px;
    line-height: 40px;
	width:auto;
	position: absolute;
	z-index: 999;
	top: 0;
	opacity: 0;
	right: 14px;
	float:left;

	transition: 0.5s ease;
	-o-transition: 0.5s ease;
	-webkit-transition: 0.5s ease;
}

#form .invalid .error-message, #form .empty .empty-message {
	opacity: 1;
}

.btns p {
	display: inline-block;
	padding-top: 14px;
	margin-left: 26px;
	font-weight: 500;
}

.btns .link {width: 100px!important;}

.phone {position: relative;}

.message br {
	height: 0;
	line-height: 0;
}

#form .success-message {
	display: none;
	opacity: 0;
	position: absolute;
	border: 1px solid #dadada;
	background: #ffffff;
	color: #777777;
	width: 100%;
	height: 41px;
	line-height: 41px;
	text-align: center;
	z-index: 999;
	font-family: 'Roboto', sans-serif;
	font-weight: normal;

	box-sizing: border-box;
	-moz-box-sizing: border-box; /*Firefox 1-3*/
	-webkit-box-sizing: border-box; /* Safari */
	transition: 0.5s ease;
	-o-transition: 0.5s ease;
	-webkit-transition: 0.5s ease;
}

#form.success .success-message {
	display: block;
	opacity: 1;
}

.success_wrapper {position: relative;}

.map {
	border: 1px solid #dadada;
	margin: 13px 0 30px;
	position: relative;
}

.map_c {
	width: 100%;
	height: 391px;
}

.address { 
	position: relative;
	overflow: hidden; 
	margin: 0 0 20px;
	font-weight: 500;
	padding: 7px 37px 0 0;
	font-family: 'Roboto';
}

.address span { float: left; }
.address p { 
	color: #154189; 
	font-weight: 700;
	font-size: 17px;
	line-height: 24px;
	margin-bottom: 7px;
}

dl dd {  
	text-align: right;
	width: 205px; 
	color: #777777;
}

.address a { 
	display: inline-block; 
	color: #154189; 
	text-decoration: none;
	margin-bottom: 2px;
	margin-left: 70px;
}

.address a:hover { 
	text-decoration: underline;
	color: #777777; 
}

@media only screen and (max-width: 1199px) {

	#form label {width: 200px;}

	#form label.email, #form label.phone {margin-left: 10px!important;}

}

@media only screen and (max-width: 995px) {

	#form label {width: 100%;}

	#form label.email, #form label.phone {margin-left: 0px!important;}

	#form ._placeholder { border: none; }

}

@media only screen and (max-width: 767px) {

	.map figure {
		width: 100% !important;
		display: block !important;
		margin-right: 0px !important;
	}

	.map_c {height: 300px;}
 
    #form textarea { height: 150px !important; }

  
}

@media only screen and (max-width: 479px) {

    #form textarea { height: 150px !important; }

    #form .success-message {height: 93px; line-height: 92px;}

    .map_c {height: 260px;}

    #form label {margin-bottom: 10px!important;}
}