/* ==========================================
   NEWSLETTER V3 - Premium Modern Redesign
   Ultra-professional with sophisticated animations
   ========================================== */

.pp-newsletter-v3 {
  padding: 120px 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  position: relative;
  overflow: hidden;
}

/* Animated gradient overlay */
.pp-newsletter-v3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.12) 0%, transparent 50%);
  animation: gradientShift 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes gradientShift {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* Subtle grid pattern */
.pp-newsletter-v3::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.5;
  pointer-events: none;
}

.pp-newsletter-v3__inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Floating decorative elements */
.pp-newsletter-v3__decoration {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.pp-newsletter-v3__decoration--1 {
  width: 500px;
  height: 500px;
  top: -250px;
  right: -150px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  filter: blur(80px);
  animation: float 12s ease-in-out infinite;
}

.pp-newsletter-v3__decoration--2 {
  width: 400px;
  height: 400px;
  bottom: -200px;
  left: -150px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  filter: blur(80px);
  animation: float 15s ease-in-out infinite reverse;
}

.pp-newsletter-v3__decoration--3 {
  width: 300px;
  height: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(168, 85, 247, 0.06) 0%, transparent 70%);
  filter: blur(60px);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(30px, -30px);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }
}

.pp-newsletter-v3__content {
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Premium icon with glassmorphism */
.pp-newsletter-v3__icon-wrapper {
  display: inline-flex;
  margin-bottom: 32px;
  animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pp-newsletter-v3__icon {
  width: 88px;
  height: 88px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  backdrop-filter: blur(20px);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 20px 60px rgba(99, 102, 241, 0.2);
  position: relative;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pp-newsletter-v3__icon::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.pp-newsletter-v3__icon:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 
    0 12px 48px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 24px 80px rgba(99, 102, 241, 0.3);
}

.pp-newsletter-v3__icon:hover::before {
  opacity: 1;
}

.pp-newsletter-v3__icon svg {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.4));
  animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

/* Modern typography */
.pp-newsletter-v3__title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pp-newsletter-v3__title-bold {
  display: block;
  background: linear-gradient(135deg, #FFFFFF 0%, #E0E7FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.pp-newsletter-v3__title-light {
  display: block;
  font-weight: 400;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(224, 231, 255, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pp-newsletter-v3__desc {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 48px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

/* Premium form design */
.pp-newsletter-v3__form {
  max-width: 600px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.pp-newsletter-v3__input-group {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.pp-newsletter-v3__input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  backdrop-filter: blur(20px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.pp-newsletter-v3__input-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pp-newsletter-v3__input-wrapper:focus-within {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 3px rgba(99, 102, 241, 0.15),
    0 0 40px rgba(99, 102, 241, 0.2);
  transform: translateY(-2px);
}

.pp-newsletter-v3__input-wrapper:focus-within::before {
  opacity: 1;
}

.pp-newsletter-v3__input-wrapper svg {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.pp-newsletter-v3__input-wrapper:focus-within svg {
  color: rgba(99, 102, 241, 0.9);
  transform: scale(1.1);
}

.pp-newsletter-v3__input-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.pp-newsletter-v3__input-wrapper input::placeholder {
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s ease;
}

.pp-newsletter-v3__input-wrapper:focus-within input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Premium button with gradient */
.pp-newsletter-v3__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 36px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 
    0 4px 20px rgba(99, 102, 241, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  position: relative;
  overflow: hidden;
}

.pp-newsletter-v3__submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pp-newsletter-v3__submit:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 8px 32px rgba(99, 102, 241, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 0 40px rgba(99, 102, 241, 0.3);
}

.pp-newsletter-v3__submit:hover::before {
  opacity: 1;
}

.pp-newsletter-v3__submit:active {
  transform: translateY(-1px);
}

.pp-newsletter-v3__submit span,
.pp-newsletter-v3__submit svg {
  position: relative;
  z-index: 1;
}

.pp-newsletter-v3__submit svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pp-newsletter-v3__submit:hover svg {
  transform: translateX(4px);
}

/* Privacy notice with icon */
.pp-newsletter-v3__privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  animation: fadeIn 0.8s ease-out 0.8s backwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.pp-newsletter-v3__privacy svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: rgba(99, 102, 241, 0.6);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
  .pp-newsletter-v3 {
    padding: 80px 0;
  }
  
  .pp-newsletter-v3__title {
    font-size: 36px;
  }
  
  .pp-newsletter-v3__desc {
    font-size: 16px;
    margin-bottom: 36px;
  }
  
  .pp-newsletter-v3__input-group {
    flex-direction: column;
    gap: 12px;
  }
  
  .pp-newsletter-v3__submit {
    width: 100%;
  }
  
  .pp-newsletter-v3__icon {
    width: 72px;
    height: 72px;
  }
  
  .pp-newsletter-v3__icon svg {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 480px) {
  .pp-newsletter-v3 {
    padding: 60px 0;
  }
  
  .pp-newsletter-v3__title {
    font-size: 32px;
  }
  
  .pp-newsletter-v3__desc {
    font-size: 15px;
  }
  
  .pp-newsletter-v3__input-wrapper {
    padding: 16px 20px;
  }
  
  .pp-newsletter-v3__submit {
    padding: 16px 28px;
  }
}
