/*
 * Forms 
 * Styling and defaults for all forms used on the website
 */

/*standard styling for common areas*/
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
.vfbp-form .vfb-form-control,
textarea {
	border: 1px solid #ccc;
	-moz-border-radius: 0px;
	-webkit-border-radius: 0px;
	border-radius: 0px;
	padding: 8px 16px;
	-webkit-transition: all 300ms ease;
	-moz-transition: all 300ms ease;
	-o-transition: all 300ms ease;
	transition: all 300ms ease;
	font-size: 100%;
	height: 38px;
	line-height: inherit;
	color: inherit;
	box-shadow: none;
}
/*textareas*/
textarea,
.vfbp-form textarea.vfb-form-control{
	height: auto;
}

/*labels*/
label,
.vfbp-form label{
	font-size: 100%;
	font-weight: 400;
}

/*focusing*/
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="upload"]:focus,
textarea:focus,
.vfbp-form .vfb-form-control:focus {
	color: #111;
	outline: none;
	border-color: #155fa4;
	-webkit-box-shadow: 0px 1px 8px rgba(21, 95, 164, 0.15);
	-moz-box-shadow: 0px 1px 8px rgba(21, 95, 164, 0.15);
	box-shadow: 0px 1px 8px rgba(21, 95, 164, 0.15);
}

/*errors*/
.vfbp-form .vfb-help-block{
	font-size: 100%;
}
.vfbp-form .vfb-has-error .vfb-help-block, 
.vfbp-form .vfb-has-error .vfb-control-label{
	color: #d14233;
}
.vfbp-form .vfb-has-error .vfb-form-control,
.vfbp-form .vfb-has-error .vfb-form-control:focus{
	border: solid 1px #d14233;
	-webkit-box-shadow: 0px 1px 8px rgba(209, 66, 51, 0.15);
	-moz-box-shadow: 0px 1px 8px rgba(209, 66, 51, 0.15);
	box-shadow: 0px 1px 8px rgba(209, 66, 51, 0.15);
}

/*Visual form builder upload element, needs adjustment*/
.vfbp-form .file-input{
	
}
.vfbp-form .file-input .file-caption{
	display: none;
}
.vfbp-form .file-input .file-caption{
	
}
.vfbp-form .file-input .vfb-input-group-btn{
	font-size: 100%;
}
.vfbp-form .file-input .vfb-input-group-btn .btn {
}
/*hide the 'upload' button which acts as a submit, we dont need it*/
.vfbp-form .file-input .kv-fileinput-upload{
	display: none;
}

/*name field in form (contains many other name fields)*/
.vfb-name-block{
	margin-bottom: 15px;
}
.vfb-name-block:before,
.vfb-name-block:after{
	content: " ";
    display: table;
    clear: both;
}
.vfb-name-block > .vfb-form-group{
	margin-bottom: 0px;
}


/*button*/
button,
.button,
a.button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.vfbp-form .btn,
.vfbp-form .btn-file input[type="file"] {
	border: 1px solid;
	border-color: #155fa4 #155fa4 #085296;
	border-bottom-width: 2px;
	background: #155fa4;
	border-radius: 0px;
	color: #fff;
	font-size: 100%;
	padding: 7px 14px;
	text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.2);
	-webkit-transition: all 300ms ease;
	-moz-transition: all 300ms ease;
	-o-transition: all 300ms ease;
	transition: all 300ms ease;
	display: inline-block;
	cursor: pointer;
}

/*Button hovers, focus and active*/
button:hover,
.button:hover,
a.button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
.vfbp-form .btn-primary:hover, 
button:focus,
.button:focus,
a.button:focus,
input[type="button"]:focus,
input[type="reset"]:focus,
input[type="submit"]:focus,
.vfbp-form .btn-primary:focus, 
button:active,
.button:active,
a.button:active,
input[type="button"]:active,
input[type="reset"]:active,
input[type="submit"]:active,
.vfbp-form .btn-primary:hover,
.vfbp-form .btn-primary:active,
.vfbp-form .btn-primary:focus,
.vfbp-form .btn-default:hover, 
.vfbp-form .btn-default:active, 
.vfbp-form .btn-default:focus,
.vfbp-form .btn-default.focus{
	border-color: #1260A9 #1260A9 #074278;
	background: #145591;
  	color: #fff;
}




/*when using forms inside the content area (like careers)*/
/*Wraps form in a div so we can adjust only this form*/
.page-form-wrap .vfbp-form {
	background: #eee;
	padding: 15px;
	float: left;
	width: 100%;
}
.page-form-wrap .vfbp-form > div[class*="vfb-col"]{
	padding-left: 0px;
	padding-right: 0px;
}
.page-form-wrap .vfbp-form  > div.vfb-form-group h3{
	padding-top: 20px;
}
