/* ==============================================================================
   7SD - FORMULÁRIO DE CAPTURA DE LEADS (LEADS.CSS)
   ============================================================================== */

.final-cta {
  position: relative;
  overflow: visible;
  padding: 60px 0 120px;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  margin-bottom: 0 !important;
}

.final-cta .aurora.a3 {
  display: none !important;
}

.leads-container {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (max-width: 960px) {
  .leads-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Coluna da Esquerda (Informações e Chamada) */
.leads-info {
  text-align: left;
}

.leads-info .kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #b86bff;
  margin-bottom: 12px;
  display: inline-block;
  text-transform: uppercase;
}

.leads-info h2 {
  font-size: clamp(32px, 3.8vw, 54px);
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  margin: 0 0 18px 0;
  letter-spacing: -0.03em;
}

.leads-info h2 em {
  font-style: normal;
  background: linear-gradient(135deg, #e0b3ff, #b86bff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.leads-info p {
  color: rgba(237, 234, 245, 0.78);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.6;
  margin: 0 0 32px 0;
  max-width: 480px;
}

.leads-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 36px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.leads-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #edeaf5;
  font-size: 15px;
  font-weight: 500;
}

.leads-benefits li svg {
  flex-shrink: 0;
  color: #10b981;
  width: 20px;
  height: 20px;
}

.leads-whatsapp-alternative {
  padding: 18px 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.4s, box-shadow 0.4s, background 0.4s;
}

.leads-whatsapp-alternative:hover {
  transform: translateY(-3px);
  border-color: rgba(184, 107, 255, 0.45);
  box-shadow: 0 14px 35px rgba(123, 46, 255, 0.15);
  background: linear-gradient(135deg, rgba(154, 73, 255, 0.1), rgba(255, 255, 255, 0.035));
}

.leads-whatsapp-alternative p {
  margin: 0;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

.leads-whatsapp-alternative strong {
  color: #ffffff;
  display: block;
  font-size: 14px;
}

.btn-wa-alt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #25d366;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.btn-wa-alt:hover {
  background: #25d366;
  color: #072210;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

/* Coluna da Direita (Card do Formulário Glassmorphism) */
.leads-form-card {
  position: relative;
  border-radius: 20px;
  padding: 38px 34px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  text-align: left;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.4s, box-shadow 0.4s, background 0.4s;
}

.leads-form-card:hover {
  border-color: rgba(184, 107, 255, 0.55);
  box-shadow: 0 16px 40px rgba(123, 46, 255, 0.16);
  background: linear-gradient(135deg, rgba(154, 73, 255, 0.1), rgba(255, 255, 255, 0.035));
}

@media (max-width: 580px) {
  .leads-form-card {
    padding: 28px 20px;
  }
}

.leads-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(184, 107, 255, 0.7), transparent);
  border-radius: 999px;
}

.leads-form-header {
  margin-bottom: 24px;
}

.leads-form-header h3 {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px 0;
  letter-spacing: -0.02em;
}

.leads-form-header p {
  font-size: 14px;
  color: rgba(237, 234, 245, 0.65);
  margin: 0;
}

.leads-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.leads-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 580px) {
  .leads-form-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.lead-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.lead-field label {
  font-size: 13px;
  font-weight: 600;
  color: #ded9ed;
  display: flex;
  align-items: center;
  gap: 4px;
}

.lead-field label .req {
  color: #ef4444;
}

.lead-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.lead-input-wrapper .input-icon {
  position: absolute;
  left: 14px;
  color: rgba(184, 107, 255, 0.65);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.lead-field input,
.lead-field select,
.lead-field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: #ffffff;
  font-family: inherit;
  font-size: 14.5px;
  padding: 13px 14px;
  outline: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.lead-input-wrapper input {
  padding-left: 42px;
}

.lead-field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b86bff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.lead-field select option {
  background: #130a21;
  color: #ffffff;
  padding: 8px;
}

.lead-field textarea {
  resize: vertical;
  min-height: 85px;
  max-height: 200px;
}

.lead-field input::placeholder,
.lead-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.lead-field input:focus,
.lead-field select:focus,
.lead-field textarea:focus {
  border-color: rgba(184, 107, 255, 0.65);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 18px rgba(184, 107, 255, 0.28);
}

/* Honeypot field (anti-spam) */
.hp-field {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  left: -9999px !important;
}

/* Botão Submit */
.btn-submit-lead {
  width: 100%;
  padding: 16px 28px;
  margin-top: 6px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #7b2eff, #b86bff);
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 8px 25px rgba(123, 46, 255, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-submit-lead:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(184, 107, 255, 0.55);
  background: linear-gradient(135deg, #8a3eff, #c77eff);
}

.btn-submit-lead:active {
  transform: translateY(0);
}

.btn-submit-lead:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Spinner de carregamento no botão */
.lead-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: leadSpin 0.7s linear infinite;
}

@keyframes leadSpin {
  to { transform: rotate(360deg); }
}

.btn-submit-lead.is-loading .lead-spinner {
  display: inline-block;
}

.btn-submit-lead.is-loading .btn-text {
  opacity: 0.8;
}

/* Mensagem de Sucesso */
.lead-success-message {
  display: none;
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10b981;
  font-size: 14.5px;
  line-height: 1.5;
  text-align: center;
  animation: leadFadeIn 0.4s ease;
}

.lead-success-message.is-visible {
  display: block;
}

.lead-success-icon {
  display: inline-flex;
  margin-bottom: 8px;
}

.lead-error-message {
  display: none;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-size: 13.5px;
  text-align: center;
}

.lead-error-message.is-visible {
  display: block;
}

@keyframes leadFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
