/* Centered lead-form modal — used by all /practical/ pages added 2026-05-25.
   Triggered by any element with data-open-lead-modal or via MFP.openLeadModal(). */

.lead-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 59, 102, 0.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 9999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 16px;
  overflow-y: auto;
}
.lead-modal-overlay.is-open {
  display: flex;
  animation: lead-modal-overlay-in 0.2s ease;
}
@keyframes lead-modal-overlay-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lead-modal-content {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: auto;
  animation: lead-modal-content-in 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes lead-modal-content-in {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.lead-modal-content .lead-pro-card {
  margin: 0;
  max-width: none;
  width: 100%;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.30), 0 8px 24px rgba(0, 0, 0, 0.20);
}

.lead-modal-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(13, 59, 102, 0.08);
  border: none;
  cursor: pointer;
  color: #0d3b66;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background 0.2s;
  font-family: inherit;
  line-height: 1;
  padding: 0;
}
.lead-modal-close:hover {
  background: rgba(13, 59, 102, 0.15);
}

body.lead-modal-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .lead-modal-overlay { padding: 16px 10px; align-items: flex-start; }
  .lead-modal-content .lead-pro-card { padding: 32px 22px !important; border-radius: 16px !important; }
  .lead-modal-close { top: 10px; left: 10px; width: 34px; height: 34px; font-size: 18px; }
}
