/* Hidden popup template in the document (modal clone is shown separately). */
.pma-popup-host {
  display: contents;
}

body > .elementor-location-popup {
  display: none;
}

.animated.fadeInRight {
  animation-duration: 1.2s;
}

/* JS-off: the noscript notice covers ?error=js, so only the success node uses :target. */
#contact-sent:target {
  display: block;
}

html.pma-success-modal-open {
  overflow: hidden;
}

.pma-success-modal[hidden] {
  display: none;
}

.pma-success-modal:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 16px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.8);
}

.pma-success-modal__panel {
  background: #270000;
  border: 2px solid #fff;
  color: #fff;
  max-width: 520px;
  width: 100%;
  text-align: center;
  padding: 40px 32px;
  box-sizing: border-box;
  outline: none;
}

@media (max-width: 767px) {
  .pma-success-modal__panel {
    padding: 32px 20px;
  }
}

.pma-success-modal__message {
  margin: 0 0 24px;
  font-family: var(--e-global-typography-text-font-family), Sans-serif;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 500;
}

.pma-success-modal__countdown {
  margin: 0 0 32px;
  font-family: var(--e-global-typography-text-font-family), Sans-serif;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 400;
}

.pma-success-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: stretch;
}

.pma-success-modal__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  box-sizing: border-box;
  font-family: var(--e-global-typography-accent-font-family), Sans-serif;
  font-size: 20px;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: none;
  cursor: pointer;
  border: 2px solid transparent;
  background: transparent;
  color: #fff;
}

.pma-success-modal__button--primary {
  background: #fff;
  color: #270000;
  border-color: #fff;
}

.pma-success-modal__button--primary:hover,
.pma-success-modal__button--primary:focus-visible {
  background: #270000;
  color: #fff;
  border-color: #fff;
}

.pma-success-modal__button--secondary {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.pma-success-modal__button--secondary:hover,
.pma-success-modal__button--secondary:focus-visible {
  background: #fff;
  color: #270000;
}

.pma-success-modal__button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  .pma-success-modal:not([hidden]) .pma-success-modal__panel {
    animation: pma-success-modal-in 180ms ease-out;
  }
}

@keyframes pma-success-modal-in {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pma-success-modal:not([hidden]) .pma-success-modal__panel {
    animation: none;
    transition: none;
  }
}
