/* 
easyCss~formCss
Copyright (C) 2010 Joachim Doerr, easyCssframework.com
Creative Commons Attribution-Share Alike 3.0 License
*/
  
.form fieldset {
	border: none;
	margin: 0;
	padding: 0;
}
.form fieldset legend {
	margin: 0;
	padding: 0;
}
    
    /* This are the main units that contain form elements */
    .form .form-section,
    .form .buttonHolder{ margin: 0; padding: 0; clear: both; }

    /* Clear all floats */ 
    .form:after,
      .form .buttonHolder:after, 
      .form .form-section:after, 
        .form .form-section .multiField:after,
          .form .inlineLabel:after{ content: "."; display: block; height: 0; line-height: 0; font-size: 0; clear: both; min-height: 0; visibility: hidden; }


.form:after
.form-section:after {
	content: ".";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
}
* html .form,
* + html .form,
* html .form-section,
* + html .form-section {
	zoom: 1;
}
.form label,
.form button {
	cursor: pointer;
}

/* ------------------------------------------------------------------------------ */
/* ##########################   DEFAULT LAYOUT   ################################ */
/* ------------------------------------------------------------------------------ */
/*       Styles for form controls where labels are above the input elements       */
/* ------------------------------------------------------------------------------ */

      .form label,
      .form .label{ display: block; float: none; margin: 0 0 .5em 0; padding: 0; line-height: 100%; width: auto; }
      
      /* Float the input elements */
      .form .textInput,
      .form .fileUpload,
      .form .selectInput,
      .form select,
      .form textarea{ float: left; width: 53%; margin: 0; }
      
      /* Postition the hints */
      .form .formHint{ float: right; width: 43%; margin: 0; clear: none; }
      
      /* Position the elements inside combo boxes (multiple inputs/selects/checkboxes/radio buttons per unit) */
      .form ul{ float: left; width: 53%; margin: 0; padding: 0; }
        .form ul li{ margin: 0 0 .5em 0; list-style: none; }
          .form ul li label{ margin: 0; float: none; display: block; overflow: visible; }
        /* Alternate layout */
        .form ul.alternate li{ float: left; width: 30%; margin-right: 3%; }
          .form ul.alternate li label{ float: none; display: block; width: 98%; }
            .form ul .textInput,
            .form ul .selectInput,
            .form ul select,
            .form ul.alternate .textInput,
            .form ul.alternate .selectInput,
            .form ul.alternate select{ width: 98%; margin-top: .5em; display: block; float: none; }
            
        /* Required fields asterisk styling */
        .form label em,
        .form .label em{ float: left; width: 1em; margin: 0 0 0 -1em; }

/* ------------------------------------------------------------------------------ */
/* #########################   ALTERNATE LAYOUT   ############################### */
/* ------------------------------------------------------------------------------ */
/*    Styles for form controls where labels are in line with the input elements   */
/*    Set the class of the parent (preferably to a fieldset) to .inlineLabels     */
/* ------------------------------------------------------------------------------ */

      .form .inlineLabels label,
      .form .inlineLabels .label{ float: left; margin: .3em 2% 0 0; padding: 0; line-height: 1; position: relative; width: 32%; }
      
      /* Float the input elements */
      .form .inlineLabels .textInput,
      .form .inlineLabels .fileUpload,
      .form .inlineLabels .selectInput,
      .form .inlineLabels select,
      .form .inlineLabels textarea{ float: left; width: 64%; }

    /* Postition the hints */
    .form .inlineLabels .formHint{ clear: both; float: none; width: auto; margin-left: 34%; position: static; }
    
    /* Position the elements inside combo boxes (multiple inputs/selects/checkboxes/radio buttons per unit) */
    .form .inlineLabels ul{ float: left; width: 66%; }
      .form .inlineLabels ul li{ margin: .5em 0; }
        .form .inlineLabels ul li label{ float: none; display: block; width: 100%; }
      /* Alternate layout */
      .form .inlineLabels ul.alternate li{ margin-right: 3%; margin-top: .25em; }
          .form .inlineLabels ul li label .textInput,
          .form .inlineLabels ul li label textarea,
          .form .inlineLabels ul li label select{ float: none; display: block; width: 98%;  }
    
    /* Required fields asterisk styling */
    .form .inlineLabels label em,
    .form .inlineLabels .label em{ display: block; float: none; margin: 0; position: absolute; right: 0; }

/* ----------------------------------------------------------------------------- */
/* ########################### Additional Stuff ################################ */
/* ----------------------------------------------------------------------------- */

  /* Generals */
    .form legend{ color: inherit; }
    
      .form .secondaryAction{ float: left; }
      
      /* .inlineLabel is used for inputs within labels - checkboxes and radio buttons */
      .form .inlineLabel input,
      .form .inlineLabels .inlineLabel input,
      .form .blockLabels .inlineLabel input,
      /* class .inlineLabel is depreciated */
      .form label input{ float: none; display: inline; margin: 0; padding: 0; border: none; }
            
      .form .buttonHolder .inlineLabel,
      .form .buttonHolder label{ float: left; margin: .5em 0 0 0; width: auto; max-width: 60%; text-align: left; }
      
      /* When you don't want to use a label */
      .form .inlineLabels .noLabel ul{ margin-left: 34%; /* Match to width of label + gap to field */ }
      
      /* Classes for control of the widths of the fields */
      .form .small { width: 30% !important; }
      .form .medium{ width: 45% !important; }
      .form .large {  } /* Large is default and should match the value you set for .textInput, textarea or select */
      .form .auto  { width: auto !important; }
      .form .small,
      .form .medium,
      .form .auto{ margin-right: 4px; }

/* Columns */
.form .col{ float: left; }
.form .col{ width: 50%; }




/* ------------------------------------------------------------------------------
   
   UNI-FORM DEFAULT by DRAGAN BABIC                         (v2) | Wed, 31 Mar 10
   
   ------------------------------------------------------------------------------
   
   Copyright (c) 2010, Dragan Babic
   
   Permission is hereby granted, free of charge, to any person
   obtaining a copy of this software and associated documentation
   files (the "Software"), to deal in the Software without
   restriction, including without limitation the rights to use,
   copy, modify, merge, publish, distribute, sublicense, and/or sell
   copies of the Software, and to permit persons to whom the
   Software is furnished to do so, subject to the following
   conditions:
   
   The above copyright notice and this permission notice shall be
   included in all copies or substantial portions of the Software.
   
   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
   EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
   OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
   NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
   HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
   WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
   FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
   OTHER DEALINGS IN THE SOFTWARE.
   
   ------------------------------------------------------------------------------ */

.form{}
    
    .form legend{ font-weight: bold; font-size: 100%; margin: 0; padding: 1.5em 0; }
  
    .form .form-section{ padding: 1em; border-bottom: 1px solid #efefef; }
    .form .form-section.focused{ background: #fffcdf; }
    
    .form .inlineLabels .noLabel{}
    
    .form .buttonHolder{ background: #efefef; text-align: right; margin: 1.5em 0 0 0; padding: 1.5em;
                            /* CSS3 */
                            border-radius:         4px;
                            -webkit-border-radius: 4px;
                            -moz-border-radius:    4px;
                            -o-border-radius:      4px;
                            -khtml-border-radius:  4px;
                          }
      .form .buttonHolder .primaryAction{ padding: 10px 22px; line-height: 1; background: #254a86; border: 1px solid #163362; font-size: 12px; font-weight: bold; color: #fff;
                                             /* CSS3 */
                                             border-radius:         4px;
                                             -webkit-border-radius: 4px;
                                             -moz-border-radius:    4px;
                                             -o-border-radius:      4px;
                                             -khtml-border-radius:  4px;
                                             box-shadow: 1px 1px 0 #fff;
                                             -webkit-box-shadow: 1px 1px 0 #fff;
                                             -moz-box-shadow: 1px 1px 0 #fff;
                                             text-shadow: -1px -1px 0 rgba(0,0,0,.25);
                                           }
      .form .buttonHolder .primaryAction:active{ position: relative; top: 1px; }
      .form .secondaryAction            { text-align: left; }
      .form button.secondaryAction      { background: transparent; border: none; color: #777; margin: 1.25em 0 0 0; padding: 0; }
      
        .form .inlineLabels label em,
        .form .inlineLabels .label em{ font-style: normal; font-weight: bold; }
        .form label small{ font-size: .75em; color: #777; }
        
      .form .textInput,
      .form textarea    { padding: 4px 2px; border: 1px solid #aaa; background: #fff; }
      .form textarea    { height: 12em; }
      .form select      {}
      .form .fileUpload {}
      
      .form ul{}
        .form li{}
          .form ul li label{ font-size: .85em; }
            
            .form .small {}
            .form .medium{}
            .form .large {} /* Large is default and should match the value you set for .textInput, textarea or select */
            .form .auto  {}
            .form .small,
            .form .medium,
            .form .auto{}
      
      /* Get rid of the 'glow' effect in WebKit, optional */
      .form .form-section .textInput:focus,
      .form .form-section textarea:focus{ outline: none; }
      
      .form .formHint                    { font-size: .85em; color: #777; }
      .form .inlineLabels .formHint      { padding-top: .5em; }
      .form .form-section.focused .formHint{ color: #333; }
      
/* ----------------------------------------------------------------------------- */
/* ############################### Messages #################################### */
/* ----------------------------------------------------------------------------- */

  /* Error message at the top of the form */
  .form #errorMsg{ background: #ffdfdf; border: 1px solid #f3afb5; margin: 0 0 1.5em 0; padding: 0 1.5em;
                      /* CSS3 */
                      border-radius:         4px;
                      -webkit-border-radius: 4px;
                      -moz-border-radius:    4px;
                      -o-border-radius:      4px;
                      -khtml-border-radius:  4px;
                    }
    .form #errorMsg h3{} /* Feel free to use a heading level suitable to your page structure */
    .form #errorMsg ol{ margin: 0 0 1.5em 0; padding: 0; }
      .form #errorMsg ol li{ margin: 0 0 3px 1.5em; padding: 7px; background: #f6bec1; position: relative; font-size: .85em;
                                /* CSS3 */
                                border-radius:         4px;
                                -webkit-border-radius: 4px;
                                -moz-border-radius:    4px;
                                -o-border-radius:      4px;
                                -khtml-border-radius:  4px;
                              }
  
  .form .form-section.error,
  .form .form-section.focused.error{ background: #ffdfdf; border: 1px solid #f3afb5;
                                      /* CSS3 */
                                      border-radius:         4px;
                                      -webkit-border-radius: 4px;
                                      -moz-border-radius:    4px;
                                      -o-border-radius:      4px;
                                      -khtml-border-radius:  4px;
                                    }
    .form .form-section.error input.error,
    .form .form-section.error select.error,
    .form .form-section.error textarea.error{ color: #af4c4c; margin: 0 0 6px 0; padding: 4px; }
  
  /* Success messages at the top of the form */
  .form #okMsg{ background: #c8ffbf; border: 1px solid #a2ef95; margin: 0 0 1.5em 0; padding: 0 1.5em; text-align: center;
                   /* CSS3 */
                   border-radius:         4px;
                   -webkit-border-radius: 4px;
                   -moz-border-radius:    4px;
                   -o-border-radius:      4px;
                   -khtml-border-radius:  4px;
                 }
    .form #OKMsg p{ margin: 0; }

/* ----------------------------------------------------------------------------- */
/* ############################### Columns ##################################### */
/* ----------------------------------------------------------------------------- */

    .form .col{}
    .form .col.first{}
    .form .col.last{}
    .form .col{ margin-bottom: 1.5em; }
    /* Use .first and .last classes to control the layout/spacing of your columns */
    .form .col.first{ width: 49%; float: left; clear: none;                   }
    .form .col.last { width: 49%; float: right; clear: none; margin-right: 0; }