@import url('../../commons/blocks/help-me-select/help-me-select.css');

.help-me-select {
  background: none;
  padding-bottom: 16px;

  @media (width >=1024px) {
    padding-bottom: 19px;
  }

  .help-journey__steps.g-container {
    padding-left: 20px;

    @media (width >=1024px) {
      padding: 0 56px;
    }

    .help-journey__steps__container {
      border-bottom: 1px solid var(--dark-color);
      padding: 0 0 16px 0;
      gap: 40px;

      @media (width >=1024px) {
        gap: 80px;
        margin-bottom: 0;
      }

      .steps {
        flex-grow: inherit;
      }

      .steps[data-step='2'].active {
        padding-left: 20px;
        padding-right: 20px;
        margin-left: -20px;
      }

      span {
        color: var(--tertiary-black);
        text-transform: uppercase;
        font-family: var(--body-font-family);
        font-size: var(--body-font-size-xxs);
        font-weight: var(--fw-400);
        line-height: 1.125rem;
        position: unset;
        letter-spacing: 0.28px;

        @media (width >=1024px) {
          font-size: 0.75rem;
        }

        span {
          margin-left: 0;
        }
      }

      span:last-child {
        span {
          padding-right: 20px;
        }
      }

      .steps.active {
        padding: 0;
        position: relative;
      }

      .steps.active>span {
        color: var(--primary-blue-700);
        font-weight: var(--fw-700);
      }

      .steps.active ::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -16px;
        width: 100%;
        height: 2px;
        background-color: #171c8f;
        z-index: 2;
      }

      .steps.completed>span {
        color: var(--primary-toast-arena-green);
      }

      .steps i {
        display: none;
      }

      .steps i::before {
        content: none;
      }

      .steps:not(:last-of-type):after {
        content: none;
      }

      .steps.disabled {
        opacity: 1;
        cursor: not-allowed;
        pointer-events: none;
      }
    }
  }

  .range-questions {
    height: 91px;
    margin-bottom: 40px;

    @media (width >=1024px) {
      margin-bottom: 64px;
    }

    .range-slider {
      background: var(--bars-unselected);
      max-width: 296px;

      @media (width >=768px) {
        max-width: 100%;
      }

      @media (width >=1366px) {
        max-width: 557px;
        left: 10px;
      }

      .range-slider__indicators {
        bottom: 44px;
      }

      .range-slider__slider--to {
        top: 0;
      }

      .range-slider__value {
        width: 54px;
        padding: 1px 10px;
        background-color: var(--secondary-gray-20);
        color: var(--primary-blue-700);
        font-weight: var(--fw-700);
        line-height: 24.615px;
        height: 22px;
      }

      .range-slider__value--min {
        margin-left: -2px;
      }

      .range-slider__value--max {
        margin-left: -5px;
      }

      @media (width >=1024px) {
        .range-slider__value--min {
          margin-left: 3px;
        }

        .range-slider__value--max {
          margin-left: 0;
        }
      }

      .range-slider__scale {
        top: 10px;
        width: calc(100% - 12px);
        /* gap: 20px; */
        /* The width and gap are set according to the design, but now we have more data, that's why it's hidden. */

        i {
          height: 0;
          /* width: auto; */

          span {
            margin-top: 16px;
            width: 22px;
            font-size: 0.875rem;
            color: var(--tertiary-black);

            @media (width >=1024px) {
              width: 37px;
            }
          }
        }
      }

      .range-slider__slider::-webkit-slider-thumb {
        appearance: none;
        border: 6px solid var(--primary-blue-700);
        background: var(--secondary-gray-10);
        cursor: pointer;
        height: 24px;
        pointer-events: all;
        width: 24px;
      }

      .range-slider__slider::-moz-range-thumb {
        border: 6px solid var(--primary-blue-700);
        background: var(--secondary-gray-10);
        cursor: pointer;
        height: 24px;
        pointer-events: all;
        width: 24px;
      }

      .range-slider__slider::-webkit-slider-thumb:active {
        box-shadow: 0 0 8px var(--primary-main);
      }

      .range-slider__slider::-moz-range-thumb:active {
        box-shadow: 0 0 8px var(--primary-main);
      }
    }
  }

  .range-slider__slider {
    left: -6px;

    @media (width >=1024px) {
      left: 0;
    }
  }

  .toast-msg.arena-toast {
    position: relative;
    background: var(--secondary-toast-arena-blue);
    padding: 12px 19px;
    bottom: 20px;
    top: unset;
    left: 0;
    width: 100%;

    @media (width >=1024px) {
      position: absolute;
      padding: 16px 24px;
      margin: unset;
      bottom: -5px;
    }

    @media (width >=768px) {
      position: absolute;
      bottom: 0;
      width: 60%;
    }

    @media (width >=1366px) {
      width: calc((var(--grid-formula) * 8) + (var(--grid-gutter-width) * (8 - 1)));
    }

    p {
      font-size: 0.625rem;
      font-family: var(--body-font-arena);
      color: var(--toast-color);
      line-height: 1.125rem;

      @media (width >=1024px) {
        font-size: 0.75rem;
      }
    }
  }

  .disclaimer-text {
    width: max-content;
  }

  & .g-row {
    .questionnaire {
      .questionnaire__content {
        .range-slider__scale span {
          @media (width >=1024px) {
            font-size: 16px;
          }
        }
      }
    }
  }
}

.help-me-section {
  background: none;
  min-height: auto;

  .g-row {
    background: none;

    .g-lg-5 {
      @media (width >=1024px) {
        width: 100%;
      }
    }

    .questionnaire {
      padding: 0;

      &.separator-lg {

        &::before,
        &::after {
          content: none;
        }
      }

      .questionnaire_steps {
        display: none;
      }

      .questionnaire_h2 {
        color: var(--tertiary-black);
        font-size: var(--heading-font-size-s);
        font-weight: var(--fw-700);
        line-height: 28px;

        @media (width >=768px) {
          margin-top: 24px;
          width: 402px;
        }

        @media (width >=1024px) {
          margin: 40px 0 24px;
        }

        @media (width >=1366px) {
          width: 360px;
        }
      }

      .questionnaire_ul {
        gap: 16px 16px;
        margin-bottom: 8px;

        @media (width >=1024px) {
          grid-template-columns: repeat(4, minmax(180px, max-content));
          gap: 16px;
          margin-bottom: 64px;
        }

        .questionnaire_li {
          border: 0.5px solid var(--bars-unselected);
          display: flex;
          justify-content: center;
          align-items: center;
          height: 50px;
          transform: scale(1);

          @media (width >=1024px) {
            min-width: 180px;
          }

          .checkbox_wrapper {
            justify-content: center;
            padding: 12px;
            width: 100%;

            @media (width >=1024px) {
              padding: 12px 24px;
            }

            &:has(input:disabled) .custom_label.normal-text {
              color: var(--bars-unselected);

              @media (width >=1024px) {
                color: var(--inactive-content);
              }
            }

            span {
              color: var(--tertiary-black);
              text-align: center;
              font-family: var(--body-font-arena);
              line-height: normal;
            }

            .hidden_checkbox,
            .custom_checkbox {
              display: none;
            }

            .custom_label {
              text-align: center;
              line-height: normal;
              min-height: 16px;
              color: var(--tertiary-black);

              @media (width >=1024px) {
                font-size: 12px;
                line-height: 16px;
              }

              &.bold-text {
                color: var(--primary-blue-700);
                font-weight: var(--fw-700);
              }
            }
          }
        }

        .questionnaire_li:has(.custom_label.bold-text) {
          border: 1px solid var(--primary-blue-700);
        }
      }

      .arena-range-text {
        display: block;

        &.range-info {
          margin: 0px 0 24px;
          text-align: left;
          font-style: normal;
          font-size: 0.875rem;
          line-height: 1.25rem;
          color: var(--inactive-content);
        }
      }

      .nexa-range-text {
        display: none;
      }

      .navigation {
        justify-content: flex-end;

        @media (width >=768px) {
          width: auto;
        }

        @media (width >=1024px) {
          justify-content: flex-end;
        }

        button {
          @media (width >=768px) {
            flex: none;
          }
        }

        .button-cta {
          @media (width >=768px) {
            height: 34px;
          }

          @media (width >=1024px) {
            height: 42px;
            padding: 12px 24px;
          }
        }

        .button-cta--black-bg {
          width: 103px;

          @media (width >=1024px) {
            width: 102px;
          }
        }

        .button-cta--black-outline {
          width: 86px;

          @media (width >=1024px) {
            width: 102px;
          }
        }
      }
    }
  }
}

.help-me-select-wrapper .questionnaire__content.questionnaire__checkbox {
  .disclaimer-text {
    margin-top: 40px;
    margin-bottom: 16px;
    font-family: var(--body-font-arena);
    font-style: normal;
    font-size: 0.75rem;
    line-height: 1rem;
    color: var(--tertiary-black);

    @media (width >=1024px) {
      bottom: 12px;
      margin: 0;
      font-size: 0.875rem;
      line-height: 1.25rem;
      top: auto;
    }
  }

  .image-variation {
    margin-bottom: 8px;

    @media (width >=1024px) {
      grid-template-columns: repeat(3, 296px);
      margin-bottom: 64px;
    }

    li {
      border: 1px solid var(--light-grey-shade-5);
      padding: 8px;
      width: auto;
      height: 89px;

      @media (width >=1024px) {
        padding: 24px 8px 8px 24px;
        margin-left: unset;
        height: 155px;
      }

      label {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;

        @media (width >=1024px) {
          gap: 0;
        }

        span {
          text-transform: inherit;
          order: -1;
          color: var(--tertiary-black);
          line-height: normal;
          align-self: flex-start;

          @media (width >=1024px) {
            order: -1;
            text-align: left;
            font-size: 16px;
            line-height: 20px;
          }
        }

        img {
          order: 0;
          width: 95px;
          height: 53px;
          margin: inherit;
          align-self: flex-end;

          @media (width >=1024px) {
            width: 198px;
            height: 110px;
          }
        }

        input[type='checkbox'] {
          display: none;
        }
      }
      label:has(input:disabled) span {
        color: var(--inactive-content);
      }
    }

    li.selected {
      clip-path: none;
      background-color: unset;
      border-color: var(--primary-blue-700);
      width: unset;
      padding: 8px;
      height: 89px;
      margin-left: 0;

      @media (width >=1024px) {
        padding: 24px 8px 8px 24px;
        height: 155px;
      }

      span {
        color: var(--primary-blue-700);
        font-weight: var(--fw-700);
      }

      img {
        filter: unset;
      }
    }
  }
}

@media (width >=1366px) {
  .help-me-select {
    background: none;

    .help-journey__steps.g-container {
      .help-journey__steps__container {
        .steps[data-step='2'].active {
          padding-left: 22px;
          padding-right: 16px;
          margin-left: -20px;
        }
      }
    }
  }
}