/* ===================================
   Social Proof — Trust bar
   =================================== */
.sp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 20px 48px;
  background: var(--color-neutral-100);
  border-top: 1px solid var(--color-neutral-200);
  max-width: 100%;
  box-sizing: border-box;
}

/* Reset Webflow's default element margins */
.sp p {
  margin: 0;
}

.sp__secure {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.sp__shield-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-primary-200);
}

.sp__secure-text {
  color: var(--color-neutral-400);
  font-size: 12px;
  line-height: 18px;
}

.sp__secure-text strong {
  color: var(--color-primary-300);
}

.sp__divider {
  width: 1px;
  height: 24px;
  background: var(--color-neutral-200);
  flex-shrink: 0;
}

.sp__badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-width: 0;
  max-width: 100%;
}

.sp__badge {
  height: 28px;
  width: auto;
  max-width: 100%;
  min-width: 0;
  flex-shrink: 1;
  object-fit: contain;
  opacity: 1;
}

.sp__badge--bbb {
  max-width: 75px;
}

.sp__badge--shopper {
  max-width: 95px;
}

.sp__badge--trusted {
  max-width: 70px;
}

/* ===================================
   Compact variant — vertical, no border
   =================================== */
.sp--compact {
  flex-direction: column;
  gap: 12px;
  padding: 0;
  background: transparent;
  border-top: none;
}

.sp--compact .sp__divider {
  display: none;
}

.sp--compact .sp__badge {
  height: 36px;
}

.sp--compact .sp__badge--bbb {
  max-width: 95px;
}

.sp--compact .sp__badge--shopper {
  max-width: 120px;
}

.sp--compact .sp__badge--trusted {
  max-width: 90px;
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 860px) {
  .sp {
    flex-direction: column;
    gap: 16px;
    padding: 20px 24px;
  }

  .sp__secure {
    flex-direction: column;
    text-align: center;
  }

  .sp__divider {
    width: 100%;
    height: 1px;
  }

  .sp__badge {
    height: 22px;
  }

  .sp__badge--bbb {
    max-width: 55px;
  }

  .sp__badge--shopper {
    max-width: 70px;
  }

  .sp__badge--trusted {
    max-width: 52px;
  }

  .sp--compact .sp__badge {
    height: 36px;
  }

  .sp--compact .sp__badge--bbb {
    max-width: 90px;
  }

  .sp--compact .sp__badge--shopper {
    max-width: 115px;
  }

  .sp--compact .sp__badge--trusted {
    max-width: 85px;
  }

  .sp--compact .sp__shield-icon {
    width: 28px;
    height: 28px;
  }

  .sp--compact .sp__shield-icon svg {
    width: 28px;
    height: 28px;
  }

  .sp--compact .sp__secure-text {
    font-size: 14px;
    line-height: 20px;
  }

  .sp__badges {
    gap: 12px;
  }
}

/* ===================================
   Landing Page Form — Stepped Lead Capture
   =================================== */

/* Reset Webflow defaults */
.lpf h1, .lpf h2, .lpf h3, .lpf h4, .lpf h5, .lpf h6,
.lpf p,
.lpf dl, .lpf dt, .lpf dd,
.lpf figure,
.lpf fieldset {
  margin: 0;
  padding: 0;
}

.lpf fieldset {
  border: none;
}

.lpf legend {
  padding: 0;
}

.lpf {
  width: 100%;
  scroll-margin-top: 16px;
}

/* Override heading font to Inter Display */
.lpf [class^="heading-"],
.lpf [class*=" heading-"] {
  font-family: 'Inter Display', sans-serif;
}

/* Remove native number spinners */
.lpf input[type='number']::-webkit-outer-spin-button,
.lpf input[type='number']::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.lpf input[type='number'] {
  -moz-appearance: textfield;
}

/* Remove auto-capitalize on option buttons */
.lpf .wf-option-grid__btn {
  text-transform: none;
}

/* Savings grid — smaller text for 3-column layout */
.lpf__savings-grid .wf-option-grid__btn {
  font-size: 13px;
  line-height: 17px;
  padding: 10px 6px;
  min-height: auto;
}

/* ─── Theme colors ─── */

.lpf--green { --lpf-accent: #4CAF50; --lpf-accent-glow: rgba(76, 175, 80, 0.35); --lpf-accent-dark: #388E3C; }
.lpf--blue  { --lpf-accent: var(--color-primary-200); --lpf-accent-glow: rgba(10, 91, 140, 0.3); --lpf-accent-dark: var(--color-primary-300); }
.lpf--red   { --lpf-accent: var(--color-secondary-400); --lpf-accent-glow: rgba(197, 39, 39, 0.3); --lpf-accent-dark: var(--color-secondary-500); }

/* Theme CTA button overrides */
.lpf--green .wf-btn--red {
  background: var(--lpf-accent) !important;
  border-color: var(--lpf-accent) !important;
}
.lpf--green .wf-btn--red:hover {
  background: var(--lpf-accent-dark) !important;
  border-color: var(--lpf-accent-dark) !important;
}

.lpf--blue .wf-btn--red {
  background: var(--lpf-accent) !important;
  border-color: var(--lpf-accent) !important;
}
.lpf--blue .wf-btn--red:hover {
  background: var(--lpf-accent-dark) !important;
  border-color: var(--lpf-accent-dark) !important;
}

/* Red theme uses the default wf-btn--red styles, no override needed */

/* ─── Progress bar ─── */

.lpf__progress-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 24px;
}

.lpf__progress-track {
  flex: 1;
  height: 6px;
  background: var(--color-neutral-200);
  border-radius: 3px;
  overflow: hidden;
}

.lpf__progress-fill {
  height: 100%;
  background: var(--lpf-accent, #4CAF50);
  border-radius: 3px;
  transition: width 0.4s ease-out;
}

.lpf__progress-label {
  flex-shrink: 0;
  color: var(--lpf-accent, #4CAF50);
  font-weight: 600;
}

/* Animated fill on mount */
@keyframes lpf-fill-grow {
  from { width: 0%; }
}

.lpf__progress-bar--animate .lpf__progress-fill {
  animation: lpf-fill-grow 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ─── Step content — fade-in on mount ─── */

@keyframes lpf-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lpf__step-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: lpf-fade-in 0.25s ease both;
}

/* ─── Step heading ─── */

.lpf__step-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lpf__step-heading h3 {
  color: var(--color-primary-400);
  font-size: 24px;
  line-height: 32px;
}

.lpf__step-heading p {
  color: var(--color-neutral-400);
}

/* ─── Field group ─── */

.lpf__field-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lpf__field-label {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: var(--color-neutral-400);
}

/* ─── Actions ─── */

.lpf__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.lpf__actions .wf-btn {
  width: 100% !important;
  white-space: normal !important;
  text-align: center !important;
  line-height: 1.4 !important;
  height: auto !important;
  min-height: 56px !important;
  padding: 16px 28px !important;
}

.lpf__actions .wf-btn:disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  filter: grayscale(0.3);
}

/* ─── Back button ─── */

.lpf__back {
  background: none;
  border: none;
  color: var(--color-primary-300);
  cursor: pointer;
  padding: 8px;
  transition: color 0.15s ease;
}

.lpf__back:hover {
  color: var(--color-primary-400);
}

.lpf__back:focus-visible {
  outline: 2px solid var(--color-primary-200);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ─── Secure text ─── */

.lpf__secure-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--color-neutral-300);
  font-size: 13px;
  line-height: 20px;
}

.lpf__secure-text svg {
  flex-shrink: 0;
}

/* ─── Error ─── */

.lpf__error {
  color: var(--color-secondary-400);
  text-align: center;
}

/* ─── Processing screen ─── */

.lpf__processing {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 420px;
  padding: 48px 0;
  justify-content: center;
}

.lpf__processing h3 {
  color: var(--color-primary-400);
  transition: opacity 0.3s ease;
}

.lpf__profile-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--color-neutral-400);
  font-size: 16px;
  line-height: 24px;
}

.lpf__dot {
  color: var(--color-neutral-300);
}

/* Progress bar in processing — no bottom margin */
.lpf__processing .lpf__progress-bar {
  margin-bottom: 0;
}

/* Checklist */
.lpf__checklist {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.lpf__check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.3;
  transition: opacity 0.4s ease;
}

.lpf__check-item--active {
  opacity: 0.7;
}

.lpf__check-item--done {
  opacity: 1;
}

.lpf__check-item span:last-child {
  color: var(--color-primary-400);
}

.lpf__check-status {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.lpf__check-status svg {
  width: 100%;
  height: 100%;
}

/* Mini spinner */
@keyframes lpf-spin {
  to { transform: rotate(360deg); }
}

.lpf__check-mini-spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid var(--color-neutral-200);
  border-top-color: var(--color-primary-200);
  border-radius: 50%;
  animation: lpf-spin 0.7s linear infinite;
}

.lpf__check-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-neutral-300);
}

/* ─── Congratulations header (contact step) ─── */

.lpf__congrats {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  margin-bottom: 24px;
}

.lpf__congrats-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.lpf__congrats h3,
.lpf__congrats h4 {
  color: var(--color-primary-400);
}

.lpf__congrats-desc {
  color: var(--color-primary-300);
}

/* Compact congrats — smaller icon, tighter spacing */
.lpf__congrats--compact {
  gap: 8px;
  margin-bottom: 16px;
}

.lpf__congrats--compact .lpf__congrats-icon {
  width: 32px;
  height: 32px;
}

.lpf__congrats--compact .lpf__congrats-icon svg {
  width: 100%;
  height: 100%;
}

.lpf__congrats p {
  color: var(--color-neutral-400);
}

/* ─── Contact form body ─── */

.lpf__contact-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ─── Disclaimer ─── */

.lpf__disclaimer {
  color: var(--color-neutral-400);
  font-family: 'Inter Display', sans-serif;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}

.lpf__disclaimer a {
  color: var(--color-primary-100);
  text-decoration: underline;
}

.lpf__disclaimer a:hover {
  color: var(--color-primary-200);
}

/* ─── Thank You ─── */

.lpf__thank-you {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 64px 24px;
  text-align: center;
}

.lpf__thank-you .lpf__congrats-icon {
  width: 72px;
  height: 72px;
}

.lpf__thank-you .lpf__congrats-icon svg {
  width: 100%;
  height: 100%;
}

.lpf__thank-you h3 {
  color: var(--color-primary-400);
  font-size: 36px !important;
  line-height: 44px !important;
}

.lpf__thank-you p {
  color: var(--color-neutral-400);
  max-width: 500px;
  font-size: 18px;
  line-height: 28px;
}

/* ─── Social proof spacing ─── */

.lpf .sp {
  padding-top: 16px;
  margin-top: 16px;
}

.lpf__processing .sp {
  padding-top: 24px;
  margin-top: 24px;
}

/* ─── Responsive ─── */

@media (max-width: 600px) {
  /* Savings grid: 2 columns on mobile */
  .lpf .wf-option-grid__grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .lpf__processing {
    gap: 28px;
    padding: 32px 0;
    min-height: 320px;
  }

  .lpf__processing h3 {
    font-size: 16px !important;
    line-height: 24px !important;
  }

  .lpf__profile-summary {
    font-size: 14px;
    line-height: 22px;
    gap: 6px;
  }

  .lpf__checklist {
    gap: 12px;
  }

  .lpf__check-item span:last-child {
    font-size: 13px;
    line-height: 20px;
  }

  .lpf__check-status {
    width: 20px;
    height: 20px;
  }

  .lpf__check-mini-spinner {
    width: 16px;
    height: 16px;
    border-width: 2px;
  }

  .lpf__check-dot {
    width: 6px;
    height: 6px;
  }

  .lpf__thank-you {
    padding: 40px 16px;
  }

  .lpf__thank-you h3 {
    font-size: 28px !important;
    line-height: 36px !important;
  }

  .lpf__thank-you p {
    font-size: 16px;
    line-height: 26px;
  }
}

