
/* -----------------------------------------------------------------------------
 * FORMS
 * -------------------------------------------------------------------------- */

form { background-color: transparent; }
fieldset {
  width: auto;
  padding: 0;
  border: 0;
  margin: 0 0 1em 0;
  }
fieldset > *:first-child {
  margin-top: 0;
  }
fieldset table {
  padding-top: 1em;
  margin: 0;
  }

/* \*/

legend {
  width: 100%;
  padding: 6px 0;
  border: 0;
  border-top: 1px solid #d7d7d7;
  border-bottom: 1px solid #d7d7d7;
  margin: 0;
  color: #435891;
  background-color: #fff;
  text-transform: uppercase;
  font-size: .8em;
  font-weight: bold;
  letter-spacing: .1em;
  }

/* */

@media all and (min-width: 0px) /* for Opera 8 */ { 
  legend {
    margin-bottom: 1.6em;
  }
}

input, textarea, select, button { cursor: pointer; }
input[type='text'],
input[type='password'],
input[type='search'],
textarea {
  color: #000;
  background-color: #eee;
  font-family: Corbel, Tahoma, Arial, Helvetica, Sans, sans-serif;
  }
input[type='text']:hover,
input[type='password']:hover,
input[type='search']:hover,
textarea:hover,
input[type='text']:focus,
input[type='password']:focus,
input[type='search']:focus,
textarea:focus {
  cursor: text;
  background-color: #fff;
  }
input[type='hidden'] { display: none; }
input[disabled='true'] { }

select[multiple] { margin-bottom: .5em; }

label {
  text-transform: uppercase;
  font-size: 90%;
  font-weight: bold;
  }

form span {
  display: block;
  margin: 0;
  padding: 1px;
  border: 1px solid #d7d7d7;
  background-color: #fff;
  overflow: hidden;
  }

form span input,
form span textarea,
form span select {
  display: -moz-inline-box; /* default appearance */
  display: inline-block; /* default appearance */
  padding: 1px;
  /*border: 1px solid #d7d7d7;*/
  border-width: 1px;
  font-size: 13px;
  font-family: inherit;
  line-height: 13px;
  width: 100%;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -ms-box-sizing: border-box: border-box;
  box-sizing: border-box;
  }
  
input[type='radio'], input[type='checkbox'] {
  width: auto;
  }
input[type='radio'] {
  position: relative;
  bottom: -.2em;
  }
textarea { height: 6em; }

form span.tiny { width: 2.25em; }
form span.short { width: 5.25em; }
form span.medium { width: 9.75em; }

form span.note {
  display: inline;
  padding: 0;
  border: none;
  background-color: transparent;
  overflow: auto;
  }
span.inline { 
  float: left;
  margin: 0 .5em 0 0;
  }
span.inline select { min-width: 64px; /* Tried to appease Opera, useless */ }

/* -----------------------------------------------------------------------------
 * POP-UP BOXES
 * -------------------------------------------------------------------------- */

form.popup {
  background-color: #fff;
  padding: 0;
  border: 1em solid #435891;
  margin: 0;
  }
form.popup fieldset {
  padding: 0;
  margin: 1em;
  }
form.popup legend {
  color: #fff;
  background-color: #435891;
  padding: 0 0 1em 0;
  border: none;
  margin: 0;
  width: 100%;
  }