.mpdl-modal {
  display: none;
}

.mpdl-modal.is-open {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.mpdl-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.mpdl-modal__dialog {
  position: relative;
  width: min(560px, calc(100% - 32px));
  margin: 10vh auto 0;
  background: #fff;
  border-radius: 14px;
  padding: 32px 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.mpdl-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 26px;
  line-height: 1;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: #666;
  transition: color 0.2s;
}

.mpdl-modal__close:hover {
  color: #222;
}

#mpdl-modal-title {
  margin: 0 0 8px 0;
  font-size: 1.5em;
  font-weight: 600;
  color: #222;
}

.mpdl-modal__dialog > p {
  margin: 0 0 20px 0;
  color: #555;
  font-size: 1em;
}

.mpdl-modal .mc4wp-form .mc4wp-form-fields p:first-of-type,
.mpdl-modal .mc4wp-form .mc4wp-form-fields p:first-of-type input{
  width: 100%;
}

/* ── Success toast notification ──────────────────────────────────────────── */
.mpdl-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: #222;
  color: #fff;
  padding: 13px 26px;
  border-radius: 10px;
  font-size: 0.97em;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: 10000;
  pointer-events: none;
  white-space: nowrap;
}

.mpdl-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}