// Forms
//------------------------------------------------------

.registration hr {
   border-color: #e4e8f0;
   margin: 25px -45px;
}

.has-feedback.has-error .c-input {
   color: $red;

   .form-control-feedback { display: none !important; }
}


form {
   > h2, h2.form-title {
      font-size: 22px;
      margin-top: 20px;
      margin-bottom: 20px;
   }

   .form-group.required label::after {
      content: "*";
      color: $red;
      margin-left: 3px;
   }

   .form-group .form-control-feedback {
      right: 10px;
      font-size: 18px;
      line-height: 35px; // TODO lh == vyska inputu
   }

   // u formu kde je label nad inputem, neoddeleny divy
   // napr. rezervace.
   .form-group > .form-control-feedback {
      right: 10px;
      top: 29px;
      font-size: 18px;
      line-height: 35px;
   }


   @media screen and (min-width: 545px) {
      .form-group > .help-block {
         bottom: 0;
      }
   }

   .has-error {
      .form-control-feedback,
      .help-block {
         color: $brand-danger;
      }
   }

   .has-success {
      .form-control-feedback,
      .help-block {
         color: $brand-success;
      }
   }

   .has-warning {
      .form-control-feedback,
      .help-block {
         color: $brand-warning;
      }
   }
}

// Validator
//------------------------------------------------------
.form-control + .help-block,
.has-error .help-block,
.has-error .control-label,
.has-error .radio,
.has-error .checkbox,
.has-error .radio-inline,
.has-error .checkbox-inline {
   position: absolute;
   bottom: -15px;
   left: 10px;
}


// bude se zobrazovat max jedna hlaska o nevalidite
.has-error .help-block[data-bv-result="INVALID"] + .help-block[data-bv-result="INVALID"] {
   display: none !important;
}
