@use "../../../../styles/abstracts/variables";

.steps {
  margin-bottom: 4rem;

  font-family:
    variables.$font-onest,
    sans-serif;

  h2 {
    color: #fff;

    font-size: 1rem;
    font-weight: 600;

    margin-bottom: 0.5rem;
  }

  p {
    color: rgba(
      255,
      255,
      255,
      0.65
    );

    font-size: 0.85rem;

    line-height: 1.7;

    margin-bottom: 1.75rem;
  }

  label {
    display: block;

    margin-bottom: 0.5rem;

    font-size: 0.8rem;
    font-weight: 500;

    color: rgba(
      255,
      255,
      255,
      0.9
    );
  }

  input,
  select {
    width: 100%;

    height: 3.2rem;

    border-radius: 12px;

    background: rgba(
      255,
      255,
      255,
      0.04
    );

    border: 1px solid
      rgba(
        255,
        255,
        255,
        0.08
      );

    color: #fff;

    font-size: 0.9rem;

    padding: 0 1rem;

    transition: all 0.25s ease;

    &:focus {
      border-color: #f79318;

      box-shadow:
        0 0 0 4px
        rgba(
          247,
          147,
          24,
          0.12
        );

      background: rgba(
        255,
        255,
        255,
        0.06
      );
    }
  }

  input::placeholder {
    color: rgba(
      255,
      255,
      255,
      0.4
    );
  }

  select {
    appearance: none;

    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6H0z' fill='%23FFFFFF'/%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 10px;
  }

  .custom_input {
    color: white;
  }

  &__field {
    margin-bottom: 1.5rem;
  }

  &__row {
    display: grid;

    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );

    gap: 1.25rem;

    margin-bottom: 1rem;

    @media (
      max-width: 768px
    ) {
      grid-template-columns: 1fr;
    }

    &--password {
      position: relative;

      span {
        position: absolute;

        right: 1rem;
        top: 2.6rem;

        cursor: pointer;

        font-size: 0.8rem;

        color: rgba(
          255,
          255,
          255,
          0.65
        );
      }
    }
  }

  &--options {
    label {
      display: block;

      margin-bottom: 0.75rem;
    }

    &--item {
      display: flex;

      align-items: center;

      gap: 1.2rem;

      padding: .5rem 1rem;

      margin-bottom: 1rem;

      border-radius: 10px;

      border: 1px solid
        rgba(
          255,
          255,
          255,
          0.08
        );

      background: rgba(
        255,
        255,
        255,
        0.03
      );

      cursor: pointer;

      transition: all 0.25s ease;

      position: relative;

      &:hover {
        border-color: rgba(
          247,
          147,
          24,
          0.25
        );
      }

      span {
        width: 42px;
        height: 42px;

        border-radius: 10px;

        background: rgba(
          247,
          147,
          24,
          0.12
        );

        display: flex;
        align-items: center;
        justify-content: center;

        flex-shrink: 0;
      }

      h2 {
        font-size: 0.8rem;

        margin: 0;

        color: white;
      }

      p {
        margin: 0.3rem 0 0;

        font-size: 0.7rem;

        color: rgba(
          255,
          255,
          255,
          0.6
        );
      }

      &--active {
        @extend .steps--options--item;

        border-color: #f79318;

        background: rgba(
          247,
          147,
          24,
          0.08
        );
      }
    }
  }

 &__submit {
  width: 100%;
  margin-top: 1rem;
  height: 3rem;

  border: none;

  border-radius: 12px;

  background: linear-gradient(
    180deg,
    #f9a826 0%,
    #f79318 100%
  );

  color: #0d0d10;

  font-size: 0.95rem;
  font-weight: 600;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 0.5rem;

  cursor: pointer;

  transition: all 0.25s ease;

  box-shadow:
    0 10px 30px
    rgba(
      247,
      147,
      24,
      0.2
    );

  &:hover {
    transform: translateY(-1px);

    box-shadow:
      0 14px 40px
      rgba(
        247,
        147,
        24,
        0.28
      );
  }

  &:disabled {
    opacity: 0.5;

    cursor: not-allowed;

    box-shadow: none;

    transform: none;
  }
}

  &__buttons {
    display: flex;
    gap: 1rem;

    margin-top: 2rem;

    @media (
      max-width: 768px
    ) {
      flex-direction: row;
      height: 3rem !important;
      // background: green;
    }

    &__button {
      height: 3rem;
      border-radius: 12px;

      display: flex;
      align-items: center;
      justify-content: center;

      gap: 0.5rem;

      font-size: 0.9rem;
      font-weight: 500;

      cursor: pointer;

      transition: all 0.25s ease;

       @media ( max-width: 768px) {
          flex-direction: column;
          height: 3rem !important;
        }

      &--prev {
        @extend .steps__buttons__button;
        flex: 1;

        border: 1px solid
          rgba(
            255,
            255,
            255,
            0.08
          );

        color: white;

        background: rgba(
          255,
          255,
          255,
          0.03
        );
      }

      &--next {
        @extend .steps__buttons__button;
        flex: 1;

        background: #f79318;

        color: #0d0d10;

        &:hover {
          transform: translateY(
            -1px
          );
        }

        &--disabled {
          @extend .steps__buttons__button;

          flex: 1;

          background: #f79318;

          color: #0d0d10;

          opacity: 0.45;

          cursor: not-allowed;

          pointer-events: none;
        }
      }
    }
  }
}

.skeleton {
  height: 120px;

  border-radius: 14px;

  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.03)
  );

  background-size: 200% 100%;

  animation: shimmer 1.3s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.animateSwitch {
  animation: fadeSlide 0.3s ease;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}





.steps__row__password {
  position: relative;

  display: flex;
  flex-direction: column;
}

.passwordToggle {
  position: absolute;

  right: 1rem;
  top: 2.65rem;

  background: transparent;
  border: none;

  color: rgba(
    255,
    255,
    255,
    0.55
  );

  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  transition: all 0.2s ease;

  &:hover {
    color: #f79318;
  }

  svg {
    width: 18px;
    height: 18px;
  }
}

// .steps {
//   input[type="password"] {
//     letter-spacing: 0.5rem;
//   }
// }