/* Form */

.form_limiter {
    max-width: 540px;
    margin: 0 auto;
}

.checkboxes_hidden {
    display: none;
}

#form_header h2 {
    margin-top: 0;
}

input {
    -webkit-appearance: none;
    border-radius: 0;
}

#chat-form {
    position: relative;
}

#chat-form form {
    width: 100%;
    -moz-text-size-adjust: none;
    -ms-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    position: relative;
    min-height: 300px;
    background: #fff;
    margin: 1em 0;
    overflow: hidden;
    -webkit-transition: all .3s ease;
    -o-transition: all .3s ease;
    transition: all .3s ease;
    max-height: 999px;
}

#chat-form.submitted form,
#chat-form.submitted #form_header {
    max-height: 300px;
    opacity: 0;
}

#chat-form .form_submission_success {
    text-align: center;
    padding: 30px;
    width: 100%;
    max-width: 35em;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate3d(-50%, -50%, 0);
    transform: translate3d(-50%, -50%, 0);
    opacity: 0;
    visibility: hidden;
    -webkit-transition: opacity .3s .3s ease;
    -o-transition: opacity .3s .3s ease;
    transition: opacity .3s .3s ease;
}

#chat-form .form_submission_success h1 {
    position: relative;
    padding-top: 3em;
    margin-top: 0;
}

#chat-form .form_submission_success h1:before {
    font-family: 'icons';
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    margin: 0;
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    padding: 0;
    font-size: 1.5em;
    height: 1.5em;
    width: 1.5em;
    line-height: 1.5em;
    text-align: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-transform: translate3d(-50%, 0, 0);
    transform: translate3d(-50%, 0, 0);
    content: "\e91f";
    border-radius: 100%;
    border: 3px solid #4EC24F;
    color: #4EC24F;
}

#chat-form .form_submission_success h3 {
    margin: 1rem 0;
    font-size: 1em;
}

#chat-form.submitted .form_submission_success {
    visibility: visible;
    opacity: 1
}

#chat-form.submitted .form_submission_success .button {
    margin: 0 auto;
}

#chat-form label {
    font-size: 1em;
    width: 100%;
    float: left;
    clear: left;
    padding: 0;
    line-height: 1.5em;
    font-weight: normal;
}

#chat-form input[type="text"],
#chat-form input[type="email"],
#chat-form input[type="number"],
#chat-form select,
#chat-form .selectwrap {
    width: 100%;
    padding: 1rem;
    font-size: 16px;
    line-height: 1em;
    margin: 0 0 1.5em 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    border: 1px solid #bbb;
    border-radius: 0;
    outline: 0;
}

#chat-form .input_wrapper input[type="text"],
#chat-form .input_wrapper input[type="email"],
#chat-form .input_wrapper input[type="number"] {
    margin: 0 0 1.5em 0;
}

#chat-form .input_wrapper {
    display: block;
    border-radius: 4px;
    margin: 0;
    position: relative;
}

#chat-form span.input_required:before {
    content: "*";
    color: #F44336;
    position: absolute;
    top: 1em;
    left: 0.35em;
    z-index: 1;
    line-height: 1em;
}

#chat-form input:focus {
    border: 1px solid #0072BC;
}

#chat-form .selectwrap {
    position: relative;
    margin: 0 0 1.5em 0;
    padding: 0;
    height: 3em;
    overflow: hidden;
    width: 100%;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    cursor: pointer;
}

#chat-form .selectwrap select {
    border: none;
    cursor: pointer;
}

#chat-form select {
    width: 120%;
    background: transparent;
    -webkit-appearance: none;
    border-radius: 0;
    position: relative;
    z-index: 2;
    line-height: 2em;
    padding: 0.5em 1em;
}

#chat-form .selectwrap:after {
    font-family: 'icons';
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    margin: 0;
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    padding: 0;
    content: "\e913";
    font-size: 1.5em;
    line-height: 1em;
    text-align: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-transform: translate3d(-50%, 0, 0);
    transform: translate3d(-50%, 50%, 0);
}

:-moz-placeholder {
    color: #ccc;
    font-weight: 300;
}

:-webkit-input-placeholder {
    color: #ccc;
    font-weight: 300;
}

.error:-moz-placeholder {
    font-weight: 300;
}

.error:-webkit-input-placeholder {
    font-weight: 300;
}

#chat-form label.error {
    color: #999;
    color: #b22727;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    font-weight: normal;
    font-family: Arial, Helvetica, sans-serif;
    padding: 0 1rem 1em;
    margin: -1.5em 0 0 0;
    line-height: 1em;
    font-style: italic;
    font-size: 0.825em;
}

#chat-form label.checkerror {
    width: 100%;
    position: absolute;
    bottom: 0.25em;
    left: -1em;
    margin: 0;
    padding: 0.25em 2em;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
}

#chat_options {
    -webkit-transition: background .3s ease;
    -o-transition: background .3s ease;
    transition: background .3s ease;
}

#chat_options.error {
    background: #faffbd;
}

#chat-form label.error:before,
#chat-form .checkboxes_required label.error:before {
    font-family: 'icons';
    font-style: normal;
    font-size: 1em;
    font-weight: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    content: "\e904";
    margin: 0;
    padding-right: 0.5em;
    float: left;
    color: #b22727;
}

#chat-form span.asterisk,
.asterisk {
    padding: 0 0.5em;
    color: #b22727;
}

#chat-form legend span.asterisk {
    color: #fff;
}

#chat-form input.error {
    background: #faffbd;
}

#chat-form .help {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    font-weight: normal;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.725em;
    line-height: 1em;
    margin: 2em 0.5em 1em 0;
    padding: 0;
    color: #999;
    float: none;
    text-align: right;
    display: block;
}

#chat-form input[type=submit],
#chat-form input[type=submit]:hover,
#chat-form input[type=submit]:active {
    padding: 0;
    -webkit-appearance: none;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    border-radius: 0px;
}

#chat-form input.disabled,
#chat-form input.disabled:hover,
#chat-form input.disabled:active {
    background: #ccc;
    border-color: #bbb;
    cursor: progress;
}

.submit_button {
    padding: 0;
    margin: 2em auto 1em auto;
}

#chat-form #ss-submit {
    display: table;
    font-size: 1.125em;
    line-height: 1em;
    padding: 1rem 1.5rem 0.85rem;
    text-decoration: none;
    border-radius: 0;
    border: 2px solid #11264d;
    position: relative;
    -webkit-transition: all .25s ease;
    -o-transition: all .25s ease;
    transition: all .25s ease;
    text-transform: uppercase;
    text-align: center;
    margin: 2em auto 1em auto;
    cursor: pointer;
    background: #11264d;
    color: #fff;
    font-family: 'MyriadPro-SemiBold', 'Source Sans Pro', sans-serif;
}

#chat-form #ss-submit:hover {
    background: #fff;
    border: 2px solid #11264d;
    color: #11264d;
}


/*
#chat-form #ss-submit:hover,
#chat-form #ss-submit:focus {
    background: #105ba6;
    cursor: pointer;
    outline: 0;
}

#chat-form #ss-submit:active {
    background: #1674b9;
}
*/

#chat-form legend {
    padding: 1em;
    line-height: 1.25em;
    font-size: 1em;
    text-align: center;
    border: none;
    background: #11264d;
    color: #fff;
    width: 100%;
}

#chat-form fieldset {
    border: none;
    -webkit-box-shadow: inset 0 0 1px 0 #999;
            box-shadow: inset 0 0 1px 0 #999;
    width: 100%;
    position: relative;
    padding: 1em 0;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    border-radius: 0;
    overflow: hidden;
}

#chat-form .fieldset_container {
    padding: 0 2em;
}

.clear {
    clear: both;
}

.cb {
    position: relative;
}

#chat-form input[type="checkbox"],
#chat-form input[type="radio"] {
    position: absolute;
    left: -99999px;
}

#chat-form input[type="checkbox"]+label,
#chat-form input[type="radio"]+label {
    padding-left: 2em;
    position: relative;
    margin-bottom: 1em;
    background: none;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

#chat-form input[type="checkbox"]+label:hover,
#chat-form input[type="radio"]+label:hover {
    cursor: pointer;
}

#chat-form input[type="checkbox"]+label:before,
#chat-form input[type="checkbox"]:checked+label:before,
#chat-form input[type="radio"]+label:before,
#chat-form input[type="radio"]:checked+label:before,
#chat-form input[type="checkbox"]+label:after,
#chat-form input[type="checkbox"]:checked+label:after,
#chat-form input[type="radio"]+label:after,
#chat-form input[type="radio"]:checked+label:after {
    display: block;
    padding: 0;
    margin: 0;
    text-decoration: none;
    position: absolute;
    text-align: center;
    top: 0;
    left: 0;
    height: 1em;
    width: 1em;
    -webkit-transition: all .3s ease;
    -o-transition: all .3s ease;
    transition: all .3s ease;
}

#chat-form input[type="checkbox"]+label:before,
#chat-form input[type="checkbox"]:checked+label:before,
#chat-form input[type="radio"]+label:before,
#chat-form input[type="radio"]:checked+label:before {
    content: "";
    height: 0.75em;
    width: 0.75em;
    top: 0.15em;
    line-height: 0.5em;
    font-size: 1.5em;
    border: 1px solid #bbb;
    border-radius: 0;
}

#chat-form input[type="checkbox"]+label:after,
#chat-form input[type="checkbox"]:checked+label:after,
#chat-form input[type="radio"]+label:after,
#chat-form input[type="radio"]:checked+label:after {
    content: "\e91f";
    color: #0072BC;
    font-size: 1.5em;
    line-height: 0.925em;
    font-family: 'icons';
    font-weight: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-transform: scale(0);
    -ms-transform: scale(0);
    transform: scale(0);
    opacity: 0;
    visibility: hidden;
}

#chat-form input[type="checkbox"]:checked+label:after {
    visibility: visible;
    opacity: 1;
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
}

#chat-form input[type="checkbox"]:checked+label:before {
    border-color: #0072BC;
}

#chat-form input[type="radio"]+label:before {
    content: "\e604";
    color: #ccc;
}

#chat-form input[type="radio"]:checked+label:before {
    content: "\e603";
    color: #326296;
}


/* Don't use native buttons on iOS */

input[type=submit].button,
button.button {
    -webkit-appearance: none;
}


/* Correct FF button padding */

@-moz-document url-prefix() {
    button::-moz-focus-inner,
    input[type="reset"]::-moz-focus-inner,
    input[type="button"]::-moz-focus-inner,
    input[type="submit"]::-moz-focus-inner,
    input[type="file"]>input[type="button"]::-moz-focus-inner {
        border: none;
        padding: 0;
    }
    input[type="submit"].tiny.button {
        padding: 3px 10px 4px;
    }
    input[type="submit"].small.button {
        padding: 5px 14px 6px;
    }
    input[type="submit"].button,
    input[type=submit].medium.button {
        padding: 8px 20px 9px;
    }
    input[type="submit"].large.button {
        padding: 13px 30px 14px;
    }
}

.errorbox label.error {
    width: 100%;
    background: #faffbd;
    padding: 0.25em 1em;
    margin: 0;
    left: 0;
}

form input.error {
    background: #faffbd;
}

.help,
.label-help {
    font-size: 0.825em;
    color: #999;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    font-weight: normal;
    font-family: Arial, Helvetica, sans-serif;
}

.form-submit {
    width: 100%;
    clear: both;
    padding: 2em 0 0;
}

.success {
    text-align: center;
    padding: 3em 3em 0;
}

.success h1 {
    font-size: 2.5em;
    line-height: 1.15em;
}

.success h3 {
    font-size: 1.25em;
    padding: 1em;
    line-height: 1.15em;
}

.success h2 {
    margin: 2em 0 1em 0;
}

.chattitle {
    width: 100%;
    line-height: 1em;
    margin-top: 0.25em;
    margin-bottom: 0.25em;
    color: #002F65;
    font-family: 'latobold', sans-serif;
}

.chatdate,
.chattime {
    font-size: 0.825em;
    line-height: 1.15em;
    font-weight: 300;
}

.chatdate {
    display: inline;
    white-space: nowrap;
}

.chattime {
    display: inline;
    padding-left: 1em;
    margin-left: 0.5em;
    position: relative;
    white-space: nowrap;
}

.chattime:before {
    content: '';
    display: inline-block;
    position: absolute;
    width: 0.5em;
    height: 0;
    left: 0;
    top: 50%;
    margin: -1px 0 0 0;
    border-top: 1px solid #333;
    -webkit-transform: translate3d(0, -50%, 0);
    transform: translate3d(0, -50%, 0);
}

@media only screen and (max-width: 350px) {
    .chattime {
        display: block;
        margin-left: 0;
        padding-left: 0;
        width: 100%;
    }
    .chattime:before {
        display: none;
    }
    .theForm p.intro {
        font-size: 1em;
    }
    #chat-form legend {
        font-size: 1em;
    }
}
