/* ----------------------------------------------  Reset form elements ---------------------------------------------- */

input, select, textarea {
  margin: 0; 
  padding: 0; 
  outline: none;
  font-family: inherit;	
  -moz-box-sizing: border-box; /* Firefox */
  -webkit-box-sizing: border-box; /* Safari */
  box-sizing: border-box;
}

/* ----------------------------------------------  Inputs, textareas and selects  ---------------------------------------------- */

#form_captcha input[type="text"] {
  margin-left: 10px;
  margin-right: 10px;
  padding-left: 10px;
  padding-right: 10px;
  width: 70px !important;
}

input[type="text"], textarea, select, div.styled, input[type="file"] {  
  width: 100%;
  /*width: 89.8%;*/ 
  /*border-radius: 2px;*/ 
  border: solid 1px #cccccc; 
  padding: 1em 2%;
  margin: 0 0 5px 0;
}

div.styled, 
select, 
input[type="submit"], 
input[type="button"], 
input[type="file"]:after {
  /*background: white url(../images/formelements-select.png) no-repeat center right;*/
  padding: 0.5em 0 0.5em 2%;
  /*  -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.2); 
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);*/
}	
/*
input[type="text"], 
textarea, 
input[type="file"] { 
  background-color: #f5f5f5;
  -webkit-box-shadow: inset 0 2px 3px rgba(0,0,0,0.2);
  box-shadow: inset 0 2px 3px rgba(0,0,0,0.2);
}*/
input[type="file"] {
  cursor: pointer;
}
.ie9 input[type="text"] { 
  line-height: normal; 
} /* Get the stuff to line up right */

textarea { 
  width: 100%; 
  height: 10em; 
}

/* ----------------------------------------------  Select menu  ---------------------------------------------- */

/* For IE and Firefox */

div.styled { 
  height: 50px !important;
  line-height:50px;
  overflow: hidden; 
  padding: 0; 
  margin: 0; 
  padding: 0;
  background-color:#eee;
}

.ie7 div.styled { 
  border: none;
}

div.styled select {	
  width: 100%; 
  background-color: transparent; 
  background-image: none;
  -webkit-appearance: none; 
  border: none; 
  box-shadow: none;
  padding: 0.4em 0 0.45em 2%;
}

.ie7 div.styled select {
  width: 100%; 
  background-color: #fff; 
  border: solid 1px #ccc; 
  padding: 0.3em 0.5em;
}	

.styledSelect {
  /*height: 100%;*/
}
.styledSelect ul {
  margin: 0;
  padding:0;
}
.styledSelect ul li {
  height: 50px;
  font-size: 14px;
  line-height: 50px;
  list-style-type: none;
  padding: 0 2%;
  cursor: pointer;
}
.styledSelect ul li.selected {
  background: #f8f8f8;
}
.styledSelect.open {
  background: #fff;
  width: 100%;
  position: absolute;
  top: 35px;
  left: 0;
  border: 1px solid #ddd;
  z-index: 10;
} 
.styledSelect.open ul li {
  color: #888888;
  font-size: 12px;
  height: 50px;
  line-height: 50px;
}
.styledSelect.open ul li:hover {
  background: #f3f3f3;
}

.styled .add-on {
  position: absolute;
  top: 0;
  right: -2px;
  z-index: 10;
  font-size: 18px;
}

/* ----------------------------------------------  File field  ----------------------------------------------  */

/* Webkit Only */

input[type="file"] { 
  position: relative; 
  -webkit-appearance: none;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;	
  width: 40%;	
  padding: 0;
}

input[type=file]::-webkit-file-upload-button {
  width: 0; 
  padding: 0; 
  margin: 0;
  -webkit-appearance: none; 
  border: none;
}	

input[type="file"]:after {
  content: 'Upload File';
  margin: 0 0 0 0.5em;
  display: inline-block; 
  left: 100%; 
  position: relative;
  background: white url(../images/formelements-select.png) no-repeat center left;
  padding: 0.3em 0.5em; 
  border: solid 1px #ccc !important;
  -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.2); 
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  border-radius: 4px;
}	

input[type="file"]:active:after {
  box-shadow: none;
}

.file_maxsize {
  font-size: 10px;
  display: block;
}


/* ----------------------------------------------  Checkboxes and Radio inputs  ----------------------------------------------  */	

input[type="radio"], 
input[type="checkbox"] { 
  position: absolute; 
  left: -999em; 
}
.form_radio_label,
.form_checkbox_label {
  cursor: pointer;
}
.form_field {
  position: relative;
}
.form_date_wrap .add-on {
  position: absolute;
  top: 0;
  right: 0;
}
.form_field .icon-calendar {
  /*  position: absolute;
    top: 0;
    right: 0;*/
  font-size: 20px;
  /*padding: 0.3em 0.8em;*/
  cursor: pointer;
}
label {
  display: inline-block; 
}
label:before {
  content: "";
  display: inline-block;
  height: 25px;
  left: -5px;
  position: relative;
  top: 0.4em;
  width: 25px;
}
.form_title label:before {
  width: auto;
  height: auto;
}

.form_title, 
.form_title label, 
.field_title {

}
.field_title {
  margin-bottom: 5px;
}
select, 
input[type="file"] {
  line-height: 16px;
}
input[type="file"] {
  width: 67% !important;
}

input[type="checkbox"] + label:before { 
  background-image: url(../images/formelements.png); 
  background-position: 0 -25px;
}
input[type="checkbox"]:checked + label:before {
  background-image: url(../images/formelements.png); 
  background-position: 0 0 ; 
}

input[type="radio"] + label:before { 
  background-image: url(../images/formelements.png); 
  background-position: -25px -25px;
}	 	
input[type="radio"]:checked + label:before { 
  background-image: url(../images/formelements.png); 
  background-position: -25px 0;
}

.checkbox_row:last-child, 
.radio_row:last-child {
  margin-bottom: 3%;
}

/* Remove the custom styling for IE 7-8 */

.ie8 label:before { 
  display: none; 
  content: none; 
}

.ie8 input[type="checkbox"],
.ie8 input[type="radio"],
.ie7 input[type="checkbox"],
.ie7 input[type="radio"] { 
  position: static; 
  left: 0; 
}

.ie8 input[type="checkbox"],
.ie8 input[type="radio"] { 
  position: relative; 
  top: 5px; 
  margin-right: 0.5em;
}	

input[type="text"]:focus, textarea:focus {
  border-color: #000;
}

/* ---------------------------------------------- Form Submit and Next buttons ---------------------------------------------- */	

input[type="submit"], input[type="button"] {
  color: #FFFFFF;
  background: #00374c;
  font-size: 18px;
  font-weight: 400;
  line-height: 18px;
  text-decoration: none;
  text-shadow: none;
  border: none;
  box-shadow: none;
  border-radius: 6px;
  padding: 15px 30px;
  margin: 0;
  white-space: normal;
  display: inline-block;
}

/* Gradient Generator by : http://www.colorzilla.com/gradient-editor/ */

input[type="submit"]:active, 
input[type="button"]:active {
  background: #00374c;
  color: #ffffff;
  opacity: 0.9;
}
input[type="submit"]:hover, 
input[type="button"]:hover {
  background: #00374c;
  color: #ffffff;
  opacity: 0.9;
}

/* IE7 needs you to change the background to transparent when using image background for submit buttons */	

/*----------------------------------------------  Media Queries ----------------------------------------------  */

@media screen and (max-width: 600px) { 
  input[type="submit"], 
  input[type="button"] {
    width: 100% !important;
  }
}

@media screen and (max-width: 400px) { 
  input[type="text"], textarea, select, div.styled { 
    width:100% 
  } 
}


.rowElem {
  margin-bottom: 10px;
}

/* ----------------------------------------------- Required --------------------------------------------------- */ 

.form_required {
  color: red;
}



/* ----- Form ----- */

.contact-form {
  margin-top: 20px;
  padding-bottom: 50px;
  text-align: left;
}

.contact-form h4 {
  margin-top: 25px;
  padding: 0 20px;
  text-shadow: 0 1px 0 rgba(255,255,255,.7);
}

.contact-form p {

}

.contact-form {
  padding: 10px 0;
}

.contact-form p {
  margin-top: 15px;
}

.contact-form form {
  margin-top: 25px;
}

@media (max-width: 979px) {
  .contact-form form {
    margin-top: 25px;
  }
}




.contact-form form textarea {
  height: 160px;
}

.contact-form form button {
  color: #FFFFFF;
  background: transparent;
  font-size: 16px;
  font-weight: 400;
  line-height: 16px;
  text-decoration: none;
  text-shadow: none;
  border: 1px solid #ffffff;
  border-radius: 30px;;
  padding: 15px 30px;
  margin: 0;
  white-space: normal;
  display: inline-block;
}

.contact-form form button:hover {
  background: #FFFFFF;
  color: #E1136C;  
  text-decoration: none;
}

.contact-form form button:active {
  -moz-box-shadow:
    0 5px 10px 0 rgba(0,0,0,.15) inset,
    0 -1px 25px 0 rgba(0,0,0,.05) inset;
  -webkit-box-shadow:
    0 5px 10px 0 rgba(0,0,0,.15) inset,
    0 -1px 25px 0 rgba(0,0,0,.05) inset;
  box-shadow:
    0 5px 10px 0 rgba(0,0,0,.15) inset,
    0 -1px 25px 0 rgba(0,0,0,.05) inset;
}

.contact-form form label {
  /*font-size: 14px;*/
}

.contact-form form input:-moz-placeholder, 
.contact-form form textarea:-moz-placeholder { 
  color: #ccc; 
}
.contact-form form input:-ms-input-placeholder, 
.contact-form form textarea:-ms-input-placeholder { 
  color: #ccc; 
}
.contact-form form input::-webkit-input-placeholder, 
.contact-form form textarea::-webkit-input-placeholder { 
  color: #ccc; 
}

/* ----- Google maps ----- */

.map {
  margin: 20px 20px 40px 20px;
  height: 300px;
  border: 5px solid #f8f8f8;
}

/* ----- Captcha ----- */

.captcha_wrap {
  margin-bottom: 10px;
}

.contact_msg {
  background-color: #FAFAFA;
  color: #000000;
  font-size: 16px;
  text-align: center;  
  position: absolute;
  z-index: 100;
  padding: 20px;
  border: 1px solid #888888;
  border-radius: 6px;
}
.contact_msg h1 {
  text-align: left;
  color: #777777;
  margin-bottom: 20px;
}
.contact_msg h2 {
  color: #f7941e;
  margin-top: 20px;
}
.contact_msg p {
  text-align: left;
  color: #777777;
  font-size: 12px;
}
.contact_msg:after /* triangle decoration */
{
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #888888;
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  margin-left: -10px;
}
.contact_msg.top:after
{
  border-top-color: transparent;
  border-bottom: 10px solid #888888;
  top: -20px;
  bottom: auto;
}
.contact_msg.left:after
{
  left: 10px;
  margin: 0;
}
.contact_msg.right:after
{
  right: 10px;
  left: auto;
  margin: 0;
}
