/* MOVA Affordability Calculator — design polish */

.elig-page .page-hero {
  padding-bottom: 32px;
}

.elig-calc-wrap {
  /* Compact calculator shell */
  max-width: 960px;
  margin: 0 auto;
}

.elig-widget {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Kit shell: pa-card owns chrome; product head stays in body */
.pa-card.elig-widget {
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
}

.pa-card.elig-widget .pa-card__body.elig-pa-body {
  padding: 0;
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.pa-card.elig-widget .pa-card__tenant-logo {
  width: auto;
  height: 28px;
  max-width: none;
  object-fit: contain;
}

/* Figma 45:5 / 114:2 — mark 36×40 (beats .pa-card.elig-widget 28px) */
.pa-card.elig-widget.elig-widget--v62 .pa-card__tenant-logo,
.pa-card.elig-widget.elig-widget--v61 .pa-card__tenant-logo {
  width: 36px !important;
  height: 40px !important;
  max-width: 36px !important;
  object-fit: contain;
}

.pa-card.elig-widget .pa-card__footer {
  margin-top: auto;
}

/* Figma 45:5 Mortgage Calculator = 640px card */
.elig-page:not(.rvb-page) .elig-calc-wrap {
  max-width: 640px !important;
  padding-inline: 0 !important;
}
.elig-page:not(.rvb-page) .elig-widget.elig-widget--v62 {
  width: 640px;
  max-width: 100%;
  margin-inline: auto;
  border-radius: 16px;
}

.elig-widget--v61 .pa-card__header.elig-card-header {
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  overflow: hidden;
}

.elig-widget--v61 .elig-header-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.elig-widget--v61 .pa-card__tenant-logo,
.elig-widget--v62 .pa-card__tenant-logo {
  display: block;
  flex: 0 0 auto;
  height: 40px; /* Figma: mark ~40px in 48px header */
  width: auto;
  max-width: none;
  object-fit: contain;
}

.elig-widget--v62 .elig-header-brand {
  gap: 10px;
}

.elig-widget--v61 .elig-form-title {
  color: #fff;
  font-family: var(--display, Fraunces, Georgia, serif);
  font-size: 14px !important;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 0 1 auto;
  margin: 0 !important;
}

.elig-page .page-section .elig-widget--v61 .elig-form-title,
.elig-widget--v61 h2.elig-form-title {
  color: #fff;
  font-size: 14px !important;
  margin-bottom: 0 !important;
}

.elig-widget--v61 .elig-mode-toggle.pa-seg {
  background: #071f4a;
  border: 1px solid rgba(232, 230, 225, 0.55);
  min-height: 0;
  padding: 3px;
  gap: 2px;
  flex: 0 0 auto;
}

.elig-widget--v61 .elig-mode-toggle.pa-seg button {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 500;
  padding: 5px 8px;
}

.elig-widget--v61 .elig-mode-toggle.pa-seg button.is-active {
  background: #fff;
  color: #001640;
  font-weight: 600;
  box-shadow: none;
}

/* Combo: Lucide icon chip visible (Figma 45:20 / 45:28 = 22×22) */
.elig-widget--v61 .pa-combo__trigger-ico,
.elig-widget--v61 .pa-combo__opt-ico,
.elig-widget--v62 .pa-combo__trigger-ico,
.elig-widget--v62 .pa-combo__opt-ico {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 22px !important;
  height: 22px !important;
  border-radius: 6px;
  background: #f1f5f9;
  color: #0f2445 !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.elig-widget--v61 .pa-combo__trigger-ico svg,
.elig-widget--v61 .pa-combo__opt-ico svg,
.elig-widget--v62 .pa-combo__trigger-ico svg,
.elig-widget--v62 .pa-combo__opt-ico svg {
  display: block !important;
  width: 14px !important;
  height: 14px !important;
  stroke: currentColor !important;
  stroke-width: 2;
}

.elig-widget--v61 .pa-combo__opt-short {
  display: none !important;
}

.elig-widget--v61 .pa-field__label {
  font-size: 12px;
  line-height: 1.25;
  white-space: normal;
}

.elig-widget--v61 .pa-card__footer.elig-card-footer {
  background: #dce6fa;
  border-top: 1px solid #bfd1f0;
  height: auto;
  min-height: 44px;
  max-height: none;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.elig-widget--v61 .elig-footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 auto;
  min-width: 0;
}

.elig-widget--v61 .elig-footer-cta .pa-btn {
  min-height: 30px;
  height: 30px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 7px;
  white-space: nowrap;
}

/* Figma 45:5 — footer primary = gold CTA */
.elig-widget--v62 .elig-footer-cta .pa-btn--primary {
  background: var(--pa-brand-gold, #e8bc56);
  border-color: var(--pa-brand-gold, #e8bc56);
  color: #0f172a;
}

.elig-widget--v62 .elig-footer-cta .pa-btn--primary:hover {
  background: #d4a84a;
  border-color: #d4a84a;
  color: #0f172a;
}

.elig-widget--v61 .elig-footer-contact.pa-btn--ghost {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #0f2445;
}

.elig-widget--v61 .elig-footer-contact.pa-btn--ghost:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.elig-widget--v61 .elig-layout.pa-span-grid {
  display: flex;
  grid-template-columns: none;
  padding: 14px 14px 12px;
  gap: 14px;
  align-items: stretch;
}

.elig-widget--v61 .elig-form-col.pa-span {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  grid-column: auto;
}

.elig-widget--v61 .elig-combo-grid {
  gap: 10px 12px;
}

.elig-widget--v61 .elig-combo-slider {
  grid-column: 1 / -1;
  margin-top: 0;
}

.elig-widget--v61 .elig-form-cta {
  display: none;
}

.elig-widget--v61 .elig-aside.pa-span {
  flex: 0 0 240px;
  width: 240px;
  max-width: 240px;
  grid-column: auto;
  align-self: stretch;
  background: #0f2445;
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;
  min-height: 0;
  box-sizing: border-box;
}

.elig-widget--v61 .elig-aside-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
}

.elig-widget--v61 .elig-aside-meta {
  margin: 0;
}

.elig-widget--v61 .elig-rate-badge {
  display: inline-flex;
  background: rgba(232, 189, 87, 0.12);
  color: #d9ad40;
  border: 1px solid rgba(232, 189, 87, 0.3);
  border-radius: 9999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
}

/* Figma 45:5 — AED only (no Dh) */
.elig-widget--v62 .pa-money__symbol {
  display: none !important;
}

.elig-widget--v61 .elig-aside .pa-kpi__label {
  color: #a6b8d1;
  font-size: 11px;
  font-weight: 600;
}

.elig-widget--v61 .elig-aside .pa-kpi--loan .pa-kpi__label {
  color: #a6b8d1;
}
.elig-widget--v61 .elig-aside .pa-kpi--loan .pa-kpi__value {
  color: #bac7db;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 18px;
  font-weight: 700;
}

.elig-widget--v61 .elig-aside .pa-kpi--primary .pa-kpi__label {
  color: #bac7db;
  font-size: 10px;
  font-weight: 400;
}
.elig-widget--v61 .elig-aside .pa-kpi--primary .pa-kpi__value {
  color: #f5cc61;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
}

.elig-widget--v61 .elig-aside .pa-kpi--secondary .pa-kpi__value {
  color: #fff;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 18px;
  font-weight: 600;
}

.elig-widget--v61 .elig-aside-divider {
  background: rgba(255, 255, 255, 0.14);
  margin: 2px 0;
}

.elig-widget--v61 .elig-summary-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: #bac7db;
  font-size: 12px;
  font-weight: 500;
  padding: 0;
  margin-top: auto;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.elig-widget--v61 .elig-note {
  color: #8c99ad;
  font-size: 9px;
  margin: 0;
  line-height: 1.35;
}

.elig-widget--v61 .elig-summary-link:hover {
  text-decoration: underline;
}

.elig-widget--v61 .elig-trust {
  color: #8c9eb8;
  font-size: 11px;
  margin: 0;
}

.elig-widget--v61 .elig-aside__eyebrow {
  display: none;
}

@media (max-width: 720px) {
  .elig-widget--v61 .pa-card__header.elig-card-header {
    height: auto;
    min-height: 48px;
    max-height: none;
    flex-wrap: wrap;
    padding: 8px 12px;
  }

  .elig-widget--v61 .elig-mode-toggle.pa-seg {
    width: 100%;
  }

  .elig-widget--v61 .elig-mode-toggle.pa-seg button {
    flex: 1 1 auto;
  }

  .elig-widget--v61 .elig-layout.pa-span-grid {
    flex-direction: column;
  }

  .elig-widget--v61 .elig-aside.pa-span {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
  }

  .elig-widget--v61 .pa-card__footer.elig-card-footer {
    flex-wrap: wrap;
  }
}

/* Deprecated parallel brandbar — use pa-card__footer */
.elig-widget__brandbar {
  display: none;
}

/* Full-width tab header — title left, tabs right (one row) */
.elig-form-head {
  flex: 0 0 auto;
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(180deg, #eef2f7 0%, #f7f0e4 100%);
  border-bottom: 1px solid var(--line);
  padding: 10px 14px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.elig-form-title {
  font-family: var(--display);
  font-size: 17px !important;
  font-weight: 600;
  color: var(--navy-900);
  margin: 0 !important;
  padding: 0;
  letter-spacing: -0.01em;
  text-align: left;
  line-height: 1.2;
  flex: 1 1 auto;
  white-space: normal;
}

/* Override .page-section h2 clamp so widget title stays compact */
.elig-page .page-section .elig-form-title,
.elig-widget h2.elig-form-title {
  font-size: 17px !important;
  font-weight: 600;
  margin-bottom: 0 !important;
}

/* Mode toggle = kit pa-seg (chrome from pa-controls); layout-only tweaks here */
.elig-mode-toggle.pa-seg {
  display: inline-flex;
  width: auto;
  max-width: 100%;
  height: auto;
  min-height: 32px;
  margin: 0;
  flex: 0 0 auto;
  border-radius: 999px;
}

.elig-mode-toggle.pa-seg button {
  flex: 0 0 auto;
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 999px;
  line-height: 1.2;
  white-space: nowrap;
}

.elig-mode-toggle.pa-seg button.is-active {
  background: var(--pa-ctrl-navy, #001640);
  color: #fff;
  box-shadow: 0 2px 8px rgba(15, 36, 69, 0.22);
}

.elig-tab-short {
  display: none;
}

/* Step 4 last: 12-col span (7 form + 5 aside). Do not override with fr columns. */
.elig-layout.pa-span-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
}

.elig-layout.pa-span-grid > .elig-form-col,
.elig-layout.pa-span-grid > .elig-aside {
  min-height: 0;
  min-width: 0;
}

/* Legacy fallback if span grid missing */
.elig-layout:not(.pa-span-grid) {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
}

/* Quiet left form */
.elig-form-col {
  display: flex;
  flex-direction: column;
  padding: 0;
  min-width: 0;
  max-width: 100%;
  background: #f8fafc;
  border-right: 1px solid var(--line);
}

.elig-form-body {
  padding: 10px 14px 12px;
  max-width: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  gap: 2px;
}

/* DEPRECATED 2026-08-01: stacked form panels → shared + mode fields swap */
.elig-form-panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  flex: 1 1 auto;
}

.elig-form-panel {
  grid-area: 1 / 1;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.elig-form-panel.is-visible {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
}

.elig-form-shared {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* A/B compare: photo cards vs kit PaCombo */
.elig-variant-head {
  margin: 0 0 16px;
  max-width: 40rem;
}

.elig-variant-kicker {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold, #c9a35a);
}

.elig-variant-title {
  margin: 0 0 6px;
  font-family: var(--display, Fraunces, Georgia, serif);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  color: var(--ink, #0b1220);
}

.elig-variant-lead {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted, #475569);
}

.elig-variant-lead code {
  font-size: 0.85em;
  color: var(--navy-700, #16305a);
}

.elig-combo-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  margin-bottom: 4px;
}

.elig-combo-fields .pa-field {
  margin-bottom: 0;
  width: 100%;
  max-width: none;
}

/* Variant B — compact icon combo card */
.elig-widget--combo {
  --elig-combo-gap: 8px;
}

.elig-widget--combo .elig-form-head {
  padding-bottom: 10px;
  margin-bottom: 10px;
  gap: 10px;
}

.elig-widget--combo .elig-form-title {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
}

.elig-widget--combo .elig-layout {
  gap: 14px 18px;
}

.elig-form-body--combo {
  gap: 0;
}

.elig-combo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--elig-combo-gap, 8px) 12px;
  align-items: start;
}

.elig-combo-grid > .pa-field {
  margin: 0;
  width: 100%;
  max-width: none;
}

.elig-combo-grid .elig-combo-money.is-visible {
  display: contents;
}

.elig-combo-grid .elig-combo-money[hidden] {
  display: none !important;
}

.elig-combo-grid .elig-combo-money.is-visible .pa-field {
  margin: 0;
  width: 100%;
  max-width: none;
}

.elig-widget--combo .elig-breakdown-full {
  display: none;
}

.elig-widget--combo .elig-breakdown-short {
  display: inline;
}

.elig-breakdown-short {
  display: none;
}

.elig-year-seg {
  grid-column: 1 / -1;
  margin: 2px 0 0;
}

.elig-year-seg__pills {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.elig-year-seg__pills button {
  min-width: 0;
  padding-inline: 0.35rem;
  font-variant-numeric: tabular-nums;
}

.elig-widget--combo .elig-aside {
  gap: 10px;
}

.elig-widget--combo .elig-aside__eyebrow {
  margin: 0 0 6px;
  font-size: 0.78rem;
}

.elig-widget--combo .pa-kpi__value {
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  line-height: 1.15;
}

.elig-widget--combo .pa-kpi__label {
  font-size: 0.72rem;
}

.elig-widget--combo .elig-aside-divider {
  margin: 8px 0;
}

.elig-widget--combo .elig-breakdown-btn {
  font-size: 0.78rem;
  padding: 8px 10px;
  line-height: 1.3;
}

.elig-widget--combo .elig-trust {
  font-size: 0.72rem;
  margin-top: 4px;
}

.elig-widget--combo .elig-aside__cta {
  gap: 8px;
}

.elig-widget--combo .elig-aside__cta .pa-btn,
.elig-widget--combo .elig-aside__cta .btn {
  min-height: 40px;
  font-size: 0.88rem;
}

@media (max-width: 640px) {
  .elig-combo-fields,
  .elig-combo-grid {
    grid-template-columns: 1fr;
  }

  .elig-combo-grid .elig-combo-money.is-visible {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--elig-combo-gap, 8px);
  }

  .elig-year-seg__pills {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.elig-mode-fields {
  display: none;
}

.elig-mode-fields.is-visible {
  display: block;
}

.elig-mode-fields[hidden] {
  display: none !important;
}

.elig-form-body > .elig-field {
  margin-top: 4px;
  margin-bottom: 0;
}

.elig-field {
  margin-bottom: 8px;
}

.elig-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 0;
}

.elig-field > label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 5px;
  letter-spacing: 0.02em;
}

/* DEPRECATED 2026-08-01: elig-currency / elig-rate-wrap → use pa-field--money + pa-money__suffix */
.elig-select {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  background: #fff;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-900);
  transition: border-color 0.15s, box-shadow 0.15s;
  min-height: 38px;
}

.elig-select:focus {
  outline: none;
  border-color: var(--pa-ctrl-blue, #1767e8);
  box-shadow: 0 0 0 3px rgba(23, 103, 232, 0.18);
}

.elig-rate-wrap {
  display: none; /* superseded by pa-money__suffix % */
  align-items: center;
  gap: 6px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 0 10px;
  background: #fff;
  min-height: 38px;
}

.elig-rate-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy-900);
  padding: 8px 0;
  min-width: 0;
}

.elig-rate-wrap input:focus {
  outline: none;
}

.elig-rate-wrap span {
  font-weight: 700;
  color: var(--muted);
}

.elig-duration-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0 2px;
}

.elig-duration-row input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px !important;
  border-radius: 999px;
  background: var(--line) !important;
  outline: none;
  accent-color: var(--gold);
  cursor: pointer;
}
.elig-duration-row input[type="range"]::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 999px;
  background: var(--line);
}
.elig-duration-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(201, 163, 90, 0.5);
  cursor: pointer;
  position: relative;
  z-index: 1;
}
.elig-duration-row input[type="range"]::-moz-range-track {
  height: 10px;
  border-radius: 999px;
  background: var(--line);
  border: none;
}
.elig-duration-row input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid #fff;
  cursor: pointer;
}

.elig-years-box {
  flex: 0 0 68px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 5px 8px;
  background: #fff;
  text-align: center;
}

.elig-years-box label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1px;
}

.elig-years-box input[type="number"] {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy-900);
  text-align: center;
  padding: 0;
}

.elig-years-box input[type="number"]:focus {
  outline: none;
}

/* Right results panel — top→bottom fill; kit pa-kpi at L display scale */
.elig-aside {
  background: linear-gradient(165deg, var(--navy-900) 0%, #0a1628 72%, #132038 100%);
  color: #fff;
  padding: 20px 18px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  position: relative;
  box-shadow: inset 3px 0 0 0 var(--gold);
  min-height: 100%;
  box-sizing: border-box;
}

.elig-aside-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  min-height: 0;
}

.elig-aside__eyebrow {
  font-family: var(--pa-type-font, var(--font, Manrope, system-ui, sans-serif));
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.66);
  margin: 0 0 12px;
  line-height: 1.35;
}

.elig-aside-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  flex: 0 0 auto;
}

/* Kit pa-kpi — product L scale on navy aside */
.elig-aside .pa-kpi {
  gap: 0.5rem;
}

.elig-aside .pa-kpi__label {
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.7);
}

.elig-aside .pa-kpi--primary .pa-kpi__value {
  font-size: clamp(2.05rem, 3.8vw, 2.65rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.elig-aside .pa-kpi--secondary .pa-kpi__value {
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  line-height: 1.15;
}

.elig-rate-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(201, 163, 90, 0.18);
  border: 1px solid rgba(201, 163, 90, 0.45);
  color: var(--gold-soft, #e8d5a8);
  font-family: var(--pa-type-font, var(--font, Manrope, system-ui, sans-serif));
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.elig-aside-panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  flex: 1 1 auto;
  align-content: center;
  min-height: 0;
}

.elig-aside-panel {
  grid-area: 1 / 1;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.elig-aside-panel.is-visible {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
}

/* Aside KPI = kit .pa-kpi (kpi-card.css). Legacy .elig-kpi alias removed 2026-08-01. */

/*
 * Compact rows: row1 = 3 residency · row2 = 2 employment.
 * Same square size, left-aligned (2nd row does NOT stretch to fill).
 * Size = kit XS–XL via --pa-span-ru (capped so 3 fit in one row).
 * Specificity must beat .kit-tool .mova-choice-cards.choice-card-grid (12-col).
 */
.elig-choice-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 2px;
}

.elig-choice-rows > .elig-field {
  margin-bottom: 0;
  min-width: 0;
}

.elig-choice-rows > .elig-field .pa-field__label {
  margin-bottom: 4px;
}

.elig-widget.kit-tool .mova-choice-cards.mova-choice-cards--row.choice-card-grid,
.elig-widget .mova-choice-cards--row {
  /* Tile size on the row so % resolves against row width (not the card itself) */
  --elig-tile: min(
    calc(4 * var(--pa-span-ru, 32px)),
    calc((100% - 16px) / 3)
  );
  display: flex !important;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  grid-template-columns: none !important;
}

.elig-widget .choice-card-host {
  /* Same square every tile; row2 has 2 cards, left-aligned (no stretch) */
  flex: 0 0 var(--elig-tile);
  width: var(--elig-tile);
  aspect-ratio: 1 / 1;
  max-width: 100%;
  min-width: 0;
  min-height: 0 !important;
  height: auto;
  grid-column: auto !important;
}

.elig-widget .choice-card-host .choice-card {
  width: 100%;
  height: 100%;
}

.elig-widget .choice-card--intent {
  min-height: 0;
  text-align: center;
}

.elig-widget .choice-card--intent .choice-card__body {
  padding: var(--pa-cc-pad-y, 8px) var(--pa-cc-pad-x, 10px);
}

.elig-widget .choice-card--intent .choice-card__title {
  font-size: var(--pa-type-title, 0.8125rem);
  line-height: 1.2;
}

.elig-widget .choice-card--intent .choice-card__title::after {
  display: none;
}

@media (max-width: 420px) {
  .elig-widget.kit-tool .mova-choice-cards.mova-choice-cards--row.choice-card-grid,
  .elig-widget .mova-choice-cards--row {
    flex-wrap: wrap;
  }
}

.elig-widget .choice-card--square .choice-card__media,
.elig-widget .choice-card--photo .choice-card__media {
  height: auto;
  flex: 1 1 auto;
  min-height: 0;
}

.elig-widget.pa-size--s .choice-card__check,
.elig-widget[data-pa-size="s"] .choice-card__check {
  width: 18px;
  height: 18px;
  font-size: 10px;
  top: 4px;
  right: 4px;
}

.elig-widget.pa-size--m .choice-card__check,
.elig-widget[data-pa-size="m"] .choice-card__check {
  width: 20px;
  height: 20px;
  font-size: 11px;
  top: 5px;
  right: 5px;
}

.elig-widget .choice-card-host.pa-span,
.elig-widget .choice-card-host[data-pa-span] {
  min-height: 0 !important;
}

.elig-aside-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 163, 90, 0.55), rgba(255, 255, 255, 0.08));
  margin: 18px 0;
}

.elig-breakdown-btn.pa-btn,
.elig-breakdown-btn {
  width: 100%;
  max-width: 100%;
  margin-top: 0;
  border: 1px solid rgba(201, 163, 90, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--pa-type-font, var(--font));
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  padding: 11px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  box-shadow: none;
  white-space: normal; /* override .pa-btn nowrap — long label wraps */
  height: auto;
  min-height: 0;
  transition: background 0.18s, border-color 0.18s, transform 0.15s;
}

.elig-breakdown-btn > span:first-child {
  flex: 1 1 auto;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.elig-breakdown-btn:hover {
  background: rgba(201, 163, 90, 0.14);
  border-color: rgba(201, 163, 90, 0.65);
}

.elig-breakdown-btn:hover .elig-breakdown-btn__icon {
  transform: rotate(90deg);
  color: var(--gold-soft, #e8d5a8);
}

.elig-breakdown-btn__icon {
  flex: 0 0 auto;
  font-size: 1.15rem;
  line-height: 1;
  opacity: 0.9;
  margin-top: 1px;
  transition: transform 0.2s ease, color 0.2s;
  color: var(--gold-soft, #e8d5a8);
}

.elig-trust {
  margin: 0;
  font-family: var(--pa-type-font, var(--font));
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.45;
}

.elig-note {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.45;
}

.elig-note.is-warn { color: #fcd34d; }
.elig-note.is-error { color: #fca5a5; }

.elig-aside__cta {
  margin-top: auto;
  flex: 0 0 auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 16px;
}

.elig-aside__cta .pa-btn,
.elig-aside__cta .btn {
  font-size: 0.95rem;
  padding: 13px 14px;
  min-height: 46px;
}

.elig-aside__cta .btn {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 10px 12px;
  font-size: 0.88rem;
}

.elig-aside__cta .btn-primary {
  flex: 1.35;
}

.elig-btn-ghost {
  border-color: rgba(255, 255, 255, 0.45) !important;
  color: #fff !important;
  background: transparent !important;
}

.elig-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

.elig-aside .btn-primary {
  background: var(--gold, #c9a35a);
  color: var(--navy-900);
  border-color: var(--gold, #c9a35a);
  font-weight: 700;
}

.elig-aside .btn-primary:hover {
  background: var(--gold-soft, #e8d5a8);
  border-color: var(--gold-soft, #e8d5a8);
}

/* Loan summary modal */
.elig-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.elig-modal[hidden] {
  display: none !important;
}

body.elig-modal-open {
  overflow: hidden;
}

.elig-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

/* Dialog shell = kit .pa-modal; overlay/backdrop stay page-local */
.elig-modal__dialog.pa-modal {
  position: relative;
  z-index: 1;
  max-height: min(90vh, 720px);
  display: flex;
  flex-direction: column;
  border-top: 3px solid var(--gold, #c9a35a);
  overflow: hidden;
}

.elig-modal__dialog .pa-modal__body {
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}

.elig-modal__close {
  flex-shrink: 0;
  font-size: 1.45rem;
  line-height: 1;
  min-width: 36px;
  padding: 4px 8px;
}

.elig-modal__dialog .pa-modal__title {
  font-family: var(--display, inherit);
  font-size: 1.2rem;
}

.elig-modal-metric {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
}

.elig-modal-metric span {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

.elig-modal-metric strong {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-900);
  text-align: right;
}

.elig-modal-metric--divider {
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 14px;
}

.elig-modal-panel {
  margin-top: 8px;
}

.elig-modal-panel[hidden] {
  display: none !important;
}

.elig-modal__cta.pa-modal__foot {
  margin-top: 0;
  justify-content: stretch;
  flex-wrap: wrap;
}

.elig-modal__cta .pa-btn,
.elig-modal__cta .btn {
  flex: 1;
  min-width: 140px;
  text-align: center;
  text-decoration: none;
}

.elig-modal__fineprint {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.elig-modal__fineprint p {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 10px;
}

.elig-modal__fineprint p:last-child {
  margin-bottom: 0;
}

/* ── Image selection cards (homepage-wizard style) inside the calculator form ── */
.mova-choice-cards {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}
.mova-choice-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mova-choice-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.mova-choice-card {
  position: relative;
  display: block;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.mova-choice-card input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.mova-choice-card__inner {
  display: flex;
  flex-direction: column;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  height: 100%;
}

.mova-choice-card__media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef2f7;
}

.mova-choice-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mova-choice-card__label {
  display: block;
  padding: 6px 6px 7px;
  font-family: var(--font);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--navy-900);
  text-align: center;
  line-height: 1.2;
}

.mova-choice-card:hover .mova-choice-card__inner {
  border-color: var(--gold, #c9a35a);
}

.mova-choice-card input:checked ~ .mova-choice-card__inner,
.mova-choice-card.is-selected .mova-choice-card__inner {
  border-color: var(--gold, #c9a35a);
  box-shadow: 0 0 0 3px var(--gold-tint, rgba(201, 163, 90, 0.25));
}

.mova-choice-card input:checked ~ .mova-choice-card__inner .mova-choice-card__label,
.mova-choice-card.is-selected .mova-choice-card__inner .mova-choice-card__label {
  background: var(--navy-900);
  color: #fff;
}

.mova-choice-card input:focus-visible ~ .mova-choice-card__inner {
  border-color: var(--gold, #c9a35a);
  box-shadow: 0 0 0 3px var(--gold-tint, rgba(201, 163, 90, 0.35));
}

/* Selected tick */
.mova-choice-card__tick {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold, #c9a35a);
  color: var(--navy-900);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  z-index: 2;
  box-shadow: 0 1px 4px rgba(15, 36, 69, 0.35);
}
.mova-choice-card input:checked ~ .mova-choice-card__tick,
.mova-choice-card.is-selected .mova-choice-card__tick {
  display: flex;
}

/* Mobile: results first, short tab labels, full-width primary CTA */
@media (max-width: 900px) {
  .elig-layout.pa-span-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .elig-layout.pa-span-grid > .elig-form-col,
  .elig-layout.pa-span-grid > .elig-aside,
  .elig-layout.pa-span-grid > .pa-span {
    grid-column: 1 / -1;
  }

  .elig-layout:not(.pa-span-grid) {
    grid-template-columns: 1fr;
  }

  .elig-aside {
    order: -1;
    padding: 18px 16px;
    box-shadow: inset 0 -3px 0 0 var(--gold);
  }

  .elig-form-col {
    border-right: none;
    border-top: 1px solid var(--line);
  }

  .elig-form-head {
    padding: 8px 14px 7px;
  }

  .elig-form-body {
    padding: 14px 16px 16px;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .elig-form-head {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding: 7px 12px;
  }

  .elig-form-title {
    width: 100%;
    text-align: center;
    white-space: normal;
    font-size: 18px;
  }

  .elig-tab-full {
    display: none;
  }

  .elig-tab-short {
    display: inline;
  }

  .elig-mode-toggle {
    display: inline-flex;
    width: auto;
  }

  .elig-mode-toggle button {
    flex: 0 0 auto;
    white-space: nowrap;
    text-align: center;
    font-size: 0.82rem;
    min-width: 88px;
  }

  .elig-field-row {
    grid-template-columns: 1fr;
  }

  .elig-aside__cta {
    flex-direction: column;
  }

  .elig-aside__cta .btn,
  .elig-aside__cta .btn-primary {
    width: 100%;
    flex: none;
  }

  .elig-aside__cta .btn-ghost,
  .elig-aside__cta .elig-btn-ghost {
    order: 2;
  }

  .elig-modal__cta {
    flex-direction: column;
  }

  .elig-modal__cta .pa-btn,
  .elig-modal__cta .btn {
    width: 100%;
  }
}

/* ═══════════════════════════════════════════
 * Mobile immersive calculator — same widget
 * Compact hero · zero gap · full-bleed calc
 * ═══════════════════════════════════════════ */

@media (max-width: 900px) {
  .elig-page .page-hero {
    padding: 16px 0 12px;
  }

  .elig-page .page-hero .breadcrumbs {
    margin-bottom: 8px;
    font-size: 12px;
  }

  .elig-page .page-hero h1 {
    font-size: clamp(22px, 5.5vw, 28px);
    line-height: 1.2;
    max-width: none;
  }

  .elig-page .page-hero .lead {
    font-size: 14px;
    margin-top: 8px;
    max-width: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .elig-page .page-hero .hero-actions {
    display: none; /* CTA lives inside calculator */
  }

  .elig-page #calculator.page-section {
    padding: 0 0 28px;
  }

  .elig-page #calculator > .container.elig-calc-wrap {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }

  .elig-page .elig-widget {
    border-radius: 0;
    border-left: none;
    border-right: none;
    min-height: min(78dvh, 720px);
    box-shadow: none;
  }

  /* Results stay in view while filling the form (below fixed header) */
  .elig-page .elig-aside {
    position: sticky;
    top: var(--mova-header-h, 100px);
    z-index: 6;
  }
}

@media (max-width: 640px) {
  .elig-page .page-hero {
    padding: 10px 0 8px;
  }

  .elig-page .page-hero .breadcrumbs {
    display: none; /* reclaim first viewport for calc */
  }

  .elig-page .page-hero h1 {
    font-size: 1.25rem;
    letter-spacing: -0.02em;
  }

  .elig-page .page-hero .lead {
    display: none; /* gap killer — product is the calculator */
  }

  .elig-page #calculator.page-section {
    padding: 0 0 20px;
  }

  .elig-page .elig-widget {
    min-height: 0; /* fill with content — no forced empty band */
    border-bottom: 1px solid var(--line);
  }

  .elig-page .elig-layout {
    min-height: 0;
    gap: 0;
  }

  /* Form first — empty results strip was the “big gap” */
  .elig-page .elig-form-col {
    order: 1;
    border-top: none;
  }

  .elig-page .elig-aside {
    order: 2;
    position: sticky;
    top: auto;
    bottom: 0;
    padding: 12px 14px 10px;
    box-shadow: 0 -8px 24px rgba(15, 36, 69, 0.18);
  }

  .elig-page .elig-aside__eyebrow {
    margin-bottom: 8px;
    font-size: 0.75rem;
  }

  .elig-page .pa-kpi--primary .pa-kpi__value {
    font-size: 1.4rem;
  }

  .elig-page .pa-kpi--secondary .pa-kpi__value {
    font-size: 1.1rem;
  }

  .elig-page .elig-aside-divider {
    margin: 10px 0;
  }

  .elig-page .elig-breakdown-btn {
    margin-top: 10px;
    padding: 9px 10px;
    font-size: 0.72rem;
  }

  .elig-page .elig-trust,
  .elig-page .elig-note {
    display: none;
  }

  .elig-page .elig-aside__cta {
    margin-top: 10px;
    gap: 6px;
  }

  .elig-page .elig-aside__cta .elig-btn-ghost,
  .elig-page .elig-aside__cta .btn-outline {
    display: none; /* one primary CTA in strip; contact in modal/footer */
  }

  .elig-page .elig-form-body {
    padding: 12px 14px 18px;
  }

  .elig-page .elig-form-body > .elig-field:first-child {
    margin-top: 0;
  }

  .elig-page .elig-field > label {
    font-size: 12px;
  }

  .elig-page .elig-select,
  .elig-page .elig-currency,
  .elig-page .elig-rate-wrap input {
    min-height: 44px; /* UI Kit touch target */
    font-size: 16px; /* iOS zoom guard */
  }

  .elig-page .elig-aside__cta .btn,
  .elig-page .elig-aside__cta .btn-primary {
    min-height: 44px;
    border-radius: 12px;
  }

  /* FAQ / links stay after — normal page padding */
  .elig-page #faq.page-section,
  .elig-page .page-section:not(#calculator) {
    padding-left: 0;
    padding-right: 0;
  }

  .elig-page #faq .container,
  .elig-page .page-section:not(#calculator) .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* —— Payment Calculator (classic EMI) —— */
.pay-form-hint {
  margin: 0 0 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted, #475569);
}

.elig-widget .pa-field__hint {
  display: block;
  margin: 2px 0 6px;
  font-size: 0.75rem;
  line-height: 1.35;
  font-weight: 500;
  color: var(--muted, #64748b);
}

.pay-ltv-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--navy-700, #16305a);
}

.pa-field__control--suffix {
  display: flex;
  align-items: center;
  gap: 0;
}

.pa-field__control--suffix .pa-input {
  flex: 1 1 auto;
  border: 0;
  background: transparent;
  box-shadow: none;
  min-width: 0;
}

.pa-field__suffix {
  flex: 0 0 auto;
  padding: 0 12px 0 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted, #64748b);
}

.elig-rate-badge--header {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 0.7rem;
}
