/****Form****/

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

#form input {
	width: 100%;
	height: 40px;
	float:left;
	background: #626ab9;
	color: #ffffff;
    font: normal 100 14px/24px 'Roboto', sans-serif;
	border: 1px solid #9ca1d4;
    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: 160px;
	background: #626ab9;
	position: relative;
	resize:none;
	overflow: hidden;
	float:left;
	color: #ffffff;
	margin: 0;
    font: normal 100 14px/24px 'Roboto', sans-serif;
    padding: 7px 11px;
    border: 1px solid #9ca1d4;

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

#form ._placeholder {
	color: #ffffff;
    font: normal 100 14px/24px 'Roboto', sans-serif;
	border: 1px solid #9ca1d4;
    padding: 7px 11px;
	height: 40px !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;
	clear: left;
	width: 100%;
	margin: 0 0 20px 0!important;
}

#form label.message {
	width: 100%;
	margin-left: 0;
}

#form .error-message, #form .empty-message {
	color: #F1743B;
	font-size: 14px;
    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;
}

.btn {
	float: right;
	margin-top: 10px;
	width: 163px;
	display: inline-block;
	height: 52px;
	background: #f1173b;
	color: #fff;
	font: 700 17px/52px 'Roboto';
	text-align: center;
	text-transform: uppercase;
}

.btn:hover {
	background: #001320;
	color: #fff;
}

.phone {
	position: relative;
}

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

#form .success-message {
	display: none;
	opacity: 0;
	position: absolute;
	border: 1px solid #9ca1d4;
	background: #626ab9;
	color: #ffffff;
	width: 100%;
	height: 100px;
	line-height: 102px;
	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_c {
	position: relative;
	width: 100%;
	height: 376px;
	margin: 18px 0 24px;
}

.address { 
	position: relative;
	overflow: hidden; 
	margin: 17px 0 9px;
	font-style: normal;
	float: left;
	padding-right: 37px;
	font-family: 'Roboto';
}

address span { float: left; }
address p { color: #182934; font-weight: 400; }
dl dd {  
	text-align: right;
	width: 181px; 
	color: #7583f3;
}
address a { 
	display: inline-block; 
	color: #f1173b; 
	text-decoration: none;
	margin-bottom: 2px;
}

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

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

	#form label.email {
		width: 100%;
		margin: 0;
	}
	.map_c {
		margin-bottom: 20px;
	}

	#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; }
    #form { padding-right: 0; margin-bottom: 27px; }

    .btn {margin-top: 2px;}
  
}

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

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

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

    .map_c {height: 260px;}

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