/* feedback.css — the review form injected by feedback.js.

   Adds nothing to the palette: every colour here is a personal.css token, the
   same rule guides.css follows. It loads BEFORE villa.css, so the design
   session can restyle any of it without fighting specificity.

   Phone first, and literally so — the family are reviewing on phones with very
   little time. Targets are 44px so a thumb hits them, the fields are 16px so
   iOS does not zoom the page when one gets focus, and nothing here is more than
   one column at any width. */

.vfb {
  margin: 54px 0 0;
  padding: 26px 20px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--hi);
}

.vfb__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0 0 6px;
}

.vfb__lead {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.5;
  margin: 0 0 18px;
  max-width: 46ch;
}

.vfb__field { display: block; margin: 0 0 14px; }

.vfb__label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 5px;
}

/* 16px is not a taste decision: below it, Safari on iOS zooms the whole page
   when the field takes focus, and the reviewer then has to pinch back out to
   see what they were commenting on. */
.vfb__who,
.vfb__where,
.vfb__note {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
}

.vfb__note { resize: vertical; min-height: 96px; line-height: 1.5; }

.vfb__who:focus,
.vfb__where:focus,
.vfb__note:focus { outline: 2px solid var(--ink); outline-offset: 1px; }

.vfb__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.vfb__send {
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  min-height: 44px;
  padding: 11px 26px;
  color: var(--bg);
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.vfb__send:disabled { opacity: .5; cursor: default; }

.vfb__status { font-size: .88rem; color: var(--muted); }
.vfb__status.is-good { color: var(--mac-dgreen); }
.vfb__status.is-bad  { color: var(--mac-red); }

@media (max-width: 560px) {
  .vfb { margin-top: 40px; padding: 22px 16px 24px; border-radius: 0;
         margin-left: -16px; margin-right: -16px; }
  .vfb__send { width: 100%; }
  .vfb__status { width: 100%; }
}
