/*-----------------------------------+
 | Site: Unbalanced Youth Justice    |
 | 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; }

/* Character counters */
.charcount { color: #777; 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 */
.field { margin-bottom: 1em; position: relative; }
.field p { margin-bottom: 0.5em; }
.form { clear: both; height: 1%; }
.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: 68%; }
    .form .field-single-line p { float: left; margin: 0 1% 0 0; }
    .form .field-single-line .txt { width: 90%; }
    
        /* Location fields */
        .form .field-single-line .field-loc-city { width: 49%; }
        .form .field-single-line .field-loc-state { width: 14%; }
        .form .field-single-line .field-loc-state .txt { width: 68%; }
        .form .field-single-line .field-loc-postal { float: right; margin-right: 0; width: 33%; }
        
        /* Name fields */
            /* Full name */
            dl.form .fields-name-full .field-name-first { width: 42%; }
            dl.form .fields-name-full .field-name-last { margin-right: 0; width: 42%; }
            dl.form .fields-name-full .field-name-middle { margin-right: 4%; width: 10%; }
            
            /* Short name */
            dl.form .fields-name-short .field-name-first { width: 49%; }
            dl.form .fields-name-short .field-name-last { margin-right: 0; width: 50%; }
            
            /* With suffix */
            dl.form .fields-name-long .field-name-first { margin-right: 3%; width: 26%; }
            dl.form .fields-name-long .field-name-last { width: 42%; }
            dl.form .fields-name-long .field-name-middle { margin-right: 4%; width: 10%; }
            dl.form .fields-name-long .field-name-suffix { margin-right: 0; width: 13%; }
        
        /* Phone */
        dl.form .field-single-line .field-phone-number { width: 73%; }
        dl.form .field-single-line .field-phone-number .txt { width: 94%; }
        dl.form .field-single-line .field-phone-ext { width: 20%; }
        dl.form .field-single-line .field-phone-x { margin-right: 2%; padding-top: 0.5em; }
            
    /* Fields in modal dialog */
    .modal .form dd.field { width: 50%; }
    .modal .form dt .label { width: 47%; }
    
/* 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; }

/* Hints */
.ezpz-hint { color: #777; font-style: italic; }

label .counter { font-size: .9em; }

/* 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-wrapper { left:0; position:fixed; top:0; width:100%; z-index: 99; }        

#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-content.error { background: #ffb6c1; border:1px solid #f00; color: #000; font-weight: bold; }

.confirm-message { position:relative; text-align:center; }
.confirm-message .confirm-message-wrapper { left:0; position:fixed; top:0; width:100%; z-index: 1001; }        
.confirm-message .confirm-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;                
}

.confirm-message .error { background: #ffb6c1; border:1px solid #f00; color: #000; font-weight: bold; }

/* Notifications */
.flash { margin-bottom: 2em; }
.flash h2 { color: #000; font-size: 1.3em; margin-bottom: 0.5em; }
.flash p { list-style: none; margin: 0; }

    /* 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 url(/content/images/shared/check.png) no-repeat 1em 1em; border: 2px solid #c8e999; padding: 1.5em 1.5em 1.5em 3.5em; }
    
    /* Errors */
    .error { background: url(/content/images/shared/exclamation.gif) no-repeat 0 0.25em; color: #f00; padding: 3px 0 3px 20px; }
    
    #errorExplanation, .flash .error {
        background: #ffc url(/content/images/shared/error.png) no-repeat 1em 1.1em;
        border: 2px solid #ea3c20;
        color: #f00;
        padding: 20px 20px 20px 60px;
    }
    
    .field-with-errors { color: #f00; }
    .field-with-errors .txt, .field-with-errors .txt-med { border: 2px solid #f00; }
    .label .field-with-errors { display: inline; }
    
    /* ASP.NET MVC Errors */
    .validation-summary-valid { display: none; }
    .validation-summary-errors {
        background: url(/content/images/shared/error.gif) no-repeat scroll 10px 0.5em #FFFCCC;
        border: 2px solid #EA3C20;
        color: #FF0000;
        padding: 1.5em 1.5em 1.5em 3.5em;
    }
    .input-validation-error { border: 2px solid #FF0000 }
    .field-validation-error {
        background: url(/content/images/shared/exclamation.gif) no-repeat scroll 0 0.25em transparent;
        color: #FF0000;
        margin : 0 0 0 3px;
        padding : 3px 0 3px 20px;
    }
    
    /* Notices */
    .flash .notice { background: #e0f0ff url(/content/images/shared/notice.png) no-repeat 13px 13px; border: 2px solid #a1d0fb; padding: 20px 20px 20px 60px; }
    
    /* Warnings */
    .flash .warn { background: #fef5c6 url(/content/images/shared/warning.png) no-repeat 13px 13px; border: 2px solid #ffcd36; padding: 20px 20px 20px 60px; }

/* 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 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 */
.placeholder { color: #999; 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; }

/* Questions */
.questions { list-style: decimal; }
.questions p { margin-bottom: 0.5em; }

    /* Answers */
    .answers { list-style: lower-alpha; }

/* Registration */
.register, .register input, .register select, .register textarea { font-size: 18px; }

/* Required text */
.req { color: #f00; }

/* Search */
#search {
    background: #fcfcfc;
    background: -moz-linear-gradient(top, #fcfcfc 0%, #f4f4f4 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fcfcfc), color-stop(100%,#f4f4f4));
    background: -webkit-linear-gradient(top, #fcfcfc 0%,#f4f4f4 100%);
    background: -o-linear-gradient(top, #fcfcfc 0%,#f4f4f4 100%);
    background: -ms-linear-gradient(top, #fcfcfc 0%,#f4f4f4 100%);
    background: linear-gradient(to bottom, #fcfcfc 0%,#f4f4f4 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fcfcfc', endColorstr='#f4f4f4',GradientType=0 );
    margin-bottom: 30px;
    padding: 15px 0;
}

#search h2 { font-size: 30px; }

    /* Dedicated searches */
    #dedicated-search .brief-form { width: 100%; }
    #dedicated-search .brief-form .field { float: left; margin: 0 2% 0 0; width: 39%; }
    #dedicated-search .brief-form .field-submit { float: right; margin: 1.25em 0 0; width: auto; }
    #dedicated-search .brief-form label { display: block; font-weight: bold; }
    #dedicated-search input { font-size: 21px; }
    #dedicated-search .more { background: none; margin-top: 1em; padding: 0; text-transform: none; }
    #dedicated-search .more-trigger { clear: both; margin: 0; padding-top: 0.5em; }
    #dedicated-search .or { float: left; margin-right: 2%; padding-top: 30px; text-transform: uppercase; }
    #dedicated-search .txt { width: 97%; }

/* Text boxes */
.txt, .txt-date, .txt-med, .txt-num {
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: inset 0 1px 1px #ddd;
    margin-right: 0.5em;
    padding: 0.3em;
    vertical-align: middle;
}

.txt { width: 95%; }
.txt-date { width: 7em; }
.txt-med { width: 47%; }
.txt-num { width: 4em; }
