/* Feedback form (/feedback). Linked only from that page; colours and shapes come from the variables in app.css. */
.fb { max-width: 38rem; margin: 1.2rem auto; background: #fff; border: 1px solid var(--s200); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.fb h1 { margin-top: 0; }
.fb [hidden] { display: none !important; }

.fb-form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.fb-kinds { border: 0; padding: 0; margin: 0; min-width: 0; }
.fb-kinds legend, .fb-field > label { padding: 0; font-weight: 600; font-size: .92rem; }
.fb-kinds legend { margin-bottom: .35rem; }
.fb-choices { display: flex; flex-wrap: wrap; gap: .3rem 1.3rem; }
.fb-choices label, .fb-robot label { cursor: pointer; padding: .2rem 0; }
.fb-choices input, .fb-robot input { width: 1.2rem; height: 1.2rem; margin: 0; accent-color: var(--g700); flex: none; }

.fb-field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.fb-optional { font-weight: normal; color: var(--s500); }
.fb-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; }
.fb-form input[type=text], .fb-form input[type=email], .fb-form textarea {
  font: inherit; font-size: 1rem; width: 100%; padding: .6rem .7rem; border: 1px solid var(--s300); border-radius: 8px;
  background: #fff; color: inherit; }
.fb-form textarea { min-height: 9rem; resize: vertical; line-height: 1.45; }
.fb-form input:focus-visible, .fb-form textarea:focus-visible, .fb-form button:focus-visible { outline: 2px solid var(--g500); outline-offset: 1px; }
.fb-count { align-self: flex-end; font-variant-numeric: tabular-nums; }
.fb-count.near { color: var(--amber); font-weight: 600; }
.fb-from { margin: 0; overflow-wrap: anywhere; }
.fb-from span { color: var(--s700); }

/* The field people never see. Moved off the page instead of display:none, which some robots look for. */
.fb-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.fb-robot { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; padding: .75rem .9rem; border: 1px solid var(--s300);
  border-radius: 10px; background: var(--s50); }
.fb-robot label { font-weight: 600; }
.fb-status { font-size: .92rem; color: var(--s600); }
.fb-status.ok { color: var(--g700); font-weight: 600; }
.fb-status.bad { color: var(--amber); font-weight: 600; }
.fb-robot-hint { flex-basis: 100%; }

.fb-send { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.fb-send button { padding: .7rem 1.6rem; font-size: 1.02rem; }
.fb-send button[disabled], .fb-send button[disabled]:hover { background: var(--g700); opacity: .5; cursor: default; }
.fb-error { flex: 1 1 12rem; color: var(--amber); font-weight: 600; }
.fb-error:empty { display: none; }

.fb-after { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; }
.fb-thanks h1:focus { outline: none; }    /* focus is moved here by the script so the thank-you is read out */

@media (max-width: 640px) {
  .fb { margin: .4rem auto; padding: 1rem; }
}
