/* ============================================================
   Variant F — Figma Mobile V5 design (yellow CTA, 2×2 perk grid)
   Source: figma.com/design/HsUjOISBKfPo4pNu8awGws
     Intro:       node 279:4188 (Mobile - V5)
     Loan Amount: node 279:4313 (Mobile - V5 Page 4)
   ============================================================ */

/* ── 2×2 perk grid — all breakpoints ─────────────────────── */
.variant-perks-grid-f {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin: 0 0 24px;
}
.variant-perk-tile-f {
  background: #efefef;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}
.variant-perk-tile-top-f {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: -0.24px;
  text-transform: uppercase;
  color: #6e6e73;
  line-height: 1.15;
}
.variant-perk-tile-value-f {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.78px;
 color: #241c11;
  line-height: 1.15;
}

/* Mobile-only line break in subtitle — hidden on desktop */
.f-mobile-break {
  display: none;
}

/* ── Desktop baseline — color/theme only, font sizes inherit ─ */
.variant-shell-f .variant-card-body-c {
  padding-top: 20px;
}

.variant-shell-f .variant-card-strip-c {
  background: #ffffff;
}
.variant-shell-f .variant-title-c {
  color: #241c11;
  font-weight: 400;
}
.variant-shell-f .variant-subtitle {
  color: #6a655d;
}
.variant-shell-f .variant-cta-b {
  background: #f9ce44;
  color: #241c11;
  border-radius: 40px;
  box-shadow: none;
  font-weight: 500;
  letter-spacing: -1px;
}
.variant-shell-f .primary-btn.glow-btn {
  background: #f9ce44 !important;
  color: #241c11;
  font-weight: 500;
  border-radius: 40px;
  box-shadow: none;
}
.variant-shell-f .form-h2 {
  color: #241c11;
  font-weight: 400;
}

/* ── Stepper row with circle back button — all breakpoints ── */
.variant-shell-f .variant-f-stepper-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-left: 10px;
  margin-bottom: 22px;
}

.variant-shell-f .variant-f-back-circle {
  width: 39px;
  height: 39px;
  min-width: 39px;
  flex-shrink: 0;
  border: 1px solid #efefef;
  border-radius: 41px;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #241c11;
  padding: 0;
  transition: background 0.15s;
}
.variant-shell-f .variant-f-back-circle:hover,
.variant-shell-f .variant-f-back-circle:focus-visible {
  background: #f5f5f5;
}

.variant-shell-f .variant-f-back-spacer {
  width: 39px;
  height: 39px;
  min-width: 39px;
  flex-shrink: 0;
}

/* Dashes must flex-1 inside the stepper row (base sets width:100% which overflows) */
.variant-shell-f .variant-f-stepper-row .variant-progress-dashes {
  flex: 1;
  width: auto;
  min-width: 0;
}

/* ── Loan Amount step — all breakpoints (color + visual style) ── */

/* Grey pill row: row-reverse swaps HTML order [−, amount, +] to show [+, amount, −] */
.variant-shell-f .slider-controls {
  background: #efefef;
  border-radius: 80px;
  gap: 0;
  justify-content: space-between;
  flex-direction: row-reverse;
  padding: 14px;
  margin-bottom: 24px;
}

/* White circle buttons */
.variant-shell-f .adjust-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  background: #ffffff;
  border: none;
  border-radius: 55px;
  padding: 10px;
  font-size: 0; /* hide text, show SVG background */
  color: transparent;
  box-shadow: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px 24px;
}
.variant-shell-f .adjust-btn:hover,
.variant-shell-f .adjust-btn:focus-visible {
  background-color: #f5f5f5;
  border-color: transparent;
}
/* HTML first-child = decrement (displayed on right via row-reverse) → minus line */
.variant-shell-f .slider-controls .adjust-btn:first-child {
  background-image: url('/assets/variant-f/plus-01.svg');
}
/* HTML last-child = increment (displayed on left via row-reverse) → plus cross */
.variant-shell-f .slider-controls .adjust-btn:last-child {
  background-image: url('/assets/variant-f/Minus%20Button%20Icon.svg');
}

/* Amount display */
.variant-shell-f .val-hero {
  color: #241c11;
  font-weight: 700;
  letter-spacing: -2px;
  min-width: auto;
}

/* Thick pill slider — yellow-tinted fill + grey track */
.variant-shell-f .zen-range {
  height: 24px;
  border-radius: 80px;
  margin-bottom: 24px;
  background: linear-gradient(
    to right,
    rgba(249, 206, 68, 0.4) 0%,
    rgba(249, 206, 68, 0.4) var(--range-progress, 0%),
    #efefef var(--range-progress, 0%),
    #efefef 100%
  ) !important;
}
.variant-shell-f .zen-range::-webkit-slider-runnable-track {
  height: 24px;
  border-radius: 80px;
}
.variant-shell-f .zen-range::-webkit-slider-thumb {
  background: #f9ce44 !important;
  border: none !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 55px !important;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25) !important;
  margin-top: -10px !important;
}
.variant-shell-f .zen-range::-moz-range-thumb {
  background: #f9ce44 !important;
  border: none !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 55px !important;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25) !important;
}

/* ── Mobile overrides — Figma pixel-exact ────────────────── */
@media (max-width: 768px) {
  body:has(.variant-shell-f) {
    background: #ffffff;
  }

  /* Progress dashes */
  .variant-shell-f .variant-progress-wrap-dash {
    margin-bottom: 18px;
  }
  .variant-shell-f .variant-progress-dashes {
    gap: 7.715px;
  }
  .variant-shell-f .variant-dash {
    height: 8px;
    border-radius: 57.866px;
    background: #efefef;
  }
  .variant-shell-f .variant-dash.active {
    background: #e2e6d6;
  }

  /* Card — flush, white, no forced height */
  .variant-shell-f .variant-card,
  .variant-shell-f .variant-card-c {
    background: #ffffff !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    min-height: 0 !important;
  }

  body:has(.variant-shell-f) .zen-container {
    min-height: 0;
    flex: 0 0 auto;
    padding: 0;
  }

  /* Logo strip — white */
  .variant-shell-f .variant-card-strip-c {
    background: #ffffff !important;
    min-height: 64px;
  }

  /* Logo — fixed Figma size on mobile */
  .variant-shell-f .variant-logo-inside {
    width: 236px;
    height: 51px;
  }

  /* Card body */
  .variant-shell-f .variant-card-body-c {
    background: #ffffff !important;
    padding: 20px 20px 32px;
    margin-bottom: 20vh;
  }

  /* Title */
  .variant-shell-f .variant-title-c {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 36px;
    line-height: 1.1;
    letter-spacing: -1px;
    color: #241c11;
    text-align: center;
    margin: 0 0 12px;
  }

  /* Subtitle */
  .variant-shell-f .variant-subtitle {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #6a655d;
    text-align: center;
    margin: 0 0 20px;
    max-width: none;
  }

  .variant-shell-f .f-mobile-break {
    display: inline;
  }

  /* Perk grid */
  .variant-shell-f .variant-perks-grid-f {
    margin: 0 0 20px;
  }
  .variant-shell-f .variant-perk-tile-f {
    padding: 14px;
    border-radius: 12px;
    
    gap: 6px;
  }
  .variant-shell-f .variant-perk-tile-top-f {
    font-size: 12px;
  }
  .variant-shell-f .variant-perk-tile-value-f {
    font-size: 26px;
  }

  /* CTA button */
  .variant-shell-f .variant-cta-b {
    background: #f9ce44;
    color: #241c11;
    border-radius: 40px;
    height: auto;
    padding: 22px 24px;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -1px;
    box-shadow: none;
    line-height: 1;
  }

  /* Compliance */
  .variant-shell-f .variant-compliance {
    font-family: "Inter", sans-serif;
    font-size: 12px;
    line-height: 1.4;
    color: #adadb4;
    text-align: center;
    margin-top: 16px;
  }
  .variant-shell-f .variant-compliance strong,
  .variant-shell-f .variant-compliance a {
    font-weight: 600;
    color: #adadb4;
  }

  /* ── Loan Amount step — mobile pixel sizes ─────────────── */
  .variant-shell-f .form-h2 {
    font-size: 32px;
    letter-spacing: -1px;
    margin-bottom: 40px;
  }

  .variant-shell-f .slider-controls {
    margin-bottom: 16px;
  }

  .variant-shell-f .val-hero {
    font-size: 38px;
    line-height: 48px;
  }

  .variant-shell-f .zen-range {
    margin-bottom: 16px;
  }

  /* Continue button */
  .variant-shell-f .primary-btn.glow-btn {
    background: #f9ce44 !important;
    color: #241c11;
    border-radius: 40px;
    box-shadow: none;
    font-weight: 500;
    margin-top: 24px;
  }

  /* Back button */
  .variant-shell-f .back-btn {
    color: #6a655d;
  }
  .variant-shell-f .back-btn:hover,
  .variant-shell-f .back-btn:focus-visible {
    color: #241c11;
  }
}
