.newsletter-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.newsletter-modal.is-open {
  display: flex;
}

.newsletter-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 8, 41, 0.72);
  backdrop-filter: blur(2px);
}

.newsletter-modal__dialog {
  position: relative;
  background-color: #ffffff;
  border-radius: 18px;
  width: min(640px, calc(100vw - 2.5rem));
  max-height: calc(100vh - 4rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 25px 65px rgba(13, 20, 60, 0.35);
  overflow: auto;
  z-index: 1;
  color: #1B1A45;
}

.newsletter-modal__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: inherit;
}

.newsletter-modal__intro {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: inherit;
}

.newsletter-modal__frame iframe {
  width: 100%;
  border: 0;
}

.newsletter-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 0;
  background: rgba(14, 19, 53, 0.08);
  color: #0E1335;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.newsletter-modal__close:hover,
.newsletter-modal__close:focus-visible {
  background: rgba(14, 19, 53, 0.15);
  color: #000;
}

body.newsletter-modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .newsletter-modal__dialog {
    border-radius: 14px;
    padding: 1.5rem;
    max-height: calc(100vh - 2rem);
  }
}

