.quote-intro { padding-top: 38px; padding-bottom: 26px; }
.quote-intro h1 { font-size: clamp(2.35rem, 3.9vw, 3.75rem); line-height: 1.04; letter-spacing: -.045em; margin: 12px 0 18px; }
.quote-intro h1 em { white-space: normal; width: auto; margin: 0; font-size: 1em; font-family: var(--serif); font-weight: 400; }
.quote-intro h1 em::after { display: none; }
.quote-intro > p:last-child { max-width: 650px; color: var(--ink-soft); font-size: 1rem; line-height: 1.6; margin-bottom: 0; }
.quote-workspace { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(310px, 1fr); gap: 22px; align-items: stretch; padding-bottom: 64px; }
.quote-map-panel { min-width: 0; border: 1px solid #c7ccbe; border-radius: 8px; overflow: hidden; }
#quote-search { background: var(--paper-light); padding: 16px 18px; }
#quote-search label { display: block; font-size: .8rem; font-weight: 700; margin-bottom: 8px; }
#quote-search label span { color: var(--ink-soft); font-weight: 400; margin-left: 8px; }
.quote-search-row { display: flex; gap: 8px; }
.quote-search-row input { min-width: 0; width: 100%; border: 1px solid #b9c3b6; background: white; border-radius: 4px; padding: 10px; font: inherit; font-size: 16px; }
.quote-page button { font: inherit; cursor: pointer; min-height: 44px; }
#quote-search button { border: 1px solid var(--ink); background: var(--ink); border-radius: 4px; color: white; padding: 10px 14px; font-weight: 600; }
.quote-page button:disabled { cursor: default; }
.quote-page :focus-visible { outline: 3px solid var(--coral-dark); outline-offset: 3px; }
.quote-map-wrap { position: relative; }
#quote-map { height: 480px; width: 100%; z-index: 0; background: #dde4d7; font-family: var(--sans); }
#quote-map:focus-visible { outline-offset: -4px; }
.quote-map-crosshair { display: none; pointer-events: none; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); font-size: 30px; line-height: 1; color: #09251f; text-shadow: 0 0 3px white, 0 0 3px white; }
.is-drawing .quote-map-crosshair { display: block; }
.quote-tools { position: absolute; top: 12px; left: 12px; display: flex; align-items: center; gap: 4px; padding: 4px; background: var(--paper-light); border: 1px solid #bac5b6; border-radius: 7px; box-shadow: 0 3px 12px #12352e25; }
.quote-tools button { display: grid; place-items: center; padding: 0; width: 44px; height: 44px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--ink); }
.quote-tools button:hover:not(:disabled) { background: #e2eadf; }
.quote-tools #quote-draw { background: #e1eadd; border-color: #8ba18c; }
.quote-tools #quote-draw[aria-pressed=true] { background: #f3d5c7; border-color: var(--coral-dark); box-shadow: inset 0 0 0 1px var(--coral-dark); }
.quote-tools button:disabled:not([aria-pressed=true]) { opacity: .35; }
.quote-tools #quote-delete:not(:disabled) { background: #fae1da; border-color: #bc4b34; }
.quote-tools #quote-delete:hover:not(:disabled) { background: #f2c2b6; }
.quote-icon { width: 30px; height: 30px; background: url('vendor/leaflet-draw/images/spritesheet.svg') no-repeat; background-size: 600px 60px; }
.quote-icon-draw { background-position: -75px -15px; }
.quote-icon-delete { background-position: -375px -15px; }
.quote-drawing-actions { display: flex; gap: 2px; padding-inline: 4px; border-inline: 1px solid #d6ddce; }
.quote-drawing-actions button { width: auto; padding-inline: 9px; font-size: .8rem; font-weight: 700; }
#quote-map-help { position: absolute; bottom: 26px; left: 12px; max-width: calc(100% - 24px); margin: 0; padding: 7px 10px; border-radius: 4px; background: #fffdf7ed; color: var(--ink); font-size: .75rem; line-height: 1.4; pointer-events: none; }
#quote-search-status:empty, #quote-search-results:empty { display: none; }
#quote-search-status { font-size: .85rem; margin: 10px 0 0; }
#quote-search-results { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
#quote-search-results button { text-align: left; width: 100%; overflow-wrap: anywhere; font-size: .85rem; background: transparent; color: var(--ink); }
.quote-summary { min-width: 0; display: flex; flex-direction: column; padding: 30px; background: var(--ink); color: var(--paper-light); border-radius: 8px; }
.quote-summary .section-code { color: #d9b4a4; margin-bottom: 32px; }
.quote-summary #quote-result h2 { font: 500 1rem/1.4 var(--sans); letter-spacing: 0; margin: 0 0 8px; color: #e0eadf; }
#quote-households { display: block; font-size: clamp(4.25rem,7.2vw,6.5rem); line-height: 1; letter-spacing: -.065em; font-weight: 700; overflow-wrap: anywhere; }
.quote-price-line { margin-top: 28px; padding-top: 22px; border-top: 1px solid #547165; }
.quote-price-line span { display: block; font-size: .85rem; color: #e0eadf; }
#quote-price { display: block; font-size: 2.5rem; line-height: 1.15; letter-spacing: -.04em; margin-top: 6px; font-weight: 600; overflow-wrap: anywhere; }
.quote-qualification { font-size: .78rem; line-height: 1.5; margin: 18px 0 5px; }
.quote-rate { font-size: .75rem; line-height: 1.5; color: #c4d4c8; margin: 0; }
#quote-status { font-size: .85rem; line-height: 1.5; color: #e0eadf; margin: 22px 0 16px; }
[data-state=error] #quote-status { color: #ffcfbf; }
#quote-estimate { align-self: start; background: transparent; color: white; border: 1px solid #adc1b2; border-radius: 4px; padding: 8px 16px; margin-bottom: 16px; }
.quote-next-wrap { margin-top: auto; padding-top: 18px; }
#quote-next { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid #779483; border-radius: 4px; background: #24493e; color: #adc1b2; font-weight: 600; }
#quote-next-note { color: #c4d4c8; font-size: .7rem; margin: 8px 0 0; line-height: 1.5; }
.quote-explainer { grid-column: 1 / -1; border-top: 1px solid #cbd0c3; border-bottom: 1px solid #cbd0c3; }
.quote-explainer summary { min-height: 52px; padding: 16px 4px; cursor: pointer; font-size: .9rem; font-weight: 600; }
.quote-explainer-content { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 12px 4px 18px; color: var(--ink-soft); font-size: .85rem; line-height: 1.65; }
.quote-explainer h2 { font-size: 1.1rem; letter-spacing: -.01em; margin: 0 0 12px; }
.quote-steps { padding-left: 20px; }.quote-steps li { margin-bottom: 8px; }
.quote-map-credit { font-size: .75rem; }
#quote-map .leaflet-control-zoom a { width: 44px; height: 44px; line-height: 44px; }
#quote-map .leaflet-editing-icon { width: 24px !important; height: 24px !important; margin-left: -12px !important; margin-top: -12px !important; background: var(--paper-light); border: 2px solid var(--ink); border-radius: 50%; }
#quote-map .leaflet-editing-icon::after { content: ''; position: absolute; inset: -12px; }
#quote-map .leaflet-control-attribution { font-size: 10px; }
@media(max-width: 900px) { .quote-workspace { grid-template-columns: minmax(0,1fr); gap: 16px; } .quote-summary { padding: 26px; } .quote-summary .section-code { margin-bottom: 24px; } .quote-intro { padding-top: 28px; } }
@media(max-width: 480px) { #quote-map { height: 390px; } #quote-search { padding: 12px; } .quote-intro h1 { font-size: 2.2rem; } .quote-intro p:last-child { font-size: .9rem; } .quote-explainer-content { grid-template-columns: 1fr; gap: 12px; } .quote-tools { left: 8px; top: 8px; } .quote-summary { padding: 24px; } #quote-price { font-size: 2.3rem; } }
@media(prefers-reduced-motion: reduce) { .quote-page, .quote-page * { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
@media(max-width: 380px) { #quote-map .leaflet-top.leaflet-right { top: 64px; } }
