@use "../../../../styles/abstracts/variables" as *;
@use "../../../../styles/abstracts/mixins" as *;

.kyc {
  width: 100%;
  @include pageBase;
  &__content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* ======================================
   STATUS CARD
====================================== */

.statusCard {
  position: relative;

  display: flex;
  align-items: flex-start;
  gap: 1rem;

  padding: 1.4rem;

  border-radius: 18px;

  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(255, 255, 255, 0.015) 100%
  );

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

  backdrop-filter: blur(18px);

  overflow: hidden;

  &::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;
    bottom: 0;

    width: 4px;
  }

  &__icon {
    width: 56px;
    height: 56px;

    border-radius: 16px;

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

    font-size: 1.35rem;

    flex-shrink: 0;
  }

  &__content {
    flex: 1;

    h4 {
      color: #fff;

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

      margin-bottom: 0.35rem;
    }

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

      font-size: 0.82rem;

      line-height: 1.8;
    }
  }
}

/* ======================================
   STATUS VARIANTS
====================================== */

.notStarted {
  border-color: rgba(247, 147, 24, 0.15);

  &::before {
    background: #f79318;
  }

  .statusCard__icon {
    background: rgba(247, 147, 24, 0.12);

    color: #f79318;
  }
}

.pending {
  border-color: rgba(245, 158, 11, 0.18);

  &::before {
    background: #f59e0b;
  }

  .statusCard__icon {
    background: rgba(245, 158, 11, 0.12);

    color: #f59e0b;
  }
}

.approved {
  border-color: rgba(34, 197, 94, 0.18);

  &::before {
    background: #22c55e;
  }

  .statusCard__icon {
    background: rgba(34, 197, 94, 0.12);

    color: #22c55e;
  }
}

.rejected {
  border-color: rgba(239, 68, 68, 0.18);

  &::before {
    background: #ef4444;
  }

  .statusCard__icon {
    background: rgba(239, 68, 68, 0.12);

    color: #ef4444;
  }
}

/* ======================================
   INFO CARDS
====================================== */

.infoCard {
  display: flex;
  align-items: flex-start;
  gap: 1rem;

  padding: 1.25rem;

  border-radius: 16px;

  border: 1px solid;

  svg {
    font-size: 1.15rem;

    flex-shrink: 0;

    margin-top: 2px;
  }

  h4 {
    font-size: 0.9rem;

    font-weight: 600;

    margin-bottom: 0.35rem;
  }

  p {
    font-size: 0.8rem;

    line-height: 1.8;
  }
}

.pendingCard {
  background: rgba(245, 158, 11, 0.08);

  border-color: rgba(245, 158, 11, 0.16);

  color: #f59e0b;

  p {
    color: rgba(245, 158, 11, 0.9);
  }
}

.successCard {
  background: rgba(34, 197, 94, 0.08);

  border-color: rgba(34, 197, 94, 0.16);

  color: #22c55e;

  p {
    color: rgba(34, 197, 94, 0.9);
  }
}

.dangerCard {
  background: rgba(239, 68, 68, 0.08);

  border-color: rgba(239, 68, 68, 0.16);

  color: #ef4444;

  p {
    color: rgba(239, 68, 68, 0.9);
  }
}

/* ======================================
   FORM
====================================== */

.form {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.025) 0%,
    rgba(255, 255, 255, 0.01) 100%
  );

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

  border-radius: 20px;

  padding: 1.6rem;

  display: flex;
  flex-direction: column;

  gap: 1.3rem;

  backdrop-filter: blur(16px);
}

/* ======================================
   STEP
====================================== */

.step {
  display: flex;
  align-items: center;
  gap: 0.8rem;

  &__number {
    width: 32px;
    height: 32px;

    border-radius: 50%;

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

    color: #f79318;

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

    font-size: 0.75rem;
    font-weight: 700;
  }

  h5 {
    color: #fff;

    font-size: 0.85rem;
    font-weight: 600;
  }
}

/* ======================================
   FORM GROUP
====================================== */

.formGroup {
  display: flex;
  flex-direction: column;

  gap: 0.45rem;

  label {
    color: rgba(255, 255, 255, 0.75);

    font-size: 0.78rem;
    font-weight: 500;
  }

  select {
    width: 100%;
    height: 54px;

    border-radius: 14px;

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

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

    color: #fff;

    padding: 0 1rem;

    outline: none;

    transition: 0.25s ease;

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

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

/* ======================================
   UPLOAD CARD
====================================== */

.uploadCard {
  background: rgba(255, 255, 255, 0.015);

  border: 2px dashed rgba(255, 255, 255, 0.08);

  border-radius: 18px;

  padding: 1.2rem;

  transition: 0.25s ease;

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

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

  label {
    display: block;

    color: #fff;

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

    margin-bottom: 0.85rem;
  }

  input {
    width: 100%;

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

    font-size: 0.78rem;
  }
}

/* ======================================
   FILE PREVIEW
====================================== */

.preview {
  display: flex;
  align-items: center;

  gap: 0.9rem;

  margin-top: 1rem;

  img {
    width: 80px;
    height: 80px;

    border-radius: 14px;

    object-fit: cover;

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

  span {
    color: rgba(255, 255, 255, 0.75);

    font-size: 0.8rem;

    word-break: break-word;
  }
}

.previewIcon {
  width: 52px;
  height: 52px;

  border-radius: 14px;

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

  color: #f79318;

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

  font-size: 1.2rem;

  flex-shrink: 0;
}

/* ======================================
   PROGRESS
====================================== */

.progress {
  margin-top: 1rem;

  height: 8px;

  border-radius: 999px;

  overflow: hidden;

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

  div {
    height: 100%;

    background: linear-gradient(
      90deg,
      #f79318,
      #ffb74d
    );

    transition: width 0.3s ease;
  }
}

/* ======================================
   SUBMIT BUTTON
====================================== */

.submitBtn {
  height: 50px;

  border: none;

  border-radius: 14px;

  background: #f79318;

  color: #111;

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

  cursor: pointer;

  transition: all 0.25s ease;

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

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

  &:disabled {
    opacity: 0.55;

    cursor: not-allowed;

    transform: none;

    box-shadow: none;
  }
}

/* ======================================
   MOBILE
====================================== */

@media (max-width: 768px) {
  .statusCard {
    padding: 1rem;

    &__icon {
      width: 48px;
      height: 48px;

      font-size: 1.1rem;
    }
  }

  .form {
    padding: 1.15rem;
  }

  .uploadCard {
    padding: 1rem;
  }

  .preview {
    img {
      width: 65px;
      height: 65px;
    }
  }

  .submitBtn {
    height: 52px;
  }
}