/* Гід Закарпаття — форма пропозицій і повідомлень про неточності */
.fb-wrap {
  position: fixed; inset: 0; z-index: 1400;
  background: var(--scrim);
  display: flex; align-items: center; justify-content: center;
  padding: max(16px, var(--safe-t)) 16px max(16px, var(--safe-b));
}
.fb {
  background: var(--surface); color: var(--text);
  width: 100%; max-width: 440px;
  max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain;
  border-radius: 20px; box-shadow: var(--shadow);
  padding: 18px 18px 14px;
}
.fb-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.fb-head h2 { font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1.3; margin: 4px 0 0; }
.fb-x {
  flex-shrink: 0; width: 38px; height: 38px; margin: -4px -6px 0 0;
  border: 0; border-radius: 50%; background: var(--surface-2); color: var(--text);
  display: grid; place-items: center;
}
.fb-lead { margin: 0 0 14px; color: var(--muted); line-height: 1.5; }
.fb-lead b { color: var(--text); }
.fb-field { display: block; margin-bottom: 12px; }
.fb-field > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.fb-field input, .fb-field textarea {
  width: 100%; font: inherit; font-size: 16px; /* 16px — щоб iOS не збільшував сторінку */
  color: var(--text); background: var(--surface-2);
  border: 1.5px solid transparent; border-radius: 12px;
  padding: 11px 12px; outline: none; resize: vertical;
}
.fb-field textarea { min-height: 84px; }
.fb-field input:focus, .fb-field textarea:focus { border-color: var(--orange); background: var(--surface); }
.fb-field input::placeholder, .fb-field textarea::placeholder { color: var(--muted); opacity: .8; }
.fb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.fb-chip {
  border: 1.5px solid var(--border); background: var(--surface); color: var(--text);
  border-radius: 999px; padding: 8px 13px; font-size: 14px; line-height: 1.2;
}
.fb-chip[aria-checked="true"] { background: var(--orange); border-color: var(--orange); color: var(--on-orange); }
.fb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fb-err {
  margin: 0 0 12px; padding: 10px 12px; border-radius: 10px;
  background: rgba(200, 50, 40, .12); color: #C0392B; font-size: 14px;
}
:root[data-theme="dark"] .fb-err { color: #FF8A7A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fb-err { color: #FF8A7A; } }
.fb-actions { display: flex; gap: 10px; margin-top: 4px; }
.fb-btn { flex: 1; height: 48px; border: 0; border-radius: 12px; font-weight: 700; }
.fb-main { background: var(--orange); color: var(--on-orange); }
.fb-main:active { background: var(--orange-dark); }
.fb-main:disabled { opacity: .7; cursor: default; }
.fb-ghost { background: var(--surface-2); color: var(--text); }
.fb-note { margin: 10px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
.fb-done { text-align: center; padding: 8px 0 14px; }
.fb-done p { margin: 12px 0 0; line-height: 1.55; }
.fb-check {
  width: 64px; height: 64px; margin: 6px auto 0; border-radius: 50%;
  background: var(--orange-soft); color: var(--orange); display: grid; place-items: center;
}

/* Кнопка в картці місця */
.report-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 10px; padding: 10px 12px;
  border: 0; background: none; color: var(--muted);
  font-size: 14px; font-weight: 600;
}
.report-btn:hover, .report-btn:active { color: var(--orange); }
