/**
 * Form elements.
 */
form {
  margin: 0;
  padding: 0;
}

fieldset {
  border: 1px solid #F0F0F0;
}

fieldset:not(.fieldgroup) {
  background-color: #F0F0F0;
  margin: 1em 0;
  padding: 30px 18px 18px;
  min-width: 0;
  position: relative;
}
/**
 * We've temporarily added this Firefox specific rule here to fix fieldset
 * widths.
 * @todo remove once this Mozilla bug is fixed.
 * See https://bugzilla.mozilla.org/show_bug.cgi?id=504622
 */
@-moz-document url-prefix() {
  fieldset:not(.fieldgroup) {
    display: table-cell;
  }
}
fieldset:not(.fieldgroup) > legend {
  font-size: 1em;
  font-weight: bold;
  letter-spacing: 0.08em;
  position: absolute;
  text-transform: uppercase;
  top: 10px;
}

.form-composite > legend, .label {
  margin-bottom: 6px;
}

.fieldgroup {
  min-width: 0;
}
/**
 * We've temporarily added this Firefox specific rule here to fix fieldset
 * widths.
 * @todo remove once this Mozilla bug is fixed.
 * See https://bugzilla.mozilla.org/show_bug.cgi?id=504622
 */
@-moz-document url-prefix() {
  .fieldgroup {
    display: table-cell;
  }
}

#search-block-form .form-item {
  width: auto;
}

.form-item {
  margin: 0.75em 0;
  clear: both;
  float: left;
  width: 100%;
}

.view-filters .form--inline {
  display: table;
  width: 100%;
}

.view-filters {
  position: relative;
  padding: 0 14px 14px 14px;
  background: #690E12;
}

.path-search .view-filters {
  background: #8F4F52;  
  padding-top: 80px;
}

.view-filters .form--inline label, .view-filters + .view-content .form-type-select label {
  color: #fff;
  font-weight: normal;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 4px;
}

.view-filters + .view-content #edit-header > div {
  padding: 10px 14px 14px 14px;
  background: #8F4F52;
}

.view-filters + .view-content #edit-header > div::after {
    clear: both;
    content: "";
    display: table;
}

.view-filters + .view-content .form-type-select, .view-filters + .view-content .form-actions {
  position: relative;
  float: left;
  width: auto;
  margin: 0 40px 0 0;
}

.view-filters .form--inline .form-actions {
  position: relative;
  display: table-cell;
  right: 0;
  bottom: 0;
  min-width: 180px;
}

.view-filters .form-actions, .view-filters + .view-content .form-actions {
  margin: 0; 
}

.view-filters + .view-content .form-select {
  min-width: 300px;
}

.view-filters input[type="submit"], .view-filters + .view-content #edit-header input[type="submit"] {
  background: #fff;
  color: #000;
  margin: 10px 10px 0 0;
  width: auto;
  min-width: auto;
  padding: 4px 1em;
  clear: none;
}

.view-filters input[type="submit"]:hover, .view-filters + .view-content #edit-header input[type="submit"]:hover {
  background: #fff;
  color: #000;
}

.view-filters input[type="submit"]:last-child, .view-filters + .view-content #edit-header input[type="submit"]:last-child {
  margin-right: 0;
}

.view-filters + .view-content #edit-header input[type="submit"] {
  margin: 20px 14px 0 0;
}

.view-filters .form-item {
  display: table-cell;
  width: auto;
  clear: none;
  float: none;
  margin: 0;
  padding: 14px 12px 0 0;
}

.view-filters .form-type-textfield {
  width: auto;
}

.view-filters + .view-content table {
  margin-top: 14px;
}

.view-filters + .view-content table.sticky-header {
  margin-top: 0;
}

.view-filters .nice-select {
  width: 100%;
}

.path-search .view-filters .form-type-textfield {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  padding: 14px;
  background: #690E12;
}

.path-search .view-filters .form-type-textfield input {
  width: 60%;
}

.path-search .view-filters .form-item .nice-select {
  width: 100%;
  min-width: 100px;
}

.form-type-checkbox {
  padding: 0;
}
label {
  display: table;
  margin: 0 0 0.1em;
  padding: 0;
  font-weight: bold;
}

.form-item label + div {
  clear: both;
}

.form-type-checkbox label, .form-type-radio label {
  clear: none;
  width: auto;
  font-size: 16px;
  color: #000;
}

.layout-region-node-secondary .form-type-checkbox label, .layout-region-node-secondary .form-type-radio label {
  color: #fff;
  font-size: 14px;
}

label.error {
  color: #a51b00;
}
label[for] {
  cursor: pointer;
}
.form-item label.option {
  text-transform: none;
}
.form-item label.option input {
  vertical-align: middle;
}
.form-disabled label {
  color: #737373;
}
.form-disabled input.form-text,
.form-disabled input.form-tel,
.form-disabled input.form-email,
.form-disabled input.form-url,
.form-disabled input.form-search,
.form-disabled input.form-number,
.form-disabled input.form-color,
.form-disabled input.form-file,
.form-disabled textarea.form-textarea,
.form-disabled select.form-select {
  border-color: #d4d4d4;
  background-color: hsla(0, 0%, 0%, .08);
  box-shadow: none;
}
.form-item input.error,
.form-item textarea.error,
.form-item select.error {
  border-width: 1px;
  border-color: #e62600;
  background-color: hsla(15, 75%, 97%, 1);
  box-shadow: inset 0 5px 5px -5px #b8b8b8;
  color: #a51b00;
}
.form-item textarea.error + .cke {
  border-width: 1px;
  border-color: #e62600;
}
.form-item input.error:focus,
.form-item textarea.error:focus,
.form-item select.error:focus {
  border-color: #e62600;
  outline: 0;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .05), 0 0 8px 1px #e62600;
  background-color: #fcf4f2;
}
.form-required:after {
  background-size: 7px 7px;
  width: 7px;
  height: 7px;
}
.form-item--error-message {
  margin-top: 0.15em;
  color: #e32700;
}
.fieldset-wrapper > .form-item--error-message {
  margin-top: 0;
}
.text-format-wrapper .form-item--error-message {
  border: solid #ccc;
  border-width: 0 1px;
  margin: 0;
  padding: 0.25em 0.666em 0;
}


/* Filter */
ul.tips,
div.description,
.form-item .description {
  margin: 0.2em 0 0 0;
  color: #595959;
  font-size: 0.95em;
}

.layout-region-node-secondary .form-composite > .fieldset-wrapper > .description, .layout-region-node-secondary .form-item .description, .layout-region-node-secondary .description {
  color: #fff;
  font-size: 12px;
}

 .layout-region-node-secondary .node-form-author .description {
  color: #000;
}

.form-item .description.error {
  margin-top: 0;
  color: #a51b00;
}

ul.tips li {
  margin: 0.25em 0 0.25em 1.5em; /* LTR */
}
[dir="rtl"] ul.tips li {
  margin: 0.25em 1.5em 0.25em 0;
}
.form-type-radio .description,
.form-type-checkbox .description {
  margin-left: 1.5em; /* LTR */
}
[dir="rtl"] .form-type-radio .description,
[dir="rtl"] .form-type-checkbox .description {
  margin-left: 0;
  margin-right: 1.5em;
}
.form-text,
.form-textarea {
  font-size: 1em;
  line-height: normal;
}

input.form-autocomplete,
input.form-text,
input.form-tel,
input.form-email,
input.form-url,
input.form-search,
input.form-number,
input.form-color,
input.form-file,
input.form-date,
input.form-time,
textarea.form-textarea {
  box-sizing: border-box;
  padding: .3em .4em .3em .5em; /* LTR */
  width: 100%;
  border: 1px solid #9d9e9f;
  background: #fff;
  color: #333;
  font-size: 1em;
  color: #595959;
  -webkit-transition: border linear 0.2s, box-shadow linear 0.2s;
  transition: border linear 0.2s, box-shadow linear 0.2s;
}
[dir="rtl"] textarea.form-textarea {
  padding: .3em .5em .3em .4em;
}

input[type="submit"] {
  color: #fff;
  width: auto;
  min-width: 100px;
  font-size: 14px;
  line-height: 14px;
  margin: 20px 0;
  background-color: #6B1014;
  border-radius: 30px;
  border: none;
}

input[type="submit"]:hover {
  background-color: #8F4F52;
}

.layout-region-node-footer input[type="submit"] {
  background-color: #fff;
  color: #000;
  margin: 0 12px;
}

form .field-add-more-submit {
  padding-left: 30px;
  background-image: url(../images/plus-white.png);
  background-repeat: no-repeat;
  background-position: 10px 10px;
  background-size: 10px;
}

form .field-multiple-table + div > .field-add-more-submit {
  margin: 0;
}

.form-text:focus,
.form-tel:focus,
.form-email:focus,
.form-url:focus,
.form-search:focus,
.form-number:focus,
.form-color:focus,
.form-file:focus,
.form-textarea:focus,
.form-date:focus,
.form-time:focus {
  border-color: #40b6ff;
  outline: 0;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .05), 0 0 8px #40b6ff;
  background-color: #fff;
}

.confirm-parent,
.password-parent {
  overflow: visible;
  width: auto;
}

.form-item-options-group-info-identifier,
.form-item-pass .description {
  clear: both;
}

/**
 * Limits extra long instances of select elements to the max width allowed
 * to avoid breaking layouts.
 */
select {
  max-width: 100%;
}

input[type="checkbox"], input[type="radio"] {
  position: relative;
  width: auto;
  height: auto;
  clear: both;
  float: left;
  margin: 8px 10px 0 2px;
  opacity: 0;
  z-index: 10;
}

.form-checkboxes .form-item, .form-radios .form-item {
  margin: 0;
}

.form-type-checkbox, .form-type-radio {
  position: relative;
  clear: both;
  float: left;
  height: auto;
}

.form-type-checkbox label, .form-type-radio label {
  line-height: 26px;
}

th.select-all {
  position: relative;
  height: 80px;
  min-width: 50px;
}

th.select-all:after {
  content: "Select All";
  display: block;
  position: absolute;
  width: 44px;
  top: 0;
  left: -1px;
  font-size: 14px;
  line-height: 14px;
  text-align: center;
}

.form-type-checkbox:before, .form-type-radio:before, th.select-all:before {
  content: " ";
  display: block;
  position: absolute;
  top: 6px;
  left: 0;
  width: 14px;
  height: 14px;
  border: 1px solid #9D9E9F;
  background-color: #fff;
  z-index: 0;
}

table .form-type-checkbox:before, th.select-all:before {
  border: 3px solid #9D9E9F;
  width: 12px;
  height: 12px;
}

th.select-all:before {
  top: 50%;
  margin-top: -8px;
  left: 12px;
  border: 3px solid #821318;
}

.form-type-checkbox label.visually-hidden {
  line-height: 0;
  width: 0;
  clip: auto;
  color: transparent;
}

.form-type-checkbox.checked:before, .form-type-radio.checked:before, th.select-all.checked:before {
  background-image: url(../images/radio-check.jpg);
  background-size: 14px;
}

table .form-type-checkbox.checked:before, th.select-all.checked:before {
  background-size: 12px;
  background-position: left -12px;
}

.form-type-checkbox.checked:before {
  background-position: left -14px;
}

.form-type-radio.checked:before {
  background-position: left top;
}

.form-type-checkbox.unchecked:before, th.select-all.unchecked:before {
  background-image: none;
}

.form-type-radio.unchecked:before {
  background: none;
}

.form-type-radio:before {
  border-radius: 10px;
}

/**
 * Improve spacing of cancel link.
 */
#edit-cancel {
  margin-left: 10px; /* LTR */
}
[dir="rtl"] #edit-cancel {
  margin-left: 0;
  margin-right: 10px;
}

