@import "../base/variables.less";
@import "../base/mixins.less";

.form {
  margin: 0 auto;
  display: block;

  .row {
    position: relative;
    .c;
    margin: 14px 0;

    label {
      float: left;
      display: block;
      font-size: 16px;
      line-height: 40px;
      width: 35%;
      margin-bottom: 0;

      &.small {
        width: 17.34%;
      }

      .form-horizontal& {
        float: none;
        display: block;
        vertical-align: middle;
        line-height: 20px;
        margin-bottom: 6px;
        width: 100%;
      }

      @media @600 {
        float: none;
        width: 100% !important;
        margin-bottom: 6px;
      }
    }

    input[type=text], input[type=password], input[type=email] {
      display: block;
      float: left;
      height: 38px;
      line-height: normal;
      border: 1px solid #2d2d2d;
      padding: 0 16px;
      font-family: @main-font;
      font-size: 16px;
      color: #2d2d2d;
      width: 60%;
      -webkit-border-radius: 2px;
      -moz-border-radius: 2px;
      -ms-border-radius: 2px;
      -o-border-radius: 2px;
      border-radius: 2px;

      box-sizing: border-box;

      @media @600 {
        float: none;
        width: 94%;
        padding: 0 3%;
      }

      .form-horizontal& {
        float: none;
        display: block;
        vertical-align: middle;
        width: 100%;
      }
    }

    textarea {
      display: block;
      float: left;
      height: 200px;
      line-height: normal;
      border: 1px solid #2d2d2d;
      padding: 16px;
      font-family: @main-font;
      font-size: 16px;
      color: #2d2d2d;
      width: 72%;
      -webkit-border-radius: 2px;
      -moz-border-radius: 2px;
      -ms-border-radius: 2px;
      -o-border-radius: 2px;
      border-radius: 2px;

      box-sizing: border-box;

      @media @600 {
        float: none;
        width: 94%;
        padding: 16px 3%;
      }
    }

    .radio-list {
      float: left;
      width: 60%;
      position: relative;
      top: 6px;

      span {
        margin-right: 10px;
      }

      .form-horizontal& {
        top: 0;
      }
    }

    .select {
      //appearance: none;
      //-moz-appearance: none;
      //-webkit-appearance: none;
      text-indent: 0.01px;
      text-overflow: ellipsis;
      height: 38px;
      padding-right: 30px;
      padding-left: 10px;
      overflow: hidden;
      //background-image: url(../images/sprite2x.png);
      //background-repeat: no-repeat;
      //background-position: 95% -120px;
      //background-size: 18px auto;
      border: 1px solid #2d2d2d;
      -webkit-border-radius: 2px;
      -moz-border-radius: 2px;
      -ms-border-radius: 2px;
      -o-border-radius: 2px;
      border-radius: 2px;
      margin-bottom: 5px;
      max-width: 100%;

      &:-moz-focusring {
        color: transparent;
        text-shadow: 0 0 0 #2d2d2d;
      }

      option {
        background-color: #d9d9d9;
      }
    }

    &.checkbox-list {
      .checkbox-title {
        display: block;
        font-size: 16px;
        line-height: 40px;
      }

      .checkbox-item {
        float: none;
        display: block;
        width: 100%;
        font-weight: normal;
        position: relative;

        &__pull-right {
          margin-left: 35%;
          width: 65%;
        }

        input {
          position: absolute;
          left: 0;
          top: 10px;
        }
      }

      .checkbox-value {
        margin-left: 25px;
      }
    }
  }
}
