/* LF Popups — front-end modal styling. Self-contained, no theme dependency. */

.lf-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lf-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.lf-popup__dialog {
  position: relative;
  background: #fff;
  color: #1a1a1a;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 40px 32px 32px;
  animation: lf-popup-in 0.2s ease-out;
}

@keyframes lf-popup-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.lf-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #1a1a1a;
  border-radius: 50%;
  transition: background 0.15s ease;
}

.lf-popup__close:hover,
.lf-popup__close:focus-visible {
  background: rgba(0, 0, 0, 0.08);
}

.lf-popup__title {
  margin: 0 0 16px;
  font-size: 1.4em;
  line-height: 1.3;
  padding-right: 28px;
}

.lf-popup__body {
  font-size: 1em;
  line-height: 1.6;
}

.lf-popup__body p:last-child {
  margin-bottom: 0;
}

body.lf-popup-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .lf-popup__dialog {
    padding: 32px 20px 24px;
  }
}

/* --- Contact Form 7 "on click" status bar (sending / success / error) -- */
/* The popup's own title/body stay visible the whole time; this is a small
   banner layered above them: a spinner while sending, then either a
   "message sent" confirmation or CF7's own failure message. */

.lf-popup__cf7-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px 14px;
  border-radius: 6px;
  background: #f0f3f5;
  color: #1a1a1a;
  font-size: 0.9em;
}

.lf-popup__cf7-status[hidden] {
  display: none;
}

.lf-popup__cf7-status--success {
  background: #eaf7ee;
  color: #1f7a3d;
}

.lf-popup__cf7-status--error {
  background: #fdeceb;
  color: #a02332;
}

.lf-popup__spinner {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: lf-popup-spin 0.6s linear infinite;
}

@keyframes lf-popup-spin {
  to {
    transform: rotate(360deg);
  }
}

.lf-popup__cf7-status-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.lf-popup__cf7-status-icon--success {
  background: currentColor;
  color: #eaf7ee;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
}

.lf-popup__cf7-status-icon[hidden] {
  display: none;
}
