.lf-wrapper {
  --lf-blue: #3A67A1;
  --lf-blue-dark: #24476F;
  --lf-green: #6CCC6A;
  --lf-orange: #EEA452;
  --lf-ink: #1C3552;
  --lf-muted: #68798A;
  --lf-line: #DCE5ED;
  --lf-surface: #F5F8FB;
  --lf-error: #B63D32;
  max-width: 470px;
  margin: 0 auto;
  background: #fff;
  padding: 12px 34px 28px;
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--lf-ink);
  box-sizing: border-box;
}

.lf-wrapper * {
  box-sizing: border-box;
}

.lf-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.lf-gauge {
  display: flex;
  gap: 7px;
  margin: 2px 0 12px;
}

.lf-gauge-seg {
  flex: 1;
  height: 6px;
  border-radius: 99px;
  background: #E9EEF3;
  overflow: hidden;
  position: relative;
}

.lf-gauge-seg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--lf-green), var(--lf-blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}

.lf-gauge-seg[data-filled="true"]::after {
  transform: scaleX(1);
}

.lf-step-count {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lf-muted);
  margin: 0 0 14px;
}

.lf-step-total {
  color: #9AA8B5;
}

#lead-form .lf-step {
  display: none;
}

#lead-form .lf-step[data-active="true"] {
  display: block;
  animation: lf-in 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lf-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  #lead-form .lf-step[data-active="true"] {
    animation: none;
  }
}

.lf-question {
  font-family: "Lexend", "Poppins", system-ui, sans-serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.025em;
  color: var(--lf-blue-dark);
  margin: 0 0 20px;
}

.lf-required {
  color: var(--lf-orange);
  margin-left: 3px;
}

.lf-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lf-option {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 13px 48px 13px 16px;
  border: 1px solid var(--lf-line);
  border-radius: 12px;
  cursor: pointer;
  background: var(--lf-surface);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(36, 71, 111, 0.03);
  transition: border-color 0.18s, background-color 0.18s, transform 0.18s, box-shadow 0.18s;
}

.lf-option::after {
  content: "";
  position: absolute;
  right: 16px;
  width: 20px;
  height: 20px;
  border: 2px solid #B9C7D3;
  border-radius: 50%;
  background: #fff;
  transition: 0.18s ease;
}

.lf-option:hover {
  border-color: #9CB4CC;
  transform: translateY(-1px);
  box-shadow: 0 7px 16px rgba(36, 71, 111, 0.08);
}

.lf-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.lf-option:focus-within {
  outline: 3px solid rgba(58, 103, 161, 0.2);
  outline-offset: 2px;
}

.lf-option.is-checked {
  border-color: var(--lf-blue);
  background: #EDF4FB;
  color: var(--lf-blue-dark);
  box-shadow: inset 3px 0 0 var(--lf-green);
}

.lf-option.is-checked::after {
  border: 6px solid var(--lf-blue);
}

.lf-field {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--lf-ink);
  border: 1px solid var(--lf-line);
  border-radius: 12px;
  background: var(--lf-surface);
  margin-bottom: 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.lf-field::placeholder {
  color: #93A0AC;
}

.lf-field:focus {
  outline: none;
  border-color: var(--lf-blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(58, 103, 161, 0.12);
}

.lf-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.lf-nav:has(.lf-back.is-invisible):has(.lf-next[hidden]):has(.lf-submit[hidden]) {
  display: none;
}

.lf-back {
  background: none;
  border: none;
  font-family: inherit;
  color: var(--lf-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 10px 4px;
}

.lf-back::before {
  content: "←";
  margin-right: 6px;
}

.lf-back:hover {
  color: var(--lf-blue);
}

.lf-back.is-invisible {
  visibility: hidden;
}

.lf-next,
.lf-submit {
  font-family: inherit;
  border: none;
  min-height: 48px;
  padding: 13px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(36, 71, 111, 0.18);
  transition: background-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.lf-next::after {
  content: "→";
  margin-left: 9px;
}

.lf-next {
  background: var(--lf-blue);
  margin-left: auto;
}

.lf-next:hover {
  background: var(--lf-blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(36, 71, 111, 0.25);
}

.lf-submit {
  background: var(--lf-orange);
  width: 100%;
  box-shadow: 0 8px 18px rgba(238, 164, 82, 0.28);
}

.lf-submit:hover {
  background: #DC8E3C;
  transform: translateY(-1px);
}

.lf-next:disabled,
.lf-submit:disabled {
  opacity: 0.5;
  cursor: default;
}

.lf-next:disabled:hover,
.lf-submit:disabled:hover {
  transform: none;
}

.lf-next[hidden],
.lf-submit[hidden] {
  display: none;
}

.lf-error {
  color: var(--lf-error);
  font-size: 12px;
  margin: 9px 0 0;
  min-height: 17px;
}

.lf-assurance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 12px 0 0;
  color: var(--lf-muted);
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
}

.lf-assurance svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  color: var(--lf-green);
}

.lf-success {
  text-align: center;
  padding: 60px 4px 30px;
}

.lf-success-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lf-green), var(--lf-blue));
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(58, 103, 161, 0.22);
}

.lf-success p {
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}

.lf-ineligible {
  text-align: center;
  padding: 40px 8px 28px;
}

.lf-ineligible-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #F4E8E6;
  color: var(--lf-error);
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lf-ineligible p {
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 22px;
  color: var(--lf-ink);
}

.lf-restart {
  font-family: inherit;
  border: none;
  min-height: 48px;
  padding: 13px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  background: var(--lf-blue);
  box-shadow: 0 8px 18px rgba(36, 71, 111, 0.18);
  transition: background-color 0.15s, transform 0.15s;
}

.lf-restart:hover {
  background: var(--lf-blue-dark);
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .lf-wrapper {
    padding: 8px 20px 24px;
  }

  .lf-question {
    font-size: 20px;
  }

  .lf-option {
    min-height: 50px;
  }
}
