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

.modalOverlay {
  position: fixed;
  inset: 0;
  z-index: 9999;

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

  padding: 1rem;

  background: rgba(
    4,
    4,
    6,
    0.82
  );

  backdrop-filter: blur(14px);
}

.modalContent {
  position: relative;

  width: 100%;
  max-width: 520px;

  padding: 2rem;

  border-radius: 16px;

  background: linear-gradient(
    180deg,
    rgba(
      22,
      22,
      24,
      0.98
    )
      0%,
    rgba(
      15,
      15,
      18,
      1
    )
      100%
  );

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

  color: white;

  animation: fadeUp
    0.25s ease;
}

.closeBtn {
  position: absolute;
  right: 1rem;
  top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;

  border-radius: 10px;

  border: none;

  cursor: pointer;

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

  color: #aaa;
}

.header {
  margin-bottom: 1.5rem;

  .helper {
    display: inline-flex;

    padding: 0.35rem
      0.75rem;

    border-radius: 999px;

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

    color: $col-orange;

    font-size: 0.7rem;

    text-transform: uppercase;

    margin-bottom: 1rem;
  }

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

    margin-bottom: 0.4rem;
  }

  p {
    font-size: 0.8rem;
    color: #999;
    line-height: 1.7;
  }
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.grid {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 1rem;

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

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

  label {
    font-size: 0.8rem;
    margin-bottom: 0.45rem;
    color: #cfcfcf;
  }

  input,
  select {
    height: 46px;

    background: #1d1d21;

    border: 1px solid
      #303035;

    border-radius: 10px;

    padding: 0 1rem;

    color: white;

    font-size: 0.85rem;

    &:focus {
      outline: none;
      border-color:
        $col-orange;
    }
  }
}

.toggleCard {
  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 1rem;

  border-radius: 12px;

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

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

  h4 {
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
  }

  p {
    font-size: 0.75rem;
    color: #888;
  }
}

.switch {
  position: relative;

  width: 52px;
  height: 30px;

  input {
    display: none;
  }
}

.slider {
  position: absolute;
  inset: 0;

  border-radius: 999px;

  background: #2b2b30;

  cursor: pointer;

  transition: 0.25s;

  &:before {
    content: "";

    position: absolute;

    width: 22px;
    height: 22px;

    left: 4px;
    top: 4px;

    border-radius: 50%;

    background: white;

    transition: 0.25s;
  }
}

.switch input:checked + .slider {
  background: $col-orange;
}

.switch input:checked + .slider:before {
  transform: translateX(
    22px
  );
}

.submitBtn {
  height: 48px;

  border: none;

  border-radius: 12px;

  background: $col-orange;

  color: $col-dark;
  font-size: .9rem;

  font-weight: 600;

  cursor: pointer;

  margin-top: 0.5rem;
}

.error {
  color: #ff5d5d;
  font-size: 0.72rem;
  margin-top: 0.3rem;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(
      15px
    );
  }

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