/**************************************************
Contact forms */

.jb-form {
    position: relative;
    padding-right: 2em;
}
.jb-form abbr {
    color: #7B0101;
    font-size: 165%;
    font-weight: bold;
    line-height: 1;
    padding: 0 1px;
    vertical-align: middle;
    border: none;
    text-decoration: none;
}
.jb-form label.name-req abbr {
	top: -25px;
}
.jb-form label abbr {
    padding: 0;
    position: absolute;
    right: 10px;
}
.jb-form label:first-child,
.jb-form .label:first-child {
    float: left;
    font: 105%/1.4 Arial, Helvetica, sans-serif;
    margin: 0 0 0 -10em;
    width: 9em;
    text-align: right;
}
.jb-form p {
    clear: left;
    /*background: rgba(20, 20, 20, 0.03);*/
    color: #666;
    margin: 0 0 1em 10em;
    padding: 0.5em;
    border-radius: 0.4em;
}
.jb-form p.note {
    background: none;
    font-size: 90%;
    margin: 1em 0 0 0;
}
.jb-form p.buttons,
#comment-form p.buttons {
    background: none;
    text-align: center;
    /* Swap margin for padding to fix an ugly IE7 glitch */
    margin-left: 0;
    padding-left: 10em;
}
.jb-form input[type="text"],
.jb-form input[type="tel"],
.jb-form input[type="email"],
.jb-form input[type="password"],
.jb-form input[type="date"],
.jb-form textarea,
.jb-form select {
    display: block;
    color: #333;
    font: 115%/1.2 Arial, Helvetica, sans-serif;
    margin: 0;
    width: 100%;
    padding: 0.3em 0.4em;
    background: #fefefe;
    border: 1px solid #ccc;
    border-radius: 0.3em;
    box-shadow: inset 0.1em 0.1em 0.1em rgba(0, 0, 0, 0.1);
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.jb-form input[type="text"]:focus,
.jb-form input[type="tel"]:focus,
.jb-form input[type="email"]:focus,
.jb-form input[type="password"]:focus,
.jb-form textarea:focus,
.jb-form select:focus {
    border-color: #aaa;
    box-shadow: inset 0.1em 0.1em 0.1em rgba(0, 0, 0, 0.05);
}
.jb-form select {
    width: 100%;
}
.jb-form textarea {
    height: 7em;
}
.jb-form .button {
    font-size: 125%;
}
.jb-form .captcha img {
    max-width: 100%;
    vertical-align: middle;
    margin: 0.5em 0;
}
.jb-form .captcha-container {
    margin: 1em 0 2em 10em;
    background-color:transparent;
    text-align: center;
}
.jb-form .g-recaptcha {
    display: inline-block;
    vertical-align: middle;
}
.jb-form #code {
    width: 8em;
    display: inline;
    margin-left: 0.6em;
}
.jb-form input.OK {
    /*background-color:#CFC;*/
}
.jb-form input.error,
.jb-form textarea.error {
    background-color: #FCC;
    cursor: help;
}
.jb-form.flex-form .captcha-container {
	margin: 20px;
}
.jb-form.flex-form .buttons {
	padding: 5px;
}
.jb-form .flex {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}
.jb-form .flex-center {
	align-self: center !important;
}
.jb-form .flex + .flex {
	margin-top: 10px;
}
.jb-form .flex > div {
	flex-grow: 1;
	align-self: flex-end;
}
.jb-form .flex.two-col > div {
	flex-grow: 0;
	width: 49.5%;
}
.jb-form .flex.three-col > div {
	flex-grow: 0;
	width: 32.5%;
}
.jb-form .flex p {
	margin: auto;
}
.jb-form p.form-text {
	background: none;
	color: #254151;
	margin: auto;
	padding: 0 0 10px 0;
	border-radius: 0;
}
.jb-form .flex label {
	position: relative;
	display: block;
	text-align: left !important;
	font-size: 18px;
	line-height: 30px;
	float: none !important;
	padding-left: 5px;
	margin: auto !important;
	width: 100% !important;
}
.jb-form .flex span {
	display: inline-block;
	padding-left: 20px;
}
.jb-form .flex span label {
	display: inline-block;
	padding-left: 8px;
	width: auto !important;
}
.jb-form .referrals {
	margin-bottom: 30px;
}
.jb-form .referral-inputs {
	display: none;
}
.jb-form .flex em {
	display: block;
	font-size: 14px;
}
.jb-form .radio-wrap {
	padding: 15px 0;
	position: relative;
}
.jb-form .radio-wrap > label {
	display: inline-block;
	padding-right: 15px;
	width: auto;
}
.jb-form .radio-wrap .error:after {
	content: '';
}
.jb-form input[type=radio] {
	position: relative;
	z-index: 1;
}
.jb-form input + label {
	z-index: -1;
}
.jb-form label.error {
	background-color: #fcc;
	padding: 2px 15px 2px 30px !important;
	border-radius: 5px;
	margin-left: 0;
	position: relative;
	left: -20px;
}
input::placeholder {
    opacity: .5;
    display: block;
    color: #333;
    font: 75%/1.2 Arial, Helvetica, sans-serif;
    text-transform: lowercase;
    margin: 0;
    width: 100%;
    padding: 0.3em 0.4em;
    background: #fefefe;
    border: 1px solid #ccc;
    border-radius: 0.3em;
    box-shadow: inset 0.1em 0.1em 0.1em rgba(0, 0, 0, 0.1);
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
.select2-container,
.select2-container .selection {
	font-size: 0;
}
.select2-container .selection > *,
.select2-results {
	font-size: 16px;
}

.select2-container,
.select2-container span {
	padding-left: 0 !important;
}
body .select2-selection {
	padding-left: 10px !important;
}

.select2-container,
.select2-container .selection,
.select2-selection {
	width: 100% !important;
}
.select2-container--default .select2-selection--single {
	border: 1px solid #ccc !important;
}
.select2-container .select2-selection--single {
	height: 35px !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 35px !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 33px !important;
}
.select2-results__option[aria-selected="true"]:before {
  content: '\f00c';
  display: inline-block;
  font-family: Font Awesome\ 5 Pro;
  padding-right: 5px;
}

p.error {
	background-color:transparent;
	font-weight: bold;
}
#comment-form p {
	margin: 0 0 1em 7em;
}
#comment-form p.buttons {
	padding-left: 7em;
}
#form-content {
	position: relative;
	background: #FFF;
	margin: -200px 0 80px 0;
	padding: 50px;
	border-radius: 14px;
	box-shadow: 0px 0 20px 0 rgba(0,0,0,0.2);
}
#form-content .strength_meter {
	width: auto;
	float: right;
}
.subHead {
	padding-bottom: 30px;
}
.notreq {

    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
   
}
/************************************************************
RESPONSIVE */
/* Mobile(ish) */

@media screen and (max-width: 670px) {
	
    .jb-form {
        padding-right: 0;
    }
    .jb-form p,
    #comment-form p,
    .jb-form .captcha-container {
        margin: 1em 0 0 0;
    }
    .jb-form p.buttons,
    #comment-form p.buttons,
    #form-display h3 {
        padding: 0;
    }
    .jb-form p label:first-child {
        float: none;
        display: block;
        position: relative;
        width: auto;
        text-align: left;
        margin: 0;
    }
    .jb-form p label abbr {
        position: static;
    }
    #content > article .col.side {
        margin-left: auto;
        margin-right: auto;
        max-width: 280px;
    }
    #form-container #form-display {
	    padding: 50px 30px 60px 30px;
    }
    #form-container #form-display #comment-form {
    	padding-bottom: 50px;
	}
    
    .jb-form .captcha-container {
	    margin: 1em 0 2em;
    }
}