/* ===== Newsletter Popup ===== */
.nl-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(29, 78, 77, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nl-popup-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.nl-popup {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 460px;
  width: 100%;
  padding: var(--space-2xl) var(--space-xl);
  position: relative;
  font-family: var(--font-body);
  color: var(--text-dark);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.nl-popup-overlay.visible .nl-popup {
  transform: translateY(0) scale(1);
}

.nl-popup__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--primary-dark);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nl-popup__close:hover,
.nl-popup__close:focus-visible {
  background: var(--bg-cream);
  color: var(--primary-dark);
  outline: none;
}

.nl-popup__title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  line-height: 1.25;
  color: var(--primary-dark);
  margin-bottom: var(--space-sm);
  padding-right: 1.5rem;
}

.nl-popup__subtitle {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.nl-popup__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.nl-popup__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.nl-popup__field label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.nl-popup__field input {
  padding: 0.75rem 0.9rem;
  border: 1.5px solid #d8e0df;
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.nl-popup__field input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(107, 158, 151, 0.18);
}

.nl-popup__submit {
  margin-top: var(--space-xs);
  padding: 0.85rem 1.2rem;
  border: none;
  border-radius: var(--radius);
  background: var(--primary-dark);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.nl-popup__submit:hover:not(:disabled),
.nl-popup__submit:focus-visible:not(:disabled) {
  background: var(--primary-light);
  outline: none;
}

.nl-popup__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.nl-popup__legal {
  margin-top: var(--space-sm);
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--text-muted);
  text-align: center;
}

.nl-popup__error {
  margin-top: var(--space-xs);
  font-size: 0.85rem;
  color: #b03a2e;
  display: none;
}

.nl-popup__error.visible {
  display: block;
}

.nl-popup__success {
  text-align: center;
  padding: var(--space-md) 0;
}

.nl-popup__success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  border-radius: 50%;
  background: var(--bg-cream);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.nl-popup__success-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--primary-dark);
  margin-bottom: var(--space-sm);
}

.nl-popup__success-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .nl-popup {
    padding: var(--space-xl) var(--space-lg);
  }

  .nl-popup__title {
    font-size: 1.35rem;
  }

  .nl-popup__subtitle {
    font-size: 0.9rem;
  }
}
