/* ═══════════════════════════════════════════════════════════════════════
   forms-client.css — success / error popup shared by every frontsite form
   (contact wizard, club shop request, footer newsletter, KitDesigner quote).

   Loaded from templates/system/footer.php, so every page has it. All classes
   are prefixed `of-` (Osprey Forms) and nothing here targets an existing
   element: the popup is purely additive.
   ═══════════════════════════════════════════════════════════════════════ */

.of-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483600; /* above the KitDesigner widget overlays (2147483000+) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 8, 12, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.of-overlay.is-in { opacity: 1; }

.of-dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #fff;
  color: #14161a;
  border-radius: 16px;
  padding: 34px 30px 28px;
  text-align: center;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
  transform: translateY(14px) scale(0.97);
  opacity: 0;
  transition: transform 0.26s cubic-bezier(0.2, 0.9, 0.3, 1.1), opacity 0.26s ease;
}

.of-overlay.is-in .of-dialog { transform: none; opacity: 1; }

.of-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #8b93a1;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.of-close:hover { background: #f1f3f6; color: #14161a; }

/* ── Animated badge (check / cross) ─────────────────────────────────── */
.of-badge {
  width: 82px;
  height: 82px;
  margin: 0 auto 18px;
  display: block;
}

.of-badge-circle {
  fill: rgba(206, 255, 0, 0.12);
  stroke: #c6f000;
  stroke-width: 3;
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
}

.of-badge-mark {
  fill: none;
  stroke: #7aa800;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
}

.of-overlay.is-in .of-badge-circle { animation: of-draw 0.55s ease forwards; }
.of-overlay.is-in .of-badge-mark { animation: of-draw 0.4s 0.35s ease forwards; }

.of-dialog--error .of-badge-circle { fill: rgba(244, 67, 54, 0.1); stroke: #f4436c; }
.of-dialog--error .of-badge-mark { stroke: #f4436c; }

@keyframes of-draw { to { stroke-dashoffset: 0; } }

.of-title {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  color: #14161a;
}

.of-text {
  margin: 0 auto;
  max-width: 340px;
  font-size: 14px;
  line-height: 1.6;
  color: #5a6778;
}

.of-ref {
  display: inline-block;
  margin-top: 14px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #f4f6f9;
  border: 1px solid #e3e7ee;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: #14161a;
}

.of-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.of-btn {
  min-height: 46px;
  padding: 12px 26px;
  border: 0;
  border-radius: 6px;
  background: #14161a;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.of-btn:hover { background: #2a2f38; }

.of-btn--ghost {
  background: transparent;
  color: #5a6778;
  border: 1px solid #d9dee6;
}

.of-btn--ghost:hover { background: #f4f6f9; color: #14161a; }

@media (max-width: 480px) {
  .of-dialog { padding: 28px 20px 22px; }
  .of-title { font-size: 19px; }
  .of-actions { flex-direction: column-reverse; }
  .of-btn { width: 100%; }
}
