@charset "UTF-8";

.mwf-form {
  .input-wrapper {
    width: 100%;
  }
  .row .col-xs-12 {
    width: 100%;
  }
}

.space-between {
  display: flex;
  justify-content: space-between;
}

.form-progress {
  position: relative;
  display: flex;
  list-style: none;
  margin: calc(2% + 20px) -2px;
  padding: 0;
  counter-reset: progress;

  > li {
    flex: 1 1 100%;
    font-family: "Korb", sans-serif;
    margin: 0;
    padding: 14px 24px;
    background-color: var(--theme-color-secondary-dimmed);

    @media(max-width: 567px) {
      padding: 12px 6px 12px 12px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      font-size: 16px;
    }

    &:before {
      counter-increment: progress;
      content: counter(progress) ". ";
    }

    + li {
      margin-left: 6px;

      @media(max-width: 567px) {
        margin-left: 2px;
      }
    }

    &.active {
      background-color: var(--theme-color-secondary);
    }

    &:first-child {
      border-radius: 24px 0 0 24px;
    }
    &:last-child {
      border-radius: 0 24px 24px 0;
    }
  }
}

fieldset {
  margin: 0;
  border: none;
}

select::-ms-expand {
  display: none;
}

select[multiple] {
  background-image: none;
  height: 130px;
}

textarea, textarea.form-control {
  height: auto;
}

[data-browser="chrome"] {
  select {
    padding-left: 10px;
  }
}

.contact-form {
  label {
    margin-top: 20px;

    @media(max-width: 767px) {
      margin-top: 16px;
    }
  }

  .form-title {
    margin-bottom: 10px;
  }

  input[type="checkbox"] {
    margin-top: 20px;
  }
}

.mwf-option {
  display: block;
  margin-right: 24px;
  white-space: nowrap;
}
.mfw-s, .mfw-l {
  .mwf-input fieldset .mwf-option {
    display: table-cell;
    padding-right: 20px;
  }
}
.mwf-option label {
  white-space: initial;
}

.row.mwf-field, .mwf-form .row {
  margin-bottom: 20px;
  margin-left: -15px;
  margin-right: -15px;
  .input-wrapper:not([class^="col-"]) {
    position: relative;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
  }
}

.mwf-s{
  .input-wrapper:not(.for-input){
    display: table-cell;
    .mwf-label{
      float: left;
      display: table-cell;
    }
  }

  .mwf-label{
    padding-right: 20px;
  }
  .for-input{
    .mwf-label{
      display: table-cell;
      white-space: nowrap;
    }
  }
  .mwf-input{
    display: table-cell;
    width: 100%;
  }
}

.mwf-m{
  display: block;
  .mwf-option{
    float: left;
  }
}

label p {
  margin: 0;
}

.mwf-hint, .mwf-hint ~ p {
  position: relative;
  margin: 0;
  font-size: 16px;
  text-align: right;
  font-weight: 600;
  top: 14px;
  padding-left: 15px;
  padding-right: 15px;
}

.mwf-hint {
  margin-bottom: -10px;
}

.gfi-webforms-pagination {
  display: none;
}

.webform-buttons {
  padding-top: 30px;
  position: relative;
  display: flex;
  flex-wrap: wrap;

  > .mwf-button {
    margin: 0 6px;

    &:first-child {
      margin-left: 0;
    }
  }

  .mwf-next {
    order: 1;
    margin-left: auto !important;
    margin-right: 0;
  }

  .btn {
    transition: 0.3s ease;

    &[data-type="back"], &[data-type="cancel"] {
      @extend .icon-pfeil-links;
      padding-left: 58px;

      &:before {
        font-family: "Icons", sans-serif;
        position: absolute;
        left: 16px;
        top: 50%;
        font-size: 30px;
        line-height: 1;
        margin-top: -15px;

        @media(max-width: 767px) {
          font-size: 24px;
          margin-top: -12px;
        }
      }
    }

    &[data-type="cancel"] {
      @extend .icon-schliessen;
    }

    &[data-type="next"] {
      @extend .icon-pfeil-rechts;
      background-color: var(--theme-color-primary);
      color: white;

      &:hover {
        box-shadow: 0 0 0 5px rgba(var(--theme-color-primary-rgb), 0.3);
        color: white;
      }
    }
  }
}

.review-wrapper .webform-buttons .submit {
  float: none;
}

.mwf-error-input{
  box-shadow: 0 0 0 2px #ff0000, 0 0 8px 2px #ff0000;
}
