.spotlight-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  z-index: 9998;
  background: radial-gradient(
    circle at calc(var(--spotlight-left) + var(--spotlight-width) / 2) calc(var(--spotlight-top) + var(--spotlight-height) / 2 - var(--scroll-offset, 0px)),
    transparent 0,
    transparent calc(min(var(--spotlight-width), var(--spotlight-height)) / 2 + 20px),
    rgba(0, 0, 0, 0.7) calc(min(var(--spotlight-width), var(--spotlight-height)) / 2 + 100px),
    rgba(0, 0, 0, 0.85) 100%
  );
}

.spotlight-overlay.active {
  opacity: 1;
}

/* Ensure the EmailTru form container stays on top of the overlay */
.emailtru-forms {
  position: relative;
  z-index: 9999;
}

/* Responsive styles for EmailTru forms */
@media (max-width: 768px) {
  .emailtru-forms {
    flex-direction: column !important;
    gap: 16px !important;
    padding: 16px !important;
  }

  .emailtru-forms > div:first-child {
    padding-right: 0 !important;
    padding-bottom: 0 !important;
  }

  .emailtru-forms .emailtru-form-inputs {
    flex-direction: column !important;
  }

  .emailtru-forms .emailtru-form-inputs button {
    width: 100% !important;
  }

  .emailtru-forms p:first-of-type {
    font-size: 22px !important;
  }
}

/* Popup modal overlay */
.emailtru-popup-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 10000;
}

.emailtru-popup-modal.emailtru-popup-visible {
  display: flex;
}

.emailtru-form-message {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(46, 125, 50, 0.08);
  border: 1px solid rgba(46, 125, 50, 0.25);
  color: #1b5e20;
  font-size: 14px;
  line-height: 1.4;
}

.emailtru-form-message.emailtru-form-message--error {
  background: rgba(198, 40, 40, 0.08);
  border-color: rgba(198, 40, 40, 0.25);
  color: #b71c1c;
}
