/* ============================================================
   Variant G — Figma Mobile V6 design (green CTA, 3-row benefit list)
   Source: figma.com/design/HsUjOISBKfPo4pNu8awGws
     Intro: node 279:4253 (Mobile - V6)
   Desktop: same structure as Variant F
   ============================================================ */

/* ── Benefit rows — all breakpoints ─────────────────────── */
.variant-perks-rows-g {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin: 0 0 24px;
}
.variant-perk-row-g {
  background: #f6f6f6;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
}
.variant-perk-row-label-g {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.32px;
  text-transform: uppercase;
  color: #6e6e73;
  line-height: 1.15;
}
.variant-perk-row-value-g {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.48px;
  color: #1c1c1e;
  line-height: 1.15;
}

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

/* ── Heading elements — desktop base ────────────────────── */
.variant-g-heading-wrap {
  text-align: center;
  width: 100%;
  margin-bottom: 18px;
}
.variant-g-eyebrow {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.45;
  text-transform: uppercase;
  color: #474749;
  text-align: center;
  margin: 0;
}
.variant-g-headline {
  font-size: 29px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #1c1c1e;
  text-align: center;
  margin: 0;
}

/* ── Desktop baseline — same structure as Variant F ─────── */
.variant-shell-g .variant-card-body-c {
  padding-top: 20px;
}
.variant-shell-g .variant-card-strip-c {
  background: #ffffff;
}
.variant-shell-g .variant-title-c {
  color: #1c1c1e;
  font-weight: 600;
}
.variant-shell-g .variant-subtitle {
  color: #6a655d;
}
.variant-shell-g .variant-cta-b {
  background: #17b465;
  color: #ffffff;
  border-radius: 20px;
  box-shadow: none;
  font-weight: 600;
  letter-spacing: -0.5px;
}
.variant-shell-g .primary-btn.glow-btn {
  background: #17b465 !important;
  color: #ffffff;
  font-weight: 600;
  border-radius: 40px;
  box-shadow: none;
}
.variant-shell-g .form-h2 {
  color: #1c1c1e;
  font-weight: 400;
}

/* ── Stepper row with circle back button — all breakpoints ── */
.variant-shell-g .variant-f-stepper-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-left: 10px;
  margin-bottom: 22px;
}
.variant-shell-g .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: #1c1c1e;
  padding: 0;
  transition: background 0.15s;
}
.variant-shell-g .variant-f-back-circle:hover,
.variant-shell-g .variant-f-back-circle:focus-visible {
  background: #f5f5f5;
}
.variant-shell-g .variant-f-back-spacer {
  width: 39px;
  height: 39px;
  min-width: 39px;
  flex-shrink: 0;
}
.variant-shell-g .variant-f-stepper-row .variant-progress-dashes {
  flex: 1;
  width: auto;
  min-width: 0;
  gap: 6px;
  justify-content: center;
}
.variant-shell-g .variant-dash {
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  border-radius: 57.866px;
  background: #efefef;
}
.variant-shell-g .variant-dash.active {
  flex: 0 0 24px;
  width: 24px;
  background: #28cd41;
}

/* ── Loan Amount step — same visual style as F, green accent ── */
.variant-shell-g .slider-controls {
  background: #efefef;
  border-radius: 80px;
  gap: 0;
  justify-content: space-between;
  flex-direction: row-reverse;
  padding: 14px;
  margin-bottom: 24px;
}
.variant-shell-g .adjust-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  background: #ffffff;
  border: none;
  border-radius: 55px;
  padding: 10px;
  font-size: 0;
  color: transparent;
  box-shadow: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px 24px;
}
.variant-shell-g .adjust-btn:hover,
.variant-shell-g .adjust-btn:focus-visible {
  background-color: #f5f5f5;
  border-color: transparent;
}
.variant-shell-g .slider-controls .adjust-btn:first-child {
  background-image: url('/assets/variant-f/plus-01.svg');
}
.variant-shell-g .slider-controls .adjust-btn:last-child {
  background-image: url('/assets/variant-f/Minus%20Button%20Icon.svg');
}
.variant-shell-g .val-hero {
  color: #241c11;
  font-weight: 700;
  letter-spacing: -2px;
  min-width: auto;
}
.variant-shell-g .form-h2 {
  color: #241c11;
  font-weight: 500;
}
.variant-shell-g .zen-range {
  height: 24px;
  border-radius: 80px;
  margin-bottom: 24px;
  background: linear-gradient(
    to right,
    rgba(23, 180, 101, 0.4) 0%,
    rgba(23, 180, 101, 0.4) var(--range-progress, 0%),
    #efefef var(--range-progress, 0%),
    #efefef 100%
  ) !important;
}
.variant-shell-g .zen-range::-webkit-slider-runnable-track {
  height: 24px;
  border-radius: 80px;
}
.variant-shell-g .zen-range::-webkit-slider-thumb {
  background: #17b465 !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-g .zen-range::-moz-range-thumb {
  background: #17b465 !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;
}

/* ── Thank You screen — Figma 588:1347 ──────────────────── */

/* Hide the C/E glow on G TY */
.variant-shell-g .variant-c-ty-glow {
  display: none;
}

/* Hide progress stepper + back button on G TY */
.variant-shell-g.ty-active .variant-f-stepper-row {
  display: none !important;
}

/* Card override on TY state */
.variant-shell-g.ty-active .variant-card {
  border: 1px solid #e1f0d3;
  border-radius: 60px;
  box-shadow: 0px 24px 48px rgba(56, 72, 57, 0.12), 0px 4px 12px rgba(56, 72, 57, 0.06);
  overflow: hidden;
}

/* Logo strip — white on TY so it blends with card */
.variant-shell-g.ty-active .variant-card-strip-c {
  background: #ffffff;
  border-bottom: 1px solid #f0f7ea;
}

.variant-shell-g.ty-active .variant-card-body-c {
  padding: 48px 60px 60px;
  margin-bottom: 0;
  display: block;
}

/* Main TY wrapper */
.variant-g-ty {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* Header */
.variant-g-ty-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
  width: 100%;
}

.variant-g-ty-title {
  margin: 0;
  font-size: 40px;
  font-weight: 600;
  line-height: 43.523px;
  letter-spacing: -1.5px;
  color: #1c1c1e;
}

.variant-g-ty-body {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #646464;
}

/* CTA row */
.variant-g-ty-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.variant-g-ty-cta-text {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.5px;
  color: #1c1c1e;
  width: 328px;
}

.variant-g-ty-cta-text strong {
  font-weight: 600;
}

.variant-g-ty-phone-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #17b465;
  border-radius: 20.806px;
  padding-right: 16px;
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.variant-g-ty-phone-btn:hover,
.variant-g-ty-phone-btn:focus-visible {
  opacity: 0.88;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(23, 180, 101, 0.35);
  outline: none;
}

.variant-g-ty-phone-icon-wrap {
  background: #f8fbf5;
  border: 2px solid #17b465;
  border-radius: 40.95px;
  padding: 4.388px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 3.201px 3.841px rgba(0, 0, 0, 0.25);
  width: 42.414px;
  height: 42.414px;
  flex-shrink: 0;
}

.variant-g-ty-phone-icon-wrap svg {
  width: 24px;
  height: 24px;
  display: block;
}

.variant-g-ty-phone-num {
  font-size: 18px;
  font-weight: 700;
  line-height: 35.39px;
  color: #ffffff;
  white-space: nowrap;
}

/* Bottom — two-column */
.variant-g-ty-bottom {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  border-top: 1px solid #e1f0d3;
  padding-top: 24px;
  width: 100%;
}

.variant-g-ty-next-steps {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.variant-g-ty-next-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.5px;
  color: #1c1c1e;
}

.variant-g-ty-next-body {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #646464;
}

/* Trustpilot */
.variant-g-ty-trustpilot {
  display: flex;
  align-items: center;
  gap: 9.902px;
}

.variant-g-ty-tp-logo {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 35.138px;
}

.variant-g-ty-tp-star-icon {
  width: 16px;
  height: 15px;
  display: block;
  flex-shrink: 0;
}

.variant-g-ty-tp-label {
  font-size: 18px;
  font-weight: 600;
  color: #000000;
  line-height: 21.961px;
  white-space: nowrap;
}

.variant-g-ty-tp-stars {
  display: flex;
  gap: 3.255px;
  align-items: center;
}

.variant-g-ty-tp-star {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.441px;
  width: 32.548px;
  height: 32.548px;
  background: #219653;
  flex-shrink: 0;
}

.variant-g-ty-tp-star svg {
  width: 22.783px;
  height: 22.783px;
  display: block;
}

.variant-g-ty-tp-star--partial {
  background: linear-gradient(to right, #219653 0%, #219653 67.278%, #c5e3c5 67.278%, #c5e3c5 100%);
}

/* FAQ */
.variant-g-ty-faq {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width:100%;
}

.variant-g-ty-faq-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.5px;
  color: #1c1c1e;
}

.variant-g-ty-faq-list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.variant-g-ty-faq-item {
  border-bottom: 0.584px solid #b3cdb4;
}

.variant-g-ty-faq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14.028px 8px 14.028px 0;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  gap: 8px;
}

.variant-g-ty-faq-q {
  flex: 1;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.5px;
  color: #1c1c1e;
}

.variant-g-ty-faq-chevron {
  flex-shrink: 0;
  width: 23.817px;
  height: 23.817px;
  display: block;
  transition: transform 0.2s ease;
}

.variant-g-ty-faq-answer {
  padding: 0 8px 14px 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #646464;
}

/* Disqualified state */
.variant-g-ty-disq {
  text-align: center;
  padding: 40px 0;
}

.variant-g-ty-disq-title {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -1px;
  color: #1c1c1e;
}

.variant-g-ty-disq-body {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #646464;
}

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

  /* Progress dots (Figma: circles + active pill) */
  .variant-shell-g .variant-progress-wrap-dash {
    margin-bottom: 18px;
  }
  .variant-shell-g .variant-progress-dashes {
    gap: 6px;
    justify-content: center;
  }
  .variant-shell-g .variant-dash {
    flex: 0 0 12px;
    width: 12px;
    height: 12px;
    border-radius: 57.866px;
    background: #efefef;
  }
  .variant-shell-g .variant-dash.active {
    flex: 0 0 24px;
    width: 24px;
    background: #28cd41;
  }

  /* Card — flush, white, no forced height */
  .variant-shell-g .variant-card,
  .variant-shell-g .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-g) .zen-container {
    min-height: 0;
    flex: 0 0 auto;
    padding: 0;
  }

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

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

  /* Card body */
  .variant-shell-g:not(.ty-active) .variant-card-body-c {
    background: #ffffff !important;
    padding: 20px 20px 32px;
    margin-bottom: 20vh;
  }

  /* Eyebrow + headline wrapper */
  .variant-g-heading-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin: 0 0 12px;
    width: 100%;
    text-align: center;
  }

  .variant-g-eyebrow {
    margin: 0;
  }

  /* "Personal Loan in minutes" — Figma 40px semibold, two lines */
  .variant-g-headline {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 40px;
    line-height: 45px;
    letter-spacing: -1px;
    color: #1c1c1e;
    text-align: center;
    margin: 0;
  }

  /* Subtitle */
  .variant-shell-g .variant-subtitle {
    font-family: "Inter", sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.45;
    color: #6a655d;
    text-align: center;
    margin: 0 0 24px;
    max-width: none;
  }

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

  /* Benefit rows */
  .variant-shell-g .variant-perks-rows-g {
    margin: 0 0 16px;
  }

  /* CTA button */
  .variant-shell-g .variant-cta-b {
    background: #17b465;
    color: #ffffff;
    border-radius: 20px;
    height: auto;
    padding: 26px 24px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.5px;
    box-shadow: none;
    line-height: 1;
  }

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

  /* ── Loan Amount step — mobile pixel sizes ─────────────── */
  .variant-shell-g .form-h2 {
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -1px;
    color: #241c11;
    text-align: center;
    margin-bottom: 40px;
  }
  .variant-shell-g .slider-controls {
    margin-bottom: 16px;
  }
  .variant-shell-g .val-hero {
    font-size: 38px;
    line-height: 48px;
    color: #241c11;
  }
  .variant-shell-g .zen-range {
    height: 24px;
    margin-bottom: 16px;
  }
  .variant-shell-g .primary-btn.glow-btn {
    background: #17b465 !important;
    color: #ffffff;
    border-radius: 40px;
    box-shadow: none;
    font-weight: 600;
    margin-top: 24px;
  }
  .variant-shell-g .back-btn {
    color: #6a655d;
  }
  .variant-shell-g .back-btn:hover,
  .variant-shell-g .back-btn:focus-visible {
    color: #1c1c1e;
  }

  /* ── Thank You — mobile overrides ─────────────────────── */
  .variant-shell-g.ty-active .variant-card {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  .variant-shell-g.ty-active .variant-card-strip-c {
    background: #ffffff !important;
    border-bottom: 1px solid #f0f7ea !important;
  }

  .variant-shell-g.ty-active .variant-card-body-c {
    padding: 28px 20px 40px !important;
    margin-bottom: 0 !important;
  }

  .variant-g-ty-title {
    font-size: 26px;
    letter-spacing: -0.8px;
    line-height: 1.1;
  }

  .variant-g-ty-cta-row {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .variant-g-ty-cta-text {
    width: 100%;
    text-align: center;
    font-size: 15px;
  }

  .variant-g-ty-phone-btn {
    justify-content: center;
    border-radius: 14px;
    padding: 10px 16px 10px 10px;
  }

  .variant-g-ty-bottom {
    flex-direction: column;
    gap: 24px;
  }

  .variant-g-ty-next-title,
  .variant-g-ty-faq-title {
    font-size: 16px;
  }

  .variant-g-ty-next-body,
  .variant-g-ty-faq-q {
    font-size: 14px;
  }

  .variant-g-ty-tp-label {
    font-size: 14px;
  }

  .variant-g-ty-tp-star {
    width: 24px;
    height: 24px;
    padding: 2px;
  }

  .variant-g-ty-tp-star svg {
    width: 16px;
    height: 16px;
  }
}
