.quote-page { background: var(--paper, #f7f6f2); }
.quote-wrap { padding-block: clamp(34px,6vw,80px); }
.quote-heading { max-width: 740px; margin-bottom: 30px; }
.quote-heading h1 { margin: 0 0 14px; }
.quote-heading p, .quote-help, #source-project { color: var(--muted,#545950); }
#source-project { margin: 0 0 18px; }
.quote-grid { display: grid; align-items: start; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); border: 1px solid var(--line,#d5d5cb); background: #fff; }
.quote-form, .quote-budget { min-width: 0; padding: clamp(20px,3.5vw,44px); }
.quote-form { background: #fff; }
#planner fieldset { margin: 0; padding: 0; border: 0; }
#planner .quote-question { display:block; line-height:1.25; font-size:clamp(1.25rem,2.3vw,1.72rem); font-weight:600; letter-spacing:-.025em; margin: 0 0 12px; }
#planner #progress { font-size: .875rem; margin: 0 0 9px; }
.quote-track { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; margin-bottom: 31px; }
.quote-track span { height: 3px; background: #ddded7; }
.quote-track .active { background: var(--olive,#40513b); }
.quote-help { margin: 0 0 19px; }
.quote-form output { display: block; font-size: 2.2rem; font-weight: 600; }
.quote-range, .quote-actions { display:flex; align-items:center; justify-content:space-between; gap: 14px; }
.quote-range { color: var(--muted,#545950); font-size:.875rem; }
.quote-actions { justify-content:flex-start; margin-top: 26px; }
.quote-actions:has(button[hidden]+button[hidden]) { display:none; }
.quote-options { display:grid; gap: 8px; }
.quote-options label { min-height: 50px; display:grid; grid-template-columns: 18px 1fr; gap: 12px; align-items:start; border:1px solid var(--line,#d5d5cb); padding:14px; cursor:pointer; }
.quote-options label:has(input:checked) { border-color:var(--olive,#40513b); background: #f1f3ec; }
.quote-options input { margin:4px 0 0; width:17px; height:17px; accent-color:var(--olive,#40513b); }
.quote-options strong,.quote-options small { display:block; }
.quote-options small { color:var(--muted,#545950); font-size:.875rem; margin-top:4px; }
.area-stepper {
  display: inline-grid;
  grid-template-columns: 44px minmax(92px, auto) 44px;
  align-items: center;
  border: 1px solid #afb6aa;
  margin-block: 3px 11px;
}
.area-stepper button {
  min-height: 44px;
  background: transparent;
  border: 0;
  color: var(--olive);
  font-size: 1.35rem;
  cursor: pointer;
}
.area-stepper button:disabled { color: #92998d; cursor: default; }
.quote-form .area-stepper output { text-align: center; font-size:1.38rem; font-variant-numeric: tabular-nums; }
.quote-options label:has(input:checked) { border-color:#42553f; box-shadow:inset 3px 0 #42553f; }
.quote-options label:has(input:focus-visible), .quote-page :is(button,input):focus-visible {
  outline: 3px solid #1c6083;
  outline-offset: 2px;
}
.quote-options input:focus-visible { outline-offset: 1px; }
@media (hover:hover) {
  .quote-options label:hover { background: #f3f4ee; border-color:#929e8a; }
  .quote-options label:has(input:checked):hover { border-color:#42553f; background:#e7ecdf; }
  .area-stepper button:hover:enabled { background: #edf0e8; }
  .quote-link:hover { text-decoration-thickness: 2px; }
}
.quote-budget {
  background: #edf0e8;
  color: #233324;
  min-height: 100%;
  border-left: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.quote-budget h2 { font: inherit; font-size: 1.18rem; font-weight: 600; letter-spacing: -.015em; }
.quote-budget #total {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
  margin: 20px 0 8px;
  min-height: 0;
}
.quote-budget #total dt, #quote-config, .quote-note { color: #4b594b; font-size: .875rem; }
.quote-budget #total dd {
  margin: 2px 0 0;
  font-weight: 600;
  font-size: clamp(1.15rem, 2.2vw, 2.25rem);
  letter-spacing: -.045em;
  line-height: 1.3;
  white-space: nowrap;
}
.quote-table { border-collapse: collapse; width: 100%; margin: 23px 0 14px; }
.quote-table caption { text-align: left; font-weight: 600; padding-bottom: 9px; }
.quote-table :is(th,td) { border-bottom: 1px solid #c8d0c1; padding: 10px 0; }
.quote-table thead th { color:#4b594b; font-size:.875rem; font-weight:500; }
.quote-table th:first-child { text-align:left; }
.quote-table tbody th { font-weight: 400; line-height:1.35; }
.quote-table :is(td,th):not(:first-child) { text-align: right; padding-left: 10px; white-space: nowrap; }
.quote-table td { font-weight: 550; }
.quote-note { line-height: 1.45; }
.quote-link { border:0; background:none; color:inherit; cursor:pointer; text-decoration:underline; text-underline-offset:4px; padding:10px 0; }
.quote-result ol { padding-left:1.4em; }
.quote-result li { margin-bottom:9px; }
.quote-result .quote-link { margin-left: 8px; }
@media(max-width:760px){.quote-grid{grid-template-columns:1fr}.quote-form,.quote-budget{padding:20px}.quote-track{margin-bottom:20px}}


@media(max-width:760px){
  .quote-budget { border-left: 0; border-top: 1px solid var(--line); }
  .quote-grid:has(.quote-result:not([hidden])) .quote-budget { order:-1; border-top:0; border-bottom:1px solid var(--line); }
  .quote-budget #total dd { font-size:clamp(1.13rem,5.1vw,1.7rem); }
}
@media(max-width:380px){
  .quote-form,.quote-budget { padding:16px; }
  .quote-table { font-size:.875rem; }
  .quote-table :is(td,th):not(:first-child) { padding-left:7px; }
  .quote-budget #total { gap:8px; }
}
