/* Feedback: one pearl sheet, the same field look as the stat check's trade card. Posts to Netlify Forms. */

.fb-wrap { display: grid; justify-items: center; padding: 8px 12px 32px; }

.fb { --ground: var(--pearl); grid-area: auto; display: grid; gap: 14px; width: min(100%, 560px); max-height: none; padding: 18px 20px 20px; }
.fb[hidden] { display: none; }
.fb .sheet-head, .fb .sheet-sub { margin-bottom: 0; }
.fb label { display: grid; gap: 6px; font-size: .9375rem; font-weight: 800; }
.fb small { font-size: .8125rem; font-weight: 600; }

.fb input[type="text"], .fb select, .fb textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  outline: 2px solid var(--navy);
  outline-offset: -2px;
  background: var(--pearl);
  color: var(--navy);
  font: 700 1rem var(--font-text);
}
.fb textarea { padding: 10px; line-height: 1.4; resize: vertical; }
.fb textarea::placeholder { color: rgb(11 17 71 / .45); font-weight: 600; }
.fb input[type="file"] { font: 600 .875rem var(--font-text); color: var(--navy); }
.fb input[type="file"]::file-selector-button {
  margin-right: 10px;
  padding: 8px 12px;
  border: 0;
  border-radius: 9px;
  background: var(--navy);
  color: var(--pearl);
  font: 800 .875rem var(--font-text);
  cursor: pointer;
}
.fb input:focus-visible, .fb select:focus-visible, .fb textarea:focus-visible { outline: 3px solid var(--cobalt); outline-offset: -3px; }

/* Kind: three chips, the checked one filled navy. */
.fb-kind { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.fb-kind legend { width: 100%; margin-bottom: 6px; padding: 0; font-size: .9375rem; font-weight: 800; }
.fb-kind label { display: block; }
.fb-kind input { position: absolute; opacity: 0; pointer-events: none; }
.fb-kind span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px var(--navy);
  cursor: pointer;
  font-weight: 800;
}
.fb-kind input:checked + span { background: var(--navy); color: var(--pearl); }
.fb-kind input:focus-visible + span { outline: 3px solid var(--cobalt); outline-offset: 2px; }

.fb-error { padding: 8px 12px; border-radius: 9px; background: var(--magenta); color: var(--navy); font-size: .875rem; font-weight: 700; }
.fb-error[hidden] { display: none; }

.fb-send { background: var(--navy); box-shadow: none; color: var(--pearl); }
@media (hover: hover) { .fb-send:hover:not(:disabled) { background: var(--cobalt); color: var(--pearl); } }
.fb-send:disabled { cursor: wait; opacity: .7; }

.fb-done:focus { outline: none; }
.fb-done-actions { display: grid; gap: 8px; }

@media (max-width: 760px) {
  .fb { padding: 16px 14px 18px; }
}
