/* Popup Newsletter Styles */
.newsletter-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.newsletter-popup-content {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.newsletter-popup-overlay.show .newsletter-popup-content {
  transform: scale(1);
}

.newsletter-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.newsletter-form-container h3 {
  color: #333;
  margin-bottom: 10px;
  font-size: 24px;
  text-align: center;
}

.newsletter-form-container p {
  color: #666;
  margin-bottom: 25px;
  text-align: center;
  line-height: 1.5;
}

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

.form-group {
  display: flex;
  flex-direction: column;
}

.newsletter-form input {
  padding: 12px 15px;
  border: 2px solid #e1e1e1;
  border-radius: 5px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
  outline: none;
  border-color: #0073aa;
}

.newsletter-submit {
  background: #0073aa;
  color: #fff;
  border: none;
  padding: 15px 20px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 10px;
}

.newsletter-submit:hover {
  background: #005a87;
}

.newsletter-submit:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.newsletter-message {
  padding: 10px;
  border-radius: 5px;
  margin-top: 15px;
  text-align: center;
}

.newsletter-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.newsletter-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.newsletter-success-container {
  text-align: center;
}

.success-icon {
  width: 60px;
  height: 60px;
  background: #28a745;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 auto 20px;
}

.newsletter-success-container h3 {
  color: #28a745;
  margin-bottom: 15px;
}

.newsletter-success-container p {
  color: #666;
  line-height: 1.5;
  margin-bottom: 10px;
}

/* Loading animation */
.newsletter-loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #0073aa;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 600px) {
  .newsletter-popup-content {
      padding: 20px;
      margin: 20px;
  }
  
  .newsletter-form-container h3 {
      font-size: 20px;
  }
  
  .newsletter-form input,
  .newsletter-submit {
      font-size: 14px;
  }
}