.ml-form-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.ml-form-modal.is-visible {
  opacity: 1;
  visibility: visible;
}

.ml-form-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(4px);
}

.ml-form-modal__panel {
  position: relative;
  width: min(100%, 440px);
  padding: 36px 32px 32px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
  text-align: center;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s ease;
}

.ml-form-modal.is-visible .ml-form-modal__panel {
  transform: translateY(0) scale(1);
}

.ml-form-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
  color: #4b5563;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.ml-form-modal__close:hover {
  background: rgba(215, 25, 32, 0.1);
  color: #d71920;
}

.ml-form-modal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
  font-size: 28px;
  font-weight: 700;
}

.ml-form-modal__title {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.25;
  color: #111827;
}

.ml-form-modal__message {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: #4b5563;
}
