input, textarea, select {
  font-family: $body-font-family;
  color: $body-font-color;
  line-height: 1.2em;
}

#contentWrapper {
  input, textarea, select {
    border: none;
    background-color: $lightgrey;
    padding: 10px;
    width: 100%;
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box; /* Firefox, other Gecko */
    box-sizing: border-box; /* Opera/IE 8+ */
    font-style: normal;
    font-family: $body-font-family;
    font-size: 0.85em;
    line-height: 1.2;
    color: $grey5;
    height: 36px;

    &[type=radio]{
      height: auto;
    }
  }
  button {
    font-family: $body-font-family;
  }

  ::-webkit-input-placeholder {
    color: $grey3;
  }
  :-moz-placeholder { /* Firefox 18- */
    color: $grey3;
  }
  ::-moz-placeholder { /* Firefox 19+ */
    color: $grey3;
    opacity: 1;
  }
  :-ms-input-placeholder {
    color: $grey3;
  }

  textarea {
    resize: vertical; /* user can resize vertically, but width is fixed */
    min-height: 100px;
  }
  select::-ms-expand {
    display: none;
  }
  /*the select wrapper div*/
  .select-style {
    padding: 0;
    margin: 0;
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: $lightgrey;
    z-index: 3;
    @extend %pseudoIconElement;
    @extend .icon-arrow;

    &:before {
      font-size: 10px;
      position: absolute;
      right: 10px;
      top: 12px;
      display: block;
      @include transform(rotate(90deg));
    }
    /*the select field*/
    select {
      width: 100%;
      color: $grey3;
      margin: 0;
      padding: 10px;
      -webkit-appearance: none;
      -moz-appearance: none;
      -ms-appearance: none;
      -o-appearance: none;
      appearance: none;
      border: none;
      box-shadow: none;
      background-color: transparent;
      background-image: none;
      position: relative;
      z-index: 4;
      display: block;
      &:focus {
        outline: none;
      }
    }
  }

  .select-input-style {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 4;
    display: block;
    @extend %pseudoIconElement;
    @extend .icon-arrow;

    &:before {
      font-size: 10px;
      position: absolute;
      right: 10px;
      top: 10px;
      display: block;
      @include transform(rotate(90deg));
    }
    div {
      font-family: $body-font-family;
    }
  }

  label {
    display: none;
  }
  legend {
    display: none;
  }
  .checkbox,
  .formElement.radio {
    position: relative;
    margin-left:16px;
    padding-top: 6px;
    padding-bottom: 6px;

    label {
      display: block;
    }
  }

  /*Checkbox and Radios*/
  /* graceful degradation for ie8 */
  input[type='checkbox'],
  input[type='radio'] {
    width: auto;
    float: left;
    margin-right: .75em;
    background: transparent;
    border: none;
  }

  input[type='checkbox']:checked,
  input[type='checkbox']:not(:checked),
  input[type='radio']:checked,
  input[type='radio']:not(:checked) {
    background: transparent;
    position: relative;
    visibility: hidden;
    margin: 0;
    padding: 0;
    margin-left: -16px;
  }
  input[type='checkbox'] + label,
  input[type='radio'] + label {
    cursor: pointer;
    font-size: 1.00em;
    line-height: 1.2;
    color: $grey5;
    padding-left: 27px;
  }
  input[type='radio'] + label {
    padding-left: 12px;
  }

  input[type='checkbox']:checked + label::before,
  input[type='checkbox']:not(:checked) + label::before,
  input[type='radio']:checked + label::before,
  input[type='radio']:not(:checked) + label::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    line-height: 14px;
    position: relative;
    border: 1px solid $grey5;
    background: white;
    margin-right: 10px;
    text-align: center;
    vertical-align: middle;
    position: absolute;
    left:2px;
  }
  input[type=radio] + label::before {
    border-radius: 30px;
  }

  input[type='radio']:hover + label::before,
  input[type='checkbox']:hover + label::before{
    background: $grey1;
    /*box-shadow: inset 0 0 0 1px white;*/
  }

  input[type='radio']:checked + label::before {
    content: '\2022';
    font-size: 14px;
    background: $grey1;
    /*box-shadow: inset 0 0 0 1px white;*/
  }

  input[type='checkbox']:checked + label:before{
    @extend %pseudoIconElement;
    content: "\ea10";
    font-size: 14px;
    background: $grey1;
  }

  .submitButton {
    float: none;
    margin-left:16px;
    position: relative;
    @extend %pseudoIconElement;
    @extend .icon-arrow;

    @include box-shadow($std-box-shadow);
    line-height: 38px;
    margin-top:10px;
    @include breakpoint($mobile-m) {
      width: auto;
      float: right;
      margin-left:0;
      margin-top: 18px;
    }
    @include breakpoint($mobile-xl) {
      margin-left: 16px;
    }


    input[type='submit'],
    input[type='reset'],
    input[type='button'] {
      background-color: transparent;
      color: #4c4c4c;
      cursor: pointer;
      display: block;
      font-size: 1.2em;
      font-weight: 600;
      line-height: 1.2em;
      padding: 8px 64px 9px 30px;
      position: relative;
      z-index: 5;
    }
    &::before {
      position: absolute;
      z-index: 1;
      right: 0;
      background: $aqua none repeat scroll 0 0;
      color:#fff;
      text-align: center;
      display: inline-block;
      height: 100%;
      font-size:24px;
      line-height: 38px;
      vertical-align: middle;
      width: 38px;
    }
  }

  .tx-indexedsearch-search-submit{
    @extend .submitButton;
  }

  /*PM Confirmation page*/
  .powermail_confirmation{
    h3 {
      margin-top: 30px
    }
    .submitButton.buttonLeft {
      width:100%;
      margin-left:0;
      @include breakpoint($mobile-m) {
        width:auto;
        float:left;
      }
      &::before {
        left:0;
        -ms-transform: rotate(180deg); /* IE 9 */
        -webkit-transform: rotate(180deg); /* Safari and Chrome */
        -o-transform: rotate(180deg); /* Opera */
        -moz-transform: rotate(180deg); /* Firefox */
      }
      input[type='submit'],
      input[type='reset'] {
        padding:10px;
        @include breakpoint($mobile-m) {
          padding:8px 28px 9px 50px;
        }
      }
    }
    .submitButton.buttonRight {
      width:100%;
      margin-left:0;
      input[type='submit'],
      input[type='reset'] {
        padding:10px;
        @include breakpoint($mobile-m) {
          padding: 8px 64px 9px 30px;
        }
      }


      @include breakpoint($mobile-m) {
        width:auto;
        float:right;
      }
    }
    table {
      td {
        padding:5px;
        padding-left:0;
      }
    }
  }

  input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill {
    background-color: #f2f2f2;
  }
}

fieldset {
  border: none;
  margin: 0;
  padding: 0;
  position: relative;
  margin-left: -16px;
  //margin-top: 10px;
  .formElement,.tx-indexedsearch-form {
    padding-left: 16px;
    margin-bottom: 10px;
  }
}

.powermail_radio{
  height: auto;
}
/* Parslexy error handling*/
ul.parsley-errors-list,
ul.powermail-errors-list{
  list-style: outside none none;
  margin-bottom: 4px;
  margin-left: 10px;
  margin-top: 6px;
  padding: 0;
  margin: 0;
  color: #D8000C;
  background: #FFBABA;
  border-style: solid;
  border-width: 0 1px 1px;
  font-family: Arial, Helvetica, sans-serif !important;
  li {
    font-size: 0.85em;
    margin: 0;
    margin-bottom: 3px;
    padding-top: 3px;
    &:before {
      display: none;
    }
  }
}

.powermail_fieldwrap_type_radio{
  margin-bottom: 10px;

  .formElement{
    margin-bottom: 0;
  }

  .parsley-error{
    background: #FFBABA;
  }

  .powermail_field_error_container{
    clear: both;
  }

  ul.parsley-errors-list {
    border: none;
    background: none;
  }
}

#calculator-form ul.parsley-errors-list {
  li {
    width:auto;
    margin:0 0 16px -4px;
  }
}
.powermail_input.parsley-error,
.powermail_textarea.parsley-error,
.powermail_input.powermail_field_error,
.powermail_select.powermail_field_error,
select powermail_select.powermail_field_error{
  border: 1px solid #D8000C !important;
}


/* Special Powrmail Field Type Boxheader*/
.formElement-boxheader {
  margin-top: 20px;
  margin-bottom: 20px;
  border-top: 1px $grey3 solid;
  .topleft {
    position: relative;
  }

  .smallContent &{
    margin-left: 16px;
  }
}



/* Accordion */
.accordionHeader {
  margin-left: 16px;
  padding-left: 3px;
  padding-bottom: 5px;
  margin-bottom: 10px;
  border-bottom: 1px $grey3 solid;
  .icon-arrow {
    display: inline-block;
    margin-left: 5px;
  }
  .icon-arrow:before {
    font-size: 10px;
    color: $grey3;
  }
}

.accordionHeader.ui-accordion-header-active {
  .icon-arrow {
    margin-left: 10px;
    transform: rotate(90deg);
    -ms-transform: rotate(90deg); /* IE 9 */
    -webkit-transform: rotate(90deg); /* Safari and Chrome */
    -o-transform: rotate(90deg); /* Opera */
    -moz-transform: rotate(90deg); /* Firefox */
  }
}

/*the grid column definition*/
.grid-33 {
  @include float-span(12);
  padding: 0;
  margin: 0;
  @include breakpoint($mobile-m) {
    @include float-span(4);
    padding: 0;
    margin: 0;
  }
}

.grid-50 {
  @include float-span(12);
  padding: 0;
  margin: 0;
  @include breakpoint($mobile-m) {
    @include float-span(6);
    padding: 0;
    margin: 0;
  }
}

.grid-66 {
  @include float-span(12);
  padding: 0;
  margin: 0;
  @include breakpoint($mobile-m) {
    @include float-span(8);
    padding: 0;
    margin: 0;
  }
}

.grid-75 {
  @include float-span(12);
  padding: 0;
  margin: 0;
  @include breakpoint($mobile-m) {
    @include float-span(9);
    padding: 0;
    margin: 0;
  }
}

.grid-100 {
  @include float-span(12);
  padding: 0;
  margin: 0;
  @include breakpoint($mobile-m) {
    @include float-span(12);
    padding: 0;
    margin: 0;
    padding-left: 0 !important;
  }
}

.grid-25 {
  @include float-span(12);
  padding: 0;
  margin: 0;
  @include breakpoint($mobile-m) {
    @include float-span(3);
    padding: 0;
    margin: 0;
  }
}

.grid-10 {
  @include float-span(12);
  padding: 0;
  margin: 0;
  @include breakpoint($mobile-m) {
    @include float-span(1);
    padding: 0;
    margin: 0;
  }
}

.grid-100 {
  @include float-span(12);
  padding: 0;
  margin: 0;
  @include breakpoint($mobile-m) {
    @include float-span(12);
    padding: 0;
    margin: 0;
  }
}

.powermail_fieldwrap{
  @extend %clearfix;
}

.powermail_fieldwrap_productinfos{
  > div{
    display: flex;
    justify-content: flex-start;
    flex-flow: wrap row;
    align-items: flex-start;

    > div.formElement{
      width: 100%;
      padding-left: 0;

      @include breakpoint($mobile-m){
        width: 50%;
      }

      @include breakpoint($mobile-l){
        width: 100%;
      }

      @include breakpoint($mobile-xl){
        width: 50%;
      }

      @include breakpoint($desktop-s){
        width: 33%;
      }
    }
  }

  .checkbox{
    margin-left: 16px;
    position: relative;
  }
}

.powermail_input,
.powermail_textarea{
  &.parsley-error{
    outline: 1px solid #D8000C;
  }
}

ul.parsley-errors-list{
  z-index: -1;
  padding: 0;
  margin: 0 -1px;
  color: #D8000C;
  background: #FFBABA;
  border-style: solid;
  border-width: 0 1px 1px;

  li{
    padding: 6px;
    margin: 0;
    &:before{
      content: normal;
    }
  }
}

.radioElement {
  position: relative;
  z-index:1;
}

.powermail_fieldwrap_datenschutzerklaerung {
  font-size: 12px;
}

#contentWrapper .tx-sremailsubscribe-pi1 {
  legend {
    font-weight: bold;
    padding: 0;
    display: block;
  }
  label {
    display: block;
    span {
      color:red;
    }
  }
  a {
    background-image: none;
    padding-left: 0;
    text-decoration: none;
  }
  input[type='checkbox']:checked,
  input[type='checkbox']:not(:checked) {
    margin-left: 0;
  }
  fieldset {
    margin-left:0;
  }
  input.tx-sremailsubscribe-pi1-submit {
    margin-bottom:10px;
  }
  .checkbox {
    margin-left:0;
  }
  .tx-sremailsubscribe-pi1-error {
    color:red;
  }
}


.tx-sremailsubscribe-pi1 dd,
.tx-sremailsubscribe-pi1 dt {
  width:100%;
  text-align:left;
  margin-top: 5px;
  margin-bottom: 5px;
}

@media only screen and (min-width: 1024px) {

  .tx-sremailsubscribe-pi1 dt {
    clear: both;
    text-align: left;
    padding-right: 1em;
    width: 100%;
  }
}
