/* ============================================================
   Feedback widget (v7.55.64)
   Floating trigger + <dialog> modal for tester feedback.
   Bottom-left so it doesn't collide with the social rail.
   ============================================================ */

/* ── Honeypot (spam trap) ────────────────────────────────── */
/* Visually hidden but kept in the DOM and reachable to bots that
   read the markup. Not display:none — some bots skip those. */
.cove-fb-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* ── Floating trigger button ─────────────────────────────── */
.cove-fb-trigger {
  position: fixed;
  left: clamp(12px, 2vw, 24px);
  bottom: clamp(12px, 2vw, 24px);
  z-index: 9998;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  min-height: 44px;
  padding: 10px 18px 10px 14px;

  font-family: 'Comfortaa', system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--wh, #fff);
  text-decoration: none;

  background: var(--pb, #34587C);
  border: 0;
  border-radius: 999px;
  cursor: pointer;

  box-shadow:
    0 2px 6px rgba(30, 58, 82, 0.18),
    0 8px 18px rgba(30, 58, 82, 0.22),
    0 18px 36px rgba(30, 58, 82, 0.18);

  transition:
    transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1),
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.2s ease;
}

.cove-fb-trigger:hover,
.cove-fb-trigger:focus-visible {
  background: var(--db, #1E3A52);
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 4px 10px rgba(30, 58, 82, 0.25),
    0 14px 28px rgba(30, 58, 82, 0.28),
    0 26px 48px rgba(30, 58, 82, 0.22);
}

.cove-fb-trigger:focus-visible {
  outline: 2px solid var(--cr, #F5F0E8);
  outline-offset: 3px;
}

.cove-fb-trigger:active { transform: translateY(0) scale(0.98); }

.cove-fb-trigger__icon { font-size: 18px; line-height: 1; }

/* ── Modal ───────────────────────────────────────────────── */
.cove-fb-modal {
  width: min(520px, calc(100vw - 24px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--wh, #fff);
  color: var(--ch, #2A2A2A);
  box-shadow:
    0 6px 16px rgba(30, 58, 82, 0.2),
    0 20px 44px rgba(30, 58, 82, 0.25),
    0 40px 80px rgba(30, 58, 82, 0.18);
  overflow: hidden;
}

.cove-fb-modal::backdrop {
  background: rgba(30, 58, 82, 0.55);
  backdrop-filter: blur(4px);
}

/* Apple-style entry */
.cove-fb-modal[open] {
  animation: cove-fb-pop 0.45s cubic-bezier(0.34, 1.4, 0.64, 1);
}
@keyframes cove-fb-pop {
  from { opacity: 0; transform: scale(0.92) translateY(8px); }
  to   { opacity: 1; transform: scale(1)    translateY(0);  }
}

.cove-fb-form {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 48px);
}

.cove-fb-form__head {
  position: relative;
  padding: 22px 56px 14px 24px;
  background: var(--cr, #F5F0E8);
  border-bottom: 1px solid rgba(30, 58, 82, 0.08);
}

.cove-fb-form__title {
  font-family: 'League Gothic', 'Arial Narrow', sans-serif;
  font-weight: 400;
  font-size: clamp(24px, 4vw, 30px);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--db, #1E3A52);
  margin: 0 0 4px;
  text-transform: uppercase;
}

.cove-fb-form__sub {
  font-size: 13px;
  line-height: 1.45;
  color: var(--sb, #4A7399);
  margin: 0;
}

.cove-fb-form__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 24px;
  line-height: 1;
  color: var(--db, #1E3A52);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.cove-fb-form__close:hover,
.cove-fb-form__close:focus-visible {
  background: rgba(30, 58, 82, 0.08);
  transform: rotate(90deg);
}
.cove-fb-form__close:focus-visible {
  outline: 2px solid var(--pb, #34587C);
  outline-offset: 2px;
}

.cove-fb-form__body {
  padding: 18px 24px 6px;
  overflow-y: auto;
}

.cove-fb-field { margin-bottom: 16px; }
.cove-fb-field legend,
.cove-fb-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sb, #4A7399);
  margin-bottom: 8px;
}
.cove-fb-req { color: var(--py, #E4BF45); margin-left: 2px; }

.cove-fb-field input[type="text"],
.cove-fb-field input[type="email"],
.cove-fb-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  font: inherit;
  font-size: 14px;
  color: var(--ch, #2A2A2A);
  background: var(--wh, #fff);
  border: 1.5px solid rgba(30, 58, 82, 0.18);
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cove-fb-field textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}
.cove-fb-field input:focus,
.cove-fb-field textarea:focus {
  outline: 0;
  border-color: var(--pb, #34587C);
  box-shadow: 0 0 0 3px rgba(52, 88, 124, 0.18);
}

/* Type radios */
.cove-fb-field fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.cove-fb-radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 6px 6px 0;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--db, #1E3A52);
  background: var(--cr, #F5F0E8);
  border: 1.5px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cove-fb-radio input { position: absolute; opacity: 0; pointer-events: none; }
.cove-fb-radio:hover { background: #ece4d6; }
.cove-fb-radio:has(input:checked) {
  background: var(--pb, #34587C);
  color: var(--wh, #fff);
  border-color: var(--pb, #34587C);
}
.cove-fb-radio:has(input:focus-visible) {
  outline: 2px solid var(--py, #E4BF45);
  outline-offset: 2px;
}

.cove-fb-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) {
  .cove-fb-row { grid-template-columns: 1fr; gap: 0; }
}

.cove-fb-context {
  margin-top: 8px;
  padding: 12px 14px;
  background: rgba(245, 240, 232, 0.55);
  border-radius: 10px;
  border: 1px dashed rgba(30, 58, 82, 0.18);
}
.cove-fb-context__list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--sb, #4A7399);
  word-break: break-word;
}
.cove-fb-context__list strong { color: var(--db, #1E3A52); margin-right: 4px; }

.cove-fb-form__foot {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  padding: 14px 24px 20px;
  border-top: 1px solid rgba(30, 58, 82, 0.06);
  background: var(--wh, #fff);
}

.cove-fb-submit,
.cove-fb-cancel {
  min-height: 44px;
  padding: 10px 22px;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.cove-fb-submit {
  color: var(--wh, #fff);
  background: var(--pb, #34587C);
  border: 0;
  box-shadow: 0 4px 10px rgba(30, 58, 82, 0.22);
}
.cove-fb-submit:hover,
.cove-fb-submit:focus-visible {
  background: var(--db, #1E3A52);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(30, 58, 82, 0.3);
}
.cove-fb-cancel {
  color: var(--sb, #4A7399);
  background: transparent;
  border: 0;
}
.cove-fb-cancel:hover,
.cove-fb-cancel:focus-visible {
  background: rgba(30, 58, 82, 0.06);
  color: var(--db, #1E3A52);
}
.cove-fb-submit:focus-visible,
.cove-fb-cancel:focus-visible {
  outline: 2px solid var(--py, #E4BF45);
  outline-offset: 2px;
}

/* Thanks state */
.cove-fb-thanks {
  padding: 32px 28px 28px;
  text-align: center;
}
.cove-fb-thanks__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  font-size: 32px;
  color: var(--wh, #fff);
  background: var(--pb, #34587C);
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(30, 58, 82, 0.25);
  animation: cove-fb-pop 0.5s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.cove-fb-thanks h2 {
  font-family: 'League Gothic', 'Arial Narrow', sans-serif;
  font-size: 28px;
  color: var(--db, #1E3A52);
  margin: 0 0 8px;
  text-transform: uppercase;
}
.cove-fb-thanks p {
  color: var(--sb, #4A7399);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 20px;
}

/* ── Screenshot paste ─────────────────────────────────────── */
.cove-fb-paste-hint {
  font-size: 12.5px;
  color: var(--sb, #4A7399);
  margin: 0;
  padding: 9px 12px;
  background: rgba(245,240,232,.6);
  border: 1.5px dashed rgba(52,88,124,.22);
  border-radius: 10px;
  text-align: center;
}

.cove-fb-screenshot-preview {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.cove-fb-screenshot-thumb {
  display: block;
  max-width: 100%;
  max-height: 160px;
  border-radius: 8px;
  border: 1.5px solid rgba(52,88,124,.18);
  box-shadow: 0 2px 8px rgba(30,58,82,.12);
  object-fit: cover;
}

.cove-fb-screenshot-clear {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: #e04040;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,.25);
  transition: background .2s ease, transform .2s ease;
}
.cove-fb-screenshot-clear:hover { background: #c03030; transform: scale(1.1); }
.cove-fb-screenshot-clear:focus-visible {
  outline: 2px solid var(--py, #E4BF45);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cove-fb-trigger,
  .cove-fb-form__close,
  .cove-fb-submit,
  .cove-fb-cancel,
  .cove-fb-radio { transition: none; }
  .cove-fb-modal[open],
  .cove-fb-thanks__icon { animation: none; }
}

/* Forced colors */
@media (forced-colors: active) {
  .cove-fb-trigger,
  .cove-fb-submit { border: 2px solid CanvasText; }
}

/* Small screens — full-width pill label hides, icon stays */
@media (max-width: 420px) {
  .cove-fb-trigger { padding: 10px 14px; }
  .cove-fb-trigger__label { display: none; }
  .cove-fb-trigger { width: 48px; height: 48px; justify-content: center; }
}
