.lead-form-mount {
  width: 100%;
  max-width: 760px;
  margin: 2.5rem auto 0;
  scroll-margin-top: 2rem;
  text-align: left;
}

#filipe-lead-form {
  scroll-margin-top: 2rem;
}

.fp-logo-fallback {
  color: #fff;
  font-family: var(--font-heading, sans-serif);
  font-size: clamp(1.8rem, 5vw, 2.7rem);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.lead-form-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(59, 130, 246, 0.16), transparent 32%),
    rgba(15, 23, 42, 0.78);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.lead-form-heading {
  text-align: center;
}

.lead-form-eyebrow {
  display: inline-block;
  margin-bottom: 0.65rem;
  color: #60a5fa;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lead-form-heading h3 {
  margin: 0;
  color: #fff;
  font-family: inherit;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
}

.lead-form-heading p {
  max-width: 580px;
  margin: 0.75rem auto 0;
  color: #cbd5e1;
  font-size: 0.94rem;
  line-height: 1.55;
}

.lead-form-progress {
  height: 5px;
  margin-top: 1.65rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
}

.lead-form-progress-bar {
  display: block;
  width: 14.285%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  transition: width 280ms ease;
}

.lead-form-step-count {
  margin: 0.55rem 0 1.4rem;
  color: #94a3b8;
  font-size: 0.78rem;
  text-align: right;
}

.lead-form-step {
  display: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  animation: lead-form-enter 260ms ease both;
}

.lead-form-step.is-active {
  display: block;
}

.lead-form-step legend {
  width: 100%;
  margin-bottom: 1.25rem;
  color: #f8fafc;
  font-size: clamp(1.12rem, 2.5vw, 1.35rem);
  font-weight: 600;
  line-height: 1.35;
}

.lead-form-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.lead-form-fields label:first-child {
  grid-column: 1 / -1;
}

.lead-form-fields label,
.lead-form-wide-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.lead-form-fields label > span,
.lead-form-wide-field > span {
  color: #dbeafe;
  font-size: 0.83rem;
  font-weight: 600;
}

.lead-form-fields input,
.lead-form-wide-field input {
  width: 100%;
  min-height: 52px;
  padding: 0 1rem;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 12px;
  outline: none;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.lead-form-fields input::placeholder,
.lead-form-wide-field input::placeholder {
  color: #64748b;
}

.lead-form-fields input:focus,
.lead-form-wide-field input:focus {
  border-color: #60a5fa;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.17);
}

.lead-form-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.lead-form-options label {
  position: relative;
  cursor: pointer;
}

.lead-form-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.lead-form-options span {
  display: flex;
  min-height: 58px;
  align-items: center;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.055);
  color: #e2e8f0;
  font-size: 0.92rem;
  line-height: 1.35;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.lead-form-options label:hover span {
  border-color: rgba(96, 165, 250, 0.7);
  transform: translateY(-1px);
}

.lead-form-options input:focus-visible + span {
  outline: 3px solid rgba(96, 165, 250, 0.45);
  outline-offset: 2px;
}

.lead-form-options input:checked + span {
  border-color: #60a5fa;
  background: rgba(37, 99, 235, 0.23);
  color: #fff;
  box-shadow: inset 3px 0 0 #60a5fa;
}

.lead-form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 1rem;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.78rem;
  line-height: 1.45;
}

.lead-form-consent input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin-top: 0.08rem;
  accent-color: #3b82f6;
}

.lead-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.lead-form-actions button {
  min-height: 49px;
  padding: 0.7rem 1.25rem;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.lead-form-actions button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.lead-form-back {
  margin-right: auto;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.lead-form-next,
.lead-form-submit {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.lead-form-submit {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.26);
}

.lead-form-actions button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.lead-form-error {
  min-height: 1.2rem;
  margin-top: 0.7rem;
  color: #fca5a5;
  font-size: 0.82rem;
}

.lead-form-success {
  padding: 1.2rem 0 0.5rem;
  text-align: center;
  animation: lead-form-enter 320ms ease both;
}

.lead-form-success-icon {
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
  font-size: 1.8rem;
  font-weight: 700;
}

.lead-form-success h4 {
  margin: 0 0 0.6rem;
  color: #fff;
  font-size: 1.45rem;
}

.lead-form-success p {
  max-width: 520px;
  margin: 0 auto;
  color: #cbd5e1;
  line-height: 1.55;
}

[hidden] {
  display: none !important;
}

@keyframes lead-form-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .lead-form-mount {
    margin-top: 2rem;
  }

  .lead-form-card {
    padding: 1.35rem;
    border-radius: 18px;
  }

  .lead-form-fields,
  .lead-form-options {
    grid-template-columns: 1fr;
  }

  .lead-form-fields label:first-child {
    grid-column: auto;
  }

  .lead-form-options span {
    min-height: 52px;
  }

  .lead-form-actions {
    flex-wrap: wrap;
  }

  .lead-form-actions button {
    flex: 1 1 auto;
  }
}

@media (max-width: 767px) {
  .fp-hero-mobile-spacing {
    padding-bottom: 80px !important;
  }

  .lead-title-desktop-break {
    display: none !important;
  }

  .fp-force-image-visible {
    opacity: 1 !important;
    transform: none !important;
  }

  .fp-force-image-visible img {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lead-form-step,
  .lead-form-success,
  .lead-form-progress-bar,
  .lead-form-actions button,
  .lead-form-options span {
    animation: none;
    scroll-behavior: auto;
    transition: none;
  }
}

#btn-whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  display: flex;
  width: 60px;
  height: 60px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  animation: whatsapp-float-pulse 2s infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

#btn-whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

#btn-whatsapp-float[data-sending="true"] {
  opacity: 0.72;
  cursor: wait;
}

#btn-whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

@keyframes whatsapp-float-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  #btn-whatsapp-float {
    animation: none;
  }
}
