/* ============================================
   IMPORTS
============================================ */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800;900&display=swap");


/* ============================================
   GLOBAL RESET & BASE STYLES
============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

input, select, textarea, button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.box-s--b {box-shadow: 0 30px 30px rgba(0, 0, 0, 0.05);}
.box-s--sm {box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);}

/* Calculator template override:
   prevent global dark-theme defaults from forcing light text on this page. */
body.page-template-page-blower-calculator {
  background-color: #ffffff !important;
  color: #1f2937 !important;
}

/* Focused calculator layout: hide global theme chrome */
body.page-template-page-blower-calculator header,
body.page-template-page-blower-calculator footer {
  display: none !important;
}

/* Back button */
.calc-back-nav {
  margin-bottom: 20px;
}

.calc-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.calc-back-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  transform: translateY(-1px);
}

/* ============================================
   TYPOGRAPHY
============================================ */
.main-- h1 {font-size: 6vw; text-align: center;}
.regular, .p--content p, .p--content-s {font-weight: 400;}
.extra--bold {font-weight: 800;}
.upper--case {text-transform: uppercase;}
.bold {font-weight: 700;}
.semi--bold {font-weight: 600;}
.medium {font-weight: 500;}
.fs--12 {font-size: 12px;}
.fs--14 {font-size: 14px;}
.fs--16 {font-size: 16px;}
.fs--24 {font-size: 24px;}


/* ============================================
   COLORS & BACKGROUNDS
============================================ */
.bg--white {background-color: #ffffff;}
.bg--light-gray {background-color: #E9E9E9;}
.bg--gray-1 {background-color: #E8E8E8;}
.bg--black {background-color: #000000;}
.bg--green {background-color: #96C942;}
.bg--dark {background-color: #05000d;}

.c--white {color: #ffffff;}
.c--green {color: #96C942;}
.gray--text {color: #2d2c2c;}
.gray--text-20 {color: #b0b0b0;}
.blue-gray--text {color: #0f4866;}
.white--text, .p--content p, .p--content-s {color: #ffffff;}


/* ============================================
   FLEXBOX & GRID UTILITIES
============================================ */
.flex {display: flex;}
.flex-wrap {flex-wrap: wrap;}
.fd--column {flex-direction: column;}
.fd--c-n {flex-direction: column;}
.jc--center {justify-content: center;}
.jc--space-b {justify-content: space-between;}
.jc--end {justify-content: end;}
ai--center {align-items: center;}
ai--end {align-items: end;}
ai--start {align-items: start;}
.grid {display: grid;}
.grid--column-3 {--column-count: 1;}
.grid--column-2 {--column-count: 1;}
.g--auto {--n-c: 6; --n-r: 0; grid-template-columns: repeat(var(--n-c), 1fr); grid-template-rows: repeat(var(--n-r), 1fr);}
.gc--3 {--column-count: 3; grid-template-columns: repeat(var(--column-count), 1fr);}


/* ============================================
   SPACING & SIZING
============================================ */
.p--8 {padding: 8px;}
.p--16 {padding: 16px;}
.p--12-20 {padding: 12px 20px;}
.p--20-a {padding: 20px;}
.p--lr-16 {padding-left: 16px; padding-right: 16px;}
.pt--16 { padding-top: 16px; }
.pt--120 { padding-top: 120px; }
.mt--auto { margin-top: auto; }
.mt--16 {margin-top: 16px;}
.mt--32 {margin-top: 32px;}
.mb--16 { margin-bottom: 16px; }
.m--0 {margin: 0;}
.g--4 {gap: 4px;}
.g--8, .gap--8 {gap: 8px;}
.g--16, .gap--16 {gap: 16px;}
.g--20, .gap--20 {gap: 20px;}
.g--32 {gap: 32px;}
.w--full, .width--full {width: 100%;}
.width--fit, .w--fitcontent {width: fit-content;}
.h--full {height: 100%;}
.h--40 {height: 40px;}
.h--50 {min-height: 50px;}
.height--full {height: 100%;}
.height--fit-content {height: fit-content;}
.w--200 {min-width: 200px;}
.w--140 {width: 140px;}
.w--300 {width: 300px;}
.mw--158 {min-width: 158px; object-position: center; object-fit: cover;}


.form-w-full .fluentform{
  width: 100%;
}

/* ============================================
   BORDERS & RADIUS
============================================ */
.br--4 {border-radius: 4px;}
.br--8 {border-radius: 8px;}
.br--12 {border-radius: 12px;}
.br--16 {border-radius: 16px;}
.br--24 {border-radius: 24px;}
.br--32 {border-radius: 32px;}
.br--80 {border-radius: 80px;}
.border--gray {border: 2px solid #e7e7e7;}
.border--gray-1 {border: 1px solid #e8e8e8;}
.border--1 {border: 1px solid #ccc;}


/* ============================================
   COMPONENTS & ELEMENTS
============================================ */
.tabs {display: flex; gap: 10px;}
.tab {border-radius: 8px; padding: 10px 16px; display: flex; align-items: center; gap: 8px; transition: background-color 0.3s; border: 1px solid #E8E8E8;}
.tab.active {border-color: #96C942;}
.marker {display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 4px; font-size: 12px; font-weight: 600; color: #96C942; border: 1px solid #E8E8E8;}
.tab.active .marker, .done .marker {background: #96C942; color: white; border: 0px;}
.tab-controller button {border-radius: 8px; padding: 10px 16px; display: flex; align-items: center; transition: background-color 0.3s; background-color: #000000; color: #ffffff; border: none;}
.tab-content {display: none;}
.tab-content.active {display: flex;}
.animate-check svg path {stroke-dasharray: 13; stroke-dashoffset: 13; animation: drawCheck 0.5s forwards; animation-delay: 0.3s;}
@keyframes drawCheck {to {stroke-dashoffset: 0;}}
.product-card {
  border: 1px solid #ccc;
  display: inline-block;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);   /* idle default — matches GSAP drop target */
}
.product-card.selected {border: 1px solid #000000;}
.product-card--best {border-color: #96C942;}
.selection-popup {position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%); background: #222; color: #fff; padding: 12px 20px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); font-size: 14px; opacity: 0; pointer-events: none; transition: opacity 0.3s ease, transform 0.3s ease; z-index: 999;}
.selection-popup.show {opacity: 1; transform: translateX(-50%) translateY(-10px);}
/* ── Product card image overlay tags ─────────────────────────── */
.product-img-wrap {
  position: relative; /* anchor for absolute-positioned tags */
}

.product-tags {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  z-index: 2;
  pointer-events: none;
}

/* Base chip */
.product-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px 4px 7px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
  /* needed for tooltip + hover */
  position: relative;
  pointer-events: auto;   /* override parent container's none */
  cursor: default;
}

.product-tag svg { flex-shrink: 0; }

/* ── Tag tooltip (CSS-only, no JS) ──────────────────────────────── */

/* Upward-pointing arrow */
.product-tag[data-tooltip]::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 14px;
  margin-top: 3px;
  border: 5px solid transparent;
  border-bottom-color: rgba(17, 24, 39, 0.93);
  pointer-events: none;
  opacity: 0;
  z-index: 101;
  transition: opacity 0.18s ease;
}

/* Tooltip body */
.product-tag[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 13px);   /* below tag + arrow height */
  left: 0;
  background: rgba(17, 24, 39, 0.93);
  color: #F9FAFB;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.55;
  padding: 7px 11px;
  border-radius: 8px;
  width: max-content;
  max-width: 210px;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  z-index: 100;
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
  transform: translateY(-5px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

/* Show on hover */
.product-tag[data-tooltip]:hover::before {
  opacity: 1;
}
.product-tag[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* Most Efficient — green tint */
.product-tag--best {
  background: rgba(150, 201, 66, 0.18);
  color: #3a6e0d;
  border: 1px solid rgba(150, 201, 66, 0.52);
}

/* Exact Match — teal tint */
.product-tag--exact {
  background: rgba(9, 87, 125, 0.09);
  color: #08506f;
  border: 1px solid rgba(9, 87, 125, 0.28);
}

/* Close Match — amber tint */
.product-tag--near {
  background: rgba(245, 158, 11, 0.13);
  color: #8a3e0b;
  border: 1px solid rgba(245, 158, 11, 0.40);
}

.tooltip {position: absolute; background-color: #333; color: #fff; padding: 5px 10px; border-radius: 4px; font-size: 12px; z-index: 1000; opacity: 0; transition: opacity 0.3s ease; pointer-events: none;}
.tooltip.show {opacity: 1;}

.costing #currencySimble {
  position: relative !important;
  right: auto;
  top: auto;
}

#currencySimble {
  position: absolute;
  z-index: 5;
  right: 20px;
  top: calc(50% - 9px);
}

#typeOfCompressor {
  position: absolute;
  z-index: 5;
  right: 20px;
  top: calc(50% - 12.5px);
}

#energySaving {
  width: auto;
  max-width: 100%;
}



/* Efficiency legend container */
#etaLegendContainer {
  margin-top: 16px;
  width: 100%;
  box-sizing: border-box;
}

/* Efficiency legend card */
.eff-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 10px 16px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  color: #374151;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Label */
.eff-legend .legend-title {
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6B7280;
  white-space: nowrap;
  flex: 0 0 auto;
}

/* Bar + ticks wrapper */
.legendary-con {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1 1 auto;
  gap: 3px;
}

/* Gradient color bar */
.eff-legend .legend-bar {
  display: flex;
  height: 10px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
}

.eff-legend .legend-bar div {
  flex: 1;
}

/* Tick labels */
.eff-legend .legend-labels {
  display: flex;
  justify-content: space-between;
  padding: 0 2px;
}

.eff-legend .legend-labels div {
  font-size: 10px;
  color: #9CA3AF;
  font-weight: 500;
  text-align: center;
  flex: 1;
}
/* ── Chart card ─────────────────────────────────── */
.chart-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Toolbar */
.chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.chart-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Mode select */
.chart-select {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  background: #F9FAFB;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s;
}
.chart-select:hover  { border-color: rgba(0,0,0,0.25); }
.chart-select:focus  { border-color: #2563EB; box-shadow: 0 0 0 2px rgba(37,99,235,0.15); }

/* Shared button base */
.chart-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
  user-select: none;
  white-space: nowrap;
}
.chart-btn:active { transform: translateY(1px); }

/* Ghost variant (Toggle RPM) */
.chart-btn--ghost {
  color: #374151;
  background: #F9FAFB;
  border: 1px solid rgba(0,0,0,0.12);
}
.chart-btn--ghost:hover { background: #F3F4F6; border-color: rgba(0,0,0,0.22); }

/* Dark variant (Download) */
.chart-btn--dark {
  color: #fff;
  background: #111827;
  border: 1px solid transparent;
}
.chart-btn--dark:hover { background: #1F2937; }

/* ── Chart how-to-read guide ─────────────────────── */
.chart-guide {
  border-top: 1px solid rgba(0,0,0,0.06);
  margin-top: -4px; /* close the gap-16 just a touch */
}

.chart-guide-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 9px 2px;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  color: #9CA3AF;
  text-align: left;
  transition: color 0.15s;
}
.chart-guide-toggle:hover { color: #374151; }

.chart-guide-chevron {
  margin-left: auto;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.chart-guide-toggle[aria-expanded="true"] .chart-guide-chevron {
  transform: rotate(180deg);
}

.chart-guide-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.chart-guide-body.open { max-height: 300px; }

.chart-guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  padding: 4px 2px 14px;
}

.chart-guide-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

/* Small colour swatch mimicking legend style */
.chart-guide-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 3px;
}

/* Operating point: white circle with orange ring */
.chart-guide-swatch--op {
  background: #fff;
  border: 2px solid #F97316;
  width: 10px;
  height: 10px;
}

/* Efficiency: mini gradient arc */
.chart-guide-swatch--eff {
  background: linear-gradient(90deg, #0000ff, #33ccff, #66ff33, #ffff33, #ff0000);
  border-radius: 3px;
  width: 28px;
  height: 10px;
}

.chart-guide-item strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 2px;
}
.chart-guide-item p {
  margin: 0;
  font-size: 11px;
  color: #6B7280;
  line-height: 1.5;
}

/* ── Performance grade chip ──────────────────────── */
.op-grade-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.6;
}
.op-grade--excellent { background: rgba(150,201,66,0.16); color: #3a6e0d; border: 1px solid rgba(150,201,66,0.45); }
.op-grade--good      { background: rgba(9,87,125,0.10);   color: #09577D; border: 1px solid rgba(9,87,125,0.28); }
.op-grade--fair      { background: rgba(245,158,11,0.13); color: #8a3e0b; border: 1px solid rgba(245,158,11,0.38); }
.op-grade--low       { background: rgba(220,38,38,0.10);  color: #B91C1C; border: 1px solid rgba(220,38,38,0.28); }

/* ── One-time hover callout on the operating point ── */
.op-hover-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(17,24,39,0.88);
  color: #F9FAFB;
  font-size: 11px;
  font-weight: 500;
  font-family: "Poppins", sans-serif;
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,0.22);
  backdrop-filter: blur(4px);
}

/* ── Operating point stats bar ───────────────────── */
.op-stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: #F9FAFB;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 10px;
  padding: 10px 20px;
  flex-wrap: wrap;
}

.op-stats-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0 20px;
}

.op-stats-sep {
  width: 1px;
  height: 28px;
  background: rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.op-stats-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9CA3AF;
}

.op-stats-value {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  font-variant-numeric: tabular-nums;
}

/* ============================================
   COMPUTE SAVINGS SECTION
   Responsive form rows + metrics grid
============================================ */

/* ── Section card headers ── */
.savings-card-header {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  letter-spacing: 0.01em;
}

/* ── Form rows — CSS Grid: [label 240px] [badge 110px] [value 1fr] ── */
.savings-form-row {
  display: grid;
  grid-template-columns: 240px 110px 1fr;
  gap: 8px;
  align-items: center;
}

/* Transparent wrapper — its two children (label + badge) become
   direct grid items, giving us perfect 3-column alignment with
   no extra markup needed. */
.savings-form-meta {
  display: contents;
}

/* ── Metrics grid: desktop = single column stack ── */
.savings-metrics-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;          
}

.savings-metric {
  width: 100%;
  /* flex: 1;          */
}

.savings-metric-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9CA3AF;
  text-align: center;
}

.savings-metric-unit {
  font-size: 13px;
  font-weight: 500;
  color: #9CA3AF;
}

.savings-metric-value {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  font-variant-numeric: tabular-nums;
}

/* Savings range: slightly smaller to fit the "X – Y" text */
.savings-metric-value--range {
  font-size: 16px;
  line-height: 1.3;
  text-align: center;
  word-break: break-word;
}

/* Savings/year metric: subtle green accent to highlight it */
.savings-metric--savings {
  background: #F0F9E8;
  border-color: #C6E08A !important;
  height: 100%;
}
.savings-metric--savings .savings-metric-label {
  color: #5a8a1f;
}
.savings-metric--savings .savings-metric-value {
  color: #3d6b10;
}
.savings-metric--savings .savings-metric-unit {
  color: #5a8a1f;
}

/* Savings range row: currency + value inline */
.savings-range-display {
  display: flex;
  align-items: baseline;
  gap: 3px;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
}

/* Empty unit badge: show as a plain outlined box so the column
   stays visually consistent (matches the screenshot reference). */
.savings-unit-badge:empty {
  visibility: visible;
}

/* ── Value display (read-only output fields) ── */
.savings-value-display {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
}

/* ── Value column: grid gives it 1fr, just ensure full height ── */
.savings-form-row .savings-value-display,
.savings-form-row input[type="number"],
.savings-form-row .dropdown,
.savings-form-row .dropdown-1,
.savings-form-row .dropdown-01,
.savings-form-row .savings-input-wrap {
  width: 100%;
  min-height: 50px;  /* match the label & badge height */
  min-width: 0;
}

/* ── Input + helper hint wrapper ── */
.savings-input-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  /* Reset blanket min-height — wrapper handles sizing */
  min-height: unset;
}

/* Input inside the wrapper fills the column at the standard row height */
.savings-input-wrap input[type="number"] {
  min-height: 50px;
  width: 100%;
}

/* Hint: collapsed by default so all rows stay the same height */
.savings-input-hint {
  font-size: 11px;
  color: #9CA3AF;
  padding: 0 6px;
  line-height: 1.4;
  user-select: none;
  /* hidden — zero height, invisible */
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.22s ease, opacity 0.22s ease, padding-top 0.22s ease;
}

/* Reveal when user focuses the input inside this wrapper */
.savings-input-wrap:focus-within .savings-input-hint {
  max-height: 22px;
  opacity: 1;
  padding-top: 5px;
}

/* ── Label (grid col 1): fills 240px cell ── */
.savings-section-card .con-drk--gray {
  font-size: 14px;          /* match base con-drk--gray size */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 16px;
}

/* ── Badge (grid col 2): fills 110px cell ──
   width:auto overrides the w--140 class (140px) on the HTML element. */
.savings-section-card .savings-unit-badge {
  width: auto;
  min-width: 0;
  padding: 0 8px;
  font-size: 14px;
}

/* ── Result card: sidebar on desktop ── */
.savings-result-card {
  min-width: 300px;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────
   TABLET (≤1024px) — panels stack, full width
───────────────────────────────────────── */
@media (max-width: 1024px) {
  .savings-result-card {
    min-width: 0;
    width: 100%;
  }

  /* Metrics: 2×2 grid when result card is full width */
  .savings-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    flex: none;           /* grid replaces flex column */
  }

  /* In grid context, flex:1 doesn't apply — reset */
  .savings-metric {
    width: 100%;
    flex: none;
  }

  /* The broad .calc--con > div:last-child > div rule sets flex-direction:column
     on ALL direct div children of the results card — this accidentally stacks
     the Lottie icon above the button text. Keep it as a row. */
  #btn-compute {
    flex-direction: row !important;
  }
}

/* ─────────────────────────────────────────
   MOBILE (≤768px) — full mobile redesign
───────────────────────────────────────── */
@media (max-width: 768px) {

  /* Section card padding tighter */
  .savings-section-card,
  .savings-result-card {
    padding: 16px !important;
    border-radius: 20px !important;
    gap: 12px !important;
  }

  /* Card header: plain text divider instead of bordered box */
  .savings-card-header {
    border: none !important;
    border-bottom: 1px solid #F3F4F6 !important;
    border-radius: 0 !important;
    background: none !important;
    height: auto !important;
    min-height: auto !important;
    justify-content: flex-start !important;
    padding: 0 0 10px 0 !important;
    width: 100% !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: #9CA3AF !important;
  }

  /* ── Form rows: stack label row above value ── */
  .savings-form-row {
    display: flex;            /* override grid from desktop */
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  /* Label + unit badge: restore as a visible flex row */
  .savings-form-meta {
    display: flex;            /* override display:contents from desktop */
    flex-direction: row;
    align-items: center;
    gap: 4px;
    width: 100%;
  }

  /* Empty badge: no space needed in mobile stacked layout */
  .savings-unit-badge:empty {
    display: none !important;
  }

  /* con-drk--gray inside form meta: plain label text */
  .savings-form-meta .con-drk--gray {
    min-width: 0 !important;
    width: auto !important;
    min-height: auto !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #6B7280 !important;
    justify-content: flex-start !important;
  }

  /* Unit badge: inline pill next to label text */
  .savings-unit-badge {
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: auto !important;
    padding: 2px 8px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #9CA3AF !important;
    background: #F3F4F6 !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 6px !important;
  }

  /* Value display fields: full width, taller for touch */
  .savings-value-display,
  .savings-section-card input[type="number"],
  .savings-section-card .dropdown,
  .savings-section-card .dropdown-1,
  .savings-section-card .dropdown-01 {
    width: 100% !important;
    min-height: 52px !important;
    border-radius: 12px !important;
    font-size: 15px !important;
  }

  /* Dropdown wrappers need explicit height */
  .savings-section-card .dropdown,
  .savings-section-card .dropdown-1,
  .savings-section-card .dropdown-01 {
    height: 52px !important;
  }

  /* ── Metrics: 2×2 grid on mobile ── */
  .savings-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    flex: none;
  }

  .savings-metric {
    flex: none;
    padding: 14px 12px !important;
    border-radius: 12px !important;
    gap: 6px !important;
  }

  .savings-metric-label {
    font-size: 10px;
    line-height: 1.3;
  }

  .savings-metric-value {
    font-size: 18px;
  }

  .savings-metric-unit {
    font-size: 12px;
  }

  /* Savings range metric: slightly different layout for the range text */
  .savings-metric--savings .savings-metric-value {
    font-size: 14px;
    line-height: 1.4;
  }

  /* Calculate button: full width, prominent */
  #btn-compute {
    min-height: 56px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 16px !important;
    gap: 8px;
  }
}

/* ─────────────────────────────────────────
   SMALL MOBILE (≤480px) — tighter
───────────────────────────────────────── */
@media (max-width: 480px) {
  .savings-section-card,
  .savings-result-card {
    padding: 14px !important;
    border-radius: 16px !important;
  }

  .savings-metrics-grid {
    gap: 8px;
  }

  .savings-metric {
    padding: 12px 10px !important;
  }

  .savings-metric-value {
    font-size: 16px;
  }

  .savings-metric-label {
    font-size: 9px;
  }

  /* Single column fallback at very small */
  /* Keep 2-col since 400px is our 1-col threshold */
}

/* ── Filter section header ────────────────────────── */
.filter-section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 16px;
  border: 1px solid #E8E8E8;
  padding: 0 16px;
}

@media (max-width: 768px) {
  .filter-section-header {
    border: none;
    border-bottom: 1px solid #F3F4F6;
    border-radius: 0;
    justify-content: flex-start;
    padding: 0 0 12px 0;
    min-height: auto;
  }
  .filter-section-header h2 {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #111827;
  }
}

/* ── Filter input group (Identify Blower tab) ─────── */
.filter-inputs-row {
  display: flex;
  gap: 16px;
  width: 100%;
}

.filter-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.filter-input-label {
  white-space: nowrap;
  height: 44px;
  min-height: 44px;
  padding: 0 12px;
  flex-shrink: 0;
}

.filter-input-fields {
  display: flex;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.filter-input-fields input {
  flex: 1;
  min-width: 0;
}

.filter-unit-select {
  flex-shrink: 0;
  width: auto;
  min-width: 80px;
}

/* Mobile filter redesign */
@media (max-width: 768px) {
  .filter-inputs-row {
    flex-direction: column;
    gap: 16px;
  }

  .filter-input-group {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  /* Label: plain small text, no big gray box */
  .filter-input-label {
    background: none !important;
    border: none !important;
    justify-content: flex-start !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #6B7280 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    height: auto !important;
    min-height: auto !important;
    padding: 0 2px !important;
    width: 100%;
  }

  /* Join input + select into one unified pill */
  .filter-input-fields {
    gap: 0;
    border: 1.5px solid #D1D5DB;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    width: 100%;
    transition: border-color 0.15s;
  }

  .filter-input-fields:focus-within {
    border-color: #96C942;
    box-shadow: 0 0 0 3px rgba(150, 201, 66, 0.15);
  }

  .filter-input-fields input {
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 13px 16px !important;
    font-size: 16px !important;
    font-weight: 500;
    color: #111827;
    min-height: 52px;
    height: 52px;
  }

  .filter-unit-select {
    border: none !important;
    border-radius: 0 !important;
    border-left: 1.5px solid #E5E7EB !important;
    background: #F9FAFB !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 14px !important;
    font-size: 13px !important;
    font-weight: 600;
    color: #374151;
    min-height: 52px;
    height: 52px;
    width: auto;
    min-width: 90px;
    cursor: pointer;
  }
}

/* ── Legacy overrides kept for PDF report buttons ── */
#downloadPdfReport {
  padding: 6px 12px;
}

/* ── Currency symbol badge inside the country dropdown ──
   Shows as a small pill at the right side of the input field.
   Styled as an intentional badge, not raw floating text. */
.dropdown > #currencySimble {
  font-size: 11px;
  font-weight: 700;
  color: #374151;
  background: #F3F4F6;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  padding: 2px 8px;
  min-width: 26px;
  text-align: center;
  pointer-events: none;
  line-height: 1.4;
  top: calc(50% - 11px);
}

/* ── Product name display: clip long names gracefully ── */
#producName {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  width: 100%;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
  color: #111827;
}

.eye-wrap{
  width: 24px;
  height: 24px;
  position: relative;
}
.eye-lottie-toggle {
  position: absolute;
  left: calc(50% - 20px);
  top: calc(50% - 20px);
  width: 40px;
  height: 40px;
  pointer-events: none; /* So clicks go to the parent btn */
}

#downlaodPdfLottie,#exportChartLottie,#computeLottie,#findLottie{
  width: 24px;
  height: 24px;
  pointer-events: none; /* So clicks go to the parent btn */
}


.pdf-container {
  padding: 32px;
  width: 1200px;
  background: #f5f5f5;
  font-family: Arial, sans-serif;
}

.pdf-header {
  border-bottom: 2px solid #09577D;
}

.border-t--gray-1 {
  border-top: 1px solid #e1e6ea;
}


/* ============================================
   POSITIONING, STATES, MISC
============================================ */
.pointer {cursor: pointer;}
.overflow-hiden {overflow: hidden;}
.text-align--start {text-align: start;}
.text-align--center {text-align: center;}
.t-dec-none {text-decoration: none;}
.position-r {position: relative;}
.box-sizing {box-sizing: border-box;}
.subtract div:first-child {display: none;}
.disabled {opacity: 0.5; cursor: not-allowed;}

/* ============================================
   BASE STYLES FOR STRUCTURE CLASSES
============================================ */
.calc--con {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
  }

  .con-drk--gray {
    display: flex;
    min-width: 120px;
    min-height: 50px;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    background: #e8e8e8;
    color: #000;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    white-space: nowrap;
    padding: 0 14px;
  }
  
  .calc--nav {
    display: flex;
    flex-direction: row;
    gap: 16px;
    width: 100%;
  }

  .calc--nav-second{
    display: none;
    flex-direction: row;
    gap: 16px;
    width: 100%;
  }
  
  .cont {
    height: 500px;
    width: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    padding: 20px;
    background-color: white;
    flex-direction: column;
    gap: 40px;
  }

  #upcoming {
    width: 100%;
  }
  
  /* ============================================
     FORM & BUTTON ENHANCEMENTS
  ============================================ */
  
  #findProductsButton:disabled {
    background-color: #ccc;
    cursor: not-allowed;
  }
  
  /* ============================================
     TABS & STEPS
  ============================================ */
  .tabs .tab {
    flex-grow: 1;
    justify-content: center;
  }
  
  
  /* ============================================
     TOOLTIP POSITIONING SUPPORT (Optional)
  ============================================ */
  .tooltip[data-position="top"] {
    transform: translateY(-100%);
  }
  
  .tooltip[data-position="bottom"] {
    transform: translateY(100%);
  }
  
  .tooltip[data-position="left"] {
    transform: translateX(-100%);
  }
  
  .tooltip[data-position="right"] {
    transform: translateX(100%);
  }
  
  /* ============================================
     DROPDOWN UX IMPROVEMENT
  ============================================ */
  /* Shared dropdown wrapper styles */
  .dropdown,
  .dropdown-1,
  .dropdown-01 {
    position: relative;
    width: 100%;
    height: 50px;
  }

  /* Shared input styles */
  .dropdown input,
  .dropdown-01 input {
    padding: 12px 20px;
  }

  .dropdown-1 input {
    padding: 8px 48px 8px 16px;
  }

  .dropdown input,
  .dropdown-1 input,
  .dropdown-01 input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    border-radius: 10px;
    font-size: 14px;
    background-color: white;
  }

  /* Focus styles */
  #Quantity:focus,
  #dailyRuntime:focus,
  #EneryPrice:focus,
  #flowInput:focus,
  #pressureInput:focus,
  .dropdown input:focus,
  .dropdown-1 input:focus,
  .dropdown-01 input:focus {
    border: 1px solid #96C942;
    box-shadow: 0 0 0 2px rgba(150, 201, 66, 0.3);
    outline: none;
  }

  /* Shared dropdown list styles */
  .dropdown .option,
  .dropdown-1 .option-1,
  .dropdown-01 .option-01 {
    position: absolute;
    top: 70px;
    width: 100%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    z-index: 6;
    box-shadow: 0 30px 30px rgba(0, 0, 0, 0.05);
    border: none;
    display: none;
  }

  /* Override for specific dropdown spacing */
  .dropdown .option {
    top: 65px;
  }

  /* Shared option item styles */
  .dropdown .option div,
  .dropdown-1 .option-1 div,
  .dropdown-01 .option-01 div {
    padding: 12px 20px;
    min-height: 44px;
    display: flex;
    align-items: center;
    cursor: pointer;
  }

  /* Hover state */
  .dropdown .option div:hover,
  .dropdown-1 .option-1 div:hover,
  .dropdown-01 .option-01 div:hover {
    background: #62baea;
    color: #fff;
  }

  /* Active dropdown states */
  .dropdown.active .option,
  .active-1 .option-1,
  .active-01 .option-01 {
    visibility: visible;
    opacity: 1;
    display: block;
  }

  .active-01 .option-01 {
    z-index: 20;
  }

  /* Type of compressor positioning */
  #typeOfCompressor {
    position: absolute;
    z-index: 5;
    right: 20px;
    top: calc(50% - 12.5px);
  }

  /* Specific override for search field */
  #search01:focus {
    border: #000 !important;
  }
  
  /* ============================================
     PRODUCT CARD — GPU compositing hint
     (drop shadow & hover handled entirely by GSAP)
  ============================================ */
  .product-card {
    will-change: transform, box-shadow;
    transition: box-shadow 0.55s ease; /* smooth fallback when GSAP isn't running */
  }
  
  /* ============================================
     P-CONTENT BASE STYLE
  ============================================ */
  .p--content {
    font-size: 16px;
    line-height: 1.6;
    color: #525252;
    margin-bottom: 16px;
  }
  
  .p--content p {
    margin-bottom: 12px;
  }
  
  /* ============================================
     UTILITY CLASSES FIX
  ============================================ */
  .overflow-hidden {
    overflow: hidden;
  }
  
  /* If you're using `ai--center`, this will fix it */
  .ai--center   { align-items: center; }
  .ai--start    { align-items: flex-start; }
  .ai--end      { align-items: flex-end; }
  .ai--baseline { align-items: baseline; }
  
  .jc--start { justify-content: flex-start; }
  .jc--end   { justify-content: flex-end; }
  
  /* ============================================
     CONTAINER-CALC BASE STYLE
  ============================================ */
  .container-calc {
    width: 100%;
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
  }

  .hr--gray {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #E9E9E9;
    margin: 1em 0;
    padding: 0;
}


/* ============================================
   MEDIA QUERIES
============================================ */
/* ===== 2xl (1536px) ===== */
@media (max-width: 1536px) {
  .container-calc {
    max-width: 1280px;
    width: 100%;
  }
}

/* ===== xl (1280px) ===== */
@media (max-width: 1280px) {
  .container-calc {
    max-width: 1024px;
    width: 100%;
  }
}

/* ===== lg (1024px) ===== */
@media (max-width: 1024px) {
  .container-calc {
    max-width: 100%;
    width: 100%;
  }

  #pumpCurveChart {
    width: 100% !important;
    height: auto !important;
  }

  .gc--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Stack the main calc layout and result panel */
  .calc--con,
  #upcoming > div,
  .calc--con > div:last-child > div {
    width: 100%;
    flex-direction: column;
  }
  .calc--con > div:last-child,
  .w--300 {
    width: 100%;
  }

  /* ── Tablet nav: horizontal row, tabs wrap 2×2 ── */
  .calc--nav {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  /* Tabs fill available space and wrap into 2×2 grid */
  .tabs {
    flex: 1;
    min-width: 0;           /* allow shrinking below content size */
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Each tab = half the tabs container width */
  .tab {
    flex: 1 1 calc(50% - 4px);
    width: auto;
    height: auto;
    min-height: 44px;
    padding: 10px 12px;
  }

  /* Back/Next: fixed-size column, never grows into tabs space */
  .tab-controller {
    flex: 0 0 auto;         /* no grow, no shrink — content-sized */
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    align-self: stretch;
  }

  /* Buttons: natural width + consistent sizing */
  .tab-controller button {
    width: auto;
    min-width: 90px;
    justify-content: center;
    white-space: nowrap;
  }
}

/* ===== md (768px) ===== */
@media (max-width: 768px) {
  .calc--nav-second {
    display: flex;
    flex-direction: column-reverse;
  }
  .container-calc {
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .r-lc {
    width: 100%;
  }

  .overflow-y--scroll {
    overflow-y: scroll;
  }

  /* Filter inputs — handled by .filter-input-group / .filter-inputs-row rules above */

  /* con-drk--gray: fluid, no more 240px min-width */
  .con-drk--gray {
    min-width: 0;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Unit label: shrink instead of holding 140px */
  .w--140 {
    width: auto;
    min-width: 80px;
    flex-shrink: 0;
  }

  #currencySimble {
    width: fit-content;
  }

  .calc--con > .flex:first-of-type > .bg--white:nth-of-type(2) > div,
  .calc--con > .flex:first-of-type > .bg--white:nth-of-type(2) > div :first-child {
    width: 100%;
  }

  /* Tabs: stay as row but collapse to 2 rows if needed */
  .tabs {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .tab {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    height: auto;
    padding: 10px 8px;
  }
  .tab .label {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .tab .marker {
    margin-left: 0;
    flex-shrink: 0;
  }

  /* Chart toolbar: wrap cleanly */
  .chart-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .chart-select {
    width: 100%;
    min-height: 44px;
  }
  .chart-toolbar-actions {
    width: 100%;
    justify-content: space-between;
  }
  .chart-btn {
    flex: 1;
    justify-content: center;
    min-height: 44px;
  }

  /* Guide: single column on mobile */
  .chart-guide-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* Op stats bar: 2×2 grid layout */
  .op-stats-bar {
    flex-wrap: wrap;
    padding: 0;
    gap: 0;
  }
  .op-stats-item {
    flex: 0 0 50%;
    flex-direction: row;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    box-sizing: border-box;
  }
  .op-stats-item:nth-child(1),
  .op-stats-item:nth-child(3) {
    border-right: 1px solid rgba(0,0,0,0.07);
  }
  .op-stats-sep {
    display: none;
  }
  .op-stats-label {
    font-size: 11px;
    text-align: left;
  }
  .op-stats-value {
    font-size: 13px;
  }

  /* Efficiency legend wraps */
  .eff-legend {
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Nav: stack vertically at mobile (overrides 1024px row direction) */
  .calc--nav {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  /* Nav controller: full width, buttons side by side */
  .tab-controller {
    flex: 1 1 auto;
    flex-direction: row;   /* Back | Next in a row at mobile */
    width: 100%;
  }
  .tab-controller button {
    flex: 1;
    justify-content: center;
  }
}

/* ===== sm (640px) ===== */
@media (max-width: 640px) {
  .container-calc {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  /* ── Product grid: 2 columns on mobile ── */
  .gc--3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* Compact card for 2-col layout */
  .product-card {
    padding: 10px !important;
    border-radius: 16px !important;
  }

  /* Shorter image well */
  .product-card .h--222 {
    height: 120px !important;
    min-height: 120px;
  }
  .product-card img {
    width: 100%;
    max-height: 120px;
    object-fit: contain;
  }

  /* Model name */
  .product-card h3 {
    font-size: 12px;
    line-height: 1.3;
    word-break: break-word;
  }

  /* Tags: tighter on small cards */
  .product-tag {
    font-size: 9px;
    padding: 3px 7px 3px 5px;
    gap: 3px;
  }

  /* Specs text */
  .product-card .flex.fd--column.g--4 p {
    font-size: 10px;
    line-height: 1.4;
  }

  /* Dark info box */
  .product-card .bg--black {
    padding: 8px 10px;
    gap: 2px !important;
  }
  .product-card .bg--black p {
    font-size: 10px;
  }

  /* Tighten vertical gap inside card */
  .product-card .flex.fd--column.g--16 {
    gap: 10px !important;
  }
  .product-card .mt--16 {
    margin-top: 10px !important;
  }

  /* ── Filter section ── */
  .filter-calc-con {
    padding: 14px !important;
    gap: 14px !important;
  }

  #findProductsButton {
    width: 100%;
    margin-top: 4px;
    min-height: 52px;
    font-size: 14px !important;
    font-weight: 600;
  }

  /* ── Tabs: compact horizontal row — all 4 in one line ── */
  .tabs {
    flex-direction: row !important;
    flex-wrap: nowrap;
    gap: 3px;
    width: 100%;
  }
  .tab {
    flex: 1;
    flex-direction: column;
    padding: 6px 3px;
    height: auto;
    min-height: 48px;
    gap: 3px;
    border-radius: 6px;
  }
  .tab .label {
    font-size: 8.5px;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
    overflow: visible;
    font-weight: 500;
    color: #374151;
  }
  .tab.active .label {
    color: #3d6b10;
    font-weight: 600;
  }
  .tab .marker {
    margin-left: 0;
    width: 14px;
    height: 14px;
    font-size: 10px;
  }

  /* ── Calc nav card: tighter padding on mobile ── */
  .calc--nav {
    padding: 10px 12px !important;
    gap: 8px !important;
    border-radius: 16px !important;
  }

  /* ── Op stats bar: keep 2-column at small mobile (same as 768px) ── */
  .op-stats-item {
    flex: 0 0 50%;   /* 2 per row, not 1 */
    border-right: none;
  }
  .op-stats-item:nth-child(odd) {
    border-right: 1px solid rgba(0,0,0,0.07);
  }
  .op-stats-item:nth-child(3),
  .op-stats-item:nth-child(4) {
    border-bottom: none;
  }
  .op-stats-item:last-child {
    border-bottom: none;
  }

  /* ── Chart toolbar actions: keep side-by-side (not stacked) ── */
  .chart-toolbar-actions {
    flex-direction: row;   /* row, not column */
    gap: 8px;
    width: 100%;
  }
  .chart-btn {
    flex: 1;
    width: auto;   /* not 100% — share space with sibling */
    font-size: 11px;
    padding: 8px 10px;
    gap: 4px;
  }

  /* ── Savings range ── */
  #energySaving { width: auto; }

  /* ── Nav controller: cap button width so single Back/Next isn't full-width ── */
  .tab-controller { width: 100%; gap: 8px; justify-content: center; }
  .tab-controller button {
    flex: 1;
    max-width: calc(50% - 4px); /* never wider than half, even when alone */
    min-height: 44px;
    font-size: 13px;
  }

  /* ── Chart card: tighter padding for more canvas room ── */
  .chart-card {
    padding: 12px !important;
    gap: 12px;
    border-radius: 16px !important;
  }

  /* ── Chart select: slightly taller for easier tapping ── */
  .chart-select {
    min-height: 44px;
    font-size: 13px;
    padding: 8px 12px;
  }

  /* ── Efficiency legend: smaller labels on narrow screens ── */
  .eff-legend {
    padding: 8px 12px;
    gap: 6px;
  }
  .eff-legend .legend-title {
    font-size: 9px;
    letter-spacing: 0.03em;
    flex: 0 0 auto;
    max-width: 80px;
    white-space: normal; /* allow wrap for very narrow screens */
    line-height: 1.3;
  }

  /* ── Efficiency color bar: full-width ── */
  .legendary-con {
    flex: 1;
    min-width: 0;
  }

  /* ── Download PDF Report button: full-width pill on mobile ── */
  #downloadPdfReport {
    width: 100% !important;
    border-radius: 14px !important;
    justify-content: center !important;
    padding: 13px 20px !important;
    font-size: 13px !important;
    min-height: 48px;
    gap: 8px;
  }
}

/* ===== xs (400px — very small phones → 1-col fallback) ===== */
@media (max-width: 400px) {
  .gc--3 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Restore full card at 1-col */
  .product-card {
    padding: 14px !important;
    border-radius: 20px !important;
  }
  .product-card .h--222 {
    height: 160px !important;
  }
  .product-card img {
    max-height: 160px;
  }
  .product-card h3 {
    font-size: 14px;
  }
  .product-card .flex.fd--column.g--4 p {
    font-size: 12px;
  }
  .product-card .bg--black p {
    font-size: 12px;
  }
  .product-tag {
    font-size: 10px;
    padding: 3px 8px 3px 6px;
  }
}

/* ===== xs (480px — small phones) ===== */
@media (max-width: 480px) {
  .container-calc {
    padding-left: 12px;
    padding-right: 12px;
  }

  /* Tighten card padding on layout cards */
  .p--20-a { padding: 16px; }
  .br--24 { border-radius: 16px; }

  /* Chart: let aspectRatio (set in JS) control height — don't force a px height */
  #pumpCurveChart {
    height: auto !important;
  }

  /* Stats labels tighter */
  .op-stats-label { font-size: 9px; letter-spacing: 0.04em; }
  .op-stats-value { font-size: 13px; }

  /* Larger result numbers: scale down */
  .fs--24 { font-size: 18px; }

  /* con-drk--gray font: smaller */
  .con-drk--gray {
    font-size: 12px;
    padding: 8px 10px;
  }

  /* Product grid gap tighter */
  .gc--3 { gap: 8px; }
}

/* ============================================
   RESPONSIVE BASE UTILITIES
   (apply at all widths, mobile-first fixes)
============================================ */

/* Missing padding-bottom utility used on <main> */
.pb--200 { padding-bottom: 200px; }
.mt--24  { margin-top: 24px; }

/* Minimum 44px touch targets (Apple HIG, WCAG 2.5.5) */
.h--40 { min-height: 44px; }
#findProductsButton,
#btn-compute,
.tab-controller button,
.chart-btn,
.chart-select {
  min-height: 44px;
}

/* Reduce 300ms tap delay on all interactive elements */
.tab,
.tab-controller button,
#findProductsButton,
#btn-compute,
.chart-btn,
.chart-select,
.product-card,
.dropdown input,
.dropdown-1 input,
.dropdown-01 input,
.contr,
.contr-1,
.contr-01 {
  touch-action: manipulation;
}

/* Chart canvas: always fluid, never overflow */
#pumpCurveChart {
  max-width: 100%;
}

/* Fixed-width utilities: don't overflow their container */
.cont {
  max-width: 100%;
  width: 100%;
}
.w--300 {
  max-width: 100%;
}
.con-drk--gray {
  max-width: 100%;
}

/* Prevent horizontal scroll on body */
body {
  overflow-x: hidden;
}

/* ─────────────────────────────────────────────
   Rolling-number metric card animation
   ───────────────────────────────────────────── */
@keyframes metric-pop {
  0%   { transform: scale(0.96); box-shadow: 0 0 0 0 rgba(150, 201, 66, 0); }
  40%  { transform: scale(1.03); box-shadow: 0 0 0 6px rgba(150, 201, 66, 0.18); }
  70%  { transform: scale(0.99); }
  100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(150, 201, 66, 0); }
}

.metric-pop {
  animation: metric-pop 480ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
  will-change: transform;
}

/* Savings card pop uses green tint glow */
.savings-metric--savings.metric-pop {
  animation-name: metric-pop-green;
}

@keyframes metric-pop-green {
  0%   { transform: scale(0.96); box-shadow: 0 0 0 0 rgba(93, 160, 30, 0); }
  40%  { transform: scale(1.04); box-shadow: 0 0 0 8px rgba(93, 160, 30, 0.22); }
  70%  { transform: scale(0.99); }
  100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(93, 160, 30, 0); }
}

/* Rolling digits: prevent layout shift during count-up */
.savings-metric-value {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}


/* ═══════════════════════════════════════════════════════════════════
   REGISTER TAB
   ═══════════════════════════════════════════════════════════════════ */

/* Page wrapper — no padding; inner sections handle their own spacing */
.reg-page {
  flex-direction: column;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 30px rgba(0,0,0,0.05);
}

/* ── Portfolio disclaimer notice ─────────────────────────────────── */
.reg-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: #FFFBEB;
  border-bottom: 1px solid #FDE68A;
  color: #92400E;
  font-size: 13px;
  line-height: 1.5;
}
.reg-notice svg {
  flex-shrink: 0;
  color: #D97706;
}
.reg-notice strong {
  font-weight: 600;
}

/* ── Two-column body ─────────────────────────────────────────────── */
.reg-body {
  display: flex;
  min-height: 540px;
}

/* ── Left panel: value proposition ──────────────────────────────── */
.reg-left {
  flex: 0 0 42%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 48px 40px;
  background: #0A0A0A;
  color: #ffffff;
}

.reg-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #96C942;
}

.reg-heading {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  margin: 0;
}

.reg-subtext {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255,255,255,0.62);
  margin: 0;
}

/* Benefits list */
.reg-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.reg-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  line-height: 1.4;
}
.reg-check {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(150,201,66,0.18);
  color: #96C942;
}

/* Pull-quote */
.reg-quote {
  margin: 8px 0 0;
  padding: 14px 18px;
  border-left: 3px solid #96C942;
  background: rgba(150,201,66,0.06);
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  font-style: italic;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
}

/* ── Right panel: form ───────────────────────────────────────────── */
.reg-form-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 48px 44px;
  background: #ffffff;
}

.reg-form-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.reg-form-title {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}
.reg-form-sub {
  font-size: 13px;
  color: #6B7280;
  margin: 0;
}
.reg-link {
  color: #96C942;
  font-weight: 500;
  text-decoration: none;
}
.reg-link:hover {
  text-decoration: underline;
}

/* Form layout */
.reg-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.reg-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.reg-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.reg-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #374151;
}
.reg-optional {
  font-weight: 400;
  color: #9CA3AF;
}
.reg-input {
  height: 44px;
  padding: 0 14px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 14px;
  font-family: "Poppins", sans-serif;
  color: #111827;
  background: #FAFAFA;
  transition: border-color 0.18s, box-shadow 0.18s;
  width: 100%;
  box-sizing: border-box;
}
.reg-input:focus {
  outline: none;
  border-color: #96C942;
  box-shadow: 0 0 0 3px rgba(150,201,66,0.15);
  background: #ffffff;
}
.reg-input::placeholder {
  color: #9CA3AF;
}
.reg-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* Submit button */
.reg-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  background: #111827;
  color: #ffffff;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.18s, transform 0.15s;
  width: 100%;
  margin-top: 4px;
}
.reg-submit:hover {
  background: #1F2937;
  transform: translateY(-1px);
}
.reg-submit:active {
  transform: translateY(0);
}

/* Terms fine-print */
.reg-terms {
  font-size: 11.5px;
  color: #9CA3AF;
  line-height: 1.6;
  margin: 0;
  text-align: center;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .reg-body {
    flex-direction: column;
  }
  .reg-left {
    flex: none;
    padding: 36px 28px;
  }
  .reg-heading {
    font-size: 22px;
  }
  .reg-form-wrap {
    padding: 36px 28px;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .reg-notice {
    padding: 10px 16px;
    font-size: 12px;
  }
  .reg-left {
    padding: 28px 20px;
    gap: 16px;
  }
  .reg-heading {
    font-size: 20px;
  }
  .reg-form-wrap {
    padding: 28px 20px;
  }
  .reg-row {
    grid-template-columns: 1fr;
  }
}


/* ============================================
   PRODUCT GRID — EMPTY & LOADING STATES
============================================ */

/* ── Shared empty state card ── */
.product-grid-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 56px 24px;
  background: #F9FAFB;
  border: 1.5px dashed #E2E8F0;
  border-radius: 20px;
  text-align: center;
  width: 100%;
}

.product-grid-empty__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #F1F5F9;
}

.product-grid-empty__title {
  font-size: 15px;
  font-weight: 600;
  color: #374151;
  margin: 0;
}

.product-grid-empty__sub {
  font-size: 13px;
  color: #9CA3AF;
  margin: 0;
  max-width: 360px;
  line-height: 1.5;
}

.product-grid-empty__sub strong {
  color: #6B7280;
  font-weight: 600;
}

/* No-results variant: slightly warmer tone */
.product-grid-empty--noresults {
  background: #FFF9F9;
  border-color: #FECACA;
}

.product-grid-empty--noresults .product-grid-empty__icon {
  background: #FEF2F2;
}

.product-grid-empty--noresults .product-grid-empty__title {
  color: #B91C1C;
}


/* ── Skeleton loading cards ── */
@keyframes skeleton-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}

.product-card-skeleton {
  border-radius: 16px;
  min-height: 260px;
  background: linear-gradient(
    90deg,
    #F1F5F9 25%,
    #E8EDF4 50%,
    #F1F5F9 75%
  );
  background-size: 800px 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
  border: 1px solid #E8EDF4;
}


/* ── "Searching…" spinner inside Find button ── */
@keyframes find-btn-spin {
  to { transform: rotate(360deg); }
}

.find-btn-spinner {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: find-btn-spin 0.65s linear infinite;
  flex-shrink: 0;
  margin-right: 7px;
}

