/*-------------------+
 | Part: Form styles |
 +-------------------*/


/* Global
======================================================================*/
input, select, textarea { font-size: 1em; }
input:focus, select:focus, textarea:focus { outline: 2px solid #0192ff; outline-offset: -1px; outline-radius: 3px; }
textarea { height: 5em; }

/* Specifics
======================================================================*/

/* Character counters */
.charcount { color: #777; float: right; font-weight: normal; margin-right: 0.5em; }
.charcount .over { color: #f00; font-weight: bold; }

/* Checklists */
.checklist { border: 1px solid #ccc; max-height: 20em; line-height: 1.4;    margin: 0 0 1em 0; overflow: auto; }
.checklist input { margin-bottom: 1px; }
.checklist label { display: block; padding: 0.1em 0 0.1em 25px; height: 1%; text-indent: -25px; }
.checklist li { background: none; display: block; float: none; margin: 0; padding: 0; white-space: normal; width: 100%; }
.checklist li p { margin: 0; padding: 1em 0 0; }
.checklist li ul { margin: 0 0 0 2em; }
.checklist .mute { font-size: 1em; white-space: nowrap; }
.checklist p { font-weight: bold; margin-bottom: 0.25em; }
.checklist .selected { background: #ffa; }
.checklist ul { margin-bottom: 1em; }

/* Datepicker */
.ui-datepicker-trigger { background: none; border: 0; cursor: pointer; padding: 0; }

/* Fields */
.form { clear: both; list-style: none; overflow: hidden; }
.form-field { float: right; width: 75%; }
.form-field { margin-bottom: 1em; position: relative; }
.form-field p { margin-bottom: 0.25em; }
.form-label { float: left; text-align: right; width: 22%; }
.form-row { clear: both; font-weight: normal; margin: 0; }

    /* Multiple fields on a single line */
    .field-single-line { width: 60%; }
    .field-single-line p { box-sizing: border-box; float: left; margin: 0; padding-right: 10px; }
    .field-single-line .txt { width: 100%; }
    
        /* Location fields */
        .field-single-line .field-loc-city { width: 50%; }
        .field-single-line .field-loc-state { width: 20%; }
        .field-single-line .field-loc-postal { float: right; padding-right: 0; width: 30%; }
        
        /* Name fields */
            /* Full name (first/middle/last) */
            .fields-name-full .field-name-first, .fields-name-full .field-name-last { width: 40%; }
            .fields-name-full .field-name-last { float: right; padding-right: 0; }
            .fields-name-full .field-name-middle { width: 20%; }
            
            /* Long name (first/middle/last/suffix) */
            .fields-name-long .field-name-first, .fields-name-long .field-name-last { width: 30%; }
            .fields-name-long .field-name-middle, .fields-name-long .field-name-suffix { width: 20%; }
            .fields-name-long .field-name-suffix { float: right; padding-right: 0; }
            
            /* Short name (first/last) */
            .fields-name-short .field-name-first, .fields-name-short .field-name-last { width: 50%; }
            .fields-name-short .field-name-last { float: right; padding-right: 0; }
        
        /* Phone */
        .form .field-single-line .field-phone-number { width: 70%; }
        .form .field-single-line .field-phone-ext { padding-right: 0; width: 20%; }
        .form .field-single-line .field-phone-x { padding-top: 0.5em; text-align: center; width: 10%; }

/* Help text */
.field-help { color: #666; font-size: 0.8em; font-weight: normal; }

/* Notifications */
.flash.confirm, .flash.error, .flash.notice, .flash.warn { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); margin-bottom: 30px; }
.flash h2 { font-weight: bold; margin-bottom: 0.5em; }
.flash p { list-style: none; margin: 0; }

    /* Confirmation */
    .flash.confirm { background: #e8f8d1; padding: 30px; }
    .flash.confirm h2 { color: #516f26; }
    
    /* Errors */
    .flash.error { background: #ffc; padding: 30px; }
    .flash.error h2, .error-message { color: #d20000; }
    .field-with-errors { color: #f00; }
    .field-with-errors .txt, .field-with-errors .txt-med { border: 2px solid #f00; }
    .label .field-with-errors { display: inline; }
    
    /* Notices */
    .flash.notice { background: #e0f0ff; padding: 30px; }
    .flash.notice h2 { color: #274d70; }
    
    /* Warnings */
    .flash.warn { background: #fef5c6; padding: 30px; }
    .flash.warn h2 { color: #ac6b04; }

/* Options */
.options-h, .options-v { list-style: none; margin: 0; }
.options-h img { border-bottom: 3px solid #fff; padding: 5px; vertical-align: middle; }
.options-h li, .options-v li { background: none; margin-bottom: 0.3em; padding: 0; }
.options-h li { display: inline; margin-right: 0.7em; white-space: nowrap; }
.options-v li { padding-left: 25px; text-indent: -25px; }

/* Placeholder */
input.placeholder, textarea.placeholder { color: #777; font-style: italic; }
input::-moz-placeholder, textarea::-moz-placeholder { color: #999; font-style: italic; }
input:-ms-input-placeholder, textarea:-ms-input-placeholder { color: #999; font-style: italic; }
input::-webkit-input-placeholder, textarea::-webkit-input-placeholder { color: #999; font-style: italic; }

/* Required text */
.req { color: #f00; }

/* Search */
.search { background: #fff; border-radius: 4px; box-sizing: border-box; padding-right: 3em; white-space: nowrap; }
.search * { vertical-align: middle; }
.search button { -webkit-appearance: none; background: none; border: 0; color: #505050; cursor: pointer; font-size: 16px; margin-right: -2em; padding: 0.5em 0; width: 3em; }
.search .txt { border: 0; box-shadow: none; margin: 0; padding: 0.3em 0; text-indent: 0.6em; width: 100%; }

    /* In nav bar */
    #nav .search { float: right; width: 27.5%; }

/* Sequencing */
.sequence { list-style: none; line-height: 1.4; margin-left: 0; }
.sequence .call-r { margin-top: 0; }
.sequence > li { background: #f0f0f0; border-radius: 4px; cursor: move; margin-bottom: 2px; overflow: hidden; padding: 20px; }
.sequence .remove { float: right; font-weight: bold; margin: 0 0 10px 10px; }

/* Subscribe */
#subscribe .action { font-size: 20px; }
#subscribe h2 { margin-bottom: 0.5em; }
#subscribe #mc_embed_signup { overflow: hidden; }
#subscribe #mc_embed_signup form { padding: 0; }
#subscribe #mc_embed_signup input { border: 0; border-radius: 0; width: 100%; }
#subscribe #mc_embed_signup p { box-sizing: border-box; float: left; margin: 0; padding-right: 0.5em; width: 25%; }
#subscribe #mc_embed_signup .txt { padding: 0.6em 0.5em; }
#subscribe #mc-embedded-subscribe { border: 2px solid #3aacd8; margin: 0; }
#subscribe #mc_embed_signup div#mce-responses { margin: 0; }
#subscribe #mce-responses, #subscribe #mce-responses * { color: #000 !important; margin: 0 0 1em !important; padding: 0 !important; width: auto !important; }

/* Text boxes */
.txt, .txt-date, .txt-med, .txt-num {
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    box-shadow: inset 0 1px 1px #ddd;
    margin-right: 0.5em;
    padding: 0.3em;
    vertical-align: middle;
}

.txt { width: 100%; }
.txt-date { width: 7em; }
.txt-med { width: 60%; }
.txt-num { width: 4em; }