/* Unity Oil Savings Estimator - v1.6.0 */
.uo-estimator * { box-sizing: border-box; }
.uo-estimator { margin: 24px 0; font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji"; }
.uo-card { border: 1px solid rgba(0,0,0,0.08); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.uo-header { padding: 22px 18px 10px 18px; border-bottom: 1px solid rgba(0,0,0,0.06); }
.uo-brand { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; margin-bottom: 10px; }
.uo-logo { width: 320px; height: 320px; object-fit: contain; }
.uo-brand-name { font-weight: 900; font-size: 28px; line-height: 1.15; }
.uo-brand-tagline { font-size: 16px; opacity: 0.85; margin-top: 2px; }
.uo-title { margin: 6px 0 4px 0; font-size: 24px; line-height: 1.25; }
.uo-subtitle { margin: 0 0 8px 0; opacity: 0.85; }

.uo-header-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 10px 0 6px 0; }
.uo-header-actions .uo-btn { padding: 10px 14px; font-size: 13.5px; }

.uo-trustbar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 10px 0 6px 0; }
.uo-trust-item { font-size: 12.5px; opacity: 0.9; border: 1px solid rgba(0,0,0,0.10); background: rgba(15, 98, 254, 0.06); padding: 6px 10px; border-radius: 999px; }

.uo-stepper { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 6px 0 0 0; }
.uo-step { font-size: 12.5px; text-decoration: none; color: #0F62FE; border: 1px solid rgba(15, 98, 254, 0.35); background: #fff; padding: 6px 10px; border-radius: 999px; }
.uo-step:hover { background: rgba(15, 98, 254, 0.08); }

.uo-form { padding: 14px 18px 18px 18px; }
.uo-section { padding: 14px 0; border-top: 1px solid rgba(0,0,0,0.06); scroll-margin-top: 24px; }
.uo-section:first-child { border-top: 0; padding-top: 0; }
.uo-section h3 {
  margin: 0 0 10px 0;
  font-size: 19px;
  font-weight: 900;
  color: #0F62FE !important; /* IBM Blue 60 */
  letter-spacing: 0.2px;
  padding: 8px 12px;
  border-left: 7px solid #0F62FE;
  background: rgba(15, 98, 254, 0.16) !important;
  border-radius: 10px;
}
.uo-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 14px; }
@media (max-width: 760px) {
  .uo-logo { width: 240px; height: 240px; }
  .uo-brand-name { font-size: 24px; }
  .uo-brand-tagline { font-size: 14px; }
 .uo-grid { grid-template-columns: 1fr; } }

.uo-field { display: flex; flex-direction: column; gap: 6px; }
.uo-field > span { font-weight: 700; font-size: 13.5px; color: #0F62FE !important; }
.uo-req { color: #b00020; font-weight: 700; }
.uo-field input[type="text"],
.uo-field input[type="number"],
.uo-field select {
  width: 100%;
  padding: 10px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.18);
  background: #fff;
  font-size: 14px;
}
.uo-field small { opacity: 0.78; font-size: 12px; line-height: 1.35; }

.uo-toggle { display: flex; flex-wrap: wrap; gap: 12px; padding: 8px 0 10px 0; }
.uo-toggle label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }

.uo-range-readout { font-size: 13px; opacity: 0.8; margin-top: -2px; }

.uo-note { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,0.04); font-size: 13px; }
.uo-note--tiny { font-size: 12.5px; opacity: 0.86; }

.uo-actions { display: flex; gap: 10px; align-items: center; padding-top: 4px; }
.uo-btn { cursor: pointer; border-radius: 12px; padding: 10px 14px; border: 1px solid rgba(0,0,0,0.18); background: #fff; font-weight: 700; }
.uo-btn-primary { border-color: rgba(0,0,0,0.20); }
.uo-btn-ghost { background: transparent; font-weight: 600; }

.uo-results { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(0,0,0,0.06); }
.uo-results h3 { margin: 0 0 10px 0; font-size: 20px; font-weight: 900; color: #b00020; letter-spacing: 0.2px; }

.uo-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.uo-badge { font-size: 12.5px; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(0,0,0,0.12); background: rgba(0,0,0,0.03); }
.uo-badge--warn { border-color: rgba(176,0,32,0.22); background: rgba(176,0,32,0.06); }
.uo-badge--info { border-color: rgba(0,0,0,0.12); }

.uo-result-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .uo-result-grid { grid-template-columns: 1fr; } }
.uo-result-tile { border: 1px solid rgba(0,0,0,0.10); border-radius: 14px; padding: 12px; background: rgba(0,0,0,0.02); }
.uo-result-tile--highlight { background: rgba(0,0,0,0.035); border-color: rgba(0,0,0,0.18); }
.uo-result-label { font-size: 12.5px; opacity: 0.8; margin-bottom: 6px; }
.uo-result-value { font-size: 20px; font-weight: 900; white-space: pre-line; }
.uo-result-sub { font-size: 12.5px; opacity: 0.85; margin-top: 6px; line-height: 1.35; }

.uo-details { margin-top: 12px; border: 1px solid rgba(0,0,0,0.10); border-radius: 14px; padding: 10px 12px; background: rgba(0,0,0,0.02); }
.uo-details summary { cursor: pointer; font-weight: 700; }
.uo-assumptions ul { margin: 10px 0 0 18px; }
.uo-warnbox { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(176,0,32,0.06); border: 1px solid rgba(176,0,32,0.18); font-size: 13px; }
.uo-warnbox ul { margin: 8px 0 0 18px; }

.uo-disclaimer { margin-top: 12px; padding: 12px 12px; border-radius: 14px; background: rgba(0,0,0,0.03); font-size: 12.5px; line-height: 1.45; opacity: 0.9; }

.uo-advanced { margin-top: 10px; border: 1px dashed rgba(0,0,0,0.18); border-radius: 14px; padding: 10px 12px; background: rgba(0,0,0,0.015); }
.uo-advanced summary { cursor: pointer; font-weight: 800; }
.uo-advanced-note { font-size: 12.5px; opacity: 0.85; margin: 8px 0 10px 0; }

.uo-importance { display: none; }
.uo-importance.uo-importance--show { display: block; color: #b00020; font-weight: 700; }


/* v1.4.6 tweaks */
.uo-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.uo-inline input { flex: 1 1 140px; min-width: 140px; }
.uo-btn-small { padding: 8px 10px; border-radius: 10px; font-size: 12px; }

.uo-note { margin-top: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(0,0,0,0.12); font-size: 12.5px; line-height: 1.35; }
.uo-note--warn { border-color: rgba(176,0,32,0.35); background: rgba(176,0,32,0.05); }

.uo-result-monthly { font-size: 13px; font-weight: 800; opacity: 0.92; margin-top: 3px; }

.uo-result-tile--current .uo-result-value { color: #b00020; }
.uo-result-tile--new .uo-result-value { color: #0b57d0; }
.uo-result-tile--savings .uo-result-value { color: #0b57d0; }



/* v1.4.6 additions */
.uo-result-tile--savings { 
  background: rgba(11, 87, 208, 0.06);
  border-color: rgba(11, 87, 208, 0.25);
}
.uo-result-tile--savings .uo-result-value { font-size: 22px; }

.uo-electric-view {
  margin-top: 12px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  padding: 12px;
  background: rgba(0,0,0,0.02);
}
.uo-electric-title { font-weight: 900; margin-bottom: 6px; }
.uo-electric-body { font-size: 13px; line-height: 1.4; opacity: 0.92; }
.uo-electric-rows { display: grid; gap: 6px; margin-top: 6px; }
.uo-electric-row { display: flex; justify-content: space-between; gap: 10px; }
.uo-electric-row strong { font-weight: 900; }
.uo-electric-row--total { padding-top: 6px; border-top: 1px solid rgba(0,0,0,0.08); }

.uo-cta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.uo-cta .uo-btn-primary { background: #0b57d0; color: #fff; border-color: rgba(11,87,208,0.35); }
.uo-cta .uo-btn-primary:hover { filter: brightness(0.95); }


/* Outcome badge */
.uo-badge--good {
  border-color: rgba(18, 140, 54, 0.28);
  background: rgba(18, 140, 54, 0.10);
  color: #0a5c24;
}

/* Manual J / Blueprint pitch */
.uo-manualj {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  background: rgba(0,0,0,0.02);
}
.uo-manualj-title {
  font-weight: 900;
  margin-bottom: 4px;
}
.uo-manualj-body {
  font-size: 13px;
  opacity: 0.95;
}
.uo-manualj-foot {
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.8;
}

/* Email report */
.uo-report {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.uo-report h4 {
  margin: 0 0 6px 0;
  font-size: 16px;
}
.uo-report p {
  margin: 0 0 10px 0;
  font-size: 13px;
  opacity: 0.9;
}
.uo-report-form {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  background: rgba(0,0,0,0.02);
}
.uo-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  margin-top: 10px;
}
.uo-checkbox input[type="checkbox"] {
  margin-top: 2px;
}
.uo-report-status {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 800;
}
.uo-report-status--ok { color: #0b57d0; }
.uo-report-status--err { color: #b00020; }

/* Sticky “Next step” bar on mobile (shows after results) */
.uo-sticky-cta { display: none; }

@media (max-width: 760px) {
  .uo-sticky-cta {
    display: flex;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 9997;
    gap: 10px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(0,0,0,0.10);
    box-shadow: 0 12px 30px rgba(0,0,0,0.14);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  .uo-sticky-cta[hidden] { display: none; }
  .uo-sticky-cta .uo-btn { flex: 1; }

  /* keep content from being covered by the sticky bar */
  .uo-results { padding-bottom: 86px; }
}

/* Lead gate modal (optional) */
.uo-gate[hidden] { display: none; }
.uo-gate-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9998;
}
.uo-gate-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  z-index: 9999;
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 18px 55px rgba(0,0,0,0.22);
}
.uo-gate-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.uo-gate-title { font-size: 18px; font-weight: 900; }
.uo-gate-x {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  padding: 2px 8px;
  opacity: 0.7;
}
.uo-gate-x:hover { opacity: 1; }
.uo-gate-sub { margin: 8px 0 10px 0; font-size: 13px; opacity: 0.9; }
.uo-gate-foot { margin-top: 8px; font-size: 12px; opacity: 0.75; }

.uo-result-tile--savings .uo-result-monthly { opacity: 0.95; }


/* System summary block (have vs selected vs recommended) */
.uo-system-summary {
  margin-top: 14px;
  padding: 12px 12px;
  border: 1px solid rgba(15, 98, 254, 0.22);
  border-radius: 12px;
  background: rgba(15, 98, 254, 0.08);
}

/* Quick tips / sales education block */
.uo-nextsteps {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  background: rgba(0,0,0,0.02);
}
.uo-nextsteps-title {
  font-weight: 900;
  margin-bottom: 6px;
  color: #0F62FE;
}
.uo-nextsteps-list {
  margin: 0 0 0 18px;
  padding: 0;
  font-size: 13px;
  line-height: 1.45;
  opacity: 0.95;
}
.uo-nextsteps-list li { margin: 6px 0; }

.uo-system-summary-inner > div {
  margin: 6px 0;
}

.uo-system-summary-note {
  margin-top: 8px;
  font-size: 13px;
  color: #1f2937;
}

/* Make the report button more prominent */
.uo-btn-report {
  font-weight: 800;
}

/* Slightly bolder result header */
.uo-results-title {
  font-weight: 900;
  letter-spacing: 0.2px;
  color: #b91c1c;
}


/* Highlight a required checkbox when validation fails (mobile-friendly) */
.uo-checkbox--highlight {
  outline: 2px solid #b00020;
  background: rgba(176, 0, 32, 0.06);
  padding: 10px 10px;
  border-radius: 12px;
}


/* =========================
   v1.5.0 – Modern CTA-first results layout
   ========================= */

.uo-card {
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.08);
}

.uo-header {
  padding: 26px 20px 14px 20px;
  background: linear-gradient(180deg, rgba(15, 98, 254, 0.10) 0%, rgba(255,255,255,1) 70%);
}

.uo-brand { gap: 10px; margin-bottom: 14px; }
.uo-logo { width: 260px; height: 260px; object-fit: contain; }
@media (max-width: 760px) { .uo-logo { width: 210px; height: 210px; } }

.uo-brand-name { font-size: 28px; }
.uo-brand-tagline { font-size: 16px; }

.uo-title { font-size: 26px; }
.uo-subtitle { font-size: 14px; }

.uo-btn {
  transition: transform 120ms ease, filter 120ms ease, background 120ms ease;
}
.uo-btn:active { transform: translateY(1px); }

.uo-btn-primary {
  background: #0b57d0;
  color: #fff;
  border-color: rgba(11,87,208,0.35);
}
.uo-btn-primary:hover { filter: brightness(0.96); }

.uo-results {
  background: linear-gradient(180deg, rgba(11, 87, 208, 0.05) 0%, rgba(255,255,255,0) 55%);
  padding-top: 18px;
}
.uo-results h3 { font-size: 22px; }

.uo-action-panel {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(11, 87, 208, 0.22);
  background: rgba(15, 98, 254, 0.06);
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.uo-action-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.uo-action-title {
  font-weight: 900;
  font-size: 13px;
  color: #0b57d0;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.uo-action-subtitle { font-weight: 900; font-size: 18px; }

.uo-action-buttons {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
.uo-btn-quote { grid-column: 1 / -1; }

@media (max-width: 760px) {
  .uo-action-buttons { grid-template-columns: 1fr; }
  .uo-btn-quote { grid-column: auto; }
}

.uo-btn-cta { padding: 14px 14px; border-radius: 14px; font-size: 15px; font-weight: 900; }

.uo-btn-secondary {
  background: #fff;
  color: #0b57d0;
  border-color: rgba(11,87,208,0.35);
}
.uo-btn-secondary:hover { background: rgba(11,87,208,0.06); }

.uo-action-microcopy { margin-top: 8px; font-size: 13px; opacity: 0.92; }

.uo-report { margin-top: 10px; }
.uo-report-form { background: rgba(255,255,255,0.82); border-color: rgba(11,87,208,0.18); }

.uo-manualj-inline {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.35;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.02);
}
.uo-muted { opacity: 0.78; margin-left: 6px; }

.uo-disclaimer-inline {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.45;
  opacity: 0.92;
}

.uo-details--more { margin-top: 14px; }
.uo-details--more summary { font-weight: 900; }



/* v1.5.0 – form polish */
.uo-section h3 {
  border-left: 0;
  border: 1px solid rgba(15, 98, 254, 0.24);
  background: rgba(15, 98, 254, 0.10) !important;
}

.uo-field input[type="text"],
.uo-field input[type="number"],
.uo-field input[type="email"],
.uo-field input[type="tel"],
.uo-field select {
  padding: 11px 12px;
  border-radius: 12px;
  border-color: rgba(0,0,0,0.14);
}

.uo-field input[type="text"]:focus,
.uo-field input[type="number"]:focus,
.uo-field input[type="email"]:focus,
.uo-field input[type="tel"]:focus,
.uo-field select:focus {
  outline: none;
  border-color: rgba(11, 87, 208, 0.55);
  box-shadow: 0 0 0 3px rgba(11, 87, 208, 0.16);
}



/* Error banner (shown when required inputs are missing) */
.uo-error-banner {
  margin: 10px 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: #b91c1c;
  font-weight: 800;
}


/* Make <details>/<summary> look like a modern dropdown (avoid "play" icon) */
.uo-advanced summary::-webkit-details-marker { display: none; }
.uo-advanced summary { list-style: none; cursor: pointer; }
.uo-advanced summary {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed rgba(0,0,0,0.20);
  background: rgba(0,0,0,0.02);
  font-weight: 900;
}
.uo-advanced summary::after {
  content: "▾";
  float: right;
  opacity: 0.8;
  transform: translateY(1px);
  transition: transform 0.18s ease;
}
.uo-advanced[open] summary::after { transform: rotate(180deg) translateY(-1px); }


/* Range slider readout */
.uo-field input[type="range"] { width: 100%; }
.uo-range-readout {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 98, 254, 0.10);
  color: #0F62FE;
  font-weight: 900;
  font-size: 12px;
  margin-top: 8px;
  opacity: 1;
}


/* Field highlight when a required input is missing */
.uo-field--error input,
.uo-field--error select {
  border-color: rgba(220, 38, 38, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12) !important;
}

/* Manual J pitch (inside Details) */
.uo-manualj-block {
  margin: 10px 0 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 98, 254, 0.18);
  background: rgba(15, 98, 254, 0.06);
  font-size: 13px;
  line-height: 1.35;
}
.uo-manualj-note { margin-top: 6px; opacity: 0.9; }

/* --- Phone header: reach the first question without scrolling (2 Sep 2026) ---------
   logo.png is a 512px square with the emblem in the middle 40%, so the 210px box was
   mostly transparent margin; the header ran 850px tall on a phone and step 1 sat a full
   screen below the top of the card. The box shrinks and the image is scaled up inside it
   so the emblem, not the margin, fills it (the scaled transparent edge overlaps nothing
   visible). Tagline and trust chips are dropped on phones; the two buttons share a row. */
@media (max-width: 760px) {
  .uo-header { padding-top: 16px; }
  .uo-brand { gap: 4px; margin-bottom: 8px; }
  .uo-logo { width: 96px; height: 96px; object-fit: contain; transform: scale(2.1); transform-origin: 50% 50%; }
  .uo-brand-name { font-size: 20px; }
  .uo-brand-tagline { display: none; }
  .uo-header-actions { margin: 6px 0 4px 0; gap: 8px; flex-wrap: nowrap; }
  .uo-header-actions .uo-btn { flex: 1 1 0; padding: 10px 8px; font-size: 13px; white-space: nowrap; }
  .uo-title { font-size: 22px; }
  .uo-subtitle { font-size: 14px; margin-bottom: 14px; }
  .uo-trustbar { display: none; }
  .uo-stepper { margin-top: 4px; }
}
