/* ============================================================================
 * Noritz Commercial Sizing Calculator — Concept 3 "Editorial / Bold"
 * ----------------------------------------------------------------------------
 * Marketing-forward, premium landing-page feel. Big confident type, segmented
 * pill controls, fixture stepper-tile grid, and a dramatic DARK results block
 * with three premium product columns.
 *
 * EVERY rule is scoped under #csc3-root so nothing leaks into the host site.
 * ========================================================================== */

/* ---- brand tokens -------------------------------------------------------- */
#csc3-root {
  --c-cta: #D2332A;
  --c-cta-h: #C92731;
  --c-cta-a: #A81E26;
  --c-brand: #EF3340;
  --c-ink: #231F20;
  --c-ink2: #3D3D3D;
  --c-muted: #686868;
  --c-muted2: #888888;
  --c-border: #E5E5E5;
  --c-border2: #C7C7C7;
  --c-surface: #FFFFFF;
  --c-surface2: #FAFAFA;
  --c-surface3: #F4F4F4;
  --c-dark: #0F0E0E;
  --c-dark2: #231F20;
  --c-ok: #239C56;

  font-family: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--c-ink);
  line-height: 1.5;
  box-sizing: border-box;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  -webkit-font-smoothing: antialiased;
}
#csc3-root *,
#csc3-root *::before,
#csc3-root *::after { box-sizing: border-box; }

/* ---- intro / hero -------------------------------------------------------- */
#csc3-root .c3-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 44px;
}
#csc3-root .c3-eyebrow {
  font-family: "Titillium Web", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-cta);
  margin: 0 0 14px;
}
#csc3-root .c3-hero h1 {
  font-family: "Titillium Web", sans-serif;
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.02;
  font-size: clamp(38px, 6vw, 74px);
  margin: 0 0 18px;
  color: var(--c-ink);
}
#csc3-root .c3-hero h1 .c3-accent { color: var(--c-cta); }
#csc3-root .c3-hero p.c3-lede {
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--c-muted);
  max-width: 640px;
  margin: 0;
  line-height: 1.55;
}

/* ---- section scaffolding ------------------------------------------------- */
#csc3-root .c3-section { margin-bottom: 48px; }
#csc3-root .c3-step-label {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 22px;
}
#csc3-root .c3-step-num {
  font-family: "Titillium Web", sans-serif;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -.01em;
  color: #fff;
  background: var(--c-cta);
  width: 30px; height: 30px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
#csc3-root .c3-step-title {
  font-family: "Titillium Web", sans-serif;
  font-weight: 700;
  letter-spacing: -.02em;
  font-size: clamp(24px, 3vw, 34px);
  margin: 0;
  color: var(--c-ink);
}

/* ---- generic field group ------------------------------------------------- */
#csc3-root .c3-field { margin-bottom: 30px; }
#csc3-root .c3-field > .c3-flabel {
  display: block;
  font-family: "Titillium Web", sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.01em;
  color: var(--c-ink2);
  margin-bottom: 12px;
}
#csc3-root .c3-field .c3-fhint {
  font-weight: 400;
  font-size: 14px;
  color: var(--c-muted2);
  font-family: Roboto, sans-serif;
  letter-spacing: 0;
  margin-left: 8px;
}

/* ---- segmented pill control ---------------------------------------------- */
#csc3-root .c3-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
#csc3-root .c3-pill {
  font-family: "Titillium Web", sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -.01em;
  padding: 13px 26px;
  border-radius: 9999px;
  border: 1.5px solid var(--c-border2);
  background: #fff;
  color: var(--c-ink);
  cursor: pointer;
  transition: background .14s ease, color .14s ease, border-color .14s ease,
    box-shadow .14s ease, transform .08s ease;
  line-height: 1.1;
}
#csc3-root .c3-pill:hover {
  border-color: var(--c-cta);
  color: var(--c-cta);
}
#csc3-root .c3-pill[aria-pressed="true"] {
  background: var(--c-cta);
  border-color: var(--c-cta);
  color: #fff;
  box-shadow: 0 6px 18px rgba(210, 51, 42, .28);
}
#csc3-root .c3-pill[aria-pressed="true"]:hover { background: var(--c-cta-h); border-color: var(--c-cta-h); }
#csc3-root .c3-pill:active { transform: translateY(1px); }
#csc3-root .c3-pill:focus-visible { outline: 3px solid rgba(210, 51, 42, .35); outline-offset: 2px; }

/* ---- job-type pill grid -------------------------------------------------- */
#csc3-root .c3-jobgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
#csc3-root .c3-jobtile {
  border: 1.5px solid var(--c-border2);
  border-radius: 17px;
  background: #fff;
  cursor: pointer;
  padding: 14px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color .14s ease, box-shadow .14s ease, transform .08s ease;
  font-family: "Titillium Web", sans-serif;
}
#csc3-root .c3-jobtile:hover { border-color: var(--c-cta); box-shadow: 0 8px 22px rgba(0,0,0,.07); }
#csc3-root .c3-jobtile[aria-pressed="true"] {
  border-color: var(--c-cta);
  box-shadow: 0 0 0 2px var(--c-cta), 0 10px 26px rgba(210,51,42,.18);
}
#csc3-root .c3-jobtile img {
  width: 52px; height: 52px;
  object-fit: contain;
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--c-surface3);
}
#csc3-root .c3-jobtile .c3-jobname {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -.01em;
  color: var(--c-ink);
}

/* ---- text / number inputs ------------------------------------------------ */
#csc3-root .c3-input {
  font-family: "Titillium Web", sans-serif;
  font-weight: 600;
  font-size: 18px;
  padding: 14px 18px;
  border: 1.5px solid var(--c-border2);
  border-radius: 14px;
  background: #fff;
  color: var(--c-ink);
  width: 100%;
  max-width: 320px;
}
#csc3-root .c3-input:focus {
  outline: none;
  border-color: var(--c-cta);
  box-shadow: 0 0 0 3px rgba(210, 51, 42, .16);
}
#csc3-root .c3-inline { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; }
#csc3-root .c3-inline .c3-field { margin-bottom: 0; }

/* ---- conditions / fixtures area (async) ---------------------------------- */
#csc3-root .c3-async {
  position: relative;
  border: 1px solid var(--c-border);
  background: var(--c-surface2);
  border-radius: 20px;
  padding: 32px;
  min-height: 120px;
}
#csc3-root .c3-async.is-hidden { display: none; }
#csc3-root .c3-async-overlay {
  position: absolute; inset: 0;
  background: rgba(255,255,255,.78);
  display: flex; align-items: center; justify-content: center;
  border-radius: 20px;
  z-index: 5;
  font-family: "Titillium Web", sans-serif;
  font-weight: 700;
  color: var(--c-muted);
  letter-spacing: -.01em;
}
#csc3-root .c3-spinner {
  width: 22px; height: 22px;
  border: 3px solid rgba(210,51,42,.25);
  border-top-color: var(--c-cta);
  border-radius: 50%;
  animation: c3spin .7s linear infinite;
  margin-right: 12px;
}
@keyframes c3spin { to { transform: rotate(360deg); } }

#csc3-root .c3-subtitle {
  font-family: "Titillium Web", sans-serif;
  font-weight: 700;
  letter-spacing: -.015em;
  font-size: 22px;
  margin: 0 0 18px;
  color: var(--c-ink);
}
#csc3-root .c3-loc {
  font-family: Roboto, sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: var(--c-muted);
  margin-left: 10px;
  letter-spacing: 0;
}

/* ---- condition steppers (temps / elevation) ------------------------------ */
#csc3-root .c3-conditions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 34px;
}
#csc3-root .c3-cond {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 16px;
  padding: 18px 20px;
}
#csc3-root .c3-cond .c3-cond-lbl {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 12px;
}

/* shared stepper */
#csc3-root .c3-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--c-border2);
  border-radius: 9999px;
  overflow: hidden;
  background: #fff;
}
#csc3-root .c3-stepper button {
  width: 40px; height: 40px;
  border: none;
  background: #fff;
  color: var(--c-ink);
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  font-family: "Titillium Web", sans-serif;
  transition: background .12s ease, color .12s ease;
}
#csc3-root .c3-stepper button:hover { background: var(--c-cta); color: #fff; }
#csc3-root .c3-stepper button:disabled { opacity: .35; cursor: not-allowed; background: #fff; color: var(--c-ink); }
#csc3-root .c3-stepper input {
  width: 66px;
  text-align: center;
  border: none;
  font-family: "Titillium Web", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--c-ink);
  background: #fff;
  -moz-appearance: textfield;
}
#csc3-root .c3-stepper input::-webkit-outer-spin-button,
#csc3-root .c3-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#csc3-root .c3-stepper input:focus { outline: none; }

/* ---- fixtures grid of stepper tiles -------------------------------------- */
#csc3-root .c3-fixgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
#csc3-root .c3-fixtile {
  background: #fff;
  border: 1.5px solid var(--c-border);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .14s ease, box-shadow .14s ease;
}
#csc3-root .c3-fixtile.is-active {
  border-color: var(--c-cta);
  box-shadow: 0 8px 22px rgba(210,51,42,.14);
}
#csc3-root .c3-fixhead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
#csc3-root .c3-fixname {
  font-family: "Titillium Web", sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -.01em;
  color: var(--c-ink);
  line-height: 1.25;
}
#csc3-root .c3-fixhwfu { font-size: 12px; color: var(--c-muted2); font-weight: 400; display: block; margin-top: 3px; }
#csc3-root .c3-tip {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--c-border2);
  color: var(--c-muted);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: help;
  line-height: 1;
}

/* ---- big calculate button ------------------------------------------------ */
#csc3-root .c3-calc-wrap { margin-top: 36px; }
#csc3-root .c3-btn-big {
  font-family: "Titillium Web", sans-serif;
  font-weight: 700;
  letter-spacing: -.01em;
  font-size: 20px;
  padding: 20px 46px;
  border-radius: 17px;
  border: none;
  background: var(--c-cta);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(210, 51, 42, .30);
  transition: background .14s ease, transform .08s ease, box-shadow .14s ease;
}
#csc3-root .c3-btn-big:hover:not(:disabled) { background: var(--c-cta-h); }
#csc3-root .c3-btn-big:active:not(:disabled) { background: var(--c-cta-a); transform: translateY(1px); }
#csc3-root .c3-btn-big:disabled {
  background: #D9D9D9;
  color: #fff;
  box-shadow: none;
  cursor: not-allowed;
}
#csc3-root .c3-calc-hint {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  color: var(--c-muted2);
}

/* ---- inline errors / notices --------------------------------------------- */
#csc3-root .c3-error {
  background: #FDE6E7;
  color: var(--c-cta-a);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 15px;
  margin-top: 16px;
  font-family: Roboto, sans-serif;
}
#csc3-root .c3-loading-block {
  display: flex; align-items: center;
  color: var(--c-muted);
  font-family: "Titillium Web", sans-serif;
  font-weight: 700;
  padding: 20px 0;
}

/* ==========================================================================
 * DARK RESULTS SECTION
 * ======================================================================== */
#csc3-root .c3-results {
  background: var(--c-dark);
  color: #fff;
  border-radius: 28px;
  padding: clamp(28px, 4vw, 56px);
  margin: 8px 0 40px;
}
#csc3-root .c3-results.is-hidden { display: none; }
#csc3-root .c3-results-eyebrow {
  font-family: "Titillium Web", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-brand);
  margin: 0 0 12px;
}
#csc3-root .c3-results h2 {
  font-family: "Titillium Web", sans-serif;
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.03;
  font-size: clamp(30px, 4.4vw, 54px);
  margin: 0 0 36px;
  color: #fff;
}

/* ---- summary band -------------------------------------------------------- */
#csc3-root .c3-summary {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 44px;
}
#csc3-root .c3-sum-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-bottom: 26px;
}
#csc3-root .c3-sum-stat .c3-sum-k {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 6px;
}
#csc3-root .c3-sum-stat .c3-sum-v {
  font-family: "Titillium Web", sans-serif;
  font-weight: 700;
  letter-spacing: -.02em;
  font-size: 26px;
  color: #fff;
}
#csc3-root .c3-sum-stat .c3-sum-v small {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255,255,255,.55);
  margin-left: 4px;
}

#csc3-root .c3-fixtable { width: 100%; border-collapse: collapse; }
#csc3-root .c3-fixtable caption {
  text-align: left;
  font-family: "Titillium Web", sans-serif;
  font-weight: 700;
  letter-spacing: -.01em;
  font-size: 18px;
  color: #fff;
  padding-bottom: 12px;
}
#csc3-root .c3-fixtable th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
#csc3-root .c3-fixtable th.num,
#csc3-root .c3-fixtable td.num { text-align: right; }
#csc3-root .c3-fixtable td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 15px;
  color: rgba(255,255,255,.9);
}
#csc3-root .c3-fixtable tfoot td {
  border-bottom: none;
  border-top: 2px solid rgba(255,255,255,.25);
  font-family: "Titillium Web", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  padding-top: 14px;
}
#csc3-root .c3-fixtable tfoot .c3-foot-red { color: var(--c-brand); }

/* ---- recommendation columns ---------------------------------------------- */
#csc3-root .c3-recs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  align-items: start;
}
#csc3-root .c3-rec {
  background: #fff;
  color: var(--c-ink);
  border-radius: 22px;
  padding: 30px 26px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 14px 40px rgba(0,0,0,.4);
}
/* emphasized (highest) tier */
#csc3-root .c3-rec.is-best {
  box-shadow: 0 0 0 2px var(--c-cta), 0 24px 60px rgba(210,51,42,.35);
  transform: translateY(-10px);
  padding-top: 44px;
}
#csc3-root .c3-rec-ribbon {
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--c-cta);
  color: #fff;
  font-family: "Titillium Web", sans-serif;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 12px;
  padding: 8px 20px;
  border-radius: 9999px;
  box-shadow: 0 8px 18px rgba(210,51,42,.4);
  white-space: nowrap;
}
#csc3-root .c3-rec-tier {
  font-family: "Titillium Web", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-cta);
  margin-bottom: 12px;
}
#csc3-root .c3-rec-img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  margin-bottom: 16px;
}
#csc3-root .c3-rec-model {
  font-family: "Titillium Web", sans-serif;
  font-weight: 900;
  letter-spacing: -.02em;
  font-size: 26px;
  line-height: 1.05;
  color: var(--c-ink);
  margin: 0 0 3px;
}
#csc3-root .c3-rec-sub {
  font-size: 13px;
  color: var(--c-muted2);
  margin: 0 0 6px;
  word-break: break-word;
}
#csc3-root .c3-rec-qty {
  display: inline-block;
  font-family: "Titillium Web", sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--c-cta);
  background: rgba(210,51,42,.09);
  border-radius: 9999px;
  padding: 5px 14px;
  margin: 4px 0 18px;
}
#csc3-root .c3-rec-specs {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  border-top: 1px solid var(--c-border);
}
#csc3-root .c3-rec-specs li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--c-border);
  font-size: 13.5px;
}
#csc3-root .c3-rec-specs .c3-spec-k { color: var(--c-muted); }
#csc3-root .c3-rec-specs .c3-spec-v {
  font-weight: 700;
  color: var(--c-ink);
  text-align: right;
  font-family: "Titillium Web", sans-serif;
}
#csc3-root .c3-rec-acc { font-size: 13px; margin-bottom: 22px; }
#csc3-root .c3-rec-acc .c3-acc-title {
  font-size: 11px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--c-muted); margin-bottom: 6px;
}
#csc3-root .c3-rec-acc ul { margin: 0; padding-left: 18px; color: var(--c-ink2); }
#csc3-root .c3-rec-acc li { margin: 2px 0; }

#csc3-root .c3-rec-cta {
  margin-top: auto;
  font-family: "Titillium Web", sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 9999px;
  border: none;
  background: var(--c-cta);
  color: #fff;
  cursor: pointer;
  width: 100%;
  transition: background .14s ease;
  box-shadow: 0 6px 16px rgba(210,51,42,.3);
}
#csc3-root .c3-rec-cta:hover { background: var(--c-cta-h); }
#csc3-root .c3-rec-cta:active { background: var(--c-cta-a); }

/* ---- consultation CTA ---------------------------------------------------- */
#csc3-root .c3-consult {
  margin-top: 44px;
  text-align: center;
}
#csc3-root .c3-consult p {
  color: rgba(255,255,255,.75);
  font-size: 16px;
  margin: 0 0 18px;
}
#csc3-root .c3-consult .c3-btn-big {
  font-size: 21px;
  padding: 20px 52px;
}

/* ---- init loading / error ------------------------------------------------ */
#csc3-root .c3-init {
  display: flex; align-items: center;
  padding: 40px 0;
  color: var(--c-muted);
  font-family: "Titillium Web", sans-serif;
  font-weight: 700;
  font-size: 18px;
}

/* ---- responsive ---------------------------------------------------------- */
@media (max-width: 760px) {
  #csc3-root { padding: 0 16px; }
  #csc3-root .c3-hero { padding: 36px 0 28px; }
  #csc3-root .c3-async { padding: 22px; }
  #csc3-root .c3-results { padding: 26px 20px; border-radius: 20px; }
  #csc3-root .c3-rec.is-best { transform: none; }
}
