.estimate-page { padding-block: clamp(21px, 3.4vw, 50px) clamp(39px, 6vw, 76px); }
.estimate-intro { margin-bottom: clamp(20px, 3vw, 33px); }
.estimate-intro .site-crumb { margin-bottom: 12px; }
.estimate-intro h1 { font-size: clamp(3rem, 6.5vw, 5rem); }
.estimate-intro .site-lead { margin-top: 11px; max-width: 47ch; }
.estimate-vehicle {
  display:grid; grid-template-columns:minmax(210px,.73fr) minmax(0,2fr); align-items:center; gap:clamp(13px,3.5vw,44px);
  padding:clamp(14px,2.6vw,34px); border:1px solid #4c3b52; background:radial-gradient(ellipse at 94% 8%, #2d2133 0%, #1a151e 59%, #151219);
}
.estimate-vehicle:focus,[data-estimate-build]:focus { outline:none; }
.ez-site .estimate-vehicle-controls h2 { font-size:clamp(1.9rem,3.8vw,3.75rem); margin-bottom:14px; }
.estimate-groups { display:grid; gap:5px; }
.estimate-groups button {
  min-width:0; min-height:45px; padding:8px 13px; border:1px solid #4f3e55; background:#211928; color:var(--ink);
  cursor:pointer; text-align:left; font:680 .92rem/1.2 system-ui,sans-serif;
}
.estimate-groups button[aria-pressed="true"] { background:#392541; border-color:#bf75cf; color:#fff0ff; box-shadow:inset 3px 0 var(--accent); }
.estimate-groups button:hover { border-color:var(--accent); }
.estimate-vehicle-group { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(9px,1.5vw,18px); }
.estimate-vehicle-choice {
  display:grid; grid-template-rows:auto 1fr; min-width:0; padding:0; text-align:left;
  border:1px solid #66516b; background:#19141e; color:var(--ink); font:inherit; cursor:pointer;
}
.estimate-vehicle-choice:hover,.estimate-vehicle-choice[data-current] { border-color:var(--accent); background:#251a2b; }
.estimate-card-photo { aspect-ratio:11/5; overflow:hidden; background:#373539; }
.estimate-card-photo img { width:100%; height:100%; object-fit:contain; }
.estimate-card-label { display:flex; align-items:center; justify-content:space-between; gap:6px; padding:12px clamp(8px,1.5vw,17px); }
.estimate-card-label strong { display:block; font:700 clamp(1.43rem,2.6vw,2.3rem)/1.02 var(--display); }
.estimate-card-label small { display:block; margin-top:5px; color:var(--muted); font:.8rem/1.25 system-ui,sans-serif; }
.estimate-card-arrow { display:grid; place-items:center; width:34px; height:34px; border:1px solid #5b4660; color:var(--accent); flex:none; }
.estimate-selection {
  display:flex; justify-content:space-between; align-items:center; gap:8px 20px; flex-wrap:wrap;
  min-height:76px; border-block:1px solid #56415c; padding:12px 0; margin-bottom:clamp(16px,2.65vw,30px);
}
.estimate-selection p { color:var(--accent); font-size:.79rem; font-weight:700; }
.ez-site .estimate-selection h2 { font-size:clamp(1.8rem,3.5vw,3.4rem); max-width:none; }
.estimate-selection button {
  display:inline-flex; align-items:center; gap:7px; min-height:44px; padding:7px 11px; border:1px solid #67506d; background:#211928;
  color:var(--ink); cursor:pointer; text-decoration:none; font:680 .86rem/1.1 system-ui,sans-serif;
}
.estimate-selection button:hover { border-color:var(--accent); }
.estimate-grid {
  display:grid; grid-template-columns:minmax(0,1.46fr) minmax(0,1fr); grid-template-areas:"preview options";
  align-items:start; gap:clamp(18px,3.2vw,45px);
}
.estimate-work { grid-area:options; min-width:0; display:grid; gap:24px; }
.estimate-preview { grid-area:preview; min-width:0; position:sticky; top:calc(var(--site-header-height) + 12px); border:1px solid #403646; background:#19151d; padding:clamp(13px,2vw,25px); }
.preview-views { display: grid; gap:0; }
.preview-views figure { min-width: 0; }
.preview-stage {
  --vehicle-inset:7% 5% 3%;
  --workshop-image:var(--workshop-desktop);
  position:relative; isolation:isolate; aspect-ratio:11/5; overflow:hidden; background:#47454a;
  background-image:var(--workshop-image);
  background-size:cover; background-position:center;
}
.preview-stage[data-vehicle-ready]::after {
  content:""; position:absolute; inset:var(--vehicle-inset);
  background-image:var(--tyre-shadows),
    radial-gradient(ellipse 49% 10% at 50% 87%, rgb(0 0 0 / 70%) 8%, rgb(0 0 0 / 31%) 65%, transparent 100%);
  pointer-events:none;
}
.preview-vehicle { position:absolute; inset:var(--vehicle-inset); z-index:1; }
.preview-vehicle img { width:100%; height:100%; object-fit:contain; }
.preview-glass,.preview-glass span,.preview-effects,.preview-effects span { position:absolute; inset:0; pointer-events:none; }
.preview-glass span { backdrop-filter:brightness(1.48) saturate(.9); }
.preview-effects span { opacity:0; }
.preview-effects :is([data-region="frontGlass"],[data-region="rearGlass"],[data-region="sunstrip"]) { background: #0f1119; }
.preview-effects :is([data-region="headlights"],[data-region="tailLights"]) { background: #15161a; }
.preview-effects [data-region="frontGlass"] { opacity: var(--front-opacity, 0); }
.preview-effects [data-region="rearGlass"] { opacity: var(--rear-opacity,0); }
.preview-views[data-sunstrip="true"] [data-region="sunstrip"] { opacity: .75; }
.preview-views[data-headlights="true"] [data-region="headlights"],.preview-views[data-tail-lights="true"] [data-region="tailLights"] { opacity: .48; }
.preview-controls { margin-top:6px; }
.preview-controls:has(.preview-palette[hidden]) { display:none; }
.preview-palette { min-inline-size:0; padding:0; margin:0; border:0; }
.preview-finishes { min-inline-size:0; padding:0; margin:4px 0 0; border:0; }
.preview-finish-options { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px; }
.preview-finish { position:relative; display:flex; align-items:center; justify-content:center; min-height:44px; padding:4px; border:1px solid #58485d; font-size:.75rem; text-align:center; cursor:pointer; }
.preview-finish:has(:checked) { border-color:var(--accent); background:#382441; color:var(--ink); }
.preview-finish:has(:focus-visible) { outline:2px solid var(--accent); outline-offset:2px; }
.preview-finish input { position:absolute; inset:0; width:100%; height:100%; min-height:0; padding:0; margin:0; opacity:0; cursor:pointer; }
.preview-palette-row { display:flex; align-items:center; justify-content:space-between; gap:6px; }
.preview-palette-name { font-size:.77rem; line-height:1.05; }
.preview-palette-name small { display:block; margin-bottom:3px; color:var(--muted); font-size:.72rem; }
.preview-palette-swatches { display:flex; gap:3px; align-items:center; }
.preview-green { --swatch: #387357; }
.preview-blue { --swatch: #345984; }
.preview-red { --swatch: #a5333d; }
.preview-screen-reader { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.preview-swatch { position:relative; display:grid; place-items:center; width:clamp(29px,8.2vw,40px); min-height:44px; }
.preview-swatch::before { content:""; width:17px; height:17px; background:var(--swatch); border:1px solid #e5d8e6; border-radius:50%; }
.preview-swatch:has(:checked)::before { outline:1px solid var(--ink); outline-offset:3px; }
.preview-swatch input { position:absolute; inset:0; width:100%; height:100%; min-height:0; padding:0; margin:0; opacity:0; cursor:pointer; }
.preview-swatch:has(:focus-visible) { outline:2px solid var(--accent); outline-offset:-2px; }
.preview-note { margin-top: 12px; color: var(--muted); font-size: .77rem; line-height: 1.4; }
.estimate-options { min-width: 0; }
.estimate-options fieldset { border: 0; padding: 12px 0 0; margin: 0; min-width: 0; }
.estimate-options fieldset + fieldset { margin-top: 27px; }
.estimate-options legend, .estimate-results h2 { font: 700 clamp(1.9rem, 3vw, 2.55rem)/1 var(--display); }
.estimate-window-options, .estimate-addons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.estimate-options input { width: 17px; height: 17px; min-height: 0; padding: 0; margin: 0; accent-color: var(--accent); flex: none; }
.estimate-addon[hidden] { display:none; }
.estimate-window-options label, .estimate-addon {
  display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 9px 10px;
  border: 1px solid var(--site-rule); background: var(--panel); font-size: .9rem; font-weight: 690; line-height: 1.3; cursor: pointer;
}
.estimate-window-options label:has(:checked), .estimate-addon:has(:checked) { border-color: var(--accent); background: #2b1d31; }
.estimate-window-options label:hover, .estimate-addon:hover { border-color: var(--accent); }
.estimate-addon { min-height: 65px; padding-inline: 13px; }
.estimate-addon small { display: block; font-weight: 450; color: var(--muted); margin-top: 3px; }
.estimate-shades { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; }
.estimate-shades > div { margin-top: 14px; }
.estimate-shades label { font-size: .9rem; font-weight: 690; }
.estimate-shades select { color: var(--ink); }
.estimate-shades p { grid-column: 1 / -1; }
.estimate-hint { margin-top: 11px; font-size: .85rem; }
.estimate-hint a { color: var(--accent); text-underline-offset: .22em; }
.estimate-results {
  min-width: 0; padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--site-rule); border-top: 2px solid var(--accent); background: #201724;
}
.estimate-total { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-block: 12px 16px; line-height: 1.2; font-weight: 700; }
.estimate-total span { font-size: 1.14rem; color: var(--ink); }
.estimate-total .has-amount { font: 700 clamp(3.15rem, 5vw, 4.5rem)/.95 var(--display); color: var(--accent); }
.estimate-total small { font-size: .8rem; }
.estimate-lines { padding: 0; margin: 0 0 16px; list-style: none; border-top: 1px solid #4b3b51; }
.estimate-lines li { display: flex; justify-content: space-between; align-items: baseline; gap: 9px; padding: 9px 0; border-bottom: 1px solid #4b3b51; font-size: .86rem; }
.estimate-lines strong { text-align: right; }
.estimate-confirm { font-size: .9rem; max-width: 42ch; }
.estimate-results .button { margin-top: 17px; justify-content: flex-start; }
.estimate-tail { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 13px 24px; border-top: 1px solid var(--site-rule); margin-top: clamp(32px, 6vw, 64px); padding-top: 23px; }
.estimate-tail h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.estimate-tail p { margin-top: 7px; max-width: 62ch; font-size: .9rem; }
@media (max-width: 760px) {
  .estimate-vehicle { grid-template-columns:minmax(0,1fr); }
  .estimate-groups { grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
  .estimate-groups button { text-align:center; padding-inline:6px; font-size:.79rem; }
  .estimate-grid { grid-template-columns:minmax(0,1fr); grid-template-areas:"preview" "options"; gap:18px; }
  .estimate-intro h1 { font-size:clamp(2.55rem,9.8vw,3.35rem); }
  .estimate-intro .site-lead { font-size:.99rem; line-height:1.4; }
  .estimate-vehicle-controls h2 { margin-bottom:9px; }
  .site-estimate:has([data-estimate-build]:not([hidden])) .site-header[data-scrolled] {
    background:#111014;
  }
  .estimate-preview {
    top:calc(var(--site-header-height) + 2px); z-index:2; padding:9px;
    box-shadow:0 6px 15px rgb(0 0 0 / 32%);
  }
  .estimate-preview[data-tall] { position:static; }
  .ez-site :is(#estimate-services, #estimate-results, .estimate-work input, .estimate-work select, .estimate-work a) {
    scroll-margin-top:calc(var(--site-header-height) + var(--estimate-preview-height, 0px) + 12px);
  }
  .estimate-card-label { padding:9px 7px; align-items:flex-start; }
  .estimate-card-arrow { width:22px; height:23px; }
  .estimate-card-arrow svg { width:13px; }
  .estimate-card-label strong { font-size:clamp(1.15rem,5.6vw,1.55rem); }
  .estimate-card-label small { font-size:.69rem; }
  .estimate-window-options label, .estimate-addon { padding-inline:9px; }
  .preview-views {
    grid-template-columns:minmax(0, 1fr); gap:0;
    max-width:84svh; margin:0 auto;
  }
  .preview-stage { --workshop-image:var(--workshop-phone); }
  .preview-note { margin-top:6px; font-size:.72rem; }
}
@media (max-width: 760px) and (max-height: 600px) {
  .estimate-preview { position:static; }
  .ez-site :is(#estimate-services, #estimate-results, .estimate-work input, .estimate-work select, .estimate-work a) {
    scroll-margin-top:calc(var(--site-header-height) + 12px);
  }
}
