/* ============================================================
     ESTIMATE PAGE — calculator + lead form (page-specific)
     ============================================================ */
  .est-hero {
    position: relative; overflow: hidden; color: #fff;
    padding-top: 124px; padding-bottom: 116px;
    background: radial-gradient(58% 90% at 84% 22%, rgba(125,194,62,.20), transparent 60%), var(--panel);
  }
  .est-hero > .shell { position: relative; z-index: 2; }
  /* oversized logo mark bleeding off the corner — subtle brand watermark */
  .hero-watermark {
    position: absolute; top: -22%; right: -9%; z-index: 0;
    width: min(720px, 66%); height: auto;
    opacity: .09; pointer-events: none; user-select: none;
  }
  .est-hero .tag { color: var(--lime); margin-bottom: 20px; }
  .est-hero h1 { font-size: clamp(38px, 7vw, 78px); line-height: 0.94; letter-spacing: -0.03em; max-width: 14em; }
  .est-hero .est-sub { margin-top: 20px; max-width: 36em; font-size: clamp(16px, 1.9vw, 19px); color: rgba(255,255,255,.78); }

  /* calculator scaffold — tighter top padding so it hugs the hero seam */
  .calc { background: var(--paper); position: relative; padding-top: clamp(22px, 2.6vw, 34px); }
  .calc .section-head { margin-bottom: clamp(24px, 3vw, 36px); }
  .calc-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(22px, 4vw, 46px); align-items: start; }
  @media (max-width: 920px) { .calc-grid { grid-template-columns: 1fr; } }

  .panel-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); }

  .field { margin-bottom: 26px; }
  .field:last-child { margin-bottom: 0; }
  .field > label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); margin-bottom: 11px; }

  .bill-input { display: flex; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 12px 16px; }
  .bill-input:focus-within { border-color: var(--foliage); }
  .bill-input .cur { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--foliage); margin-right: 9px; }
  .bill-input input { border: 0; outline: 0; width: 100%; background: transparent; color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 4vw, 30px); letter-spacing: -0.01em; }
  .bill-input .per { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mist); white-space: nowrap; }

  /* upload your bill (camera / file) */
  [hidden] { display: none !important; }   /* keep hidden attr authoritative over display:flex below */
  .file-hidden { display: none; }
  .upload-cta {
    display: flex; align-items: center; gap: 13px; width: 100%; margin-top: 14px;
    text-align: left; padding: 13px 15px;
    background: #fff; border: 1px dashed var(--line); border-radius: 11px; color: var(--ink);
    transition: border-color .2s var(--ease), background .2s var(--ease);
  }
  .upload-cta:hover { border-color: var(--foliage); background: var(--paper); }
  .upload-cta svg { width: 23px; height: 23px; color: var(--foliage); flex: none; }
  .upload-cta .up-text { display: flex; flex-direction: column; min-width: 0; }
  .upload-cta .up-title { font-weight: 600; font-size: 14.5px; line-height: 1.2; }
  .upload-cta small { font-size: 12.5px; color: var(--mist); margin-top: 3px; line-height: 1.3; }

  .upload-preview { display: flex; align-items: center; gap: 13px; margin-top: 12px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 11px; }
  .upload-preview img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; flex: none; background: var(--paper); }
  .upload-preview .up-doc { width: 48px; height: 48px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--paper); color: var(--foliage); }
  .upload-preview .up-doc svg { width: 24px; height: 24px; }
  .upload-preview .up-meta { display: flex; flex-direction: column; min-width: 0; }
  .upload-preview .up-name { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .upload-preview .up-size { font-size: 11.5px; color: var(--mist); margin-top: 2px; }
  .upload-remove { margin-left: auto; flex: none; width: 28px; height: 28px; border: 0; background: none; color: var(--mist); font-size: 22px; line-height: 1; border-radius: 6px; transition: color .2s, background .2s; }
  .upload-remove:hover { color: #b3261e; background: var(--paper); }

  input[type="range"] { width: 100%; accent-color: var(--lime-deep); height: 6px; cursor: pointer; margin: 4px 0 0; }
  .range-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--mist); }
  .range-row .range-val { color: var(--foliage); font-weight: 600; font-size: 14px; }

  .seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .seg button { padding: 13px 6px; border: 1px solid var(--line); background: #fff; border-radius: 10px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--mist); transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
  .seg button:hover { border-color: var(--foliage); color: var(--foliage); }
  .seg button[aria-pressed="true"] { background: var(--foliage); border-color: var(--foliage); color: #fff; }

  details.adv { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 18px; }
  details.adv summary { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--foliage); cursor: pointer; list-style: none; }
  details.adv summary::-webkit-details-marker { display: none; }
  details.adv summary::before { content: "+ "; }
  details.adv[open] summary::before { content: "– "; }
  .adv-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-top: 18px; }
  .adv-grid .af label { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--mist); margin-bottom: 7px; }
  .adv-grid .af input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-family: var(--font-mono); font-size: 14px; color: var(--ink); }
  @media (max-width: 560px) { .adv-grid { grid-template-columns: 1fr; } }

  /* results */
  .res-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .res { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 24px; }
  .res .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }
  .res .v { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 4.4vw, 40px); letter-spacing: -0.02em; line-height: 1; margin-top: 10px; color: var(--ink); }
  .res .d { font-size: 13px; color: var(--mist); margin-top: 9px; line-height: 1.45; }
  #rCost { font-size: clamp(22px, 3.2vw, 31px); white-space: nowrap; }   /* cost range is the longest value — keep it on one line */
  .res.feature { grid-column: 1 / -1; border: 0; color: #fff;
    background: radial-gradient(60% 110% at 86% 18%, rgba(125,194,62,.26), transparent 60%), var(--panel); }
  .res.feature .k { color: var(--lime); }
  .res.feature .v { color: #fff; font-size: clamp(40px, 8vw, 66px); }
  .res.feature .d { color: var(--mist-d); font-size: 14px; }
  @media (max-width: 560px) { .res-grid { grid-template-columns: 1fr; } }

  .calc-note { margin-top: 18px; font-size: 12.5px; line-height: 1.55; color: var(--mist); }
  .calc-note b { color: var(--foliage); font-weight: 600; }

  /* lead form */
  .calc-lead { margin-top: clamp(36px, 5vw, 60px); }
  .calc-lead .lead-head .tag { color: var(--foliage); margin-bottom: 16px; }
  .calc-lead h2 { font-size: clamp(28px, 4.4vw, 46px); max-width: 14em; }
  .calc-lead .lead-intro { color: var(--mist); margin-top: 14px; max-width: 40em; font-size: 16px; }
  .lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
  .lead-grid .full { grid-column: 1 / -1; }
  .lead-grid label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mist); margin-bottom: 8px; }
  .lead-grid input, .lead-grid textarea { width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-2); font-family: var(--font-body); font-size: 15px; color: var(--ink); }
  .lead-grid input:focus, .lead-grid textarea:focus { outline: none; border-color: var(--foliage); background: #fff; }
  .lead-grid textarea { min-height: 92px; resize: vertical; }
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .lead-actions { margin-top: 24px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
  .bill-parse { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .02em; line-height: 1.4; margin-top: 10px; }
  .bill-parse:empty { margin-top: 0; }
  .bill-parse.loading { color: var(--mist); }
  .bill-parse.ok { color: var(--foliage); }
  .bill-parse.err { color: #b3261e; }

  .lead-msg { font-family: var(--font-mono); font-size: 13px; letter-spacing: .02em; }
  .lead-msg.ok { color: var(--foliage); }
  .lead-msg.err { color: #b3261e; }
  .form-done { display: none; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 40px); }
  .form-done h3 { font-size: clamp(24px, 3.2vw, 34px); color: var(--foliage); }
  .form-done p { color: var(--mist); margin-top: 12px; font-size: 16px; max-width: 38em; }
  @media (max-width: 560px) { .lead-grid { grid-template-columns: 1fr; } }

  /* Crawlable estimator methodology, scenarios, scope, projects, and FAQ */
  .estimate-guide { margin-top: clamp(64px, 9vw, 112px); padding-top: clamp(48px, 7vw, 82px); border-top: 1px solid var(--line); }
  .estimate-guide-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; flex-wrap: wrap; margin-bottom: 32px; }
  .estimate-guide-head .tag, .estimate-faq .tag { color: var(--foliage); margin-bottom: 14px; }
  .estimate-guide-head h2 { max-width: 14em; font-size: clamp(32px, 5vw, 54px); }
  .estimate-updated { color: var(--mist); font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; }
  .estimate-updated time { color: var(--foliage); font-weight: 600; }

  .method-grid, .estimate-scope-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .method-card, .scope-card { padding: clamp(22px, 3vw, 30px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); }
  .method-card h3, .scope-card h3, .scenario-head h3, .estimate-faq h3 { color: var(--ink); font-size: clamp(22px, 3vw, 30px); }
  .method-card p, .scope-card li { color: var(--mist); font-size: 14px; line-height: 1.65; }
  .method-card ol, .scope-card ul { margin: 18px 0 0; padding-left: 20px; }
  .method-card li { margin-bottom: 10px; color: var(--ink); font-size: 14px; line-height: 1.55; }
  .method-card p { margin-top: 18px; }
  .cost-bands { display: grid; gap: 9px; margin: 18px 0 0; }
  .cost-bands div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
  .cost-bands dt { color: var(--ink); font-weight: 600; }
  .cost-bands dd { margin: 0; color: var(--foliage); font-family: var(--font-mono); font-size: 12px; text-align: right; }

  .scenario-block, .estimate-projects, .estimate-faq { margin-top: clamp(42px, 6vw, 66px); }
  .scenario-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 18px; }
  .scenario-head p { max-width: 38em; color: var(--mist); font-size: 14px; }
  .scenario-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
  .scenario-table { width: 100%; min-width: 760px; border-collapse: collapse; }
  .scenario-table th, .scenario-table td { padding: 15px 18px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
  .scenario-table th { color: var(--mist); background: var(--paper-2); font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
  .scenario-table td { color: var(--ink); font-size: 14px; }
  .scenario-table tbody tr:last-child td { border-bottom: 0; }
  .estimate-scope-grid { margin-top: 18px; }
  .scope-card ul { display: grid; gap: 9px; }

  .estimate-project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .estimate-project-grid a { display: grid; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: #fff; text-decoration: none; transition: transform .2s var(--ease), border-color .2s var(--ease); }
  .estimate-project-grid a:hover { transform: translateY(-3px); border-color: var(--lime); }
  .estimate-project-grid strong { color: var(--lime); font-family: var(--font-display); font-size: 19px; }
  .estimate-project-grid span { color: rgba(255,255,255,.75); font-size: 13px; line-height: 1.5; }

  .faq-list { display: grid; gap: 10px; margin-top: 22px; }
  .faq-list details { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
  .faq-list summary { padding: 17px 20px; color: var(--ink); cursor: pointer; font-weight: 600; }
  .faq-list p { padding: 0 20px 18px; color: var(--mist); font-size: 14px; line-height: 1.65; }

  @media (max-width: 820px) {
    .method-grid, .estimate-scope-grid { grid-template-columns: 1fr; }
    .estimate-project-grid { grid-template-columns: 1fr; }
  }
/* Package enquiries share the quote form while keeping calculator figures separate. */
.estimate-packages-link { margin-top: 22px; color: var(--sky); font-size: 15px; }
.estimate-packages-link a, .calc-note a { text-decoration: underline; text-underline-offset: 4px; }
.selected-package { display: flex; flex-direction: column; gap: 6px; margin: 20px 0; padding: 20px; background: var(--paper); border-left: 3px solid var(--lime); border-radius: 8px; }
.selected-package strong { color: var(--foliage); font-size: 20px; }
.selected-package a { color: var(--foliage); text-decoration: underline; text-underline-offset: 4px; font-size: 14px; align-self: flex-start; }
.estimate-snapshot { display: none; }
#quote { scroll-margin-top: 96px; }
