.feedback-trigger {
  position: fixed;
  right: 18px;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 40;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(77, 255, 175, 0.76);
  border-radius: 7px;
  background: rgba(3, 10, 24, 0.94);
  color: #eefaff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  padding: 0 14px;
  box-shadow: 0 0 20px rgba(77, 255, 175, 0.2), inset 0 0 16px rgba(16, 232, 255, 0.08);
}

.feedback-trigger:hover,
.feedback-trigger:focus-visible {
  border-color: #10e8ff;
  color: #4dffaf;
  outline: none;
  transform: translateY(-1px);
}

.feedback-trigger__icon {
  width: 19px;
  height: 19px;
  display: block;
}

.feedback-dialog {
  width: min(560px, calc(100% - 28px));
  max-width: none;
  padding: 0;
  border: 1px solid rgba(16, 232, 255, 0.64);
  border-radius: 9px;
  background: rgba(3, 10, 24, 0.98);
  color: #eefaff;
  box-shadow: 0 0 50px rgba(16, 232, 255, 0.24), 0 0 80px rgba(255, 62, 208, 0.16);
}

.feedback-dialog::backdrop {
  background: rgba(1, 4, 14, 0.76);
  backdrop-filter: blur(5px);
}

.feedback-panel {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.feedback-panel__header,
.feedback-panel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.feedback-panel__eyebrow,
.feedback-optional {
  margin: 0 0 6px;
  color: #4dffaf;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.feedback-panel h2 {
  margin: 0;
  font-size: 26px;
}

.feedback-panel__lede {
  margin: 0;
  color: #9eb4c5;
  line-height: 1.45;
}

.feedback-panel label {
  display: grid;
  gap: 7px;
  color: #d7eaf2;
  font-size: 13px;
  font-weight: 800;
}

.feedback-panel input,
.feedback-panel select,
.feedback-panel textarea {
  width: 100%;
  border: 1px solid rgba(16, 232, 255, 0.42);
  border-radius: 6px;
  background: rgba(0, 3, 12, 0.7);
  color: #eefaff;
  font: inherit;
  padding: 10px 11px;
}

.feedback-panel textarea {
  resize: vertical;
}

.feedback-panel :is(input, select, textarea):focus {
  border-color: #4dffaf;
  box-shadow: 0 0 18px rgba(77, 255, 175, 0.14);
  outline: none;
}

.feedback-close {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  background: transparent;
  color: #eefaff;
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}

.feedback-status {
  min-height: 20px;
  margin: 0;
  color: #9eb4c5;
  font-size: 12px;
  font-weight: 800;
}

.feedback-status.is-success {
  color: #4dffaf;
}

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

@media (max-width: 560px) {
  .feedback-trigger {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
  }

  .feedback-panel__footer {
    align-items: stretch;
    flex-direction: column;
  }
}
