/* File: css/popup.css */

.popup-loader {
  width: 50px;
  height: 50px;
  border: 6px solid rgba(0,0,0,0.1);
  border-top-color: #4a90e2;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 40px auto;
}

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

/* Overlay backdrop covering the whole viewport */
#elementor-popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
}
#elementor-popup-overlay .elementor-popup-content {
  max-width: 90%;
  max-height: 90%;
  overflow-y: auto;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  position: relative;
}
#elementor-popup-overlay .elementor-popup-close {
    position: absolute;
    top: -10px;
    right: -5px;
    cursor: pointer;
    font-size: 30px;
    font-weight: 700;
    border: none;
    background: none;
    z-index: 8;
}

/* Error messages */
.popup-error {
  text-align: center;
  font-size: 16px;
  color: #555;
}

/* Animation keyframes */
@keyframes popupFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes popupSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Animation classes for content */
.popup-fade {
  animation: popupFadeIn 0.3s ease forwards;
}
.popup-slide {
  animation: popupSlideUp 0.4s ease forwards;
}