/* Newsletter Modal Styles */
.newsletter-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.newsletter-modal.active {
  display: block;
}

.newsletter-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
}

.newsletter-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -45%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.newsletter-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

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

.newsletter-modal-body {
  padding: 40px 30px 30px;
}

.newsletter-modal-body h3 {
  margin: 0 0 15px 0;
  font-size: 24px;
  color: #333;
  font-weight: 600;
}

.newsletter-modal-body p {
  margin: 0 0 15px 0;
  color: #666;
  line-height: 1.6;
}

.newsletter-modal-body ul {
  margin: 0 0 25px 0;
  padding-left: 20px;
  color: #666;
}

.newsletter-modal-body ul li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.newsletter-modal-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 25px;
}

.newsletter-modal-btn {
  flex: 1;
  min-width: 140px;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  display: inline-block;
}

.newsletter-modal-btn-primary {
  background-color: #7c4dff;
  color: #fff;
  border-color: #7c4dff;
}

.newsletter-modal-btn-primary:hover {
  background-color: #6639e8;
  border-color: #6639e8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 77, 255, 0.3);
}

.newsletter-modal-btn-secondary {
  background-color: transparent;
  color: #666;
  border-color: #ddd;
}

.newsletter-modal-btn-secondary:hover {
  background-color: #f5f5f5;
  border-color: #ccc;
  color: #333;
}

/* Responsive Design */
@media (max-width: 600px) {
  .newsletter-modal-content {
    width: 95%;
    max-height: 95vh;
  }
  
  .newsletter-modal-body {
    padding: 35px 20px 20px;
  }
  
  .newsletter-modal-body h3 {
    font-size: 20px;
  }
  
  .newsletter-modal-buttons {
    flex-direction: column;
  }
  
  .newsletter-modal-btn {
    width: 100%;
  }
}

/* Dark Mode Support (optional) */
@media (prefers-color-scheme: dark) {
  .newsletter-modal-content {
    background: #1e1e1e;
    color: #e0e0e0;
  }
  
  .newsletter-modal-body h3 {
    color: #fff;
  }
  
  .newsletter-modal-body p,
  .newsletter-modal-body ul {
    color: #ccc;
  }
  
  .newsletter-modal-close {
    color: #999;
  }
  
  .newsletter-modal-close:hover {
    background-color: #333;
    color: #fff;
  }
  
  .newsletter-modal-btn-secondary {
    color: #ccc;
    border-color: #444;
  }
  
  .newsletter-modal-btn-secondary:hover {
    background-color: #2a2a2a;
    border-color: #555;
    color: #fff;
  }
}
