/* The feedback form.
   .overlay, .modal and .modal-title are global (css/app.css), so those are
   reused. The textarea and buttons are NOT: .dump-area and .btn only exist
   under .sw-page, and this form deliberately sits outside every page
   container, so borrowing them would render raw browser controls. */

.feedback-intro {
  font-family: var(--font);
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 12px;
  line-height: 1.5;
}

.feedback-area {
  width: 100%;
  min-height: 130px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.55;
  resize: vertical;
}

.feedback-area::placeholder { color: var(--text-faint); }

.feedback-area:focus {
  outline: none;
  border-color: var(--accent);
}

/* THE HONEYPOT.
   Off-screen rather than display:none -- some bots skip fields that are
   display:none precisely because it is the obvious trick, but almost all of
   them fill a field that is merely positioned out of view. It stays in the
   layer so it is genuinely invisible, and aria-hidden plus tabindex="-1" in
   the markup keep it out of the reach of anyone using a screen reader or the
   keyboard, who would otherwise be flagged as a bot for tabbing into it. */
.feedback-hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.feedback-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  min-height: 18px;
}

.feedback-count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  white-space: nowrap;
}

.feedback-count.is-over { color: var(--down); }

.feedback-status {
  font-family: var(--font);
  font-size: 12px;
  text-align: right;
  line-height: 1.4;
}

.feedback-status.is-ok { color: var(--up); }
.feedback-status.is-error { color: var(--down); }

/* The address itself, in the Contact dialog. Selectable and monospaced, so it
   can be read off the screen and copied by hand when the clipboard API is
   refused — which is the whole reason this dialog exists. */
.contact-address {
  user-select: all;
  padding: 12px 14px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  text-align: center;
  overflow-wrap: anywhere;
}

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

.feedback-btn {
  padding: 8px 16px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, border-color .15s, opacity .15s;
}

.feedback-btn:hover { background: var(--surface-3); }

.feedback-btn.is-primary {
  border-color: var(--accent);
  color: var(--accent);
}

.feedback-btn.is-primary:hover {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.feedback-btn:disabled {
  opacity: .55;
  cursor: default;
}

/* Width comes from the global .modal rule -- min(560px, 92vw) -- which is
   already responsive. Do not set min-width here or inline: min-width beats
   width, so a fixed one would push the form off the side of a phone. */
@media (max-width: 640px) {
  #feedbackModal .modal { padding: 18px; }
  .feedback-area { min-height: 110px; }
}

/* The question worth asking a first user, sitting above the box so it is the
   thing they answer if they have nothing else to say. */
.feedback-ask {
  font-family: var(--font);
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 12px;
  padding: 9px 11px;
  border-left: 2px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  border-radius: 0 7px 7px 0;
}
.feedback-ask b { color: var(--text); }
