/*-----------------------------------------+
 | Site: Chicago Laborers District Council |
 | Part: Form styles                       |
 +----------------------------------------*/


/* Global
======================================================================*/
fieldset { border: 1px solid #ddd; margin-bottom: 2em; padding: 1em 1.5em; }
input, select, textarea { font-size: 1em; }
input:focus, select:focus, textarea:focus { outline: 2px solid #0192ff; outline-offset: -1px; outline-radius: 3px; }
legend { background: #fff; color: #b9121b; font-size: 20px; font-weight: bold; margin: 0 0 0 -0.5em; padding: 0.1em 0.75em 0.1em; }
legend em { color: #777; font-size: 0.7em; font-style: normal; font-weight: normal; margin-left: 0.3em; }
textarea { height: 5em; }

/* Specifics
======================================================================*/
/* Autocomplete */
.ui-autocomplete-loading { background: white url(/content/images/shared/loading_16x16.gif) right center no-repeat; }

/* Buttons */
.btn {
    background: #ffffff;
    background: -moz-linear-gradient(top, #ffffff 0%, #eaeaea 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#eaeaea));
    background: -webkit-linear-gradient(top, #ffffff 0%,#eaeaea 100%);
    background: -o-linear-gradient(top, #ffffff 0%,#eaeaea 100%);
    background: -ms-linear-gradient(top, #ffffff 0%,#eaeaea 100%);
    background: linear-gradient(to bottom, #ffffff 0%,#eaeaea 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#eaeaea',GradientType=0 );
    border: 1px solid #ccc;
    border-radius: 3px;
    color: #369;
    display: inline-block;
    font-size: 16px;
    font-weight: bold;
    margin-right: 0.5em;
    overflow: visible;
    padding: 0.5em 1em;
}

.btn:hover { text-decoration: none; }

/* Character counters */
.charcount { color: #777; float: right; font-weight: normal; margin-right: 0.5em; }
.charcount .over { color: #f00; font-weight: bold; }

/* Checkboxes and radio buttons (custom with FontAwesome) */
input[type=radio].with-font,
input[type=checkbox].with-font {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}
    
input[type=radio].with-font ~ label:before,
input[type=checkbox].with-font ~ label:before {
    color: #535353;
    content: "\f1db";
    display: inline-block;
    font-family: FontAwesome;
    font-size: 1.2em;
    letter-spacing: 10px;
    width: 1.4em;
}

input[type=radio].with-font:checked ~ label:before,
input[type=checkbox].with-font:checked ~ label:before  {
    color: darkgreen;
    content: "\f00c";
    font-size: 1.2em;
    letter-spacing: 5px;
}

input[type=checkbox].with-font ~ label:before { content: "\f096"; }
input[type=checkbox].with-font:checked ~ label:before { color: darkgreen; content: "\f14a"; }

/* 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; }

/* Columnized checkboxes */
.columnized-checkboxes { list-style: none; margin-left: 0; }

/* Datepicker */
.ui-datepicker-trigger { background: none; border: 0; cursor: pointer; padding: 0; }

/* Dynamic edit items (ss) */
.dynamic-edit-item { border-bottom: 1px solid #ddd; margin-bottom: 10px; overflow: hidden; padding-bottom: 20px; position: relative; }
.dynamic-edit-item .remove-dynamic-item { padding: 0.75em; position: relative; }
.dynamic-edit-item [class *= "remove"] { position: absolute; right: 10px; top: 10px; z-index: 1000; }

/* Fields */
.field { margin-bottom: 1em; position: relative; }
.field p { margin-bottom: 0.5em; }
.form { margin: 0; overflow: hidden; padding-bottom: 2px; }
.form dd.field { float: right; margin: 0; width: 77%; }
.form dt { clear: both; font-weight: normal; margin: 0; padding-top: 0.5em; }
.form dt .label { float: left; text-align: right; width: 20%; }

    /* Multiple fields on a single line */
    .form .field-single-line { width: 60%; }
    .form .field-single-line p { box-sizing: border-box; float: left; margin: 0; padding-right: 10px; }
    .form .field-single-line .txt { width: 100%; }
        
        /* Location fields */
        .form .field-single-line .field-loc-city { width: 50%; }
        .form .field-single-line .field-loc-state { width: 20%; }
        .form .field-single-line .field-loc-postal { float: right; padding-right: 0; width: 30%; }

        /* International location fields */
        .form .postal-city { width: 68%; }
        .form .postal-city p { float: left; margin: 0 1% 0 0; }
        .form .postal-city .field-loc-city { float: right; margin-right: 6px; text-align: right; width: 60%; }
        .form .postal-city .field-loc-postal { margin-right: 2%; width: 34.5%; }
        .form .postal-city-state { width: 68%; }
        .form .postal-city-state p { float: left; margin: 0 1% 0 0; }
        .form .postal-city-state .field-loc-city { text-align: right; width: 45%; }
        .form .postal-city-state .field-loc-postal { margin-right: 4%; width: 20%; }
        .form .postal-city-state .field-loc-state { float: right; margin-right: 0px; width: 28%; }
        
        /* Name fields */
            /* Full name (first/middle/last) */
            .form .fields-name-full .field-name-first, .form .fields-name-full .field-name-last { width: 40%; }
            .form .fields-name-full .field-name-last { float: right; padding-right: 0; }
            .form .fields-name-full .field-name-middle { width: 20%; }
            
            /* Long name (first/middle/last/suffix) */
            .form .fields-name-long .field-name-first, .form .fields-name-long .field-name-last { width: 30%; }
            .form .fields-name-long .field-name-middle, .form .fields-name-long .field-name-suffix { width: 20%; }
            .form .fields-name-long .field-name-suffix { float: right; padding-right: 0; }
            
            /* Short name (first/last) */
            .form .fields-name-short .field-name-first, .form .fields-name-short .field-name-last { width: 50%; }
            .form .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%; }
                    
    /* Fields in modal dialog */
    .modal .form dd.field { width: 50%; }
    .modal .form dt .label { width: 47%; }
    
    /* Guest form */
    .guest-form { background: #f1f1f1; border: 4px solid #e1e1e1; border-radius: 8px; padding: 1em; position: relative; }
    .guest-form .guest-delete { position: absolute; right: 1em; top: 0.25em; }
    
/* Google results */
.google-results a { margin-left: 0.25em; }
.google-results h2 { font-size: 1em; }
.google-results ul { list-style: none; margin: 0; }

/* Help text */
.field-help { color: #666; font-size: 0.8em; font-weight: normal; }
.field-help img { vertical-align: middle; }

/* List builders (add/remove) */
.list-builder { list-style: none; margin: 0; }
.list-builder > li { clear: both; height: 1%; padding-top: 30px; }
.list-builder > li:first-child { padding: 0; }

/* Message */
.form-message { position: relative; text-align: center; }

.form-message-content {
    background: #ffc;
    border: 1px solid #ddd;
    border-top: 0;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.3);
    display: inline-block;
    font-weight: bold;
    padding: 0.5em 1em 0.6em;                
}

.form-message-wrapper { left: 0; position: fixed; top: 0; width: 100%; z-index: 99; }        
.form-message-content.error { background: #ffb6c1; border-color: #f00; }
.form-message-form-review { padding: 6em 1em 6em !important; margin-top: 15%; border-radius: 5px 5px 5px 5px; }

/* Newsletter */
#newsletter { border-bottom: 1px solid rgba(255, 255, 255, 0.2); clear: both; margin-bottom: 30px; padding: 20px 0; text-align: center; }
#newsletter .action { background: rgba(255, 255, 255, 0.3); font-size: 1em; }
#newsletter .action, #newsletter .txt { padding: 0.5em; width: 13em; }
#newsletter .txt { border: 0; }

/* 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-size: 1em; font-weight: bold; margin-bottom: 0.5em; }
.flash p { list-style: none; }

    /* AJAX notifications */
    #ajax-message { display: none; position: absolute; top: 0; width: 100%; }
    #ajax-text { background-color: #FFF1A8; font-size: 90%; font-weight: bold; margin: 0 auto !important; padding: 3px 0; position: relative; text-align: center; white-space: nowrap; width: 100px }
    
    /* Confirmation */
    .flash .confirm { background: #e8f8d1; padding: 30px; }
    .flash .confirm h2 { color: #516f26; }
    
    /* Errors */
    .flash .error, .validation-summary-errors { background: #ffc; padding: 30px; }
    .flash .error h2 { color: #d20000; }
    .error { color: #f00; }
    [class *= "txt"].error { border: 2px solid #f00; }
    
    /* Notices */
    .flash .notice { background: #e0f0ff; padding: 30px; }
    .flash .notice h2 { color: #274d70; }
    
    /* Warnings */
    .flash .warn { background: #fbd49d; padding: 30px; }
    .flash .warn h2 { color: #955d04; }

/* Options */
.options-h, .options-v { list-style: none; margin: 0; }
.options-h input, .options-v input { margin: 0 0.5em -0.05em 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: 22px; text-indent: -22px; }
.options-v li i { padding-left: 0; text-indent: 0; }
.options-v ul { margin: 0.3em 0 1em; }

    /* Boxes */
    .save { color: #b9121b; }
    .form-option { border: 1px solid #ddd; border-radius: 5px; }
    .form-option-head { background: #f5f1eb; border-radius: 5px 5px 0 0; }
    .form-option-content, .form-option-head { padding: 0.5em; }
    
/* 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; }

/* Progress forms */
#progress-form { overflow: hidden; padding-left: 190px; }
#progress-form dt .field-help { color: #818181; display: block; float: none; font-size: 12px; width: auto; }
#progress-form textarea.txt { height: 10em; }
#progress-form .form-content { float: right; width: 100%; }

  /* Tabs */
  #progress-form .form-nav { float: left; list-style: none; margin: 0 0 0 -190px; width: 160px; }
  #progress-form .form-nav a { display: block; padding: 10px 0; text-decoration: none; }
  #progress-form .form-nav a:hover { text-decoration: underline; }
  #progress-form .form-nav .current { font-weight: bold; }
  #progress-form .form-nav .current a { color: #000; }
  #progress-form .form-nav .disabled { color: #aaa; font-style: italic; padding: 10px; }
  #progress-form .form-nav li { border-bottom: 1px solid #ddd; margin: 0; }

/* Required text */
.req { color: #f00; }

/* Search */
.search { background: #fff; border: 1px solid #ccc; border-radius: 4px; display: -ms-flexbox; display: flex; white-space: nowrap; }

.search button {
    -webkit-appearance: none;
    background: none;
    border: 0;
    border-radius: 0 4px 4px 0;
    color: #505050;
    cursor: pointer;
    -ms-flex: 0 0 3em;
    flex: 0 0 3em;
    font-size: 16px;
    padding: 0.7em 0;
    width: 3em;
}

.search button:hover { background: #eee; }
.search .search-label { display: none; }
.search .txt { border: 0; box-shadow: none; display: block; margin: 0; min-width: 0; padding: 0 0.5em 0 0; text-indent: 0.6em; }

    /* Site search */
    #site-search { width: 57.59%; }
    
    #site-search .search-category {
        -ms-flex-align: center;
        align-items: center;
        border-right: 1px solid #ddd;
        display: -ms-flexbox;
        display: flex;
        -ms-flex: 0 0 13.5em;
        flex: 0 0 13.5em;
        font-size: 14px;
        list-style: none;
        margin: 0;
    }
    
    #site-search .search-category .fa-check-square { color: #3d893f; }
    #site-search .search-category label { cursor: pointer; }
    #site-search .search-category li { display: inline; margin: 0 1em 0 0; }
    #site-search .txt { -ms-flex: 1 1 10em; flex: 1 1 10em; }
    #site-search input[type=radio].with-font ~ label:before { content: "\f096"; }
    #site-search input[type=radio].with-font:checked ~ label:before { content: "\f14a"; }
    #site-search input[type=checkbox].with-font:focus ~ label:before, #site-search input[type=checkbox].with-font:focus ~ label { color: #3d893f; }

/* Text boxes */
.txt, .txt-date, .txt-med, .txt-num, .txt-large {
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: inset 0 1px 1px #ddd;
    box-sizing: border-box;
    margin-right: 0.5em;
    padding: 0.45em 0.3em;
    vertical-align: middle;
}

    /* Large text area */
    textarea.txt-large { height: 10em; }

    /* Text box errors */
    .txt.input-validation-error,
    .txt-date.input-validation-error,
    .txt-med.input-validation-error,
    .txt-num.input-validation-error,
    .txt-large.input-validation-error {
        border: 2px solid #f00;
    }

.txt, .txt-large { width: 100%; }
.txt-date { width: 7em; }
.txt-med { width: 60%; }
.txt-num { width: 4em; }