@import '../helpers/helpers';

.trade-page {
  .register-wrap {
    text-align: center;
    width: 100%;
    padding: 10px;
  }

  & img {
    max-width: 100%;
  }

  .card-housebarrassment {
    padding: 10px;
    min-height: 380px;
  }

  .housebarrassment-card {
    display: flex;
    justify-content: space-around;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background-color: $blue-dark;
  }

  .first-card {
    background: linear-gradient(315deg, $blue-dark 0%, $blue-darker 100%);
  }

  .second-card {
    background: linear-gradient(315deg, $virid-darker 0%, $virid-darkest 100%);
  }

  .third-card {
    background: linear-gradient(315deg, $green-dark 0%, $green 100%);
  }

  .percentage-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 250px;
  }

  .installer-benefit {
    color: $white;
    text-align: center;
    font-size: 10em;
    font-weight: 900;
    line-height: 1em;
  }

  .installer-benefit-info {
    color: $white;
    font-size: 1.5em;
    font-weight: 300;
  }

  .installer-benefit-list {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
  }

  .center-fix span,
  .center-fix {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
    padding: 10px;
    text-align: center;
    filter: drop-shadow(0 0 2px $black-transparent75);
  }

  .page-header {
    border-bottom: 0;
  }

  // sass-lint:disable no-important
  .is-green {
    color: $green !important;
    float: left;
    position: relative;
    margin-right: 6px;
    margin-top: 4px;
  }

  .installer-testimonial-container {
    position: relative;
    color: $white;
    padding: 2em;
    padding-left: 7em;
    margin-left: 100px;
    margin-bottom: 2em;
    text-align: center;
    font-weight: 300;
  }

  .installer-testimonial-name {
    font-weight: 500;
    margin-bottom: 0;
  }

  .installer-testimonial-portrait {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: $white;
    padding: 3px;
    box-shadow: 0 0 10px $black-transparent60;
    left: -80px;
  }

  .installer-testimonial-portrait img {
    width: 150px;
    height: auto;
  }

  .mark {
    background: $deep-red;
  }

  .mike {
    background: $deep-green;
  }

  .lee {
    background: $deep-blue;
  }

  .installer-benefit-list li {
    font-size: 1.3em;
  }

  .header-mobile {
    display: none;
  }

  .form-trade-page .yesNoCheckboxLabel input {
    &[type='checkbox'] {
      transform: scale(1.6);
    }
  }

  .errorContainer {
    display: none;
  }
}

@media (max-width: 1199px) {
  .trade-page {
    .card-housebarrassment {
      min-height: 320px;
    }

    .installer-testimonial-container {
      padding: 1.2em;
      padding-left: 6em;
    }
  }
}

@media (max-width: 991px) {
  .trade-page {
    .card-housebarrassment {
      min-height: 240px;
    }

    .installer-benefit {
      font-size: 6em;
    }

    .installer-benefit-info {
      font-size: 1em;
    }

    .percentage-container {
      height: 200px;
    }

    .trade-page .img-responsive {
      padding-top: 30px;
    }
  }
}

@media (max-width: 767px) {
  .trade-page {
    .percentage-container {
      height: 100px;
    }

    .card-housebarrassment {
      min-height: 160px;
    }

    .heading-2,
    h2 {
      font-size: 1rem;
      line-height: 1.3rem;
    }
  }
}

@media (max-width: 575px) {
  .trade-page {
    .header-mobile {
      display: block;
    }

    .header-desktop {
      display: none;
    }
  }
}

@media (max-width: 500px) {
  .trade-page {
    .installer-testimonial-container {
      padding-left: 40px;
      padding-right: 40px;
      padding-top: 7em;
      padding-bottom: 30px;
      margin-left: 0;
      margin-top: 100px;
    }

    .installer-testimonial-portrait {
      top: -80px;
      left: 50%;
      transform: translateX(-50%);
    }
  }
}
