/* ========== CSS VARIABLES FROM THEME ========== */
:root {
  --color-primary: #007BBD;
  --color-secondary: #79C8E0;
  --color-accent: #F8B400;
  --color-background: #F5F9FC;
  --color-surface: #FFFFFF;
  --color-text-primary: #0D1B2A;
  --color-text-secondary: #4B5D73;
  --color-border: #DCE6F2;
  --gradient-primary: linear-gradient(135deg, #007BBD, #79C8E0);
  
  --font-family: 'Poppins', 'Inter', sans-serif;
  --h2-size: 2rem;
  --h2-weight: 700;
  --body-size: 1rem;
  --body-weight: 400;
  --small-size: 0.875rem;
  
  --radius-small: 6px;
  --radius-medium: 12px;
  --radius-large: 20px;
  --shadow-soft: 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 4px 10px rgba(0, 0, 0, 0.1);
  --shadow-large: 0 8px 30px rgba(0, 123, 189, 0.15);
}

/* ========== NEWSLETTER SECTION ========== */
.home-newsletter {
  position: relative;
  padding: 2rem 0;
  overflow: hidden;
  /* background: linear-gradient(135deg, #F5F9FC 0%, #E8F0F8 50%, #F5F9FC 100%); */
  border-top: 1px solid var(--color-border);
}

/* ========== ANIMATED BACKGROUND ========== */
.newsletter-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: floatOrb 20s ease-in-out infinite;
}

/* .orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #007BBD, transparent);
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #F8B400, transparent);
  top: 50%;
  right: -250px;
  transform: translateY(-50%);
  animation-delay: 5s;
} */

/* .orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #79C8E0, transparent);
  bottom: -175px;
  left: 20%;
  animation-delay: 10s;
} */

@keyframes floatOrb {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

.pattern-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 2px 2px, rgba(0, 123, 189, 0.15) 1px, transparent 0);
  background-size: 40px 40px;
  opacity: 0.4;
}

/* ========== CONTAINER ========== */
.home-newsletter .home-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.newsletter-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1rem;
}

/* ========== BADGE ========== */
.newsletter-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--gradient-primary);
  color: var(--color-surface);
  font-size: 0.75rem;
  
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 50px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 20px rgba(0, 123, 189, 0.3);
  animation: pulseBadge 2s ease-in-out infinite;
  font-family: var(--font-family);
}

@keyframes pulseBadge {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 20px rgba(0, 123, 189, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(0, 123, 189, 0.4);
  }
}

/* ========== TITLE ========== */
.newsletter-title {
  font-size: var(--h2-size);
  
  margin: 0 0 0.5rem 0;
  background: linear-gradient(135deg, #8F5CF7 0%, #32C1D6 50%, #F95C7F 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-family: var(--font-family);
}

.newsletter-description {
  font-size: var(--body-size);
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin: 0 0 1.5rem 0;
  font-family: var(--font-family);
}

/* ========== FORM ========== */
.newsletter-form {
  margin-bottom: 1.5rem;
}

.form-wrapper {
  position: relative;
  margin-bottom: 0.75rem;
}

.input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

.input-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.input-icon svg {
  width: 20px;
  height: 20px;
}

.newsletter-input {
  flex: 1;
  padding: 0.875rem 1rem;
  border: 1px solid var(--color-border, #D1D5DB);
  border-radius: var(--radius-medium, 12px);
  background: var(--color-surface, #FFFFFF);
  font-size: var(--body-size);
  color: var(--color-text-primary);
  font-family: var(--font-family);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
}

.newsletter-input:focus {
  border-color: var(--color-primary, #007BBD);
  outline: 2px solid rgba(0, 123, 189, 0.2);
  outline-offset: 1px;
}

.newsletter-input::placeholder {
  color: var(--color-text-secondary);
  opacity: 0.7;
}

.newsletter-input:focus::placeholder {
  opacity: 0.5;
}

.btn-subscribe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--gradient-primary);
  color: var(--color-surface);
  border: none;
  border-radius: var(--radius-medium);
  font-size: var(--body-size);
  
  font-family: var(--font-family);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-medium);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-subscribe::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-subscribe:hover::before {
  width: 300px;
  height: 300px;
}

.btn-subscribe:hover {
  background: var(--color-primary);
  box-shadow: 0 6px 25px rgba(0, 123, 189, 0.4);
  transform: translateY(-2px);
}

.btn-subscribe:active {
  transform: translateY(0);
}

.btn-subscribe svg {
  width: 20px;
  height: 20px;
  position: relative;
  z-index: 1;
}

.btn-subscribe span {
  position: relative;
  z-index: 1;
}

/* ========== PRIVACY ========== */
.privacy-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.privacy-wrapper svg {
  width: 16px;
  height: 16px;
  color: var(--color-text-secondary);
  flex-shrink: 0;
}

.newsletter-privacy {
  font-size: var(--small-size);
  color: var(--color-text-secondary);
  margin: 0;
  font-family: var(--font-family);
}

/* ========== BENEFITS ========== */
.newsletter-benefits {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--small-size);
  color: var(--color-text-secondary);
  
  font-family: var(--font-family);
  transition: all 0.3s ease;
}

.benefit-item:hover {
  color: var(--color-primary);
  transform: translateY(-2px);
}

.benefit-icon {
  font-size: 1.25rem;
  line-height: 1;
  animation: bounceIcon 2s ease-in-out infinite;
}

.benefit-item:nth-child(2) .benefit-icon {
  animation-delay: 0.3s;
}

.benefit-item:nth-child(3) .benefit-icon {
  animation-delay: 0.6s;
}

@keyframes bounceIcon {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
  .home-newsletter {
    padding: 1.5rem 0;
  }
  
  .newsletter-title {
    font-size: 1.75rem;
  }
  
  .input-wrapper {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
  }
  
  .input-icon {
    margin-left: 0;
  }
  
  .newsletter-input {
    width: 100%;
    text-align: center;
  }
  
  .btn-subscribe {
    width: 100%;
    padding: 1rem 2rem;
  }
  
  .newsletter-benefits {
    flex-direction: column;
    gap: 1rem;
  }
  
  .benefit-item {
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .newsletter-title {
    font-size: 1.5rem;
  }
  
  .newsletter-description {
    font-size: 0.9375rem;
  }
  
  .orb-1,
  .orb-2,
  .orb-3 {
    filter: blur(60px);
  }
}

.btn-subscribe span{
  color: white;
}