.elementor-5676 .elementor-element.elementor-element-dff4fa0{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--padding-top:3em;--padding-bottom:0em;--padding-left:0em;--padding-right:0em;}.elementor-5676 .elementor-element.elementor-element-5b07302{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}.elementor-widget-heading .elementor-heading-title{font-family:var( --e-global-typography-primary-font-family ), Sans-serif;font-weight:var( --e-global-typography-primary-font-weight );color:var( --e-global-color-primary );}.elementor-5676 .elementor-element.elementor-element-a797509{text-align:center;}.elementor-5676 .elementor-element.elementor-element-a797509 .elementor-heading-title{font-family:"Quattrocento", Sans-serif;font-size:43px;font-weight:600;}.elementor-widget-text-editor{font-family:var( --e-global-typography-text-font-family ), Sans-serif;font-weight:var( --e-global-typography-text-font-weight );color:var( --e-global-color-text );}.elementor-widget-text-editor.elementor-drop-cap-view-stacked .elementor-drop-cap{background-color:var( --e-global-color-primary );}.elementor-widget-text-editor.elementor-drop-cap-view-framed .elementor-drop-cap, .elementor-widget-text-editor.elementor-drop-cap-view-default .elementor-drop-cap{color:var( --e-global-color-primary );border-color:var( --e-global-color-primary );}:root{--page-title-display:none;}/* Start custom CSS for container, class: .elementor-element-dff4fa0 *//* ================================================================
   Legacy Painting & Renovating — House Painting Cost Estimator
   Paste into Elementor → Site Settings → Custom CSS
   (If you paste into the widget's Advanced → Custom CSS instead,
    prefix every rule with  .elementor-5676 .elementor-element.elementor-element-dff4fa0  — e.g.  .elementor-5676 .elementor-element.elementor-element-dff4fa0 .lpe { ... })
   Brand tokens pulled from the Legacy brand kit.
   ================================================================ */

.lpe {
  --lpe-gold:   #C8A870;
  --lpe-ink:    #1F2122;
  --lpe-cream:  #F5F0E8;
  --lpe-slate:  #69727D;
  --lpe-mist:   #C3C9CE;
  --lpe-line:   #E4DDD0;
  --lpe-white:  #FFFFFF;
  --lpe-err:    #8A3324;

  --lpe-serif:  "Quattrocento", Georgia, "Times New Roman", serif;

  --lpe-r:      2px;

  /* vertical rhythm */
  --lpe-field:  34px;   /* between question blocks   */
  --lpe-label:  14px;   /* legend -> its options     */
  --lpe-tight:  10px;   /* gap between option chips  */
  --lpe-block:  40px;   /* between major sections    */

  max-width: 720px;
  margin: 0 auto;
  font-family: var(--lpe-serif);
  color: var(--lpe-ink);
  line-height: 1.6;
  text-align: left;
  scroll-margin-top: 110px;
}

.lpe *,
.lpe *::before,
.lpe *::after { box-sizing: border-box; }

/* Zero-specificity reset. :where() contributes 0 to specificity, so these
   never outrank the component classes below. Do not convert these back to
   plain type .elementor-5676 .elementor-element.elementor-element-dff4fa0s — .lpe fieldset (0,1,1) would beat .lpe-field (0,1,0)
   and silently strip the field spacing. */
.lpe :where(p, ul, ol, li, h2, h3, fieldset, legend) {
  margin: 0;
  padding: 0;
}

.lpe :where(ul, ol) { list-style: none; }

.lpe :where(fieldset) {
  border: 0;
  min-width: 0;
}

/* ---------------- header ---------------- */

.lpe-head { margin-bottom: var(--lpe-block); }

.lpe-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lpe-slate);
  margin-bottom: 14px;
}

.lpe-title {
  font-family: var(--lpe-serif);
  font-weight: 700;
  font-size: clamp(1.7rem, 4.4vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--lpe-ink);
  margin-bottom: 16px;
}

.lpe-sub {
  font-size: 1.02rem;
  color: var(--lpe-ink);
  max-width: 56ch;
}

/* ---------------- tabs ---------------- */

.lpe-tabs {
  display: flex;
  border-bottom: 1px solid var(--lpe-line);
  margin-bottom: var(--lpe-block);
}

.lpe-tab {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 13px 24px;
  font-family: var(--lpe-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--lpe-slate);
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease;
}

.lpe-tab:hover { color: var(--lpe-ink); }

.lpe-tab.is-active {
  color: var(--lpe-ink);
  border-bottom-color: var(--lpe-gold);
}

.lpe-tab:focus-visible {
  outline: 2px solid var(--lpe-gold);
  outline-offset: -2px;
}

/* ---------------- fields ---------------- */

.lpe-field { margin-bottom: var(--lpe-field); }

.lpe-field:last-of-type { margin-bottom: var(--lpe-block); }

.lpe-legend {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--lpe-ink);
  margin-bottom: var(--lpe-label);
}

.lpe-hint {
  margin-top: 12px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--lpe-slate);
  max-width: 62ch;
}

/* square footage */

.lpe-sqft-row {
  display: flex;
  align-items: stretch;
  max-width: 280px;
  border: 1px solid var(--lpe-line);
  border-radius: var(--lpe-r);
  background: var(--lpe-white);
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.lpe-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 14px 15px;
  font-family: var(--lpe-serif);
  font-size: 1.05rem;
  color: var(--lpe-ink);
}

.lpe-input:focus { outline: none; }

.lpe-sqft-row:focus-within {
  border-color: var(--lpe-gold);
  box-shadow: 0 0 0 3px rgba(200, 168, 112, 0.22);
}

.lpe-input[aria-invalid="true"] { color: var(--lpe-err); }

.lpe-unit {
  display: flex;
  align-items: center;
  padding: 0 15px;
  background: var(--lpe-cream);
  border-left: 1px solid var(--lpe-line);
  font-size: 0.85rem;
  color: var(--lpe-slate);
  white-space: nowrap;
}

.lpe-help-toggle {
  appearance: none;
  background: none;
  border: 0;
  margin-top: 12px;
  padding: 0;
  font-family: var(--lpe-serif);
  font-size: 0.86rem;
  color: var(--lpe-slate);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.lpe-help-toggle:hover { color: var(--lpe-ink); }

.lpe-help-toggle:focus-visible {
  outline: 2px solid var(--lpe-gold);
  outline-offset: 3px;
}

.lpe-help {
  margin-top: 14px;
  padding: 18px 20px;
  background: var(--lpe-cream);
  border-radius: var(--lpe-r);
  font-size: 0.9rem;
}

.lpe-help ul { margin-top: 10px; }

.lpe-help li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 5px;
}

.lpe-help li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 1px;
  background: var(--lpe-gold);
}

.lpe-help-fine {
  margin-top: 12px;
  font-size: 0.83rem;
  color: var(--lpe-slate);
}

.lpe-error {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--lpe-err);
}

/* ---------------- radio options ---------------- */

/* All groups span the full content width so the left and right edges line up
   down the whole form. Column count is explicit per group — auto-fit left
   orphaned cells on the 4 and 5 option groups. */
.lpe-opts {
  display: grid;
  gap: var(--lpe-tight);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lpe-opts-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lpe-opts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lpe-opts-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lpe-opts-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* 5 options leaves a hole on the last row — let the final chip fill it. */
.lpe-opts-5 > .lpe-opt:last-child { grid-column: 1 / -1; }

.lpe-opt {
  position: relative;
  display: block;
}

.lpe-opt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.lpe-opt span {
  display: flex;
  align-items: center;
  height: 100%;
  min-height: 54px;
  padding: 12px 16px;
  background: var(--lpe-white);
  border: 1px solid var(--lpe-line);
  border-radius: var(--lpe-r);
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--lpe-ink);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.lpe-opt span:hover { border-color: var(--lpe-slate); }

.lpe-opt input:checked + span {
  border-color: var(--lpe-gold);
  background: var(--lpe-cream);
  box-shadow: inset 3px 0 0 var(--lpe-gold);
  font-weight: 700;
}

.lpe-opt input:focus-visible + span {
  outline: 2px solid var(--lpe-gold);
  outline-offset: 2px;
}

/* ---------------- grouped sections (Both tab) ---------------- */

.lpe-group-label {
  display: none;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lpe-slate);
  padding-bottom: 12px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--lpe-line);
}

.lpe-group-shown .lpe-group-label { display: block; }

.lpe-group-shown + .lpe-group-shown { margin-top: 8px; }

/* ---------------- submit ---------------- */

.lpe-submit {
  appearance: none;
  display: block;
  width: 100%;
  border: 0;
  border-radius: var(--lpe-r);
  padding: 18px 24px;
  background: var(--lpe-ink);
  color: var(--lpe-cream);
  font-family: var(--lpe-serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background .18s ease;
}

.lpe-submit:hover { background: #2C2F30; }

.lpe-submit:focus-visible {
  outline: 2px solid var(--lpe-gold);
  outline-offset: 3px;
}

/* ---------------- result ---------------- */

.lpe-result {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 2px solid var(--lpe-gold);
  scroll-margin-top: 110px;
}

.lpe-range { margin-bottom: var(--lpe-block); }

.lpe-range-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lpe-slate);
  margin-bottom: 12px;
}

.lpe-range-value {
  font-size: clamp(1.9rem, 6vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--lpe-ink);
}

.lpe-range-value em {
  font-style: normal;
  font-size: 0.42em;
  font-weight: 400;
  color: var(--lpe-slate);
  padding: 0 0.25em;
  vertical-align: 0.25em;
}

.lpe-persqft {
  margin-top: 12px;
  font-size: 0.94rem;
  color: var(--lpe-slate);
}

/* signature: cost composition */

.lpe-comp {
  padding: 28px;
  background: var(--lpe-cream);
  border-radius: var(--lpe-r);
  margin-bottom: 36px;
}

.lpe-comp-title {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lpe-slate);
  margin-bottom: 18px;
}

.lpe-bar {
  display: flex;
  width: 100%;
  height: 36px;
  border-radius: var(--lpe-r);
  overflow: hidden;
  background: var(--lpe-white);
}

.lpe-seg {
  display: block;
  width: 0;
  height: 100%;
  transition: width .7s cubic-bezier(.22, .61, .36, 1);
}

.lpe-seg-prep  { background: var(--lpe-gold); }
.lpe-seg-labor { background: var(--lpe-ink); }
.lpe-seg-mat   { background: var(--lpe-slate); }
.lpe-seg-set   { background: var(--lpe-mist); }

.lpe-key {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
}

.lpe-key-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.9rem;
  padding-bottom: 7px;
  border-bottom: 1px dotted var(--lpe-line);
}

.lpe-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translateY(-1px);
}

.lpe-dot-prep  { background: var(--lpe-gold); }
.lpe-dot-labor { background: var(--lpe-ink); }
.lpe-dot-mat   { background: var(--lpe-slate); }
.lpe-dot-set   { background: var(--lpe-mist); }

.lpe-key-name { flex: 1 1 auto; }

.lpe-key-pct {
  flex: 0 0 auto;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.lpe-comp-note {
  margin-top: 22px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--lpe-ink);
  max-width: 62ch;
}

/* what moves the number */

.lpe-movers { margin-bottom: var(--lpe-block); }

.lpe-movers-title {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lpe-slate);
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--lpe-line);
}

.lpe-movers li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 64ch;
}

.lpe-movers li:last-child { margin-bottom: 0; }

.lpe-movers li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 11px;
  height: 1px;
  background: var(--lpe-gold);
}

/* call to action */

.lpe-cta {
  padding: 32px 30px;
  background: var(--lpe-ink);
  border-radius: var(--lpe-r);
  color: var(--lpe-cream);
}

.lpe-cta-lead {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.lpe-cta-body {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #CFC9BE;
  max-width: 56ch;
  margin-bottom: 26px;
}

/* !important here is deliberate — Elementor themes force anchor colours. */
.lpe-cta-btn {
  display: inline-block;
  padding: 16px 32px;
  background: var(--lpe-gold);
  color: var(--lpe-ink) !important;
  border-radius: var(--lpe-r);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: background .18s ease;
}

.lpe-cta-btn:hover { background: #D8BB86; }

.lpe-cta-btn:focus-visible {
  outline: 2px solid var(--lpe-cream);
  outline-offset: 3px;
}

.lpe-cta-link {
  display: inline-block;
  margin-left: 20px;
  font-size: 0.93rem;
  color: var(--lpe-cream) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.lpe-cta-link:hover { color: var(--lpe-gold) !important; }

.lpe-cta-fine {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(245, 240, 232, 0.18);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #A9A29A;
}

.lpe-reset {
  appearance: none;
  background: none;
  border: 0;
  margin-top: 26px;
  padding: 0;
  font-family: var(--lpe-serif);
  font-size: 0.9rem;
  color: var(--lpe-slate);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.lpe-reset:hover { color: var(--lpe-ink); }

.lpe-reset:focus-visible {
  outline: 2px solid var(--lpe-gold);
  outline-offset: 3px;
}

.lpe-fine {
  margin-top: 32px;
  font-size: 0.81rem;
  line-height: 1.6;
  color: var(--lpe-slate);
  max-width: 66ch;
}

/* ---------------- responsive ---------------- */

@media (max-width: 640px) {
  .lpe {
    --lpe-field: 28px;
    --lpe-block: 32px;
  }

  .lpe-tab {
    flex: 1 1 0;
    padding: 13px 6px;
    font-size: 0.93rem;
    text-align: center;
  }

  .lpe-opts,
  .lpe-opts-2,
  .lpe-opts-3,
  .lpe-opts-4,
  .lpe-opts-5 { grid-template-columns: 1fr; }

  .lpe-opts-5 > .lpe-opt:last-child { grid-column: auto; }

  .lpe-opt span { min-height: 50px; }

  .lpe-sqft-row { max-width: none; }

  .lpe-key { grid-template-columns: 1fr; }

  .lpe-comp,
  .lpe-cta { padding: 22px 20px; }

  .lpe-cta-btn {
    display: block;
    text-align: center;
  }

  .lpe-cta-link {
    display: block;
    margin: 18px 0 0;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lpe *,
  .lpe *::before,
  .lpe *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}/* End custom CSS */