/* stylelint-disable no-descending-specificity, declaration-block-single-line-max-declarations, plugin/no-unsupported-browser-features -- Compact state rules and progressive visual enhancements match the existing feedback control. */
.feedback-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  height: 44px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 22px;
  background: linear-gradient(135deg, #26a69a 0%, #00897b 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgb(38 166 154 / 35%), 0 2px 6px rgb(0 0 0 / 20%);
  cursor: pointer;
  font: 600 14px/1 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feedback-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgb(38 166 154 / 45%), 0 2px 8px rgb(0 0 0 / 25%);
}

.feedback-fab:active { transform: translateY(0); }

.feedback-fab:focus-visible,
.feedback-close:focus-visible,
.feedback-actions button:focus-visible,
.feedback-panel textarea:focus-visible,
.feedback-panel input:focus-visible {
  outline: 2px solid #42c7ba;
  outline-offset: 2px;
}

.feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(0 0 0 / 70%);
}

.feedback-panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  padding: 24px;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  background: #0f0f0f;
  box-shadow: 0 20px 60px rgb(0 0 0 / 50%);
  color: #e7eceb;
}

.feedback-panel h2 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 650;
}

.feedback-subtitle {
  margin: 0 0 16px;
  color: #8e9b98;
  font-size: 13px;
}

.feedback-close {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #8e9b98;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.feedback-close:hover { background: rgb(255 255 255 / 6%); color: #e7eceb; }

.feedback-form-group { margin-bottom: 14px; }

.feedback-form-group label {
  display: block;
  margin-bottom: 6px;
  color: #cdd5d3;
  font-size: 13px;
  font-weight: 600;
}

.feedback-panel textarea,
.feedback-panel input {
  width: 100%;
  border: 1px solid #35403e;
  border-radius: 7px;
  background: #090b0b;
  color: #e7eceb;
  font: 14px/1.5 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.feedback-panel textarea {
  min-height: 112px;
  padding: 10px 12px;
  resize: vertical;
}

.feedback-panel input { height: 42px; padding: 0 12px; }

.feedback-panel textarea::placeholder,
.feedback-panel input::placeholder { color: #65716e; }

.feedback-optional { color: #65716e; font-weight: 400; }

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

.feedback-actions button {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 6px;
  cursor: pointer;
  font: 650 14px/1 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.feedback-cancel {
  border: 1px solid #35403e;
  background: transparent;
  color: #cdd5d3;
}

.feedback-submit {
  border: 1px solid #26a69a;
  background: #26a69a;
  color: #fff;
}

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

.feedback-status {
  min-height: 20px;
  margin: 10px 0 0;
  text-align: center;
  font-size: 13px;
}

.feedback-status.success { color: #4db6ac; }
.feedback-status.error { color: #ff8a80; }

@media (width <= 600px) {
  .feedback-fab {
    right: 8px;
    bottom: 8px;
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    overflow: hidden;
  }

  .feedback-fab span { display: none; }
  .feedback-panel { padding: 22px 18px; }
}
