/* Instant quote widget (lives inside .quote-card). Uses the tokens from site.css. */
.qw { color: var(--ink); }
.qw * { box-sizing: border-box; }
.qw-title { font: 800 1.55rem/1.1 var(--ff); font-stretch: 90%; letter-spacing: -.02em; }
.qw-sub { font-size: 14px; color: var(--muted); margin: 6px 0 16px; }

.qw-toggle { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 4px; margin-bottom: 16px; }
.qw-toggle button { border: 0; background: transparent; padding: 11px 6px; border-radius: 6px; font-weight: 700; font-size: 15px; cursor: pointer; color: var(--ink-2); }
.qw-toggle button.on { background: var(--ink); color: #fff; }

.qw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qw-wide { grid-column: 1 / -1; }
.qw-f { display: flex; flex-direction: column; gap: 5px; }
.qw-f > span { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.qw select, .qw input[type=text], .qw input[type=tel] { width: 100%; min-height: 48px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); padding: 11px 12px; font-size: 16px; color: var(--ink); }
.qw select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2315171a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.qw select:focus, .qw input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(212, 160, 23, .4); }
.qw select:disabled { background-color: var(--paper); color: #9a9a92; }

.qw-go { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; margin-top: 14px; padding: 12px 18px; border: 1.5px solid var(--amber); border-radius: var(--r); background: var(--amber); color: var(--ink); font: 800 16px var(--ff); cursor: pointer; text-decoration: none; transition: background .15s; }
.qw-go:hover:not(:disabled) { background: #e6b020; border-color: #e6b020; }
.qw-go:disabled { background: var(--paper-2); border-color: var(--paper-2); color: #8d9096; cursor: not-allowed; }
.qw-ghost { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--ink); border-radius: var(--r); background: #fff; color: var(--ink); font: 700 15px var(--ff); cursor: pointer; text-decoration: none; }
.qw-ghost:hover { background: var(--ink); color: #fff; }
.qw-err { color: var(--red); font-size: 13.5px; margin-top: 8px; font-weight: 500; }
.qw-err:empty { margin: 0; }
.qw-alt { font-size: 13.5px; color: var(--muted); margin-top: 14px; text-align: center; }
.qw-alt a { font-weight: 700; color: var(--ink); text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.qw-vin { display: flex; gap: 8px; margin-top: 12px; }
.qw-vin button { border: 1.5px solid var(--ink); background: #fff; border-radius: var(--r); padding: 0 16px; font-weight: 700; cursor: pointer; white-space: nowrap; }

/* result */
.qw-back { display: inline-block; font-size: 14px; font-weight: 600; margin-bottom: 10px; color: var(--ink); text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.qw-r-title { font: 800 1.45rem/1.12 var(--ff); font-stretch: 90%; letter-spacing: -.02em; margin-bottom: 14px; }
.qw-r-title b { font-weight: 800; background: linear-gradient(transparent 60%, rgba(212,160,23,.55) 60%); }
.qw-cards { display: grid; gap: 10px; }
.qw-card { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 12px; align-items: center; }
.qw-card:hover { border-color: var(--ink); }
.qw-ph { position: relative; width: 104px; height: 104px; border-radius: 8px; overflow: hidden; background: #fff; border: 1px solid var(--line-2); }
.qw-ph img { width: 100%; height: 100%; object-fit: contain; display: block; }
.qw-ph::after { content: 'Sample photo'; position: absolute; left: 0; right: 0; bottom: 0; font: 500 9px var(--mono); letter-spacing: .05em; text-transform: uppercase; text-align: center; color: #6b7078; background: rgba(255,255,255,.9); padding: 2px 0; }
.qw-card-body { min-width: 0; }
.qw-opt { font: 500 11px var(--mono); letter-spacing: .1em; color: var(--muted); }
.qw-miles { font: 700 15px var(--mono); letter-spacing: -.03em; margin: 2px 0 0; }
.qw-price { font: 600 2rem/1.1 var(--mono); letter-spacing: -.05em; margin: 2px 0 6px; }
.qw-price-r { font-size: 1.5rem; }
.qw-card ul { list-style: none; margin: 0 0 10px; padding: 0; font-size: 12.5px; color: var(--muted); display: grid; gap: 2px; }
.qw-card li::before { content: '✓ '; color: var(--green); font-weight: 700; }
.qw-pick { border: 1.5px solid var(--ink); background: var(--ink); color: #fff; border-radius: var(--r); padding: 9px 14px; font-weight: 700; font-size: 14px; cursor: pointer; }
.qw-pick:hover { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.qw-note { font-size: 13px; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.qw-note a { font-weight: 600; color: var(--ink); text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.qw-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.qw-actions .qw-go { margin-top: 0; grid-column: 1 / -1; }
.qw-actions > :only-child { grid-column: 1 / -1; }
.qw-range { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; text-align: center; margin-bottom: 10px; }
.qw-range-l { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.qw-range-v { font: 600 2rem var(--mono); letter-spacing: -.05em; }
.qw-p { font-size: 14.5px; color: var(--ink-2); margin: 6px 0 10px; line-height: 1.55; }
.qw-chips { margin: 4px 0 12px; font-size: 14px; color: var(--ink-2); }
.qw-chips button { margin: 8px 8px 0 0; background: #fff; border: 1.5px solid var(--ink); border-radius: 99px; padding: 8px 16px; font-weight: 700; cursor: pointer; }
.qw-chips button:hover { background: var(--ink); color: #fff; }
.qw-good { background: var(--amber-soft); border: 1px solid #ecd98c; border-radius: var(--r); padding: 12px 14px; font-size: 14.5px; line-height: 1.5; margin-bottom: 12px; }
.qw-why { margin-top: 14px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); }
.qw-why-t { font-weight: 800; font-size: 15px; margin-bottom: 8px; }
.qw-why ul { list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--ink-2); display: grid; gap: 6px; }
.qw-why li { padding-left: 22px; position: relative; }
.qw-why li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 800; }

/* contact panel */
.qw-panel:not(:empty) { margin-top: 14px; border-top: 1.5px dashed var(--line); padding-top: 14px; }
.qw-form { display: grid; gap: 10px; }
.qw-form-t { font-weight: 800; font-size: 1.05rem; }
.qw-form .qw-go { margin-top: 2px; }
.qw-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.qw-consent input { margin-top: 3px; flex: none; width: 18px; height: 18px; accent-color: var(--ink); }
.qw-consent a, .qw-save-fine a { color: var(--ink); font-weight: 600; }
.qw-done { text-align: center; padding: 8px 4px; }
.qw-check { width: 48px; height: 48px; margin: 0 auto 8px; border-radius: 50%; background: var(--green); color: #fff; font-size: 26px; line-height: 48px; }
.qw-done-t { font: 800 1.4rem var(--ff); font-stretch: 90%; }
.qw-done p { font-size: 14.5px; color: var(--ink-2); margin: 4px 0 0; }
.qw-done a { font-weight: 700; }

/* save-this-quote row + leave prompt */
.qw-save { margin-top: 14px; padding: 14px; border-radius: var(--r-lg); background: var(--amber-soft); border: 1px solid #ecd98c; }
.qw-save-t { font-weight: 800; margin-bottom: 8px; }
.qw-save-row { display: flex; gap: 8px; }
.qw-save-row input { flex: 1; min-width: 0; }
.qw-save-row button { background: var(--ink); color: #fff; border: 0; border-radius: var(--r); padding: 0 16px; cursor: pointer; font-weight: 700; white-space: nowrap; }
.qw-save-fine { font-size: 11.5px; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.qw-exit { position: fixed; inset: 0; z-index: 10000; background: rgba(21, 23, 26, .6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.qw-exit-box { position: relative; max-width: 440px; width: 100%; background: #fff; border: 1.5px solid var(--ink); border-radius: var(--r-lg); padding: 26px 22px; box-shadow: 8px 8px 0 var(--amber); }
.qw-exit-box h3 { font-size: 1.7rem; margin-bottom: 6px; }
.qw-exit-box p { font-size: 15px; color: var(--ink-2); margin-bottom: 4px; }
.qw-exit-x { position: absolute; top: 8px; right: 12px; background: none; border: 0; font-size: 28px; cursor: pointer; color: var(--muted); }

@media (max-width: 480px) {
  .qw-card { grid-template-columns: 1fr; }
  .qw-ph { width: 100%; height: 170px; }
  .qw-actions { grid-template-columns: 1fr; }
  .qw-grid { gap: 10px; }
}
