/* BEACON feedback button, dialog, prompt cards and links (see feedback.js).
   Self-contained so it looks the same on the Tailwind main page and the portal
   pages: black, gold #D4AF37 and white, Plus Jakarta Sans. Every rule is scoped
   under .fb- so it cannot change the host page. */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/plus-jakarta-sans-latin.woff2) format('woff2');
}

.fb-launcher, .fb-backdrop, .fb-card, .fb-footer, .fb-link {
  --fb-gold: #D4AF37;
  --fb-gold-light: #F3D063;
  --fb-gold-deep: #B38728;
  --fb-ink: #09090b;
  --fb-panel: #18181b;
  --fb-line: rgba(212, 175, 55, .35);
  --fb-line-soft: rgba(255, 255, 255, .1);
  --fb-muted: rgba(255, 255, 255, .66);
  --fb-bad: #fca5a5;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.fb-backdrop *, .fb-backdrop *::before, .fb-backdrop *::after, .fb-launcher, .fb-card * { box-sizing: border-box; }

/* ---------- Floating button ---------- */
/* Bottom-right; on the main page it sits above the WASHME Assistant launcher. */
.fb-launcher {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 2147482990;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 13px;
  font-size: 13px; font-weight: 800; line-height: 1;
  color: var(--fb-gold-light);
  background: rgba(9, 9, 11, .94);
  border: 1px solid var(--fb-gold);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .55);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.fb-launcher svg { width: 15px; height: 15px; flex: none; }
.fb-launcher:hover { background: var(--fb-gold); color: #000; }
.fb-launcher:focus-visible { outline: 2px solid var(--fb-gold-light); outline-offset: 2px; }
.fb-above-chat .fb-launcher { bottom: calc(var(--wa-launcher-bottom, 20px) + 80px); }
.fb-open .fb-launcher { visibility: hidden; }

@media (max-width: 640px) {
  .fb-launcher { right: 14px; padding: 7px 11px; font-size: 12px; }
  .fb-above-chat .fb-launcher { bottom: calc(var(--wa-launcher-bottom, 20px) + 68px); }
  /* Scrolling pages get room at the end so the button never hides their last line. */
  body.fb-pad { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Dialog ---------- */
.fb-open, .fb-open body { overflow: hidden; }
.fb-backdrop {
  position: fixed; inset: 0;
  z-index: 2147483100;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, .8);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.fb-backdrop[hidden] { display: none !important; }
.fb-dialog {
  width: min(560px, 100%);
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  overflow-y: auto; overscroll-behavior: contain;
  color: #fff;
  background: var(--fb-ink);
  border: 1px solid var(--fb-gold);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .7);
  font-size: 15px; line-height: 1.5;
}
.fb-head {
  position: sticky; top: 0; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px;
  background: var(--fb-ink);
  border-bottom: 1px solid var(--fb-line);
}
.fb-head h2 { margin: 0; font-size: 18px; font-weight: 800; color: var(--fb-gold); text-transform: none; letter-spacing: normal; }
.fb-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  color: #fff; background: transparent;
  border: 1px solid var(--fb-line-soft); border-radius: 10px; cursor: pointer;
}
.fb-x svg { width: 18px; height: 18px; }
.fb-x:hover { border-color: var(--fb-gold); color: var(--fb-gold-light); }
.fb-form, .fb-done { display: block; padding: 16px 18px 18px; }
.fb-form[hidden], .fb-done[hidden] { display: none; }
.fb-intro { margin: 0 0 14px; font-size: 14px; color: var(--fb-muted); }

.fb-fieldset { margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.fb-fieldset legend, .fb-field > label, .fb-hp label {
  display: block; margin: 0 0 6px; padding: 0;
  font-size: 12px; font-weight: 700; color: var(--fb-muted);
}
.fb-opt { font-weight: 500; color: rgba(255, 255, 255, .45); }
.fb-req { color: var(--fb-gold); }
.fb-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Kind chips: real radio buttons, so arrow keys move between them. */
.fb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-chip { position: relative; display: inline-flex; margin: 0; cursor: pointer; }
.fb-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; min-width: 0; margin: 0; padding: 0; }
.fb-chip span {
  display: inline-flex; align-items: center; min-height: 36px;
  padding: 7px 13px;
  font-size: 13px; font-weight: 700; color: #fff;
  background: #121214;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  transition: background .15s, border-color .15s, color .15s;
}
.fb-chip:hover span { border-color: var(--fb-gold); }
.fb-chip input:checked + span { background: var(--fb-gold); border-color: var(--fb-gold); color: #000; font-weight: 800; }
.fb-chip input:focus-visible + span { outline: 2px solid var(--fb-gold-light); outline-offset: 2px; }

.fb-stars { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.fb-star { position: relative; display: inline-flex; margin: 0; padding: 4px; border-radius: 8px; cursor: pointer; }
.fb-star input { position: absolute; opacity: 0; width: 1px; height: 1px; min-width: 0; margin: 0; padding: 0; }
.fb-star svg { width: 30px; height: 30px; fill: transparent; stroke: var(--fb-gold); stroke-width: 1.6; stroke-linejoin: round; transition: fill .12s; }
.fb-star.fb-on svg { fill: var(--fb-gold); }
.fb-star:hover svg { fill: rgba(212, 175, 55, .35); }
.fb-star.fb-on:hover svg { fill: var(--fb-gold-light); }
.fb-star:focus-within { outline: 2px solid var(--fb-gold-light); outline-offset: 0; }
.fb-star:has(input:focus:not(:focus-visible)) { outline: none; }
.fb-clear {
  margin-left: 8px; padding: 4px 8px;
  font: inherit; font-size: 12px; font-weight: 700;
  color: var(--fb-muted); background: none;
  border: 0; text-decoration: underline; cursor: pointer;
}
.fb-clear:hover { color: var(--fb-gold-light); }
.fb-clear[hidden] { display: none; }

.fb-field { margin: 0 0 14px; min-width: 0; }
.fb-field input, .fb-field textarea {
  display: block; width: 100%; margin: 0;
  font: inherit; font-size: 16px; color: #fff;
  background: var(--fb-panel);
  border: 1px solid var(--fb-line-soft); border-radius: 10px;
  padding: 10px 12px;
  min-width: 0; flex: none;
}
.fb-field textarea { min-height: 120px; resize: vertical; }
.fb-field input:focus, .fb-field textarea:focus { outline: none; border-color: var(--fb-gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, .18); }
.fb-field [aria-invalid="true"] { border-color: var(--fb-bad); }
.fb-field ::placeholder { color: rgba(255, 255, 255, .4); }
.fb-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: 12px; color: var(--fb-muted); }
.fb-meta span:last-child { flex: none; font-variant-numeric: tabular-nums; }
.fb-count-limit { color: var(--fb-gold-light); font-weight: 700; }
.fb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }

/* Honeypot: off screen for people, still in the form for bots. */
.fb-hp input { min-width: 0; }
.fb-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.fb-error {
  margin: 0 0 14px; padding: 10px 12px;
  font-size: 14px; color: var(--fb-bad);
  background: rgba(252, 165, 165, .08);
  border: 1px solid rgba(252, 165, 165, .4); border-radius: 10px;
}
.fb-error[hidden] { display: none; }
.fb-error a { color: var(--fb-gold-light); font-weight: 700; }

.fb-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 10px 16px;
  font: inherit; font-size: 14px; font-weight: 700; line-height: 1.2; text-decoration: none;
  color: #fff; background: var(--fb-panel);
  border: 1px solid var(--fb-line); border-radius: 10px;
  cursor: pointer;
  transition: border-color .15s, color .15s, filter .15s;
}
.fb-btn:hover { border-color: var(--fb-gold); color: var(--fb-gold-light); }
.fb-btn:disabled { opacity: .6; cursor: not-allowed; }
.fb-btn-gold { background: linear-gradient(135deg, var(--fb-gold-light), var(--fb-gold) 55%, var(--fb-gold-deep)); color: #000; border: 0; font-weight: 800; }
.fb-btn-gold:hover { color: #000; filter: brightness(1.06); }
.fb-btn:focus-visible, .fb-x:focus-visible, .fb-clear:focus-visible { outline: 2px solid var(--fb-gold-light); outline-offset: 2px; }

.fb-done-text {
  margin: 0 0 16px; padding: 12px 14px;
  font-size: 15px; font-weight: 600;
  border-left: 3px solid var(--fb-gold);
  background: rgba(212, 175, 55, .08);
  border-radius: 0 10px 10px 0;
}
.fb-done-text:focus { outline: none; }

@media (max-width: 640px) {
  .fb-backdrop { padding: 0; align-items: stretch; }
  .fb-dialog { width: 100%; max-height: none; height: 100%; border: 0; border-radius: 0; }
  .fb-head { padding-top: max(14px, env(safe-area-inset-top)); }
  .fb-form, .fb-done { padding-bottom: max(18px, env(safe-area-inset-bottom)); }
  .fb-grid { grid-template-columns: 1fr; }
  .fb-actions .fb-btn { flex: 1 1 100%; }
}

/* ---------- Prompt card, report links and footer ---------- */
.fb-card {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: 16px; padding: 14px 16px;
  color: #fff;
  background: var(--fb-ink);
  border: 1px solid var(--fb-line); border-left: 3px solid var(--fb-gold);
  border-radius: 14px;
}
.fb-card p { margin: 0; font-size: 14px; font-weight: 600; }
.fb-card .fb-btn { min-height: 40px; }

/* A text-styled button used next to errors, under chat inputs and in footers. */
.fb-link {
  display: inline; padding: 0; margin: 0;
  font: inherit; font-weight: 700;
  color: var(--fb-gold-light, #F3D063); background: none;
  border: 0; text-decoration: underline; text-underline-offset: 2px;
  cursor: pointer;
}
.fb-link:hover { color: #fff; }
.fb-link:focus-visible { outline: 2px solid #F3D063; outline-offset: 2px; border-radius: 2px; }

.fb-footer {
  max-width: 1280px; margin: 8px auto 0;
  padding: 14px clamp(14px, 3vw, 28px) 20px;
  font-size: 12px; color: var(--fb-muted);
  border-top: 1px solid var(--fb-line-soft);
}

@media print {
  .fb-launcher, .fb-backdrop, .fb-card, .fb-footer, .fb-link, .fb-report { display: none !important; }
  body.fb-pad { padding-bottom: 0 !important; }
}
