/* CLS: reserve calculator height — JS injects the UI after paint (towq mount) */
[data-quote-inline]{min-height:596px}[data-quote-inline="bare"]{min-height:392px}@media (min-width:768px){[data-quote-inline]{min-height:548px}[data-quote-inline="bare"]{min-height:355px}}
/* ==========================================================================
   Tow price calculator — self-contained, reusable across /towing/, /request/,
   and the homepage modal. All styles namespaced under .towq so they never
   depend on or collide with a page's own CSS. Brand: emerald #0d2622 / gold
   #c9a84c / cream #f6efd9 / Saira Condensed display.
   ========================================================================== */
.towq { max-width: 640px; margin: 0 auto; }
.towq-eyebrow { font-family: 'Inter', system-ui, sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: #c9a84c; text-align: center; margin: 0 0 12px; }
.towq-h2 { font-family: 'Saira Condensed', 'Arial Narrow', sans-serif; font-size: clamp(28px, 5vw, 42px); color: #f6efd9; text-align: center; line-height: 1.05; letter-spacing: -0.01em; margin: 0 0 14px; }
.towq-intro { font-family: 'Inter', system-ui, sans-serif; color: rgba(246,239,217,0.75); font-size: 16px; line-height: 1.6; text-align: center; max-width: 52ch; margin: 0 auto 30px; }
.towq-intro strong { color: #c9a84c; font-weight: 700; }

.towq-card { background: linear-gradient(180deg, #173a35, #0d2622); border: 1px solid rgba(201,168,76,0.22); border-radius: 18px; padding: 30px; }

.towq-label { display: block; font-family: 'Inter', system-ui, sans-serif; font-size: 11px; font-weight: 600; color: rgba(246,239,217,0.7); margin-bottom: 6px; letter-spacing: 0.12em; text-transform: uppercase; }
.towq-field { position: relative; margin-bottom: 16px; }
.towq-input { display: block; width: 100%; padding: 13px 14px; background: rgba(0,0,0,0.25); border: 1px solid rgba(246,239,217,0.18); border-radius: 9px; color: #f6efd9; font-family: 'Inter', system-ui, sans-serif; font-size: 15px; line-height: 1.4; transition: border-color 0.2s; -webkit-appearance: none; appearance: none; box-sizing: border-box; }
.towq-input::placeholder { color: rgba(246,239,217,0.4); }
.towq-input:focus { outline: none; border-color: #c9a84c; }

.towq-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; margin: 0; padding: 6px; list-style: none; background: #0d2622; border: 1px solid rgba(201,168,76,0.35); border-radius: 10px; box-shadow: 0 18px 44px rgba(0,0,0,0.55); max-height: 244px; overflow-y: auto; }
.towq-suggest li { padding: 11px 12px; border-radius: 7px; color: #f6efd9; font-family: 'Inter', system-ui, sans-serif; font-size: 14px; line-height: 1.35; cursor: pointer; display: flex; align-items: center; gap: 9px; }
.towq-suggest li svg { width: 15px; height: 15px; color: #c9a84c; flex-shrink: 0; opacity: 0.85; }
.towq-suggest li.active, .towq-suggest li:hover { background: rgba(201,168,76,0.16); }

.towq-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 17px 28px; font-family: 'Inter', system-ui, sans-serif; font-weight: 600; font-size: 15px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none; transition: transform .15s cubic-bezier(.4,0,.2,1), background .15s, box-shadow .15s, border-color .15s; }
.towq-btn svg { width: 18px; height: 18px; }
.towq-btn--primary { background: #c9a84c; color: #0d2622; box-shadow: 0 14px 40px rgba(201,168,76,0.22); }
.towq-btn--primary:hover { background: #f6efd9; transform: translateY(-2px); box-shadow: 0 20px 50px rgba(201,168,76,0.32); }
.towq-btn--outline { background: transparent; color: #f6efd9; border-color: rgba(246,239,217,0.3); }
.towq-btn--outline:hover { border-color: #f6efd9; background: rgba(246,239,217,0.04); transform: translateY(-2px); }
.towq-btn:active { transform: scale(.97); }
.towq-go { margin-top: 4px; }
.towq-go[data-busy] { opacity: 0.8; pointer-events: none; }

.towq-err { color: #e25b42; font-family: 'Inter', system-ui, sans-serif; font-size: 13px; line-height: 1.5; text-align: center; margin-top: 14px; display: none; }
.towq-err.show { display: block; }

.towq-result { margin-top: 26px; padding-top: 24px; border-top: 1px solid rgba(246,239,217,0.12); text-align: center; animation: towq-rise .35s cubic-bezier(.34,1.56,.64,1); }
@keyframes towq-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.towq-price { font-family: 'Saira Condensed', 'Arial Narrow', sans-serif; font-size: clamp(64px, 11vw, 88px); font-weight: 600; color: #c9a84c; line-height: 1; letter-spacing: -0.03em; }
.towq-price sup { font-size: 0.42em; vertical-align: top; position: relative; top: 0.45em; margin-right: 2px; }
.towq-mileage { font-family: 'Inter', system-ui, sans-serif; color: rgba(246,239,217,0.7); font-size: 14px; margin: 10px 0 22px; }
.towq-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.towq-actions .towq-btn { flex: 1; min-width: 190px; width: auto; }
.towq-disc { font-family: 'Inter', system-ui, sans-serif; color: rgba(246,239,217,0.45); font-size: 12px; line-height: 1.55; text-align: center; margin-top: 18px; }

/* Modal shell (homepage chips + any [data-quote-open] trigger) */
.towq-modal { position: fixed; inset: 0; z-index: 1000; display: none; }
.towq-modal.is-open { display: block; }
.towq-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.towq-modal__panel { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 94%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: linear-gradient(180deg, #0d2622, #081a17); border: 1px solid rgba(201,168,76,0.3); border-radius: 18px; padding: 30px 24px; box-shadow: 0 30px 80px rgba(0,0,0,0.6); animation: towq-rise .3s cubic-bezier(.34,1.56,.64,1); }
.towq-modal__panel .towq-card { background: none; border: none; padding: 0; }
.towq-modal__close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(246,239,217,0.06); border: none; color: rgba(246,239,217,0.7); font-size: 22px; line-height: 1; cursor: pointer; transition: background .15s, color .15s; }
.towq-modal__close:hover { background: rgba(246,239,217,0.12); color: #f6efd9; }

@media (prefers-reduced-motion: reduce) { .towq-result, .towq-modal__panel { animation: none; } }
