:root {
  color-scheme: light;
  font: 100%/1.5 Inter, Arial, sans-serif;
  color: #1a2021;
  background: #f3f5f4;
  --line: #d4dada;
  --muted: #4c5859;
}
* { box-sizing: border-box; }
body, p, h1, h2, ul { margin: 0; }
header, footer { padding-inline: max(5vw, calc((100vw - 1320px) / 2)); }
header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #121517; color: white; }
.brand img { width: 152px; display: block; }
a { color: inherit; text-underline-offset: 3px; }
.call { font-weight: 600; text-decoration: none; border: 1px solid #686d6d; border-radius: 5px; padding: 10px 14px; }
main { width: min(90%, 1140px); margin: 0 auto; padding-block: clamp(24px, 4vw, 52px) clamp(40px, 6vw, 86px); }
.intro { margin-bottom: clamp(20px, 3vw, 32px); }
#return { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
h1 { font-size: clamp(2.65rem, 5.6vw, 5rem); line-height: 1.02; letter-spacing: -.065em; }
h1 span { color: #977329; }
#intro { margin-top: 10px; color: var(--muted); }
.quote-layout { display: grid; grid-template-columns: 1fr 1.08fr; align-items: start; gap: clamp(16px, 2vw, 28px); }
.quote-layout:has(#vehicle-panel[hidden]) { grid-template-columns: minmax(0, 620px); }
.card { min-width: 0; padding: clamp(20px, 2.4vw, 32px); border: 1px solid var(--line); border-radius: 12px; background: white; }
.fields { display: grid; gap: 18px; }
fieldset { min-width: 0; padding: 0; border: 0; margin: 0; }
legend, h2 { padding: 0; font-size: clamp(1.4rem, 2.1vw, 1.85rem); line-height: 1.15; font-weight: 700; letter-spacing: -.045em; }
legend { margin-bottom: 16px; }
label { display: grid; min-width: 0; gap: 5px; font-size: .94rem; font-weight: 600; }
small, .fine, #selection, #status { color: var(--muted); }
small { font-size: .875rem; font-weight: 400; }
.row, #manual-fields { display: grid; grid-template-columns: .85fr 1fr 1.1fr; gap: 10px; }
#manual-fields { margin-top: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 135px), 1fr)); }
input, select { min-width: 0; width: 100%; min-height: 44px; color: inherit; background: #fff; border: 1px solid #939f9e; border-radius: 6px; padding: 10px 12px; font: 400 1rem/1.4 Inter, Arial, sans-serif; }
select { appearance: none; padding-right: 30px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23333d3f' stroke-width='1.6'/%3E%3C/svg%3E") right 9px center/14px no-repeat; }
select:disabled { color: #626e6e; background-color: #f1f4f3; border-color: #cbd2d1; }
button { min-height: 44px; border: 0; border-radius: 6px; padding: 11px 16px; font: 650 1rem/1.4 Inter, Arial, sans-serif; cursor: pointer; color: white; background: #202526; }
button:hover { background: #353e40; }
button:disabled { opacity: .7; cursor: wait; }
:focus-visible { outline: 3px solid #9b7019; outline-offset: 3px; }
.link { color: #354345; background: transparent; font-weight: 550; padding: 8px 0; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: #715117; background: transparent; }
.item { padding-bottom: 14px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.item-head, #ranges li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.item-head .link { font-size: .9rem; }
.item label + label { margin-top: 10px; }
#add-label { margin-bottom: 5px; }
#selection { margin: 6px 0 14px; }
#ranges { list-style: none; padding: 0; }
#ranges li { padding: 12px 0; border-top: 1px solid var(--line); }
#ranges li strong { text-align: right; flex-shrink: 0; }
.total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; border-top: 2px solid #535e5e; padding: 14px 0 6px; font-weight: 650; }
#total { font-size: 1.3rem; }
.fine { font-size: .94rem; }
#edit { margin-top: 8px; }
#request .fine { margin-top: -6px; }
#photo-label { display: grid; gap: 6px; }
#photo-label[hidden] { display: none; }
#request #photo-status { margin: 0; }
#photo-status:empty { display: none; }
#clear-photos { justify-self: start; }
#photo-link summary { cursor: pointer; color: var(--muted); font-size: .94rem; }
#photo-link[open] label { margin-top: 6px; }
#status:not(:empty) { margin-top: 16px; }
footer { border-top: 1px solid var(--line); padding-block: 20px; color: var(--muted); font-size: .9rem; }
[hidden], #manual-fields[hidden], #status:empty { display: none; }
@media (max-width: 820px) {
  .quote-layout { grid-template-columns: minmax(0, 1fr); }
  header { min-height: 60px; }
  .brand img { width: 118px; }
}
@media (max-width: 480px) {
  .row { grid-template-columns: .85fr 1.15fr; }
  .row label:last-child { grid-column: 1 / -1; }
  #ranges li { flex-wrap: wrap; gap: 2px 10px; }
}
