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

.jb-form {
    position: relative;
}
.jb-form header {
	font: 24px/1.4 Arial, Helvetica, sans-serif;
	text-align: center;
}
.jb-form abbr,
.jb-form .fb-required {
    color: #7B0101;
    font-size: 165%;
    font-weight: bold;
    line-height: 1;
    padding: 0 1px;
    vertical-align: middle;
    border: none;
    text-decoration: none;
}
.jb-form p.note abbr {
	position: static;
}

.jb-form abbr,
.jb-form label .fb-required {
    padding: 0;
    position: absolute;
    right: -15px;
    top: 0;
}
.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,
.jb-form .form-group,
#show-form .rendered-form > div {
    clear: left;
    background: rgba(20, 20, 20, 0.03);
    color: #666;
    margin: 0 0 1em 10em;
    padding: 0.5em;
    border-radius: 0.4em;
    position: relative;
}
.jb-form p.note {
    background: none;
    font-size: 90%;
    margin: 1em 0 0 0;
}
.jb-form span.note {
	font-size: 14px;
	margin: 0;
	padding: 0px 0px 30px;
	display: inline-block;
}

.jb-form p.buttons,
.jb-form header,
#show-form .rendered-form > .fb-button  {
    background: none;
    text-align: center;
    /* Swap margin for padding to fix an ugly IE7 glitch */
    margin-left: 0;
    padding-left: 160px;
}

.jb-form input[type="text"],
.jb-form input[type="tel"],
.jb-form input[type="email"],
.jb-form input[type="password"] {
	min-height: 36px;
}

.jb-form input[type="text"],
.jb-form input[type="tel"],
.jb-form input[type="email"],
.jb-form input[type="password"],
.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: 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 10em;
    background-color:transparent;
    text-align: center;
}
.jb-form .g-recaptcha {
    display: inline-block;
	vertical-align: middle;
	width: 100%;
	margin: 0;
	text-align: center;
	background: none;
	padding: 0 0 0 10em;
}
.jb-form .g-recaptcha > div {
	display: inline-block;
}
.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;
}

.jb-form .btn[type="submit"]:not(.btn-alt) {
	color: #fff;
}

.jb-form .fullsize-input {
	margin: 0 0 1em;
	padding: 0.5em !important;
}

.add-attachment {
	margin-top: -10px;
	cursor: pointer;
}

input[type="checkbox"] + label {
	padding-left: 6px;
}

.attachments {
	padding: 30px 0;
}
.trash {
	font-size: 25px;
}
.toEmailSelect {
	display: none;
}
#contact-form #show-form .rendered-form div[class=""] {
	margin-left: 0 !important;
	background: none !important;
}
#contact-form #show-form .rendered-form div[class=""] > p {
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
}

.jb-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; 
}

#contact-form #show-form .rendered-form {
	text-align: center;
}

#contact-form #show-form .rendered-form div {
	text-align: left;
}

#contact-form #show-form .rendered-form .fb-button {
	display: inline-block;
	padding: 0 !important;
	margin: 0 !important;
}

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

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

#contact-form label[for*="checkbox"] > input.other-val {
	display: inline-block;
	width: auto;
	margin-left: 10px;
}

#password {
	background-color: transparent;
}

#password-tip {
	line-height: 21px;
	cursor: pointer;
}

.strength_meter {
    position: absolute;
    left: 8px;
    top: 8px;
    width: calc(100% - 16px);
    height: 36px;
    z-index: -1;
    border-radius: 5px;
}

.strength_meter div {
    width: 0%;
    height: 36px;
    text-align: right;
    color: #666;
    line-height: 38px;
    -webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
    -ms-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
    padding-right: 12px;
    border-radius: 5px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-indent: -9999px;
    opacity: 0;
}

.veryweak div {
    background-color: #FFA0A0;
    border-color: #F04040 !important;
    width: 25% !important;
    text-indent: 0px; 
    opacity: 1;
}

.weak div {
    background-color: #FFB78C;
    border-color: #FF853C !important;
    width: 50% !important;
    text-indent: 0px; 
    opacity: 1;
}

.medium div {
    background-color: #FFEC8B;
    border-color: #FC0 !important;
    width: 75% !important;
    text-indent: 0px; 
    opacity: 1;
}

.strong div {
    background-color: #C3FF88;
    border-color: #8DFF1C !important;
    width: 100% !important;
    text-indent: 0px; 
    opacity: 1;
}

.button_strength {
	margin-top: 6px;
}

.user-data {
	padding: 20px;
	margin-bottom: 40px;
	background: #666;	
}

.user-data * {
	color: #FFF;
}

.user-data p {
	font-size: 14px;
	font-family: 'Montserrat-Regular';
	letter-spacing: 0.04em;
	margin-top: 0 !important;
}

/************************************************************
RESPONSIVE */
/* Mobile(ish) */

@media screen and (max-width: 670px) {
	
    .jb-form {
        padding-right: 0;
    }
    .jb-form p {
        margin: 1em 0 0 0;
    }
    .jb-form p.buttons,
    .jb-form header {
        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,
    .jb-form p label + abbr {
        position: static;
    }
    #content > article .col.side {
        margin-left: auto;
        margin-right: auto;
        max-width: 280px;
    }
    
    .jb-form p label[for="message"] {
	    display: inline-block;
	    padding-right: 5px;
    }
    
}