/* Modern Newsletter Section Styles */

.newsletter {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #ec4899 100%);
  color: #ffffff;
}

/* Background decorative elements */
.newsletter::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.newsletter::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: 0;
}

/* Floating background shapes */
.newsletter .shape-1 {
  position: absolute;
  top: 70px;
  right: 10%;
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: float 8s infinite ease-in-out;
  z-index: 0;
}

.newsletter .shape-2 {
  position: absolute;
  bottom: 50px;
  left: 15%;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 58% 42% 38% 62% / 42% 55% 45% 58%;
  animation: float 10s infinite ease-in-out reverse;
  z-index: 0;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(-10px, 15px) rotate(5deg);
  }
  50% {
    transform: translate(10px, 30px) rotate(0deg);
  }
  75% {
    transform: translate(15px, 5px) rotate(-5deg);
  }
}

/* Content styling */
.newsletter-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.newsletter-title {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  line-height: 1.2;
  position: relative;
  display: inline-block;
}

.newsletter-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.4);
  transform: translateX(-50%);
  border-radius: 50px;
}

.newsletter-description {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 3rem;
  opacity: 0.9;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Form styling */
.newsletter-form {
  position: relative;
  display: flex;
  max-width: 550px;
  margin: 0 auto 1.5rem;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem;
}

.newsletter-form:hover,
.newsletter-form:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 10px 20px rgba(0, 0, 0, 0.1);
}

.newsletter-input {
  flex: 1;
  background-color: #ffffff;
  color: #1f2937;
  border: none;
  font-size: 1.1rem;
  padding: 1.2rem 1.5rem;
  border-radius: 50px;
  outline: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.newsletter-input::placeholder {
  color: #9ca3af;
  opacity: 0.8;
}

.newsletter-button {
  background: linear-gradient(90deg, #4338ca 0%, #6d28d9 100%);
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1rem 2rem;
  border: none;
  margin-left: 0.5rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  box-shadow: 0 4px 10px rgba(67, 56, 202, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.025em;
  position: relative;
  overflow: hidden;
}

.newsletter-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.7s ease;
}

.newsletter-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(67, 56, 202, 0.4);
  background: linear-gradient(90deg, #4338ca 0%, #5b21b6 100%);
}

.newsletter-button:hover::before {
  left: 100%;
}

.newsletter-button:active {
  transform: translateY(0);
}

.privacy-note {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Email icon inside input */
.newsletter-input-container {
  position: relative;
  flex: 1;
}

.newsletter-input-container::before {
  content: '\f0e0';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  z-index: 2;
}

.newsletter-input-container input {
  padding-left: 50px;
  width: 100%;
}

/* Responsive styles */
@media (max-width: 768px) {
  .newsletter {
    padding: 4rem 0;
  }
  
  .newsletter-title {
    font-size: 2.2rem;
  }
  
  .newsletter-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  .newsletter-form {
    flex-direction: column;
    padding: 0.5rem;
    border-radius: 20px;
  }
  
  .newsletter-input {
    border-radius: 15px;
    margin-bottom: 0.5rem;
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
  
  .newsletter-button {
    margin-left: 0;
    border-radius: 15px;
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .newsletter-title {
    font-size: 1.8rem;
  }
  
  .newsletter-description {
    font-size: 1rem;
  }
}
