/* ============================================================
   Dub Thee Agency — feedback widget
   Floating pill (bottom-right) + popup form, California Regal.
   The .fw-* classes are shared with the inline form on
   feedback.html.
   ============================================================ */

/* ---------- Floating button ---------- */
a.feedback-fab,
button.feedback-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  font-family: "Jost", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #1A1A1A;
  background: #FDFBF7;
  border: 1px solid rgba(201, 162, 39, 0.55);
  border-radius: 999px;
  padding: 9px 18px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(26, 26, 26, 0.12);
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
button.feedback-fab { cursor: pointer; }
a.feedback-fab:hover,
button.feedback-fab:hover {
  opacity: 1;
  transform: translateY(-2px);
  border-color: #C9A227;
  box-shadow: 0 10px 26px rgba(201, 162, 39, 0.25);
}

/* ---------- Popup ---------- */
.fw-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(26, 26, 26, 0.45);
  display: none; align-items: flex-end; justify-content: flex-end;
  padding: 76px 18px 18px;
}
.fw-overlay.open { display: flex; }
.fw-panel {
  background: #FDFBF7; color: #1A1A1A;
  width: min(380px, calc(100vw - 36px));
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  border-radius: 10px;
  border: 1px solid rgba(201, 162, 39, 0.4);
  box-shadow: 0 18px 50px rgba(26, 26, 26, 0.28);
  padding: 20px 20px 18px;
  font-family: "Jost", system-ui, sans-serif;
}
.fw-head { display: flex; align-items: center; justify-content: center; margin-bottom: 4px; position: relative; }
.fw-head h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem; font-weight: 600; margin: 0;
  text-align: center;
}
.fw-close {
  background: none; border: none; font-size: 1.4rem; line-height: 1;
  cursor: pointer; color: #8a7f6a; padding: 4px 6px;
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
}
.fw-close:hover { color: #1A1A1A; }
.fw-sub { font-size: 0.85rem; color: #6f6552; margin: 0 0 12px; }
.fw-field { margin-bottom: 11px; }
.fw-field > label {
  display: block; font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  margin-bottom: 5px; color: #a07d1c;
}
.fw-field input[type="text"],
.fw-field input[type="email"],
.fw-field select,
.fw-field textarea {
  width: 100%; box-sizing: border-box;
  border: 1px solid #e5d9bd; border-radius: 3px;
  background: #fff; color: #1A1A1A;
  font-size: 0.95rem; font-family: "Cormorant Garamond", Georgia, serif;
  padding: 8px 10px;
}
.fw-field textarea { min-height: 84px; resize: vertical; }
.fw-field input:focus, .fw-field select:focus, .fw-field textarea:focus {
  outline: none; border-color: #C9A227;
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.18);
}
.fw-row { display: flex; gap: 10px; }
.fw-row .fw-field { flex: 1; min-width: 0; }
.fw-drop {
  border: 1.5px dashed #d8c79a; border-radius: 6px;
  padding: 12px; text-align: center; font-size: 0.85rem; color: #8a7f6a;
  cursor: pointer; background: #fffdf6;
}
.fw-drop:hover, .fw-drop.over { border-color: #C9A227; color: #a07d1c; background: #fffaf0; }
.fw-drop input { display: none; }
.fw-shot { position: relative; margin-top: 8px; display: none; }
.fw-shot.has { display: block; }
.fw-shot img { max-width: 100%; border-radius: 6px; border: 1px solid #e5d9bd; }
.fw-shot button {
  position: absolute; top: 6px; right: 6px;
  background: rgba(26,26,26,0.75); color: #fff; border: none; border-radius: 50%;
  width: 26px; height: 26px; cursor: pointer; font-size: 0.9rem; line-height: 1;
}
.fw-hp { position: absolute; left: -9999px; top: -9999px; } /* honeypot */
.fw-submit {
  width: 100%; border: 1px solid #1A1A1A; border-radius: 999px; cursor: pointer;
  background: #1A1A1A; color: #FDFBF7;
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  font-family: "Jost", system-ui, sans-serif;
  padding: 12px; margin-top: 4px;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.fw-submit:hover { background: #C9A227; border-color: #C9A227; color: #1A1A1A; }
.fw-submit:disabled { opacity: 0.6; cursor: wait; }
.fw-note { font-size: 0.78rem; font-style: italic; color: #8a7f6a; margin: 10px 0 0; text-align: center; }
.fw-error {
  display: none; font-size: 0.85rem; color: #8c2f1b;
  background: #fdf0ea; border: 1px solid #ecc9b8; border-radius: 6px;
  padding: 8px 10px; margin-bottom: 12px;
}
.fw-error.show { display: block; }
.fw-thanks { display: none; text-align: center; padding: 18px 6px 10px; }
.fw-thanks.show { display: block; }
.fw-thanks .fw-check img { display: block; margin: 0 auto; width: 54px; height: 54px; border-radius: 50%; }
.fw-captcha { display: flex; justify-content: center; margin: 4px 0 12px; }
.fw-captcha-note { font-size: 0.85rem; font-style: italic; color: #8a7f6a; text-align: center; margin: 12px 0 4px; }
.fw-thanks h3 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.6rem; margin: 8px 0 6px; }
.fw-thanks p { font-size: 0.9rem; color: #6f6552; margin: 0 0 12px; }
.fw-thanks button {
  background: none; border: 1px solid #d8c79a; border-radius: 999px;
  padding: 8px 20px; cursor: pointer; font-family: "Jost", sans-serif;
  font-size: 0.85rem; letter-spacing: 0.1em; color: #1A1A1A;
}
.fw-thanks button:hover { border-color: #C9A227; }
@media (max-width: 480px) {
  .fw-overlay { padding: 60px 10px 10px; }
}
