.feedback-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1200;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #155e63, #0f766e);
  color: #fff;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 18px 40px rgba(21, 94, 99, 0.28);
  cursor: pointer;
}

.feedback-modal.hidden {
  display: none;
}

.feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
}

.feedback-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 28, 38, 0.5);
}

.feedback-dialog {
  position: relative;
  width: min(560px, calc(100vw - 24px));
  margin: 48px auto;
  background: #fffdf9;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(20, 28, 38, 0.26);
  padding: 22px;
}

.feedback-dialog-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.feedback-dialog-header h3,
.feedback-dialog-header p {
  margin: 0;
}

.feedback-dialog-header p {
  margin-top: 8px;
  color: #536170;
  font-size: 14px;
}

.feedback-close {
  border: 0;
  background: transparent;
  color: #1f2937;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.feedback-form label {
  display: block;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}

.feedback-form select,
.feedback-form textarea,
.feedback-form input[type="email"],
.feedback-form input[type="file"] {
  width: 100%;
  margin-top: 8px;
  border: 1px solid #d5d9e0;
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
  box-sizing: border-box;
  font: inherit;
}

.feedback-form textarea {
  resize: vertical;
  min-height: 140px;
}

.feedback-help {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 400;
}

.feedback-status {
  min-height: 24px;
  margin-bottom: 12px;
  color: #475569;
  font-size: 14px;
}

.feedback-status.error {
  color: #b42318;
}

.feedback-status.success {
  color: #027a48;
}

.feedback-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.feedback-primary,
.feedback-secondary {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.feedback-primary {
  background: #155e63;
  color: #fff;
}

.feedback-primary:disabled {
  opacity: 0.6;
  cursor: wait;
}

.feedback-secondary {
  background: #e8eef1;
  color: #26323d;
}

@media (max-width: 640px) {
  .feedback-fab {
    right: 14px;
    bottom: 14px;
  }

  .feedback-dialog {
    width: calc(100vw - 16px);
    margin: 12px auto;
    padding: 18px;
  }

  .feedback-actions {
    flex-direction: column-reverse;
  }
}
