/**************************************************
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 abbr {
    padding: 0;
    position: absolute;
    right: 10px;
}
.jb-form label:first-child,
.jb-form .label:first-child {
    font: 124%/1.4 Arial, Helvetica, sans-serif;
	padding-bottom: 6px;
	display: block;
}
.jb-form label:first-child br,
.jb-form .label:first-child br,
.fb-text-label > br {
	display: none;
}
.jb-form p,
.jb-form .form-group:not(.field-submit){
    clear: left;
    background: rgba(20, 20, 20, 0.03);
    color: #666;
    margin: 0 0 1em 0;
    padding: 0.7em;
    border-radius: 0.4em;
}
.jb-form p.note {
    background: none;
    font-size: 90%;
    margin: 1em 0 0 0;
}
.jb-form p.buttons {
    background: none;
    text-align: center;
    /* Swap margin for padding to fix an ugly IE7 glitch */
    margin-left: 0;
}
.jb-form input[type="text"] {
	text-align: left;
}
.jb-form input[type="text"],
.jb-form input[type="tel"],
.jb-form input[type="email"],
.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 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: auto;
}
.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 0;
    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 {
    background-color: #FCC;
    cursor: help;
}
p.error {
	background-color:transparent;
	font-weight: bold;
}
#show-form .inline-set {
	display: inline-block;
	vertical-align: top;
	padding: 15px;
	margin: 0 !important; 
	width: 33.333%;
}
#show-form .inline-set label:first-child,
#show-form .inline-set .label:first-child {
	float: none;
	margin: 0px 0 0px 0;
	padding: 0 0 10px 0;
	display: block;
	width: auto;
	text-align: left;
}
#show-form .inline-set .tooltip-element {
	position: relative;
	top: -2px;
}
#show-form h2 {
	margin-bottom: 12px;
}
#show-form * + h2 {
	margin-top: 30px;
}
#show-form h3  {
	margin-bottom: 0;
}
#show-form p.plain {
	margin: 0 !important;
	background: transparent !important;
	font-size: inherit !important;
	color: inherit !important;
	padding: 0;
}
#show-form * + p.plain:not(.note) {
	padding-top: 15px;
}
/*
#show-form p.plain + * {
	margin-top: 15px !important;
}
*/
#show-form p.note {
	font-style: italic;
	padding-top: 6px; 
	color: #8a8a8a !important;
}
#show-form input[readonly=""] {
	background: #dddddd !important;
	border: 1px solid #ccc !important;
	box-shadow: inset 0.1em 0.1em 0.1em rgba(0, 0, 0, 0.1) !important; 
}
#show-form .rendered-form .fb-button {
	display: inline-block;
	padding: 0 !important;
	margin: 0 !important;
}

#show-form .rendered-form .fb-button + .fb-button {
	margin-left: 10px !important;
}

#show-form .rendered-form .fb-button button {
	min-height: 38px;
	margin-top: 20px;
}

#show-form label[for*="checkbox"] > input.other-val {
	display: inline-block;
	width: auto;
	margin-left: 10px;
}
hr.empty {
	font-size: 0;
	height: 1px;
	margin: 20px 0;
}
.other-option {
	display: inline-block;
    vertical-align: middle;
}
.other-option + label {
	display: inline-flex;
    align-items: center;
 }
.other-option + label > input{ 
	display: inline-block;
	margin-left: 8px !important;
}
/************************************************************
RESPONSIVE */
/* Mobile(ish) */

@media screen and (max-width: 1400px) { 
	#show-form label:first-child, 
	#show-form .label:first-child {
		float: none;
		margin: 0;
		text-align: left;
	}
}

@media screen and (max-width: 960px) { 
	#show-form .inline-set {
		width: 50%;
	}
}

@media screen and (max-width: 670px) {
	
    .jb-form {
        padding-right: 0;
    }
    .jb-form p,
    .jb-form .captcha-container {
        margin: 1em 0 0 0;
    }
    .jb-form p.buttons {
        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;
    }
    #show-form .inline-set {
		width: 100%;
	}
	
	#show-form .inline-set label.hasTip {
		position: relative;
		padding-left: 28px;
	}
	
    #show-form .inline-set .tooltip-element {
	    position: absolute;
	    left: 0;
	    top: 4px;
    }
}