/* ===================================
   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: 0.7;
  transition: opacity 0.15s ease;
}

.sp__badge:hover {
  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: 26px;
  }

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

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

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

  .sp__badges {
    gap: 12px;
  }
}

/* ===================================
   Retire Form — Layout
   =================================== */

/* Reset Webflow's default element margins/padding */
.rf h1, .rf h2, .rf h3, .rf h4, .rf h5, .rf h6,
.rf p,
.rf dl, .rf dt, .rf dd,
.rf figure,
.rf fieldset {
  margin: 0;
  padding: 0;
}

.rf fieldset {
  border: none;
}

.rf legend {
  padding: 0;
}

.rf {
  width: 100%;
}

/* Step 1 header slot (custom Webflow content above form) */
.rf__step1-header {
  margin-bottom: 24px;
}

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

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

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

/* ===================================
   Bigger + bold labels for readability
   =================================== */
.rf .wf-field__label {
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
}

/* ===================================
   Congratulations header (step 2)
   =================================== */
.rf__congrats {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

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

.rf__congrats h3 {
  color: var(--color-primary-400);
}

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

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

/* ===================================
   Thank You (inline, not shared component)
   =================================== */
.rf__thank-you {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 96px 48px;
  text-align: center;
}

.rf__thank-you .rf__congrats-icon {
  width: 96px;
  height: 96px;
}

.rf__thank-you .rf__congrats-icon svg {
  width: 100%;
  height: 100%;
}

.rf__thank-you h3 {
  color: var(--color-primary-400);
  font-size: 48px !important;
  line-height: 56px !important;
}

.rf__thank-you p {
  color: var(--color-neutral-400);
  max-width: 600px;
  font-size: 20px;
  line-height: 32px;
}

.rf__thank-you .wf-btn {
  margin-top: 8px;
}

/* Remove auto-capitalize on option buttons in retire form */
.rf .wf-option-grid__btn {
  text-transform: none;
}

/* ===================================
   Field group (label + desc above input)
   =================================== */
.rf__field-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rf__field-label {
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  color: var(--color-primary-400);
}

.rf__field-desc {
  font-size: 16px;
  line-height: 24px;
  color: var(--color-neutral-400);
  margin-top: -4px;
}

/* ===================================
   Body — form fields
   =================================== */
.rf__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.rf__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ===================================
   State detected (inline below zip)
   =================================== */
.rf__state-detected {
  color: var(--color-primary-200);
  margin-top: -4px;
}

/* ===================================
   Agent count
   =================================== */
.rf__agents-found {
  color: var(--color-neutral-400);
  text-align: center;
}

.rf__agents-count {
  color: var(--color-primary-400);
  font-weight: 600;
}

/* ===================================
   Actions
   =================================== */
.rf__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.rf__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;
}

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

/* ===================================
   Back button
   =================================== */
.rf__back {
  background: none;
  border: none;
  color: var(--color-primary-300);
  cursor: pointer;
  padding: 8px;
  transition: color 0.15s ease;
}

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

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

/* ===================================
   Error
   =================================== */
.rf__error {
  color: var(--color-secondary-400);
  text-align: center;
}

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

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

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

/* ===================================
   Processing screen
   =================================== */
.rf__processing {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-height: 480px;
  justify-content: center;
}

/* Loader: spinner → checkmark (no CLS) */
@keyframes rf-spin {
  to { transform: rotate(360deg); }
}

.rf__loader {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.rf__loader-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--color-neutral-200);
  border-top-color: var(--color-primary-200);
  border-radius: 50%;
  animation: rf-spin 0.8s linear infinite;
  transition: opacity 0.3s ease;
}

.rf__loader-check {
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.rf__loader--done .rf__loader-spinner {
  opacity: 0;
  animation: none;
}

.rf__loader--done .rf__loader-check {
  opacity: 1;
  transform: scale(1);
}

/* Text area */
.rf__processing-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.rf__profile-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--color-neutral-400);
}

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

/* Progress bar */
.rf__progress-bar {
  width: 100%;
}

.rf__progress-track {
  width: 100%;
  height: 8px;
  background: var(--color-neutral-200);
  border-radius: 4px;
  overflow: hidden;
}

.rf__progress-fill {
  height: 100%;
  background: var(--color-primary-200);
  border-radius: 4px;
  transition: width 0.15s ease-out;
}

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

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

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

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

.rf__check-item span:last-child {
  color: var(--color-primary-400);
  font-size: 16px;
}

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

/* Mini spinner for active item */
.rf__check-mini-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-neutral-200);
  border-top-color: var(--color-primary-200);
  border-radius: 50%;
  animation: rf-spin 0.7s linear infinite;
}

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

/* ===================================
   Social proof spacing
   =================================== */
.rf .sp {
  margin-top: 24px;
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 600px) {
  .rf__row {
    grid-template-columns: 1fr;
  }

  /* Force savings grid to single column on mobile */
  .rf .wf-option-grid__grid {
    grid-template-columns: 1fr !important;
  }
}

