/* Newsletter form feedback */
.newsletter-msg {
  display: none;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
}

.newsletter-msg.is-success {
  display: block;
  background: rgba(76, 175, 80, 0.15);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.newsletter-msg.is-error {
  display: block;
  background: rgba(211, 47, 47, 0.15);
  color: #ef5350;
  border: 1px solid rgba(211, 47, 47, 0.3);
}

/* ============================================================
   Newsletter Success Modal
   ============================================================ */
.newsletter-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.newsletter-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.newsletter-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.newsletter-modal-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  padding: 48px 36px 36px;
  text-align: center;
  transform: translateY(24px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.newsletter-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #999;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  background: none;
  border: none;
}

.newsletter-modal-close:hover {
  background: #f5f5f5;
  color: #333;
}

.newsletter-modal-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #E85D26 0%, #f4a77a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulseIcon 0.6s ease-out;
}

@keyframes pulseIcon {
  0% { transform: scale(0.5); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.newsletter-modal-icon svg {
  width: 36px;
  height: 36px;
  fill: #fff;
}

.newsletter-modal-title {
  font-family: 'Oswald', 'Impact', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.newsletter-modal-message {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 28px;
}

.newsletter-modal-btn {
  display: inline-block;
  padding: 14px 40px;
  background: #E85D26;
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.newsletter-modal-btn:hover {
  background: #d14e1a;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(232, 93, 38, 0.35);
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .newsletter-modal-card {
    padding: 40px 24px 28px;
    border-radius: 12px;
  }

  .newsletter-modal-icon {
    width: 60px;
    height: 60px;
  }

  .newsletter-modal-icon svg {
    width: 28px;
    height: 28px;
  }

  .newsletter-modal-title {
    font-size: 1.3rem;
  }
}