/* Popup visual match + robust centering */
#elementor-popup-modal-581 {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw;
  height: 100vh;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
  overflow: hidden;
}

/* Prevent page scroll when popup is open */
html.elementor-popup-open,
body.elementor-popup-open,
body.dialog-prevent-scroll {
  overflow: hidden !important;
}

#elementor-popup-modal-581 .dialog-widget-content {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  transform: none !important;
  margin: 0 !important;
  width: min(870px, calc(100vw - 24px));
  max-width: 870px;
  overflow: visible;
  border-radius: 0;
  box-sizing: border-box;
}

#elementor-popup-modal-581 .dialog-message {
  width: 870px;
  height: auto;
  padding: 150px 200px 100px 200px;
  box-sizing: border-box;
  max-height: calc(100vh - 24px);
  overflow: auto;
  overflow-x: hidden;
}

/* Close icon (use eicon-close) */
#elementor-popup-modal-581 .dialog-close-button {
  position: absolute !important;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 15% !important;
  right: 20% !important;
  left: auto !important;
  transform: none !important;
  z-index: 1006;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  cursor: pointer;
  font-size: 31px;
  line-height: 1;
  color: #000;
}

#elementor-popup-modal-581 .dialog-close-button i {
  font-family: eicons;
  font-style: normal;
  font-weight: 400;
}

/* Match form block width inside popup */
#elementor-popup-modal-581 .elementor-container,
#elementor-popup-modal-581 .elementor-column,
#elementor-popup-modal-581 .elementor-column-wrap {
  width: 100%;
}

@media (min-width: 768px) {

  #elementor-popup-modal-581 .elementor-column.elementor-col-50,
  #elementor-popup-modal-581 .elementor-column[data-col="50"] {
    width: 50%;
  }
}

/* Mobile stability */
#elementor-popup-modal-581 .elementor-column,
#elementor-popup-modal-581 .elementor-widget,
#elementor-popup-modal-581 .elementor-motion-effects-element {
  animation: none !important;
  transition: none !important;
}

@media (max-width: 767px) {
  #elementor-popup-modal-581 {
    padding: 8px;
  }

  #elementor-popup-modal-581 .dialog-widget-content {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
  }

  #elementor-popup-modal-581 .dialog-message {
    width: 100%;
    padding: 32px 24px 28px 24px;
    max-height: calc(100vh - 16px);
  }

  #elementor-popup-modal-581 .dialog-close-button {
    top: 14px !important;
    right: 10px !important;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }

  #elementor-popup-modal-581 .elementor-motion-effects-layer,
  #elementor-popup-modal-581 [style*="transform"] {
    transform: none !important;
  }

  #elementor-popup-modal-581 .elementor-form .elementor-field,
  #elementor-popup-modal-581 .elementor-form .elementor-button {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #elementor-popup-modal-581 * {
    animation: none !important;
    transition: none !important;
  }
}
#elementor-popup-modal-581[aria-hidden=true] .dialog-close-button,
#elementor-popup-modal-581.dialog-hidden .dialog-close-button,
#elementor-popup-modal-581[style*="display: none"] .dialog-close-button {
  display: none !important;
}

.dialog-lightbox-widget-content.dialog-empty,
.dialog-widget-content.dialog-empty {
  display: none !important;
}


.elementor-message {
  display: none;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.4;
}

.elementor-message-success {
  background: #e7f6ec;
  color: #145a2c;
}

.elementor-message-danger {
  background: #fde8e8;
  color: #8a1f1f;
}

.pg-form-status {
  display: none;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.4;
}

.pg-form-status-success {
  background: #e7f6ec;
  color: #145a2c;
}

.pg-form-status-error {
  background: #fde8e8;
  color: #8a1f1f;
}

.elementor-form button.is-submitting {
  opacity: 0.9;
  cursor: wait;
}

.elementor-form button.is-submitting .elementor-button-text::before {
  content: '\e8fb';
  display: inline-block;
  font-family: eicons;
  margin-left: 8px;
  animation: form-submit-spin 1s linear infinite;
}

@keyframes form-submit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
