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

.add__plan {
  position: fixed;
  inset: 0;

  z-index: 99999;

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

  padding: 1rem;

  overflow-y: auto;

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

  backdrop-filter: blur(12px);

  &__content {
    position: relative;

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

    margin: auto;

    padding: 1.8rem;

    border-radius: 24px;

    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);

    box-shadow:
      0 25px 60px rgba(0, 0, 0, 0.45);

    overflow: hidden;

    &::before {
      content: "";

      position: absolute;
      inset: 0;

      background: radial-gradient(
        circle at top right,
        rgba(247, 147, 24, 0.06),
        transparent 45%
      );

      pointer-events: none;
    }

    &--close {
      position: absolute;

      top: 1rem;
      right: 1rem;

      z-index: 10;

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

      height: 34px;

      padding: 0 0.9rem;

      border-radius: 10px;

      background: rgba(239, 68, 68, 0.08);

      border: 1px solid rgba(239, 68, 68, 0.12);

      color: #ef4444;

      font-size: 0.72rem;

      font-weight: 600;

      cursor: pointer;

      transition: 0.25s ease;

      &:hover {
        background: rgba(239, 68, 68, 0.15);
      }
    }

    &--details {
      position: relative;
      z-index: 2;

      &--header {
        &--helper {
          display: inline-flex;

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

          min-width: 90px;

          height: 30px;

          padding: 0 1rem;

          margin-bottom: 1rem;

          border-radius: 999px;

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

          border: 1px solid rgba(247, 147, 24, 0.15);

          color: #f79318;

          font-size: 0.68rem;

          font-weight: 600;

          text-transform: uppercase;

          letter-spacing: 0.08em;
        }

        h2 {
          color: variables.$col-white;

          font-size: 1.1rem;

          font-weight: 700;

          margin-bottom: 0.6rem;
        }

        p {
          color: rgba(255, 255, 255, 0.72) !important;

          font-size: 0.82rem !important;

          line-height: 1.8;

          font-weight: 400 !important;

          padding-bottom: 1.5rem !important;
        }
      }

      form {
        width: 100%;

        display: flex;
        flex-direction: column;

        gap: 0.85rem;

        > div {
          display: flex;
          flex-direction: column;
        }

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

          font-size: 0.78rem;

          font-weight: 500;

          margin-bottom: 0.45rem;
        }

        input,
        select,
        textarea {
          width: 100%;

          border-radius: 14px;

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

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

          color: variables.$col-white;

          font-size: 0.85rem;

          padding: 0 1rem;

          height: 50px;

          transition: all 0.25s ease;

          &:focus {
            outline: none;

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

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

          &::placeholder {
            color: rgba(255, 255, 255, 0.35);

            font-size: 0.78rem;
          }
        }

        textarea {
          min-height: 140px;

          resize: vertical;

          padding-top: 1rem;

          line-height: 1.8;
        }

        select {
          cursor: pointer;
        }

        button {
          width: 100%;

          height: 52px;

          margin-top: 1rem;

          border: none;

          border-radius: 14px;

          background: linear-gradient(
            135deg,
            #f79318,
            #ffb454
          );

          color: #111111;

          font-size: 0.85rem;

          font-weight: 700;

          cursor: pointer;

          transition: all 0.25s ease;

          &:hover:not(:disabled) {
            transform: translateY(-2px);

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

          &:disabled {
            opacity: 0.65;

            cursor: not-allowed;
          }
        }
      }
    }
  }

  @media only screen and (max-width: 768px) {
    padding: 0.75rem;

    align-items: flex-start;

    &__content {
      max-width: 100%;

      margin-top: 2rem;

      padding: 1.35rem;
    }
  }
}

::-webkit-scrollbar {
  width: 0;
  height: 0;
}