/* ==========================================
   CONTACT MODAL
   Styled to match alert.css success/error gradients
========================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 25, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--card-bg, #fff);
  border-radius: 20px;
  max-width: 420px;
  width: 90%;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal-box {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
}

.modal-header i {
  font-size: 1.4rem;
}

.modal-header.success {
  background: linear-gradient(135deg, #0fb974 0%, #059669 100%);
}

.modal-header.error {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
}

.modal-body {
  padding: 22px 26px 26px;
  color: var(--text-lable-primary, #1a1a1a);
  font-size: 1rem;
  line-height: 1.5;
}

.modal-actions {
  padding: 0 26px 24px;
  display: flex;
  justify-content: flex-end;
}

.modal-close-btn {
  border: none;
  background: var(--bottom-theme, #621c9f);
  color: #fff;
  padding: 10px 22px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modal-close-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(99, 102, 241, 0.35);
}

@media (max-width: 480px) {
  .modal-box {
    width: 94%;
    border-radius: 16px;
  }

  .modal-header {
    padding: 18px 20px;
    font-size: 1.05rem;
  }

  .modal-body {
    padding: 18px 20px 20px;
    font-size: 0.95rem;
  }

  .modal-actions {
    padding: 0 20px 20px;
  }
}