/* ---------- Custom form validation popover ----------
 * Replaces the browser's built-in "Please fill out this field" bubble
 * (driven by public/js/form-validation.js). Anchored to the invalid
 * field, styled to match the gold accent. The .is-invalid class is
 * toggled on the field itself for additional red-glow styling.
 */
.validation-popover {
  position: absolute;
  z-index: 9999;
  max-width: 280px;
  padding: 0.65rem 0.85rem;
  background: linear-gradient(180deg, #2a1a1a, #1a1115);
  color: #ffe1e1;
  border: 1px solid #b34646;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(179, 70, 70, 0.15);
  font-size: 0.82rem;
  line-height: 1.4;
  letter-spacing: 0.01em;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.validation-popover.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tiny upward arrow */
.validation-popover::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 16px;
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, #2a1a1a, #1a1115);
  border-left: 1px solid #b34646;
  border-top: 1px solid #b34646;
  transform: rotate(45deg);
}

/* Highlight ring on the invalid field itself */
input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: #b34646 !important;
  box-shadow: 0 0 0 3px rgba(179, 70, 70, 0.18) !important;
}
