.newsletter-overlay {
  position: fixed;
  inset: 0;
  z-index: 100002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  background: rgba(24, 21, 26, 0.42);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.newsletter-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.newsletter-modal {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 44px 36px 40px;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 28px 72px rgba(24, 21, 26, 0.18);
  text-align: center;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.35s ease;
}

.newsletter-overlay.is-visible .newsletter-modal {
  transform: translateY(0) scale(1);
}

.newsletter-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #8F9394;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.newsletter-close:hover {
  color: #18151A;
  background: #F4F4F0;
}

.newsletter-close svg {
  width: 18px;
  height: 18px;
}

.newsletter-logo {
  display: block;
  width: auto;
  height: 72px;
  margin: 0 auto 28px;
  object-fit: contain;
}

.newsletter-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.55rem, 4vw, 1.85rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin: 0 0 10px;
  color: #18151A;
}

.newsletter-offer {
  margin: 0 0 18px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #18151A;
}

.newsletter-text {
  margin: 0 0 28px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #2F2C30;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter-input {
  width: 100%;
  padding: 15px 22px;
  border: 1px solid #18151A;
  border-radius: 999px;
  background: #ffffff;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.88rem;
  color: #18151A;
  text-align: center;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-input::placeholder {
  color: #8F9394;
}

.newsletter-input:focus {
  border-color: #8FB6B6;
  box-shadow: 0 0 0 3px rgba(175, 207, 207, 0.35);
}

.newsletter-submit {
  width: 100%;
  padding: 15px 22px;
  border: none;
  border-radius: 999px;
  background: #AFCFCF;
  color: #18151A;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.newsletter-submit:hover:not(:disabled) {
  background: #8FB6B6;
  transform: translateY(-1px);
}

a[data-newsletter-open].icon-link {
  background: #AFCFCF;
}

a[data-newsletter-open].icon-link:hover {
  background: #8FB6B6;
}

button[data-newsletter-open].btn-ghost {
  background: #AFCFCF;
  color: #18151A;
  border-color: #AFCFCF;
}

button[data-newsletter-open].btn-ghost:hover {
  background: #8FB6B6;
  border-color: #8FB6B6;
  color: #18151A;
}

.cta-band button[data-newsletter-open].btn-ghost {
  background: #AFCFCF;
  color: #18151A;
  border-color: #AFCFCF;
}

.cta-band button[data-newsletter-open].btn-ghost:hover {
  background: #8FB6B6;
  border-color: #8FB6B6;
  color: #18151A;
}

.newsletter-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.newsletter-status {
  margin: 14px 0 0;
  min-height: 1.2em;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #2F2C30;
}

.newsletter-status.is-error {
  color: #9b3b3b;
}

.newsletter-status.is-success {
  color: #3d6b5e;
}

.newsletter-footer-link {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-size: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  opacity: 0.85;
}

.newsletter-footer-link:hover {
  opacity: 1;
}

@media (max-width: 480px) {
  .newsletter-modal {
    padding: 40px 24px 32px;
    border-radius: 18px;
  }

  .newsletter-logo {
    height: 60px;
    margin-bottom: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .newsletter-overlay,
  .newsletter-modal {
    transition: none;
  }
}
