/****Form****/

#form {
	padding-top: 5px;

}

#form fieldset {
    position: relative;
}

#form input {
 	padding: 11px 17px 13px;
  	background: #f5f5f5;
  	border: none;
	width: 100%;
	height: 46px;
	float:left;
	font: 13px/22px Arial, Helvetica, sans-serif;
	color: #a19f9f;
	box-sizing: border-box;
	-moz-box-sizing: border-box; /*Firefox 1-3*/
	-webkit-box-sizing: border-box; /* Safari */
}

#form textarea {
 	padding: 11px 17px 13px;
	width: 100%;
	background: #f5f5f5;
  	border: none;
	height: 158px;
	position: relative;
	resize:none;
	overflow: hidden;
	box-sizing: border-box;
	-moz-box-sizing: border-box; /*Firefox 1-3*/
	-webkit-box-sizing: border-box; /* Safari */
	float:left;
	font: 13px/22px Arial, Helvetica, sans-serif;
	color: #a19f9f;
	margin: 0;
;
	
}
#form label {
	position:relative;
	display: block;
	min-height: 56px;
	float: left;
	width: 49%;
	clear: left;
}

#form .grid_6>label {
	width: 100%;
}




#form .error, #form .empty {
	color: #E02A05;
	display: none;
	font-size: 11px;
	line-height:14px;
	width:auto;
	position: absolute;
	z-index: 999;
	top: 16px;
	right: 5px;
	float:left;
}


#form .error-empty {
	display:none;
	float:left;
}

.btns {
	position:relative;
	padding-top: 13px;
	text-align: right;
}





.content .btns a.btn {
	margin: 0 0px 0 0 !important;
	cursor: pointer;
	text-align: center;
}

.content .none {
	width: 20px;
	display: inline-block;
}

.phone {
	position: relative;
}



#form .message {
	position: absolute;
	width: 49%;
    right: 0;
    top: 0;
}



.message br {
	height: 0;
	line-height: 0;
}

#form .success {
	display: none;
	position: absolute;
  	background: #f5f5f5;

	width: 380px;
	text-align: center;
	padding: 20px 10px;
	z-index: 999;
	box-sizing: border-box;
	-moz-box-sizing: border-box; /*Firefox 1-3*/
	-webkit-box-sizing: border-box; /* Safari */
    height: 160px;
    padding-top: 59px;
    font-size: 18px;
}


@media only screen and (max-width: 767px) {
    #form .success {
        height: 325px;
        padding-top: 140px;
        font-size: 18px;
    }
}


.success_wrapper {
	position: relative;	
}

@media only screen and (max-width: 995px) {

#form {
	padding-top: 0;	
    margin-left: 20px;
}


#form label {
	float: none !important;	
}

#form input {
	margin-bottom: 10px;
}

#form label.message {
}

#form .success {
	width: 100%;
}

.btns {
	padding-right: 0;
}


.map figure {
	float: left !important;
	margin-right: 0px !important;
}

}

@media only screen and (max-width: 767px) {
  .map {
	margin-bottom: 25px;
}

.map figure {
	width: 100% !important;
	float: none !important;
	display: block !important;
	margin-right: 0px !important;
}
  .btns {
		padding-bottom: 0;  
  }

   #form {
 	padding-right: 0;
       margin-top: 30px;
 }
    #form label {
        width: 100%;
    }
    
    #form .message {
        position: static;
        width: 100%;
    }
}
@media only screen and (max-width: 479px) {

  #form textarea {
		height: 200px !important;  
  }
}