/* Global feedback widget */
.lj-feedback-trigger {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 80;
  border: 1px solid rgba(79, 70, 229, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #312e81;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.16);
  padding: 0.72rem 1rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  backdrop-filter: blur(12px);
}

.lj-feedback-trigger:hover,
.lj-feedback-trigger:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.2);
  outline: none;
}

.lj-feedback-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 23, 42, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lj-feedback-backdrop.is-open {
  display: flex;
}

.lj-feedback-modal {
  width: min(560px, 100%);
  max-height: min(720px, 92vh);
  overflow: auto;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.lj-feedback-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.35rem 0.6rem;
}

.lj-feedback-kicker {
  margin: 0 0 0.25rem;
  color: #6366f1;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lj-feedback-title {
  margin: 0;
  color: #111827;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  line-height: 1.15;
}

.lj-feedback-close {
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  width: 2.25rem;
  height: 2.25rem;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 800;
}

.lj-feedback-body {
  padding: 0 1.35rem 1.35rem;
}

.lj-feedback-intro {
  margin: 0 0 1rem;
  color: #475569;
  line-height: 1.55;
}

.lj-feedback-form {
  display: grid;
  gap: 0.9rem;
}

.lj-feedback-field {
  display: grid;
  gap: 0.35rem;
}

.lj-feedback-field span {
  color: #334155;
  font-weight: 800;
  font-size: 0.92rem;
}

.lj-feedback-field select,
.lj-feedback-field textarea,
.lj-feedback-field input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 0.85rem 0.95rem;
  font: inherit;
  color: #0f172a;
  background: #ffffff;
}

.lj-feedback-field textarea {
  min-height: 130px;
  resize: vertical;
}

.lj-feedback-field select:focus,
.lj-feedback-field textarea:focus,
.lj-feedback-field input:focus {
  outline: 3px solid rgba(99, 102, 241, 0.18);
  border-color: #6366f1;
}

.lj-feedback-note {
  margin: 0;
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.45;
}

.lj-feedback-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding-top: 0.3rem;
}

.lj-feedback-btn {
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.05rem;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.lj-feedback-btn.secondary {
  background: #f1f5f9;
  color: #334155;
}

.lj-feedback-btn.primary {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(79, 70, 229, 0.25);
}

.lj-feedback-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.lj-feedback-status {
  min-height: 1.4rem;
  margin: 0.1rem 0 0;
  color: #475569;
  font-weight: 700;
}

.lj-feedback-status.is-success {
  color: #047857;
}

.lj-feedback-status.is-error {
  color: #b91c1c;
}

@media (max-width: 720px) {
  .lj-feedback-trigger {
    position: static;
    margin: 1rem auto 0;
    display: flex;
    width: fit-content;
    box-shadow: none;
  }

  .lj-feedback-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .lj-feedback-modal {
    border-radius: 24px 24px 0 0;
    max-height: 88vh;
  }

  .lj-feedback-header,
  .lj-feedback-body {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .lj-feedback-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .lj-feedback-btn {
    width: 100%;
  }
}
