/* ============================================
   Hero Lead Capture Component
   PRIMARY CONVERSION POINT - Most important hero element
   ============================================ */

.hero-lead-capture {
  margin: 2rem auto;
  max-width: 900px;
  text-align: center;
  padding: 2.5rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-lead-copy {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1.75rem;
  font-weight: 600;
}

.hero-lead-form {
  margin: 0 auto;
}

.hero-lead-inputs {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-lead-input {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.hero-lead-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.hero-lead-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(34, 197, 94, 0.6);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

/* Primary Green CTA Button - matching button-primary style */
.hero-lead-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--gradient-cta, linear-gradient(135deg, rgba(34, 197, 94, 0.9) 0%, rgba(22, 163, 74, 0.9) 100%));
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 10px;
  color: white;
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
}

.hero-lead-submit-arrow {
  transition: transform 0.3s ease;
}

.hero-lead-submit:hover .hero-lead-submit-arrow {
  transform: translateX(3px);
}

.hero-lead-submit:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(34, 197, 94, 1) 0%, rgba(22, 163, 74, 1) 100%);
  border-color: rgba(34, 197, 94, 0.8);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.hero-lead-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

#lead-result {
  margin: 1rem;
  min-height: 24px;
}

.success-message {
  color: #22c55e;
  font-weight: 500;
  padding: 0.75rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 8px;
  text-align: center;
}

.error-message {
  color: #ef4444;
  font-weight: 500;
  padding: 0.75rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .hero-lead-capture {
    padding: 1.5rem 1rem;
  }

  .hero-lead-copy {
    font-size: 1.125rem;
  }

  .hero-lead-inputs {
    flex-direction: column;
    width: 100%;
  }

  .hero-lead-input {
    width: 100%;
    max-width: 100%;
  }

  .hero-lead-submit {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   Section Variant
   Used inside glass-card-wrapper sections
   ============================================ */

.glass-card-wrapper .hero-lead-capture {
  padding: var(--space-6, 1.5rem);
  background: transparent;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.glass-card-wrapper .hero-lead-copy:empty {
  display: none;
}

.glass-card-wrapper-cta {
  text-align: center;
}
