/* ==========================================================================
   Email Capture Section
   Estilos para o formulário de captura de email (newsletter/sorteio)
   ========================================================================== */

.email-capture-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: white;
}

.email-capture-box {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.prize-icon {
  font-size: 50px;
  margin-bottom: 20px;
  animation: bounce 2s infinite;
}

.email-capture-box h2 {
  font-size: 28px;
  margin-bottom: 15px;
  font-weight: 700;
}

.subtitle {
  font-size: 18px;
  margin-bottom: 25px;
  color: rgba(255, 255, 255, 0.9);
}

.benefits {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.benefit-item {
  background: rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 16px;
}

/* Form */
.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 400px;
  margin: 0 auto;
}

.form-floating {
  position: relative;
}

.form-floating input {
  width: 100%;
  height: 60px;
  padding: 20px 16px 8px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  transition: all 0.2s ease;
}

.form-floating label {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  font-size: 16px;
  color: #666;
  pointer-events: none;
  transition: all 0.2s ease;
}

.form-floating input:focus,
.form-floating input:not(:placeholder-shown) {
  padding-top: 24px;
  padding-bottom: 4px;
}

.form-floating input:focus + label,
.form-floating input:not(:placeholder-shown) + label {
  top: 30%;
  font-size: 12px;
  color: #333;
}

.form-floating input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(106, 17, 203, 0.4);
}

/* Trust Badges */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.badge {
  background: rgba(255, 255, 255, 0.15);
  padding: 8px 15px;
  border-radius: 50px;
  font-size: 14px;
  backdrop-filter: blur(5px);
  transition: transform 0.2s ease;
}

.badge:hover {
  transform: translateY(-2px);
}

/* Subscribe Button */
.subscribe-btn {
  background: #ff4d4d;
  color: white;
  border: none;
  padding: 15px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  height: 60px;
}

.subscribe-btn:hover {
  background: #ff3333;
  transform: translateY(-2px);
}

.subscribe-btn:not(.btn-loading):hover {
  background: #ff3333;
  transform: translateY(-2px);
}

.terms {
  margin-top: 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* Loading State */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-loading:after {
  content: '';
  position: absolute;
  left: calc(50% - 10px);
  top: calc(50% - 10px);
  width: 20px;
  height: 20px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-right-color: transparent;
  animation: button-loading 0.7s linear infinite;
}

.subscribe-btn.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.subscribe-btn.btn-loading:after {
  content: '';
  position: absolute;
  left: calc(50% - 10px);
  top: calc(50% - 10px);
  width: 20px;
  height: 20px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-right-color: transparent;
  animation: button-loading 0.7s linear infinite;
}

/* Animations */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-20px); }
  60% { transform: translateY(-10px); }
}

@keyframes button-loading {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
  .email-capture-box {
    margin: 20px;
    padding: 30px;
  }

  .benefits {
    flex-direction: column;
    gap: 10px;
  }

  .trust-badges {
    flex-direction: column;
    align-items: center;
  }
}
