/**
 * @file
 * Form Styling
 */


.form-item { /* Wrapper for a form element (or group of form elements) and its label */
  margin: 1em 0;
}

.form-item input.error,
.form-item textarea.error,
.form-item select.error { /* Highlight the form elements that caused a form submission error */
  border: 1px solid #c00;
}

.form-item label { /* The label for a form element */
  display: block;
  font-weight: bold;
}

.form-item label.option { /* The label for a radio button or checkbox */
  display: inline;
  font-weight: normal;
}

.form-required { /* The part of the label that indicates a required field */
  color: #c00;
}

.form-item .description { /* The descriptive help text (separate from the label) */
  font-size: 0.85em;
}

.form-checkboxes .form-item,
.form-radios .form-item { /* Pack groups of checkboxes and radio buttons closer together */
  margin: 0; /* Drupal core uses "0.4em 0" */
}

.form-submit { /* The submit button */
}

.container-inline div,
.container-inline label { /* Inline labels and form divs */
  display: inline;
}

.tips { /* Tips for Drupal's input formats */
}

a.button { /* Buttons used by contrib modules like Media */
  -webkit-appearance: button;
  -moz-appearance: button;
  appearance: button;
}

/*
 * Password confirmation
 */

.password-parent,
.confirm-parent {
  margin: 0;
}

/*
 * Search (search-block-form.tpl.php)
 */

#block-search-form { /* Wrapper for the search form */
}

/*
 * Drupal's default login form block
 */

#user-login-form {
  text-align: left; /* LTR */
}

/*
 * OpenID
 *
 * The default styling for the OpenID login link seems to assume Garland's
 * styling of list items.
 */

#user-login-form ul { /* OpenID creates a new ul above the login form's links. */
  margin-bottom: 0; /* Position OpenID's ul next to the rest of the links. */
}

html.js #user-login-form li.openid-link,
#user-login-form li.openid-link { /* The "Log in using OpenID" link. */
  margin-top: 1.5em;
  margin-left: -20px; /* LTR */ /* Un-do some of the padding on the ul list. */
}

#user-login-form li.user-link { /* The "Cancel OpenID login" link. */
  margin-top: 1.5em;
}

#user-login ul {
  margin: 1.5em 0;
}

/*
 * Drupal admin tables
 *
 * We overrode these styles in normalize.css, but restore them for the admin
 * section of the site.
 */

form th {
  text-align: left; /* LTR */
  padding-right: 1em; /* LTR */
  border-bottom: 3px solid #ccc;
}

form tbody {
  border-top: 1px solid #ccc;
}

form tr.even {
  background-color: #fff;
}

form table .item-list ul {
  margin: 0;
}

.lt-ie8 tr.even th,
.lt-ie8 tr.even td,
.lt-ie8 tr.odd th,
.lt-ie8 tr.odd td {
  border-bottom: 1px solid #ccc; /* IE doesn't display borders on table rows */
}

/*
 * Drupal core wrongly puts this in system.menus.css. Since we override that, add it back.
 */

td.menu-disabled {
  background: #ccc;
}

/* ==========================================================================
   Form Field Theming
   ========================================================================== */

/* Inputs
   ========================================================================== */
input[type="text"],
input[type="password"],
input[type="date"],
input[type="datetime"],
input[type="datetime-local"],
input[type="month"],
input[type="week"],
input[type="email"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="time"],
input[type="url"],
textarea {
  background-color: #e9e9e9;
  font-family: Arial, sans-serif;
  border: 1px solid #ccc;
  color: rgba(0, 0, 0, 0.75);
  display: block;
  font-size: 0.875em;
  margin: 0 0 1.5em 0;
  padding: 0.5em;
  height: 2.3125em;
  max-width: 100%;
  border-radius: 4px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.10) inset;
  -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.10) inset;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.10) inset;
   -webkit-transition: all 0.15s linear;
  -moz-transition: all 0.15s linear;
  transition: all 0.15s linear;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="time"]:focus,
input[type="url"]:focus,
textarea:focus {
  background: #f5f5f5;
  border-color: #bbb;
  outline: none;
}

input[type="file"],
.form-managed-file .form-file {
  height: 30px;
  vertical-align: top;
  background: #e9e9e9;
  margin-right: 10px;
  box-sizing: border-box;
  padding: 5px;
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.10) inset;
  -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.10) inset;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.10) inset;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: Arial, sans-serif;
  font-size: 13px;
}

/* Buttons
   ========================================================================== */

button, 
input[type="button"], 
input[type="reset"], 
input[type="submit"] {
  width: auto;
  background: #000;
  border: none;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-family: "adelle-sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1;
  margin: 0;
  padding: 6px 12px 8px;
  position: relative;
  text-align: center;
  text-transform: capitalize;
  text-decoration: none;
  -webkit-transition: background-color 0.15s ease-in-out;
  -moz-transition: background-color 0.15s ease-in-out;
  -o-transition: background-color 0.15s ease-in-out;
  transition: background-color 0.15s ease-in-out;
}
button:hover, 
input[type="button"]:hover, 
input[type="reset"]:hover, 
input[type="submit"]:hover,
button:focus, 
input[type="button"]:focus, 
input[type="reset"]:focus, 
input[type="submit"]:focus { 
  background-color: #333;
}

input.form-submit + input.form-submit {
  margin-left: 10px;
}

/* Front-end Filters
   ========================================================================== */

.filter-wrapper,
.field-type-file fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.filter-wrapper legend,
.field-type-file legend {
  display: none;
}

.filter-wrapper .filter-help {
  padding: 0;
}

.filter-wrapper .form-item {
  margin: 0 0 8px;
  padding: 0;
}

.filter-wrapper .filter-list {
  display: block;
  margin: 5px 0 0;
}

.filter-guidelines {
  padding: 0;
}

.text-format-wrapper .filter-wrapper {
  padding: 8px 8px 12px;
  background: #f9f9f9;
  border: 1px solid #ccc;
  margin: -1px 0 20px;
  font-size: 12px;
  line-height: 1.5;
  color: #666;
  border-radius: 0 0 4px 4px;
}

.filter-guidelines .tips {
  list-style: none;
  padding: 0;
}

.filter-guidelines .tips li {
  margin-bottom: 0;
}

.field-type-text-with-summary textarea {
  border-radius: 4px 4px 0 0;
}

.filter-help a {
  color: #999;
}

/* Misc
   ========================================================================== */

textarea.text-full {
  min-height: 10em;
}

.resizable-textarea .grippie {
  border-left: 1px solid #ccc;
  border-right: 1px solid #ccc;
}

.form-type-managed-file .description {
  color: #666;
  line-height: 1.25;
  padding: 5px;
}

.form-type-managed-file {
  margin: 1.5em 0;
}

