/* === Feedback modal overlay + panel (scoped) === */

/* Only styles the feedback overlay element */
#feedback-overlay.neon-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 59;
  background:
    radial-gradient(circle at top, rgba(0, 234, 255, 0.18), transparent),
    rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
}

#feedback-overlay.is-hidden {
  display: none;
}

/* Inner panel for feedback modal (scoped to #feedback-modal) */
#feedback-modal .neon-modal__inner {
  position: relative;
  width: min(720px, 95vw);
  max-height: 80vh;
  overflow: auto;
  padding: 1.75rem 2rem 1.5rem;
  border-radius: 1.2rem;
  background:
    radial-gradient(circle at top left, rgba(0, 234, 255, 0.23), transparent),
    radial-gradient(circle at bottom right, rgba(255, 0, 204, 0.18), transparent),
    #050510;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 22px 45px rgba(0, 0, 0, 0.9),
    0 0 22px rgba(0, 234, 255, 0.35);
  color: var(--text-main);
}

/* Header / title / close button */

#feedback-modal .neon-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 0.75rem;
}

#feedback-modal .neon-modal__title {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

#feedback-modal .neon-modal__close {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  margin-left: 0.5rem;
}

#feedback-modal .neon-modal__close:hover {
  color: var(--neon-blue);
  text-shadow:
    0 0 8px rgba(0, 234, 255, 0.7),
    0 0 16px rgba(255, 0, 204, 0.5);
}

/* Body + description */

#feedback-modal .neon-modal__body {
  margin-top: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

#feedback-modal .neon-modal__description {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 40rem;
}

/* Simple form layout (scoped) */

#feedback-modal .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

#feedback-modal .form-label {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-main);
}

#feedback-modal .form-input,
#feedback-modal .form-textarea {
  width: 100%;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background-color: rgba(5, 7, 20, 0.96);
  color: var(--text-main);
  padding: 0.55rem 0.85rem;
  font-size: 0.9rem;
  outline: none;
  resize: vertical;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

#feedback-modal .form-input::placeholder,
#feedback-modal .form-textarea::placeholder {
  color: var(--text-muted);
}

#feedback-modal .form-input:focus,
#feedback-modal .form-textarea:focus {
  border-color: var(--neon-blue);
  box-shadow:
    0 0 0 1px rgba(0, 234, 255, 0.55),
    0 0 18px rgba(0, 234, 255, 0.4);
}

/* Footer buttons */

#feedback-modal .neon-modal__footer {
  margin-top: 0.75rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Generic neon buttons used in the feedback modal (scoped) */

#feedback-modal .btn {
  border-radius: 999px;
  font-size: 0.9rem;
  padding: 0.45rem 1.15rem;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition:
    transform 0.12s ease-out,
    box-shadow 0.12s ease-out,
    border-color 0.12s ease-out,
    background 0.12s ease-out;
}

#feedback-modal .btn-primary {
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-pink));
  color: #05040a;
  box-shadow:
    0 0 18px rgba(0, 234, 255, 0.45),
    0 0 32px rgba(255, 0, 204, 0.45);
}

#feedback-modal .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 22px rgba(0, 234, 255, 0.6),
    0 0 40px rgba(255, 0, 204, 0.6);
}

#feedback-modal .btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text-main);
}

#feedback-modal .btn-ghost:hover {
  border-color: var(--neon-blue);
  box-shadow: 0 0 16px rgba(0, 234, 255, 0.4);
}

/* Mobile tweaks */

@media (max-width: 768px) {
  #feedback-modal .neon-modal__inner {
    padding: 1.35rem 1.25rem 1.1rem;
    width: min(100vw, 480px);
  }

  #feedback-modal .neon-modal__title {
    font-size: 1.25rem;
  }

  #feedback-modal .neon-modal__footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  #feedback-modal .neon-modal__footer .btn {
    width: 100%;
    justify-content: center;
  }
}