/* Newsletter Styles */
.newsletter-section {
  background: linear-gradient(135deg, #2d4a2d, #1a2a1a);
  color: white;
  padding: 6rem 0;
  width: 100%;
  text-align: center;
}

.newsletter-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.newsletter-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #4da3ff;
}

.newsletter-subtitle {
  font-size: 1.2rem;
  color: #c2e9c2;
  margin-bottom: 3rem;
  line-height: 1.6;
}

.newsletter-heading {
  color: #2d4a2d;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.newsletter-subheading {
  color: #4a6e4a;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.newsletter-form-group {
  display: flex;
  max-width: 600px;
  margin: 0 auto 2rem;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-input {
  flex: 1;
  min-width: 300px;
  padding: 0.75rem 1.25rem;
  border: 1px solid #ccd8cc;
  border-radius: 6px;
  font-size: 1rem;
  background-color: white;
  color: #333;
}

.newsletter-form-group input[type="email"] {
  flex: 1;
  min-width: 300px;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  background-color: rgba(255, 255, 255, 0.95);
  color: #333;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.newsletter-form-group input[type="email"]:focus {
  outline: none;
  box-shadow: 0 4px 20px rgba(77, 163, 255, 0.3);
  background-color: white;
}

.newsletter-button {
  background: linear-gradient(135deg, #2d7a4f, #225d3d);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-btn {
  background: linear-gradient(135deg, #2d8cff, #1976d2);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(45, 140, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 200px;
  justify-content: center;
}

.newsletter-buttons {
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: center;
}

.newsletter-btn-unsubscribe {
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  padding: 1rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 150px;
  justify-content: center;
}

.newsletter-button:hover {
  background: linear-gradient(135deg, #225d3d, #1a4a2f);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(45, 122, 79, 0.4);
}

.newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(45, 140, 255, 0.5);
  background: linear-gradient(135deg, #1976d2, #1565c0);
}

.newsletter-btn-unsubscribe:hover {
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.newsletter-btn-text {
  font-weight: 600;
  letter-spacing: 0.5px;
}

.newsletter-btn-icon {
  font-size: 1.3rem;
  line-height: 1;
  position: relative;
  top: 1px;
}

.newsletter-message {
  padding: 1rem 1.5rem;
  margin: 1rem auto;
  border-radius: 8px;
  max-width: 600px;
  text-align: center;
  font-weight: 500;
  animation: fadeIn 0.3s ease-in-out;
  transition: opacity 0.3s ease-out;
}

.newsletter-message-success {
  background-color: rgba(46, 125, 50, 0.15);
  color: #81c784;
  border: 1px solid rgba(129, 199, 132, 0.3);
}

.message-alert {
  padding: 0.75rem 1.25rem;
  margin: 1rem auto;
  border-radius: 6px;
  max-width: 600px;
  text-align: center;
}

.message-success {
  background-color: #e8f5e8;
  color: #2d7a4f;
  border: 1px solid rgba(45, 122, 79, 0.3);
}

.message-info {
  background-color: #e8f0f5;
  color: #2d6a8c;
  border: 1px solid rgba(45, 106, 140, 0.3);
}

.message-error {
  background-color: #f8e9e9;
  color: #953a3a;
  border: 1px solid rgba(149, 58, 58, 0.3);
}

.newsletter-message-info {
  background-color: rgba(33, 150, 243, 0.15);
  color: #64b5f6;
  border: 1px solid rgba(100, 181, 246, 0.3);
}

.newsletter-message-error {
  background-color: rgba(244, 67, 54, 0.15);
  color: #e57373;
  border: 1px solid rgba(229, 115, 115, 0.3);
}

.newsletter-help-text,
.newsletter-error {
  color: #c2e9c2;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.newsletter-errors {
  margin-top: 0.5rem;
}

.newsletter-privacy {
  color: #9db89d;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: 2rem;
}

.newsletter-unsubscribe-link {
  color: #4da3ff;
  text-decoration: none;
}

.newsletter-unsubscribe-link:hover {
  color: #6bb8ff;
  text-decoration: underline;
}

/* Responsive newsletter styles */
@media (max-width: 768px) {
  .newsletter-form-group {
    flex-direction: column;
    align-items: center;
  }
  
  .newsletter-form-group input[type="email"] {
    min-width: auto;
    width: 100%;
    max-width: 400px;
    margin-bottom: 0.75rem;
  }
  
  .newsletter-btn, .newsletter-btn-unsubscribe {
    width: 100%;
    max-width: 190px;
    padding: 0.9rem 1.5rem;
  }
  
  .newsletter-buttons {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
  }
  
  .newsletter-btn-text {
    font-size: 1rem;
  }
}