/* ========================================
   EMAIL SUBSCRIPTION BANNER
   Colorful gradient banner for newsletter signup
   ======================================== */

.email-subscription-banner {
  background: linear-gradient(135deg, #FF1493 0%, #FF69B4 25%, #FFA500 50%, #FFD700 75%, #FF8C00 100%);
  padding: var(--spacing-xxl) 0 0 0;
  position: relative;
  overflow: hidden;
}

.email-subscription-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: pulse-bg 15s ease-in-out infinite;
}

@keyframes pulse-bg {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(10%, 10%) scale(1.1);
  }
}

.subscription-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-xxl);
  position: relative;
  z-index: 1;
}

.subscription-content {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  flex: 1;
}

.subscription-icon {
  flex-shrink: 0;
  animation: float 3s ease-in-out infinite;
}

.paper-plane-img {
  width: 80px;
  height: 80px;
  filter: brightness(0) invert(1);
  /* Makes the image white */
  transition: all 0.3s ease;
}

.subscription-icon:hover .paper-plane-img {
  transform: rotate(-10deg) scale(1.1);
  filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.subscription-text h2 {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 900;
  color: white;
  text-transform: uppercase;
  margin-bottom: var(--spacing-sm);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: 1px;
}

.subscription-text p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  margin: 0;
}

.subscription-form {
  flex: 0 0 450px;
}

.subscription-message {
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-md);
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
}

.subscription-message.success {
  background: rgba(255, 255, 255, 0.9);
  color: #22c55e;
}

.subscription-message.error {
  background: rgba(255, 255, 255, 0.9);
  color: #ef4444;
}

#email_subscription_form {
  display: flex;
  gap: var(--spacing-md);
  background: white;
  padding: 8px;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

#subscription_email {
  flex: 1;
  padding: 16px 24px;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  outline: none;
  background: transparent;
}

#subscription_email::placeholder {
  color: #999;
}

.submit-btn {
  padding: 16px 40px;
  background: #000;
  color: white;
  border: none;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.submit-btn:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* Promo Code Display */
.promo-code-display {
  margin-top: var(--spacing-md);
}

.promo-code-success {
  background: white;
  padding: var(--spacing-lg);
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-icon {
  width: 50px;
  height: 50px;
  background: #22c55e;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
  flex-shrink: 0;
}

.promo-details {
  flex: 1;
}

.promo-label {
  font-size: 14px;
  color: #666;
  margin: 0 0 4px 0;
  font-weight: 600;
}

.promo-code {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 900;
  color: #FF1493;
  margin: 0 0 4px 0;
  letter-spacing: 2px;
}

.promo-info {
  font-size: 13px;
  color: #666;
  margin: 0;
}

/* Responsive Design */
@media screen and (max-width: 968px) {
  .subscription-container {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-xl);
  }

  .subscription-content {
    flex-direction: column;
    text-align: center;
  }

  .subscription-text h2 {
    font-size: 28px;
  }

  .subscription-form {
    flex: 1;
    width: 100%;
    max-width: 500px;
  }
}

@media screen and (max-width: 540px) {
  .email-subscription-banner {
    padding: var(--spacing-xl) 0;
  }

  .subscription-text h2 {
    font-size: 22px;
    line-height: 1.2;
  }

  .subscription-text p {
    font-size: 14px;
  }

  .subscription-icon svg {
    width: 60px;
    height: 60px;
  }

  #email_subscription_form {
    flex-direction: column;
    padding: 12px;
    border-radius: 16px;
  }

  #subscription_email {
    padding: 14px 20px;
    border-radius: 12px;
  }

  .submit-btn {
    padding: 14px 32px;
    border-radius: 12px;
  }

  .promo-code-success {
    flex-direction: column;
    text-align: center;
  }

  .promo-code {
    font-size: 24px;
  }
}
