@import '../helpers/helpers';

.pre-home-page {
  .full-width {
    width: 100%;
  }

  .head-img {
    margin: 0 -15px;
  }

  .poster {
    &-desktop {
      display: none;
    }

    &-mobile {
      display: block;
    }
  }

  .submit-error {
    margin-top: 40px;
  }

  .chb,
  .rbn {
    padding-left: 50px;
    min-height: 40px;
    display: flex;
    align-items: center;
    margin-bottom: 26px;

    & input,
    & ins {
      height: 40px;
      width: 40px;
    }

    & ins::after {
      height: 26px;
      width: 26px;
    }
  }

  .check-img-block {
    position: relative;

    .check__img {
      width: 100%;
    }

    .check__icon {
      &.chb {
        position: absolute;
        top: 17px;
        left: 16px;
      }
    }

    .check__header {
      position: relative;
      bottom: 0;
      left: 0;
      right: 0;
      height: 50px;
      line-height: 50px;
      background-color: $darker-blue;
      color: $white;
      font-size: 1.25rem;
      font-weight: bold;
      text-align: center;
    }
  }

  .home-visit-steps {
    @include make-row;
    text-align: left;
    padding: 0;
    margin: 50px 0 10px;
    overflow: hidden;
    counter-reset: step;

    &__item {
      @include make-col(12);
      flex-grow: 1;
      max-width: 100%;
      list-style-type: none;
      height: 60px;
      margin-bottom: 30px;
      display: flex;
      align-items: center;

      &-text {
        display: block;
        margin-left: 77px;
        font-size: .875rem;
        line-height: 1.125rem;
      }

      &::before {
        content: counter(step);
        counter-increment: step;
        width: 60px;
        height: 60px;
        background: $white;
        color: $darker-blue;
        border: 4px solid $darker-blue;
        border-radius: 50%;
        display: block;
        font-size: 2rem;
        font-weight: bold;
        margin: 0 auto;
        position: absolute;
        text-align: center;
      }
    }
  }

  .choose-wickes {
    background-color: $gray-light;
    margin-bottom: 65px;

    &__head {
      font-size: 1.75rem;
      line-height: 2rem;
      padding: 33px 0 40px;
      text-align: center;
      color: $darker-blue;
      font-weight: bold;
    }

    &__list {
      @include make-row;

      &-item {
        @include make-col(12);
        flex-direction: row;
        display: flex;
        margin-bottom: 30px;

        .img {
          width: 60px;
          height: 60px;
          margin-right: 10px;
        }

        .info {
          font-size: .875rem;
          padding-right: 10px;

          &-header {
            font-size: 1rem;
            margin-bottom: 5px;
            font-weight: bold;

            &.purple-icon {
              color: $purple-icon;
            }

            &.teal-icon {
              color: $teal-icon;
            }

            &.gray-icon {
              color: $darker-blue;
            }

            &.green-icon {
              color: $green-icon;
            }

            &.brown-icon {
              color: $brown-icon;
            }

            &.lemon-icon {
              color: $lemon-icon;
            }
          }
        }
      }
    }
  }

  .main-form {
    &__header {
      color: $darker-blue;
      font-size: 1.75rem;
      line-height: 2rem;
      font-weight: bold;
      margin-bottom: 40px;
      text-transform: inherit;
    }

    &__content {
      border-top: dashed 3px $darker-blue;
      padding: 40px 0;
      display: flex;
      flex-direction: column;

      &-info {
        display: flex;
        flex-direction: column;
        margin-bottom: 32px;

        &-numq {
          display: flex;
          flex-direction: row;
          align-items: center;
        }

        &-number {
          color: $darker-blue;
          font-size: 4rem;
          font-weight: bold;
          margin-right: 17px;
        }

        &-question {
          color: $darker-blue;
          font-weight: 500;
          font-size: 1.375rem;
        }

        &-subheader {
          font-weight: 500;
          margin-bottom: 30px;
        }

        &-text {
          @include make-col(12);
        }
      }

      &-addition {
        font-size: 1rem;
        line-height: 1.375rem;
        display: flex;
        flex-direction: column;
        margin-bottom: 39px;

        &-logo {
          width: 62px;
          height: 33px;
          margin-bottom: 18px;
        }

        &-know {
          max-width: 360px;
        }
      }

      &-form {
        .simple-check__list {
          display: flex;
          flex-direction: column;
          flex-wrap: wrap;
        }

        .icon-check__list {
          @include make-row;
          padding: 0;

          .check-img-block {
            margin-bottom: 20px;
          }

          &-icon {
            @include make-col-ready;
            @include make-col(12);

            .check-block-wrap {
              display: flex;
              flex-direction: column;
            }

            .main-form__error {
              margin-bottom: 30px;
            }
          }
        }

        .option-check__list {
          @include make-row;
          padding: 0;

          &-item {
            @include make-col-ready;
            @include make-col(12);
            margin-bottom: 10px;
            height: min-content;

            .option-check__head {
              padding: 33px 21px;
              display: flex;
              flex-direction: row;
              flex-wrap: nowrap;
              align-items: center;
              background-color: $gray-bg;

              &-icon {
                width: 60px;
                height: 60px;
                margin-right: 10px;
              }

              &-text {
                font-size: 1.25rem;
                line-height: 1.5rem;
                font-weight: bold;
              }

              .check-block__list-item {
                margin-left: auto;

                .chb {
                  margin: 0;
                }
              }
            }

            .option-check__content {
              display: none;
              background-color: $gray-bg;
              padding: 0 21px 39px;
            }
          }
        }

        .statement__footnote {
          font-size: .875rem;
          margin: 10px 0;
        }
      }
    }

    &__error {
      display: none;
      color: $red;
      font-size: .875rem;
    }
  }

  .logo-block {
    background-color: $gray-light;
    padding: 60px 0;
    margin-bottom: 40px;

    &__list {
      @include make-row;
      margin: 0 auto;
      flex-direction: column;
      align-items: center;

      &-item {
        margin-bottom: 35px;

        &:last-child {
          margin: 0;
        }
      }
    }
  }

  .considered-block {
    &__header {
      margin-bottom: 35px;
      font-weight: 500;
      font-size: 1.375rem;
      line-height: 1.5rem;
      color: $darker-blue;
      text-align: center;
      text-transform: inherit;
    }

    &__list {
      @include make-row;
      padding: 0;

      &-item {
        @include make-col-ready;
        @include make-col(12);

        .check-img-block {
          margin-bottom: 19px;
        }

        .check-img-list {
          padding-inline-start: 20px;
          margin-bottom: 40px;

          &-item {
            &::marker {
              font-size: 10px;
            }
          }
        }

        &.icon-check-radio__list-item {
          margin-bottom: 20px;

          .check-info-block {
            font-size: 1rem;
            line-height: 1.5rem;
            margin-bottom: 20px;
          }

          .check-img-list {
            padding-inline-start: 0;
          }
        }
      }
    }

    &.icon-check-radio__block {
      margin: 0;
    }
  }

  .trust-installers {
    background-color: $gray-light;
    padding-bottom: 50px;
    margin-bottom: 20px;

    &__poster {
      background-color: $gray-light;
      margin: 0 -15px 20px;
    }

    &__info {
      @include make-row;
      margin: 0 auto;
      padding: 0 20px;

      &-item {
        @include make-col(12);
        font-size: .875rem;
        font-weight: 500;
        flex-direction: row;
        display: flex;
        margin-bottom: 30px;
        align-items: center;

        &-img {
          width: 60px;
          height: 60px;
          margin-right: 10px;
        }
      }
    }

    &__footnote {
      padding: 0 20px;
      font-size: .875rem;
    }
  }

  .feedback-form {
    background-color: $gray-light;
    padding: 40px 0;

    &__header {
      color: $darker-blue;
      font-size: 1.75rem;
      font-weight: bold;
      line-height: 2rem;
      text-align: center;
      margin-bottom: 30px;
      text-transform: inherit;
    }

    &__info {
      text-align: center;
      font-weight: 500;
      line-height: 1.5rem;
      margin-bottom: 25px;
    }

    &__list {
      margin-bottom: 18px;
      display: flex;
      flex-direction: column;
      flex-wrap: wrap;

      &-item {
        margin-bottom: 10px;

        &::marker {
          font-size: .75rem;
        }
      }
    }

    &__submit {
      .btn {
        width: 100%;
        font-size: 1.25rem;
        line-height: 1.5rem;
      }
    }

    &__textarea-error {
      display: none;
    }
  }
}

@include media-breakpoint-up(md) {
  .pre-home-page {
    .order-wrap {
      display: flex;
      flex-direction: column-reverse;
    }

    .head-img {
      margin: 0;
    }

    .poster {
      &-desktop {
        display: block;
      }

      &-mobile {
        display: none;
      }
    }

    .chb,
    .rbn {
      font-size: 1.125rem;
      line-height: 1.5rem;
      margin-bottom: 20px;
    }

    .home-visit-steps {
      text-align: center;
      position: relative;
      top: -30px;
      margin: 0 -15px 48px;

      &__item {
        @include make-col-ready;
        flex-basis: 0;
        height: auto;
        display: block;

        &-text {
          margin: 16px auto 0;
          font-size: 1rem;
          line-height: 1.25rem;
        }

        &::before {
          position: static;
        }
      }
    }

    .choose-wickes {
      margin-bottom: 60px;

      &__head {
        font-size: 2.25rem;
        line-height: 2.625rem;
        padding: 70px 0 60px;
      }

      &__list {
        margin: 0 auto;

        &-item {
          @include make-col(4);
          margin-bottom: 80px;

          .img {
            width: 90px;
            height: 90px;
            margin-right: 15px;
          }

          .info {
            font-size: 1rem;

            &-header {
              font-size: 1.25rem;
            }
          }
        }
      }
    }

    .main-form {
      &__header {
        color: $darker-blue;
        font-size: 2.25rem;
        line-height: 2.6rem;
        font-weight: bold;
        margin-bottom: 75px;
      }

      &__content {
        flex-wrap: wrap;

        &.block {
          &-row {
            flex-direction: row;

            .main-form__content-form {
              margin-top: 24px;
            }
          }

          &-col {
            flex-direction: column;

            .main-form__content {
              &-info {
                @include make-col(12);
              }

              &-addition {
                @include make-col(12);
              }

              &-form {
                @include make-col(12);
              }
            }
          }
        }

        &-info {
          @include make-col(6);
          order: 0;
          padding-right: 80px;

          &-number {
            font-size: 5rem;
          }

          &-question {
            font-size: 1.75rem;
          }

          &-subheader {
            font-size: 1.125rem;
            margin-left: 66px;
          }

          &-text {
            font-size: 1.125rem;
            margin-left: 66px;
          }
        }

        &-addition {
          @include make-col(6);
          font-size: 1.125rem;
          line-height: 1.5rem;
          flex-direction: row;
          order: 1;
          margin-bottom: 0;

          &-logo {
            margin: 0 12px 0 0;
          }
        }

        &-form {
          @include make-col(6);
          order: 0;

          .simple-check__list {
            flex-direction: row;

            &-item {
              @include make-col(6);
              padding-right: 10px;
            }
          }

          .icon-check__list {
            .check-img-block {
              margin-right: 30px;
            }

            &-icon {
              @include make-col(6);
              margin-bottom: 60px;

              .check-block-wrap {
                flex-direction: row;
              }

              .main-form__error {
                margin-bottom: 0;
              }
            }
          }

          .option-check__list {
            &-item {
              @include make-col(6);
              margin-bottom: 30px;

              .option-check__head {
                padding: 28px 30px;

                &-icon {
                  width: 70px;
                  height: 70px;
                  margin-right: 21px;
                }
              }

              .option-check__content {
                padding: 31px 30px 56px;
              }
            }

            .check-block__list {
              @include make-row;

              .check-block__list-item {
                @include make-col(6);
                padding: 0 15px;
              }
            }
          }

          .statement__footnote {
            font-size: 1rem;
            margin: 20px 0;
          }
        }
      }

      &__error {
        font-size: 1rem;
      }
    }

    .logo-block {
      padding: 105px 0;
      margin-bottom: 80px;

      &__list {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;

        &-item {
          padding: 0 15px;
          margin: 0;

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

          &:last-child {
            padding-right: 0;
          }
        }
      }
    }

    .considered-block {
      margin-bottom: 64px;

      &__header {
        margin-bottom: 35px;
        font-size: 1.75rem;
        line-height: 2rem;
      }

      &__list {
        &-item {
          @include make-col(3);

          .check-img-block {
            margin-bottom: 28px;
          }
        }

        .icon-check-radio__list-item {
          margin-bottom: 20px;
        }
      }
    }

    .trust-installers {
      margin-bottom: 70px;

      &__poster {
        margin: 0 -15px 50px;
      }

      &__info {
        flex-direction: row;
        padding: 0 50px;

        &-item {
          @include make-col(4);
          font-size: 1rem;
          align-items: unset;
          padding-right: 10px;

          &-img {
            width: 52px;
            height: 52px;
            margin-right: 15px;
          }

          &-text {
            width: 230px;
          }
        }
      }

      &__footnote {
        padding: 0 50px;
      }
    }

    .feedback-form {
      padding: 70px 0;

      &__header {
        font-size: 2.25rem;
        line-height: 2.625rem;
      }

      &__info {
        font-size: 1.125rem;
        margin-bottom: 35px;
      }

      &__list {
        margin-bottom: 30px;
        padding: 0 15px;
        display: flex;
        flex-direction: row;

        &-item {
          @include make-col(6);
          margin-bottom: 25px;
          padding-left: 15px;
          font-size: 1.125rem;
          line-height: 1.5rem;
        }
      }

      &__submit {
        text-align: center;

        .btn {
          width: 410px;
          height: 70px;
        }
      }
    }
  }
}

@include media-breakpoint-only(md) {
  .pre-home-page {
    .choose-wickes {
      &__list {
        &-item {
          @include make-col(6);
        }
      }
    }

    .main-form {
      &__content {
        &-form {
          @include make-col(7);

          .icon-check__list {
            .check-img-block {
              margin-right: 0;
            }

            &-icon {
              @include make-col(6);

              .check-block-wrap {
                display: flex;
                flex-direction: column;
              }
            }
          }

          .option-check__list {
            .check-block__list {
              .check-block__list-item {
                @include make-col(12);
              }
            }
          }
        }

        &-info {
          @include make-col(5);
          padding-right: 40px;
        }

        &-addition {
          @include make-col(6);
        }
      }
    }

    .logo-block {
      padding: 30px 0;

      &__list {
        flex-wrap: wrap;

        &-item {
          @include make-col(4);
          text-align: center;
          margin-bottom: 10px;
        }
      }
    }

    .considered-block {
      &__list {
        &-item {
          @include make-col(6);
        }
      }
    }

    .trust-installers {
      &__info {
        &-item {
          @include make-col(6);
        }
      }
    }

    .feedback-form {
      padding: 30px 0;
    }
  }
}
