:root {
  --ink: #0e1f1e;
  --muted: #5a6b6c;
  --paper: #f4f6f6;
  --surface: #ffffff;
  --line: #d8e1e0;
  /* Brand palette — derived from Cylinder Auto Sales badge logo */
  --brand-dark: #0b1b1a;     /* shield / dark petrol */
  --accent-bright: #529ebe;  /* cylinder light blue (highlights, icons) */
  --teal: #2c87ac;           /* primary accent / CTA (legible w/ white text) */
  --teal-dark: #1f6f93;      /* hover / gradient end */
  --orange: #d86f28;
  --yellow: #529ebe;         /* was gold; now logo light-blue (brand accent) */
  --gold: #f1bf42;           /* reserved for review star ratings only */
  --shadow: 0 20px 60px rgba(11, 27, 26, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body,
button,
input,
select {
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.dialog-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 36px; /* sit below sticky top-bar (~33px desktop) */
  z-index: 25;
  background: var(--canvas-elevated, #ffffff);
  border-bottom: 1px solid var(--line, rgba(15, 23, 42, 0.08));
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(18px, 4vw, 48px);
  background: rgba(245, 247, 246, 0.9);
  border-bottom: 1px solid rgba(220, 228, 226, 0.85);
  backdrop-filter: blur(16px);
}

.brand,
.header-cta,
.btn {
  text-decoration: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

/* Text-only brand — centered, large, no logo */
.brand-textonly {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  text-decoration: none;
}
.brand-textonly strong {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .brand-textonly strong { font-size: 20px; }
}
@media (max-width: 380px) {
  .brand-textonly strong { font-size: 18px; }
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 0;
  overflow: visible;
  flex-shrink: 0;
  background: transparent;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* Brand text — name + tagline side by side */
.brand-text {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  line-height: 1.1;
}
.brand strong {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}
.brand-tagline {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  border-left: 1px solid #d1d5db;
  padding-left: 10px;
}

@media (max-width: 768px) {
  .brand-tagline { display: none; } /* hide on mobile to keep header compact */
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--ink);
}

.header-cta,
.btn,
.lang-toggle {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 10px 15px;
  font-weight: 800;
}

.lang-toggle {
  background: white;
  color: var(--ink);
  cursor: pointer;
  /* Compact size + push to the right edge of the header */
  min-height: 32px !important;
  padding: 4px 10px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  margin-left: auto;
}

/* Header WhatsApp button + Got-a-question floating btn — replaced by floating WA FAB */
.header-cta { display: none !important; }
[hidden] { display: none !important; }

/* Hide top nav — menu is in the hamburger drawer */
.site-header > nav { display: none !important; }

/* Hide hamburger drawer footer — clean menu */
.hamburger-drawer-foot { display: none !important; }

/* Push lang-toggle to the right */
.site-header .lang-toggle { margin-left: auto !important; }

.lang-toggle.active {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.header-cta,
.btn.primary {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}

.header-cta:hover,
.btn.primary:hover {
  background: var(--teal-dark);
}

.btn.light {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.btn.disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

.btn.full {
  width: 100%;
}

.hero {
  position: relative;
  min-height: clamp(640px, calc(100vh - 120px), 820px);
  display: flex;
  align-items: end;
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background: linear-gradient(135deg, #0b1b1a 0%, #2c87ac 100%);
  background-size: cover;
  background-position: 64% center;
  transform: none;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(14, 24, 26, 0.9), rgba(14, 24, 26, 0.5) 48%, rgba(14, 24, 26, 0.12)),
    linear-gradient(0deg, rgba(14, 24, 26, 0.42), rgba(14, 24, 26, 0));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(42px, 8vh, 86px) 0;
  color: white;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--yellow);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 830px;
  margin-bottom: 18px;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 0.96;
}

.hero-copy {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2.6vw, 22px);
  line-height: 1.42;
}

.hero-actions,
.trust-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 26px;
}

.trust-strip {
  max-width: 860px;
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.trust-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #f8fbf9;
  color: #0b1b1a;
  font-weight: 900;
  font-size: 13.5px;
}

.search-band {
  position: relative;
  z-index: 1;
  background: #eef4f1;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.search-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 16px 0;
}

.search-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 10px;
}

/* Inventory section head — title left, filters btn right */
.section-head-inventory { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.inventory-head-right { display: inline-flex; align-items: center; gap: 14px; }
.inventory-head-right #resultCount { margin: 0; color: var(--muted); font-size: 13px; font-weight: 500; }
.inventory-source-note { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.inventory-source-note.stale { color: #9a3412; font-weight: 700; }

.advanced-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all .15s;
  box-shadow: 0 1px 3px rgba(15,23,42,.05);
}
.advanced-search-btn:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(44, 135, 172,.15); }
.advanced-search-btn svg { color: var(--teal); }
.advanced-search-btn.active { background: var(--teal); border-color: var(--teal); color: #fff; }
.advanced-search-btn.active svg { color: #fff; }

@media (max-width: 640px) {
  .section-head-inventory { flex-direction: column; align-items: stretch; gap: 10px; }
  .inventory-head-right { justify-content: space-between; }
}

/* Collapsible advanced search */
.search-collapsible { padding: 14px 0; }
.search-collapsible > summary { cursor: pointer; user-select: none; list-style: none; padding: 6px 4px; border-radius: 8px; transition: background .15s; margin-bottom: 0; }
.search-collapsible > summary::-webkit-details-marker { display: none; }
.search-collapsible > summary:hover { background: rgba(44, 135, 172,.06); }
.search-toggle-arrow { font-size: 16px; color: var(--teal); transition: transform .25s ease; padding: 0 8px; line-height: 1; }
.search-collapsible[open] .search-toggle-arrow { transform: rotate(180deg); }
.search-collapsible[open] > summary { margin-bottom: 14px; border-bottom: 1px dashed rgba(44, 135, 172,.25); padding-bottom: 12px; }
.search-actions-row { display: flex; justify-content: flex-end; margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(44, 135, 172,.2); }

/* Collapsible "Get Approved" finance section */
.finance-section.finance-section-collapsed { display: block; }
.finance-details { width: min(1120px, calc(100% - 36px)); margin: 0 auto; padding: 14px 0; }
.finance-summary { cursor: pointer; user-select: none; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 22px; border-radius: 14px; background: linear-gradient(135deg, #eaf4f9 0%, #d1fae5 100%); border: 1px solid rgba(44, 135, 172,.2); transition: transform .15s, box-shadow .15s; }
.finance-summary::-webkit-details-marker { display: none; }
.finance-summary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(44, 135, 172,.12); }
.finance-summary .eyebrow { color: var(--teal); margin: 0; }
.finance-summary h2 { margin: 4px 0 6px; font-size: clamp(20px, 3vw, 26px); }
.finance-summary .finance-subtitle { color: var(--ink); opacity: .75; margin: 0; font-size: 14px; }
.finance-toggle-arrow { font-size: 26px; color: var(--teal); transition: transform .25s ease; flex-shrink: 0; line-height: 1; }
.finance-details[open] .finance-toggle-arrow { transform: rotate(180deg); }
.finance-details[open] .finance-summary { background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); margin-bottom: 18px; }
.finance-details .finance-copy { padding: 10px 4px 14px; }
.finance-details .prequal-panel { margin-top: 14px; }

.search-head span,
.search-head strong {
  display: block;
}

.search-head span {
  color: var(--orange);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.search-head strong {
  margin-top: 2px;
  font-size: 18px;
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) repeat(7, minmax(108px, 0.7fr));
  gap: 10px;
  align-items: end;
}

.filter-reset {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 8px 12px;
  font-weight: 900;
}

.filter-reset:hover {
  background: #f8fbf9;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

input,
select {
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(44, 135, 172, 0.14);
}

.inventory-section,
.about-section,
.finance-section,
.proof-section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(42px, 8vw, 72px) 0;
}

.popular-makes-section {
  background: #0b0f11;
  color: white;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.popular-makes-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(34px, 6vw, 54px) 0;
}

.popular-makes-head {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-bottom: 24px;
  text-align: center;
}

.popular-makes-head h2 {
  margin-bottom: 0;
  color: white;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.08;
}

.popular-makes-head .eyebrow {
  color: #0b63ff;
}

.popular-makes-head::after {
  content: "";
  width: 42px;
  height: 8px;
  background: #0b63ff;
}

.make-controls {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.make-controls button {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
}

.make-controls button:hover {
  background: var(--teal);
  border-color: var(--teal);
}

.make-rail {
  display: flex;
  gap: clamp(18px, 4vw, 48px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 44px 8px;
  scrollbar-width: thin;
}

.make-card {
  flex: 0 0 124px;
  min-height: 104px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 7px;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: white;
  cursor: pointer;
  scroll-snap-align: start;
}

.make-card:hover,
.make-card.active {
  background: rgba(255, 255, 255, 0.06);
}

.make-logo {
  width: 132px;
  height: 62px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.38));
}

.make-card strong {
  color: white;
  font-size: 16px;
  line-height: 1;
}

.make-card em {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 20px;
}

.section-head h2,
.about-copy h2,
.finance-copy h2,
.proof-section h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
}

#resultCount {
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 7px;
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.inventory-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.inventory-pagination button {
  min-width: 42px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 8px 12px;
  font-weight: 900;
  cursor: pointer;
}

.inventory-pagination button:hover:not(:disabled),
.inventory-pagination button.active {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}

.inventory-pagination button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.page-number-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.empty-results {
  grid-column: 1 / -1;
  min-height: 180px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font-weight: 850;
  text-align: center;
  padding: 24px;
}

.vehicle-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.vehicle-card button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.vehicle-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #dfe6e3;
}

.vehicle-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge {
  position: absolute;
  left: 10px;
  top: 10px;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #0b1b1a;
  color: white;
  font-size: 12.5px;
  font-weight: 900;
}

.vehicle-body {
  padding: 14px;
}

.vehicle-body h3 {
  margin-bottom: 7px;
  font-size: 18px;
  line-height: 1.2;
}

.vehicle-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 13px;
}

.vehicle-meta span,
.feature-list span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e6eeee;
  color: #0b1b1a;
  font-size: 12.5px;
  font-weight: 900;
}

.card-price {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 13px;
}

.card-price span,
.price-block span,
.price-block small,
.disclaimer {
  color: var(--muted);
}

.card-price strong {
  display: block;
  color: var(--teal);
  font-size: 26px;
  line-height: 1;
}

.card-price em {
  font-style: normal;
  color: var(--orange);
  font-weight: 900;
}

.finance-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 28px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.finance-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  margin-top: 16px;
}

.prequal-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.prequal-highlights span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #e8efec;
  color: var(--ink);
  font-weight: 900;
  font-size: 13px;
}

.credit-application-card {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 14px 36px rgba(23, 35, 38, 0.08);
}

.credit-application-card span,
.pdf-dialog-head span {
  color: var(--orange);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.credit-application-card strong,
.pdf-dialog-head strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.credit-application-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.credit-application-actions,
.pdf-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.prequal-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.prequal-top,
.prequal-actions,
.prequal-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.prequal-top {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.prequal-top span,
.prequal-top strong {
  display: block;
}

.prequal-top span {
  color: var(--orange);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.prequal-top strong {
  margin-top: 3px;
  font-size: 22px;
}

.prequal-top em {
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef3f1;
  color: var(--teal-dark);
  font-style: normal;
  font-weight: 900;
  font-size: 13px;
}

.prequal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.consent-row {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbf9;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
  text-transform: none;
}

.consent-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 1px;
}

.prequal-actions {
  justify-content: flex-start;
  margin-top: 16px;
}

.prequal-result {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  margin-top: 16px;
  padding: 16px;
  border-radius: 8px;
  background: #10201d;
  color: white;
}

.prequal-result h3,
.prequal-result p,
.prequal-result ul {
  margin: 0;
}

.prequal-result p,
.prequal-result li {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

.prequal-result ul {
  padding-left: 18px;
}

.prequal-score {
  min-height: 110px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.prequal-score span {
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.prequal-score strong {
  font-size: 34px;
  line-height: 1;
}

.prequal-score.fuerte {
  background: rgba(44, 135, 172, 0.45);
}

.prequal-score.revisar {
  background: rgba(241, 191, 66, 0.24);
}

.prequal-score.alternativas {
  background: rgba(216, 111, 40, 0.22);
}

.positive-note {
  color: #d8f5eb !important;
}

.prequal-recs {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.prequal-recs strong {
  font-size: 13px;
  text-transform: uppercase;
}

.prequal-recs button {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  text-align: left;
  cursor: pointer;
}

.prequal-recs span,
.prequal-recs em {
  overflow-wrap: anywhere;
}

.prequal-recs em {
  color: rgba(255, 255, 255, 0.72);
  font-style: normal;
  font-weight: 800;
}

.prequal-next {
  grid-column: 1 / -1;
  justify-content: flex-start;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.prequal-save {
  grid-column: 1 / -1;
  color: #d8f5eb !important;
  font-size: 12px;
  font-weight: 800;
}

.prequal-disclaimer {
  grid-column: 1 / -1;
  font-size: 12px;
}

.finance-cards {
  display: grid;
  gap: 12px;
}

.finance-cards article {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px 14px;
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.finance-cards strong {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
}

.finance-cards h3,
.finance-cards p {
  margin: 0;
}

.finance-cards p {
  color: var(--muted);
  line-height: 1.45;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 28px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.about-media {
  min-height: 440px;
  border-radius: 8px;
  overflow: hidden;
  background: #dfe6e3;
  box-shadow: var(--shadow);
}

.about-media img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  display: block;
}

.about-copy {
  padding: clamp(4px, 2vw, 20px) 0;
}

.about-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  margin: 18px 0 0;
}

.about-points {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.about-points div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.about-points strong {
  color: var(--ink);
  font-size: 16px;
}

.about-points span {
  color: var(--muted);
  line-height: 1.45;
}

.proof-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 24px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.process-copy p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.process-steps article {
  min-height: 154px;
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(23, 35, 38, 0.08);
}

.process-steps span {
  color: var(--teal);
  font-size: 13px;
  font-weight: 950;
}

.process-steps strong {
  display: block;
  margin-top: 18px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
}

.process-steps p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.42;
}

.vehicle-dialog {
  width: min(1280px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.vehicle-dialog::backdrop {
  background: rgba(12, 20, 21, 0.64);
}

.pdf-dialog,
.application-dialog {
  width: min(980px, calc(100% - 28px));
  height: min(860px, calc(100dvh - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.pdf-dialog::backdrop,
.application-dialog::backdrop {
  background: rgba(12, 20, 21, 0.64);
}

.pdf-dialog-head,
.application-head {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.application-dialog {
  width: min(1040px, calc(100% - 28px));
}

.application-form {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: white;
}

.application-body {
  min-height: 0;
  overflow: auto;
  padding: 18px;
}

.application-head span,
.application-section > div:first-child span {
  color: var(--orange);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.application-head strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.application-section {
  display: grid;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.application-section:first-child {
  padding-top: 0;
}

.application-section h3 {
  margin: 4px 0 0;
  font-size: 24px;
}

.application-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.application-grid .wide {
  grid-column: span 2;
}

.application-grid textarea {
  resize: vertical;
}

.application-actions {
  min-height: 70px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}

.application-status {
  margin-top: 14px;
  padding: 12px;
  border-radius: 8px;
  background: #eef7f4;
  color: var(--teal-dark);
  font-weight: 900;
}

.application-status.error {
  background: #fff2e7;
  color: #9a4a13;
}

.pdf-dialog iframe {
  width: 100%;
  height: calc(100% - 140px);
  display: block;
  border: 0;
  background: #eef3f1;
}

.pdf-dialog-actions {
  min-height: 70px;
  align-items: center;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}

.dialog-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.75fr);
  background: white;
  max-height: calc(100vh - 28px);
}

.dialog-close {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.dialog-gallery {
  padding: 14px;
  background: #eef3f1;
  min-width: 0;
}

.gallery-stage {
  position: relative;
  background: #101b1d;
  border-radius: 8px;
  overflow: hidden;
}

#dialogMainImage {
  width: 100%;
  height: min(68vh, 720px);
  min-height: 420px;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
}

.gallery-nav,
.zoom-btn {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.gallery-nav {
  top: 50%;
  width: 44px;
  height: 54px;
  border-radius: 8px;
  transform: translateY(-50%);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.gallery-prev {
  left: 12px;
}

.gallery-next {
  right: 12px;
}

.zoom-btn {
  right: 12px;
  bottom: 12px;
  min-height: 38px;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 900;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.thumbs button {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: transparent;
  overflow: hidden;
  cursor: pointer;
}

.thumbs button.active {
  border-color: var(--orange);
}

.thumbs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.dialog-info {
  padding: 28px;
  overflow: auto;
}

.dialog-info h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.04;
}

.price-block {
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 8px;
  background: #eef3f1;
}

.price-block strong {
  display: block;
  margin-top: 4px;
  color: var(--teal);
  font-size: 38px;
  line-height: 1;
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0 0 16px;
}

.spec-list div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.spec-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.spec-list dd {
  margin: 4px 0 0;
  font-weight: 850;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}

.image-lightbox {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  border: 0;
  padding: 0;
  background: #050809;
}

.image-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.84);
}

#lightboxImage {
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  display: block;
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  z-index: 5;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.lightbox-close {
  right: 18px;
  top: 18px;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  font-size: 28px;
}

.lightbox-nav {
  top: 50%;
  width: 52px;
  height: 68px;
  border-radius: 8px;
  transform: translateY(-50%);
  font-size: 42px;
  font-weight: 900;
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

.disclaimer {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.45;
}

.site-footer {
  background: #172634;
  color: white;
}

.footer-grid {
  width: min(1120px, calc(100% - 36px));
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 42px;
  margin: 0 auto;
  padding: 34px 0 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
}

.footer-title {
  margin: 0 0 16px;
  color: var(--yellow);
  font-size: 18px;
  font-weight: 950;
  text-transform: uppercase;
}

.footer-hours {
  display: grid;
  gap: 8px;
}

.footer-hours div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
}

.footer-hours span,
.footer-contact-row {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 900;
}

.footer-hours strong,
.footer-contact-row strong {
  color: white;
  font-size: 14px;
  line-height: 1.35;
}

.footer-contact-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  text-decoration: none;
}

.footer-contact-row:hover strong {
  color: var(--yellow);
}

.footer-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: white;
  font-weight: 900;
}

.footer-bottom {
  width: min(1120px, calc(100% - 36px));
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  padding: 16px 0 22px;
}

.footer-bottom span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

@media (max-width: 920px) {
  .site-header {
    height: 52px;
    min-height: 52px;
    flex-wrap: nowrap;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: clamp(620px, calc(100vh - 110px), 760px);
  }

  .search-band {
    position: static;
  }

  .search-inner,
  .filter-grid,
  .finance-section,
  .about-section,
  .proof-section,
  .process-steps,
  .prequal-result,
  .footer-grid,
  .dialog-layout {
    grid-template-columns: 1fr;
  }

  .search-head,
  .popular-makes-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .popular-makes-head {
    flex-direction: column;
  }

  .dialog-layout {
    max-height: none;
  }

  #dialogMainImage {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .application-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .brand {
    min-width: auto;
  }

  .header-cta {
    padding: 10px 12px;
  }

  nav {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 2px;
  }

  h1 {
    font-size: 42px;
  }

  .hero {
    min-height: clamp(560px, calc(100vh - 96px), 680px);
  }

  .hero-actions .btn,
  .header-cta,
  .credit-application-actions .btn,
  .pdf-dialog-actions .btn,
  .application-actions .btn {
    width: 100%;
  }

  .section-head,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .inventory-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .prequal-grid,
  .prequal-recs button,
  .application-grid {
    grid-template-columns: 1fr;
  }

  .application-grid .wide {
    grid-column: auto;
  }

  .prequal-panel {
    padding: 14px;
  }

  .make-card {
    flex-basis: 124px;
  }

  .about-media,
  .about-media img {
    min-height: 300px;
  }

  .footer-grid {
    gap: 24px;
  }

  .dialog-info {
    padding: 20px;
  }

  .spec-list {
    grid-template-columns: 1fr;
  }
}

/* ============================================================ */
/* PHASE 1-5 ADDITIONS — 2026-05-06                              */
/* ============================================================ */

/* Top contact bar — sticky stacked above header */
/* Top-bar sticky — only the dark contact bar stays pinned on scroll */
.top-bar { background: var(--ink); color: #fff; font-size: 12.5px; padding: 8px 0; }
.top-bar-sticky { position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 8px rgba(15,23,42,.15); }
.top-bar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.top-bar-contact { display: inline-flex; align-items: center; gap: 18px; flex-wrap: nowrap; }
.top-bar-item { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; transition: color .15s; opacity: .92; white-space: nowrap; }
.top-bar-item:hover { color: var(--yellow); opacity: 1; }
.top-bar-item svg { opacity: .8; flex-shrink: 0; }
.top-bar-item:hover svg { opacity: 1; }
.top-bar-phone strong { font-weight: 700; letter-spacing: .2px; }
/* Trust strip inline — left side, before phone, with divider */
.top-bar-trust { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 12px; padding-right: 18px; border-right: 1px solid rgba(255,255,255,.18); }
.top-bar-trust { color: var(--gold); }
.top-bar-trust strong { color: var(--gold); }
.top-bar-trust .trust-sales { color: inherit; opacity: .92; }
@media (max-width: 1100px) {
  .top-bar-contact { flex-wrap: wrap; justify-content: center; gap: 10px 18px; }
  .top-bar-trust { border-right: 0; padding-right: 0; }
}
@media (max-width: 768px) {
  .top-bar { padding: 6px 0; font-size: 11.5px; }
  .top-bar-inner { padding: 0 12px; }
  .top-bar-contact { gap: 8px 14px; }
  .top-bar-trust { font-size: 11px; }
  .top-bar-email { display: none; } /* email too long for mobile */
  .top-bar-address span { display: none; }
  .top-bar-address::after { content: "Map"; font-weight: 600; }
  .top-bar-phone strong { font-size: 13px; }
  .header-cta { display: none !important; }
  .lang-toggle { min-height: 30px !important; padding: 3px 8px !important; font-size: 11px !important; }
  /* Compact site-header on mobile (sticky below ~28px top-bar) */
  .site-header { height: 48px; min-height: 48px; top: 28px; padding: 0 10px; gap: 8px; }
  .brand { min-width: 0; gap: 8px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand strong { font-size: 14px; }
  .brand small, .brand-tagline { font-size: 10px; }
  .site-header nav { display: none; } /* nav hidden on mobile, accessible via burger if needed */
  .lang-toggle { min-height: 34px; padding: 6px 10px; font-size: 12px; }
  .header-cta { min-height: 34px; padding: 6px 10px; font-size: 12px; }
  .header-cta .wa-ico { width: 14px; height: 14px; }
}

/* Hero — bigger CTAs, stronger contrast */
.hero h1 { font-size: clamp(32px, 5vw, 64px); line-height: 1.05; letter-spacing: -.02em; }
.hero-copy { font-size: clamp(15px, 1.4vw, 19px); }
.btn.big { padding: 14px 22px; font-size: 16px; }
.btn.whatsapp { background: #25d366; color: #fff; border-color: #25d366; }
.btn.whatsapp:hover { background: #1ebe5d; border-color: #1ebe5d; }
.btn.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.full { width: 100%; justify-content: center; }
.btn .icon { font-size: 18px; }
.trust-strip span strong { color: var(--yellow); margin-right: 4px; }

/* Lenders section */
.lenders-section { padding: 32px clamp(18px, 4vw, 48px); background: var(--surface); border-bottom: 1px solid var(--line); }
.lenders-inner { max-width: 1400px; margin: 0 auto; }
.lenders-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.lender-pill { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px; min-width: 130px; }
.lender-pill span { display: block; font-weight: 800; font-size: 13px; letter-spacing: .5px; color: var(--ink); }
.lender-pill small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }

/* FTC disclaimers */
.ftc-disclaimer { color: var(--muted); font-size: 12px; margin-top: 6px; max-width: 700px; }
.ftc-disclaimer a { color: var(--teal); text-decoration: underline; }
.ftc-mini { display: block; color: var(--muted); margin-top: 4px; font-size: 11px; }

/* Testimonials */
.testimonials-section { padding: 64px clamp(18px, 4vw, 48px); background: linear-gradient(180deg, var(--paper), var(--surface)); }
.testimonials-head { max-width: 720px; margin: 0 auto 28px; text-align: center; }
.testimonials-head .muted { color: var(--muted); }
.testimonials-slider { position: relative; max-width: 1400px; margin: 0 auto; }
.testimonials-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 5; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255,255,255,.95);
  color: var(--ink); font-size: 28px; font-weight: 700; line-height: 1;
  cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.12);
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s, background .15s;
}
.testimonials-arrow:hover { background: var(--yellow); transform: translateY(-50%) scale(1.05); }
.testimonials-arrow-prev { left: -8px; }
.testimonials-arrow-next { right: -8px; }
@media (max-width: 720px) {
  .testimonials-arrow { width: 36px; height: 36px; font-size: 22px; }
  .testimonials-arrow-prev { left: 0; }
  .testimonials-arrow-next { right: 0; }
}
.testimonials-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 8px 16px 24px;
  scrollbar-width: thin;
}
.testimonials-rail::-webkit-scrollbar { height: 8px; }
.testimonials-rail::-webkit-scrollbar-track { background: transparent; }
.testimonials-rail::-webkit-scrollbar-thumb { background: rgba(0,0,0,.2); border-radius: 4px; }
.testimonial-card {
  flex: 0 0 calc((100% - 80px) / 4);
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s;
}
.testimonial-card:hover { transform: translateY(-4px); }
.testimonial-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: #ddd; }
.testimonial-card .meta { padding: 12px 14px; }
.testimonial-card .meta strong { display: block; font-size: 13px; }
.testimonial-card .meta small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
@media (max-width: 1024px) {
  .testimonial-card { flex: 0 0 calc((100% - 64px) / 3); }
}
@media (max-width: 720px) {
  .testimonial-card { flex: 0 0 75%; }
  .testimonials-rail { padding: 8px 12px 20px; }
}

/* Trade-in inline */
.tradein-section { padding: 64px clamp(18px, 4vw, 48px); background: var(--ink); color: #fff; }
.tradein-section .eyebrow { color: var(--yellow); }
.tradein-section h2 { font-size: clamp(24px, 3vw, 36px); }
.tradein-copy { max-width: 700px; margin: 0 auto 24px; text-align: center; }
.tradein-panel { max-width: 900px; margin: 0 auto; background: var(--surface); color: var(--ink); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); }
.tradein-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tradein-grid label { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); gap: 4px; }
.tradein-grid input, .tradein-grid select { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }

/* Location + map */
.location-section { padding: 64px clamp(18px, 4vw, 48px); display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; max-width: 1400px; margin: 0 auto; }
.location-copy { display: flex; flex-direction: column; justify-content: center; }
.location-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.location-map { aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.location-map iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 768px) { .location-section { grid-template-columns: 1fr; } }

/* Disclosures */
.disclosures-section { padding: 24px clamp(18px, 4vw, 48px); max-width: 1400px; margin: 0 auto; }
.disclosures-section details { background: var(--paper); padding: 14px 18px; border-radius: 10px; border: 1px solid var(--line); }
.disclosures-section summary { cursor: pointer; padding: 4px 0; }
.disclosures-section p { color: var(--muted); margin-top: 10px; }

/* Sticky mobile bottom bar */
/* Sticky mobile bottom bar — disabled (the top-bar already has phone + WhatsApp) */
.sticky-mobile-bar { display: none !important; }

/* Floating lead button */
.floating-lead-btn { position: fixed; bottom: 20px; right: 20px; z-index: 40; background: var(--teal); color: #fff; border: 0; padding: 14px 18px; border-radius: 999px; box-shadow: 0 8px 30px rgba(44, 135, 172,.4); cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 600; transition: transform .2s; }
.floating-lead-btn:hover { transform: translateY(-2px); }
.floating-lead-btn span { font-size: 18px; }
.floating-lead-btn strong { font-size: 13px; }

/* WhatsApp FAB — visible on ALL screens (replaces "Got a question?") */
.floating-lead-btn { display: none !important; }
.floating-wa-fab { display: inline-flex; position: fixed; bottom: 24px; right: 24px; z-index: 40; width: 64px; height: 64px; border-radius: 50%; background: #25d366; color: #fff; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(37,211,102,.45); transition: transform .2s, box-shadow .2s; text-decoration: none; }
.floating-wa-fab:hover, .floating-wa-fab:active { transform: scale(1.08); box-shadow: 0 14px 36px rgba(37,211,102,.55); }
.floating-wa-fab svg { width: 34px; height: 34px; }
/* Subtle pulsing ring */
.floating-wa-fab::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid rgba(37,211,102,.5); animation: waPulse 2.4s ease-out infinite; pointer-events: none; }
@keyframes waPulse { 0% { transform: scale(.85); opacity: 0.9; } 100% { transform: scale(1.3); opacity: 0; } }
@media (max-width: 768px) {
  .floating-wa-fab { width: 60px; height: 60px; bottom: 20px; right: 20px; }
  .floating-wa-fab svg { width: 32px; height: 32px; }
}

.floating-lead-dialog { max-width: 420px; padding: 0; border: 0; border-radius: 16px; box-shadow: 0 20px 80px rgba(0,0,0,.2); }
.floating-lead-dialog::backdrop { background: rgba(15,23,38,.6); backdrop-filter: blur(4px); }
.lead-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.lead-head strong { font-size: 14px; }
.lead-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.lead-body label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.lead-body input, .lead-body textarea { padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; font-family: inherit; font-size: 14px; }
.lead-foot { padding: 12px 20px 18px; }

/* Vehicle dialog CTA stack */
.dialog-cta-stack { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }

/* Primary "Get approved for this car" CTA inside the vehicle dialog */
.dialog-apply-btn {
  background: linear-gradient(135deg, #529ebe 0%, #3a7e9b 100%);
  color: #fff;
  border: none;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: .01em;
  box-shadow: 0 6px 18px rgba(82, 158, 190, .38);
}
.dialog-apply-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(82, 158, 190, .5);
  background: linear-gradient(135deg, #5cabcb 0%, #3f88a6 100%);
}

/* Inventory grid lazy load helper */
.inventory-grid img { background: var(--paper); }

/* Hide some sections in print */
@media print {
  .top-bar, .site-header, .sticky-mobile-bar, .floating-lead-btn, .hero-actions { display: none !important; }
}

/* Prequal "thank you" — replaces old recommendations + score breakdown */
.prequal-thanks { text-align: center; padding: 24px 16px; background: linear-gradient(135deg, #eaf4f9, #eaf4f9); border: 1px solid #6ee7b7; border-radius: 12px; }
.prequal-thanks-icon { width: 56px; height: 56px; border-radius: 50%; background: #10b981; color: #fff; display: grid; place-items: center; font-size: 32px; font-weight: 700; margin: 0 auto 14px; box-shadow: 0 4px 14px rgba(16,185,129,.3); }
.prequal-thanks h3 { color: #065f46; font-size: 22px; margin: 0 0 8px; }
.prequal-thanks p { color: #047857; margin: 6px 0; }
.prequal-thanks-meta { color: #059669; font-size: 13px; font-style: italic; margin-top: 14px !important; }

/* ============== PAYMENT CALCULATOR ============== */
.ats-calc-section { background: #fafaf9; padding: 2.5rem 1rem; }
.ats-calc-container { max-width: 880px; margin: 0 auto; }
.ats-calc-title { text-align: center; font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; color: #0a0a0a; margin: 0 0 0.35rem; letter-spacing: -0.02em; }
.ats-calc-subtitle { text-align: center; color: #57534e; margin: 0 0 1.25rem; font-size: 0.9rem; }
.ats-calc-card { background: white; border-radius: 16px; border: 1px solid #e7e5e4; padding: 1.5rem; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); }
.ats-calc-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 720px) { .ats-calc-grid { grid-template-columns: 1fr; gap: 1rem; } .ats-calc-card { padding: 1rem; } }
.ats-calc-inputs > * + * { margin-top: 1rem; }
.ats-input-group label { display: block; font-weight: 600; font-size: 0.85rem; color: #44403c; margin: 0; }
.ats-input-row { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; margin-bottom: 0.4rem; }
.ats-value { font-size: 1.05rem; font-weight: 700; color: #2c87ac; }
.ats-input-group input[type="range"] { width: 100%; -webkit-appearance: none; appearance: none; height: 5px; background: #e7e5e4; border-radius: 3px; outline: none; margin: 0; }
.ats-input-group input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; background: #2c87ac; border-radius: 50%; cursor: pointer; border: 2px solid white; box-shadow: 0 2px 5px rgba(44, 135, 172, 0.4); }
.ats-input-group input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; background: #2c87ac; border-radius: 50%; cursor: pointer; border: 2px solid white; box-shadow: 0 2px 5px rgba(44, 135, 172, 0.4); }
.ats-double { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (max-width: 480px) { .ats-double { grid-template-columns: 1fr; } }
.ats-half label { margin-bottom: 0.4rem; }
.ats-button-group { display: grid; gap: 0.3rem; }
.ats-credit-grid { grid-template-columns: 1fr 1fr; }
.ats-term-grid { grid-template-columns: repeat(4, 1fr); }
.ats-btn-option { background: white; border: 1.5px solid #e7e5e4; border-radius: 8px; padding: 0.5rem 0.4rem; cursor: pointer; font-family: inherit; font-size: 0.78rem; font-weight: 600; color: #44403c; transition: all 0.12s ease; text-align: center; line-height: 1.2; }
.ats-btn-option:hover { border-color: #2c87ac; background: #eaf4f9; }
.ats-btn-option.ats-active { border-color: #2c87ac; background: #eaf4f9; color: #2c87ac; }
.ats-calc-result { background: linear-gradient(135deg, #ccfbf1 0%, #eaf4f9 100%); padding: 1.5rem 1.25rem; border-radius: 12px; text-align: center; }
.ats-result-label { color: #44403c; font-size: 0.85rem; margin: 0 0 0.25rem; font-weight: 500; }
.ats-result-amount { font-size: clamp(2.5rem, 6vw, 3.5rem); font-weight: 800; color: #2c87ac; line-height: 1; margin: 0.25rem 0; letter-spacing: -0.02em; }
.ats-result-amount .ats-dollar { font-size: 0.5em; vertical-align: top; margin-right: 0.05em; font-weight: 700; }
.ats-result-amount .ats-suffix { font-size: 0.32em; color: #57534e; font-weight: 500; margin-left: 0.05em; }
.ats-result-apr { color: #57534e; font-size: 0.85rem; margin: 0.25rem 0 0.9rem; }
.ats-result-apr strong { color: #2c87ac; }
.ats-cta-btn { display: block; background: #2c87ac; color: white; text-decoration: none; padding: 0.75rem 1rem; border-radius: 9px; font-weight: 700; font-size: 0.95rem; transition: all 0.12s ease; border: none; cursor: pointer; }
.ats-cta-btn:hover { background: #1f6f93; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(44, 135, 172, 0.3); color: white; }
.ats-result-disclaimer { font-size: 0.75rem; color: #57534e; margin: 0.6rem 0 0; line-height: 1.4; }
.ats-result-disclaimer strong { color: #2c87ac; }
.ats-calc-finefoot { text-align: center; font-size: 0.7rem; color: #78716c; margin: 1rem 0 0; line-height: 1.5; }

/* ============== HAMBURGER MENU + DRAWER ============== */
.hamburger-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  margin-right: 8px;
  flex-shrink: 0;
  position: relative;
  z-index: 105;
}
.hamburger-btn span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--ink, #0a0a0a);
  border-radius: 2px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}
.hamburger-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
  background: #2c87ac;
}
.hamburger-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}
.hamburger-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
  background: #2c87ac;
}
.hamburger-btn:hover span {
  background: #2c87ac;
}
.hamburger-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.5);
  z-index: 95;
  opacity: 0;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(2px);
}
.hamburger-overlay.is-open {
  opacity: 1;
}
.hamburger-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 320px;
  max-width: 90vw;
  background: white;
  z-index: 100;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}
.hamburger-drawer[hidden] { display: none !important; }
.hamburger-drawer.is-open {
  transform: translateX(0);
}
.hamburger-drawer-head {
  padding: 18px 20px;
  background: linear-gradient(135deg, #2c87ac 0%, #1f6f93 100%);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.hamburger-drawer-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hamburger-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}
.hamburger-close:hover {
  background: rgba(255, 255, 255, 0.3);
}
.hamburger-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 0;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  align-items: stretch !important;
}
.hamburger-nav a {
  display: flex !important;
  align-items: center;
  padding: 14px 24px;
  color: #1c1917;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.15s ease;
  width: 100%;
  box-sizing: border-box;
  letter-spacing: -0.01em;
}
.hamburger-nav a:hover {
  background: #f5f5f4;
  border-left-color: #2c87ac;
  color: #2c87ac;
}
/* Hide emoji icons — clean text-only menu */
.hamburger-nav a .hm-ico {
  display: none;
}
.hamburger-nav a .hm-text {
  flex: 1;
}
.hamburger-nav a.hm-highlight {
  color: #2c87ac;
  font-weight: 700;
  background: linear-gradient(90deg, #eaf4f9 0%, transparent 100%);
  border-left-color: #2c87ac;
}
/* CTAs at bottom — show their inline icons (WhatsApp, phone) since they're meaningful */
.hm-cta .hm-ico {
  display: inline-flex !important;
  margin-right: 10px;
}
.hm-divider {
  height: 1px;
  background: #e7e5e4;
  margin: 10px 20px;
}
.hm-cta {
  margin: 6px 14px !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  border-left: none !important;
  font-weight: 700 !important;
  font-size: 14.5px !important;
}
.hm-cta.hm-wa {
  background: #25d366 !important;
  color: white !important;
}
.hm-cta.hm-wa:hover {
  background: #1ebe5a !important;
  color: white !important;
}
.hm-cta.hm-call {
  background: #1c1917 !important;
  color: white !important;
}
.hm-cta.hm-call:hover {
  background: #292524 !important;
  color: white !important;
}
.hamburger-drawer-foot {
  padding: 14px 20px;
  font-size: 13px;
  color: #78716c;
  text-align: center;
  border-top: 1px solid #e7e5e4;
  background: #fafaf9;
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .hamburger-drawer { width: 88vw; }
  .site-header nav { display: none; } /* hide top nav on mobile, hamburger has all */
}

/* Pre-approval section — 2-col layout: copy left, form right (sticky) */
.preapproval-section.finance-section { display: block; grid-template-columns: none; border-top: 1px solid var(--line); }
.preapproval-section {
  background: linear-gradient(180deg, #fff 0%, #fffaf0 100%);
  padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}
.preapproval-wrap {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.preapproval-left .eyebrow {
  color: var(--accent, #c7882a);
  font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 12px;
  margin: 0 0 12px;
}
.preapproval-left h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
  color: var(--ink);
}
.preapproval-left h2 .accent { color: var(--teal, #2c87ac); }
.preapproval-lede {
  font-size: clamp(15px, 1.4vw, 17px);
  color: #44403c;
  line-height: 1.6;
  margin: 0 0 24px;
}
.preapproval-bullets { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.preapproval-bullets li {
  display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start;
  background: #fff; border: 1px solid #f3eedc; border-radius: 12px; padding: 12px 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.preapproval-bullets .b-ico { font-size: 18px; line-height: 1.3; }
.preapproval-bullets strong { display: block; font-size: 14.5px; color: var(--ink); }
.preapproval-bullets small { color: var(--muted); font-size: 13px; line-height: 1.45; }

.preapproval-trust {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 28px;
}
.preapproval-trust .trust-row {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px;
  text-align: center;
}
.preapproval-trust .trust-num {
  font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; color: var(--teal, #2c87ac);
  margin-bottom: 6px;
}
.preapproval-trust strong { display: block; font-size: 13px; color: var(--ink); }
.preapproval-trust small { color: var(--muted); font-size: 12px; }

.preapproval-process { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.preapproval-process h3 { margin: 0 0 12px; font-size: 17px; }
.preapproval-process ol { margin: 0; padding-left: 22px; display: grid; gap: 10px; color: #44403c; font-size: 14.5px; line-height: 1.55; }
.preapproval-process strong { color: var(--ink); }

.preapproval-right { position: sticky; top: 100px; align-self: start; }
.preapproval-card {
  background: linear-gradient(135deg, #ffffff 0%, #eaf4f9 100%);
  border: 2px solid var(--teal);
  border-radius: 18px;
  padding: 28px clamp(20px, 3vw, 32px);
  box-shadow: 0 14px 36px rgba(0,0,0,.10);
}
.preapproval-head { text-align: center; margin-bottom: 18px; }
.preapproval-head .eyebrow { color: var(--accent, #c7882a); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 11px; }
.preapproval-head h3 { margin: 6px 0 6px; font-size: clamp(20px, 2.4vw, 26px); }
.preapproval-head .finance-subtitle { color: var(--muted); margin: 0; font-size: 14px; }
.preapproval-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.preapproval-form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.preapproval-form label.preapproval-full { grid-column: 1 / -1; }
.preapproval-form input {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.preapproval-form input:focus {
  outline: none;
  border-color: var(--teal, #2c87ac);
  box-shadow: 0 0 0 3px rgba(44, 135, 172,.15);
}
.preapproval-form input:invalid:not(:placeholder-shown) { border-color: #dc2626; }
.preapproval-actions { grid-column: 1 / -1; display: flex; justify-content: stretch; margin-top: 4px; }
.preapproval-actions .btn.big { width: 100%; padding: 15px 24px; font-size: 16px; font-weight: 700; }
.preapproval-trust-line {
  grid-column: 1 / -1; font-size: 12px; color: var(--muted); text-align: center; margin: 4px 0 0; font-weight: 600;
}
.preapproval-disclaimer {
  grid-column: 1 / -1;
  font-size: 11px; color: var(--muted);
  text-align: center; margin: 0; line-height: 1.5;
}
.preapproval-after { margin-top: 18px; text-align: center; }
.preapproval-after .after-q { margin: 0 0 10px; font-size: 13px; color: var(--muted); font-weight: 600; }
.preapproval-after .after-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.preapproval-after .btn.ghost {
  background: #fff; color: var(--ink); border: 1.5px solid var(--ink);
  padding: 10px 16px; border-radius: 10px; font-weight: 700; font-size: 14px;
}

@media (max-width: 960px) {
  .preapproval-wrap { grid-template-columns: 1fr; }
  .preapproval-right { position: static; }
  .preapproval-trust { grid-template-columns: 1fr; }
}

/* Header — grouped hamburger+brand on left, CTA on right */
.site-header .header-left { display: inline-flex; align-items: center; gap: 14px; }

/* Preapproval CTA inside header (right side) — sticky because header is sticky */
.header-preapproval-cta {
  display: inline-flex; align-items: center;
  background: var(--teal);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  border: 1.5px solid var(--brand-dark);
  box-shadow: 0 3px 8px rgba(11, 27, 26, .18);
  transition: transform .15s, box-shadow .15s;
  /* margin-left:auto lives on .lang-toggle so the toggle + this CTA group together on the right */
}
.header-preapproval-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(11, 27, 26, .28);
  color: #ffffff;
}
@media (max-width: 720px) {
  .header-preapproval-cta { padding: 8px 14px; font-size: 13px; }
}
@media (max-width: 420px) {
  .header-preapproval-cta { padding: 7px 12px; font-size: 12px; }
}

/* ============== SOLICITUD DE CRÉDITO COMPLETA (Credit Application) ============== */
.credit-app {
  max-width: 1100px;
  margin: 22px auto 0;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.credit-app-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  background: linear-gradient(135deg, var(--brand-dark) 0%, #143b46 100%);
  color: #fff;
}
.credit-app-summary::-webkit-details-marker { display: none; }
.ca-sum-text { display: flex; flex-direction: column; gap: 3px; }
.ca-sum-text strong { font-size: 17px; }
.ca-sum-text small { color: rgba(255,255,255,.82); font-size: 13px; }
.ca-sum-arrow { font-size: 20px; transition: transform .25s ease; color: var(--accent-bright); }
.credit-app[open] .ca-sum-arrow { transform: rotate(180deg); }
.credit-app-form { padding: 22px clamp(16px, 3vw, 28px) 26px; }
.ca-section { border: 0; margin: 0 0 22px; padding: 0; }
.ca-section legend {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--teal);
  padding: 0 0 10px;
  border-bottom: 2px solid var(--line);
  width: 100%;
  margin-bottom: 14px;
}
.ca-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 14px;
}
.ca-grid label, .credit-app-full {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.ca-grid label.ca-col-2 { grid-column: span 2; }
.ca-grid label span em, .credit-app-full span em { color: var(--muted); font-style: italic; font-weight: 500; }
.ca-grid input, .ca-grid select, .credit-app-full input {
  border: 1.5px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 500;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.ca-grid input:focus, .ca-grid select:focus, .credit-app-full input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(44,135,172,.15);
}
.ca-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 14px;
}
.ca-consent input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--teal); }
.credit-app-full { max-width: 420px; }
.ca-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.ca-note { margin: 0; font-size: 12px; color: var(--muted); }
@media (max-width: 860px) {
  .ca-grid { grid-template-columns: repeat(2, 1fr); }
  .ca-grid label.ca-col-2 { grid-column: span 2; }
}
@media (max-width: 480px) {
  .ca-grid { grid-template-columns: 1fr; }
  .ca-grid label.ca-col-2 { grid-column: span 1; }
}

/* ===== Unified pre-approval form (single full questionnaire) ===== */
.preapproval-section .preapproval-right { position: static; }
.preapproval-card-form { padding: 22px clamp(16px, 3vw, 26px); }
.preapproval-card-form .preapproval-head { margin-bottom: 16px; }
.preapproval-unified .ca-section { margin-bottom: 18px; }
.preapproval-unified .ca-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.preapproval-unified .ca-grid label.ca-col-2 { grid-column: span 2; }
@media (max-width: 560px) {
  .preapproval-unified .ca-grid { grid-template-columns: 1fr; }
  .preapproval-unified .ca-grid label.ca-col-2 { grid-column: span 1; }
}

/* ===== Credit application banner (links to /solicitud in new tab) ===== */
.credit-app-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1240px; margin: 22px auto 0; text-decoration: none;
  background: linear-gradient(135deg, var(--brand-dark) 0%, #143b46 100%);
  color: #fff; border-radius: 16px; padding: 18px 24px;
  box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
}
.credit-app-banner:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(11,27,26,.3); }
.credit-app-banner .cab-text { display: flex; flex-direction: column; gap: 3px; }
.credit-app-banner .cab-text strong { font-size: 18px; }
.credit-app-banner .cab-text small { color: rgba(255,255,255,.85); font-size: 13px; }
.credit-app-banner .cab-arrow { font-size: 24px; color: var(--accent-bright); flex-shrink: 0; }

/* ===== Required-field error highlight (after a failed submit) ===== */
form.show-errors :invalid {
  border-color: #c0392b !important;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, .15) !important;
}
form.show-errors .ca-consent:has(input:invalid) { color: #c0392b; }
form.show-errors .ca-consent input:invalid { outline: 2px solid #c0392b; outline-offset: 2px; }
