/* Quote + booking widget (shared by the homepage and town pages). Markup: partials/booking.html. */
/* BOOKING */
#booking { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 88px 0; }
.book-shell { max-width: 900px; margin: 0 auto; padding: 0 24px; }
.book-intro { margin-bottom: 28px; }
.book-intro p { color: var(--ink-2); margin-top: 10px; }
.book-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 22px 28px; border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; background: var(--paper); }
.book-header h2 { font-size: 22px; letter-spacing: -0.015em; }
.step-dots { display: flex; align-items: center; gap: 6px; }
.sdot { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; color: var(--muted); }
.sdot.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.sdot.done   { background: var(--brand); color: var(--ink); border-color: #cf8c00; }
.sconn { width: 18px; height: 1px; background: var(--line-strong); }

.book-body { padding: 32px 28px; border: 1px solid var(--line); border-top: 1px solid var(--line); background: var(--surface); border-radius: 0 0 var(--radius) var(--radius); }
.book-step { animation: fadeUp 0.18s ease both; }
@keyframes fadeUp { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }

/* FORM */
.f-group { margin-bottom: 28px; }
.f-lbl { font-weight: 600; font-size: 16px; color: var(--ink); margin-bottom: 12px; display: flex; align-items: center; }
.addr-input { width: 100%; background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink); padding: 13px 14px; font: 400 16px var(--font); border-radius: var(--radius-sm); outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.addr-input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(22,21,15,.08); }
.addr-input::placeholder { color: #a9a499; }
.addr-input.invalid { border-color: var(--bad); background: #fff8f6; }
.addr-sub-lbl.invalid { color: var(--bad); }
.field-err { display: none; margin-top: 12px; padding: 12px 14px; background: #fdf1ee; border-radius: var(--radius-sm); color: var(--bad); font-size: 15px; font-weight: 500; }
.field-err.show { display: block; }

.addr-grid { display: grid; grid-template-columns: 1fr 1fr 88px 128px; gap: 12px; }
.addr-full  { grid-column: 1 / -1; }
.addr-city  { grid-column: 1 / 3; }
.addr-state { grid-column: 3 / 4; }
.addr-zip   { grid-column: 4 / 5; }
.addr-sub-lbl { display: block; font-size: 14px; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
.addr-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2367635a'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; cursor: pointer; }
@media (max-width: 560px) {
  .addr-grid { grid-template-columns: 1fr 1fr; }
  .addr-city  { grid-column: 1 / -1; }
  .addr-state { grid-column: 1 / 2; }
  .addr-zip   { grid-column: 2 / 3; }
}

.dist-display { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.dist-fee { font-size: 15px; color: var(--ink-2); font-weight: 500; }
.warn-box { background: #fdf1ee; border-radius: var(--radius-sm); padding: 14px 16px; font-size: 15px; color: var(--bad); margin-top: 14px; display: none; }

/* LOAD CARDS */
.load-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.load-card { background: var(--surface); border: 1px solid var(--line-strong); padding: 18px 14px 16px; border-radius: var(--radius); cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; text-align: left; display: flex; flex-direction: column; }
.load-card:hover { border-color: var(--ink); }
.load-card.selected { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #fff8ea; }
.lc-icon { display: flex; margin-bottom: 12px; }
.lc-icon svg { width: 26px; height: 26px; stroke: var(--ink); }
.lc-name { font-weight: 600; font-size: 16px; margin-bottom: 4px; }
.lc-desc { font-size: 13px; color: var(--muted); line-height: 1.4; margin-bottom: 12px; flex: 1; }
.lc-price { display: block; font-weight: 700; font-size: 24px; letter-spacing: -0.02em; margin-bottom: 6px; }
.lc-weight { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); font-weight: 500; font-size: 12px; padding: 2px 8px; border-radius: 999px; }
.lc-weight-hard { background: var(--ink); border-color: var(--ink); color: #fff; }
.lc-note { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }

.step-mini-num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; background: var(--brand); color: var(--ink); border-radius: 50%; font-weight: 700; font-size: 13px; margin-right: 10px; }

/* CALENDAR (range picker) */
.cal-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 16px 16px; }
.cal-legend { display: flex; gap: 18px; flex-wrap: wrap; padding: 12px 4px 14px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.cal-legend-item { display: flex; align-items: center; gap: 7px; }
.cal-swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line-strong); flex-shrink: 0; }
.cal-swatch.avail { background: var(--surface); }
.cal-swatch.sel { background: var(--ink); border-color: var(--ink); }
.cal-swatch.range { background: var(--brand-soft); border-color: var(--brand-soft); }
.cal-swatch.booked { background: #eeebe4; border-color: #e2ded4; }
.cal-swatch.past { background: transparent; border-color: var(--line); }

.cal-header-row { display: grid; grid-template-columns: repeat(7, 1fr); padding: 14px 0 4px; }
.cal-header-cell { padding: 4px; text-align: center; font-weight: 500; font-size: 12px; color: var(--muted); }
.cal-header-cell:first-child, .cal-week-label { display: none; }
.cal-month-label { font-weight: 700; font-size: 16px; padding: 20px 4px 8px; grid-column: 1 / -1; display: block; }
.cal-week-row .cal-month-label:first-child { padding-top: 12px; }
.cal-week-row { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
.cal-day { padding: 3px 0; text-align: center; cursor: default; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; position: relative; }
.cal-day-num { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 500; font-size: 16px; line-height: 1; position: relative; z-index: 1; transition: background 0.12s; font-variant-numeric: tabular-nums; }
.cal-day-sub { font-size: 10px; font-weight: 600; line-height: 1.2; position: relative; z-index: 1; }
.cal-day.past .cal-day-num, .cal-day.no-start .cal-day-num { color: #c2bdb1; }
.cal-day.booked .cal-day-num { color: #aaa597; text-decoration: line-through; background: #f1eee8; }
.cal-day.booked .cal-day-sub { color: #aaa597; }
.cal-day.available { cursor: pointer; }
.cal-day.available .cal-day-num { color: var(--ink); }
.cal-day.available:hover .cal-day-num { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }
.cal-day.in-range::before, .cal-day.start::before, .cal-day.pickup-day::before { content: ''; position: absolute; height: 40px; background: var(--brand-soft); z-index: 0; top: 6px; }
.cal-day.in-range::before { left: 0; right: 0; }
.cal-day.start::before { left: 50%; right: 0; }
.cal-day.pickup-day::before { left: 0; right: 50%; }
.cal-day.in-range .cal-day-num { font-weight: 600; }
.cal-day.in-range .cal-day-sub { color: var(--ink-2); }
.cal-day.start, .cal-day.pickup-day { cursor: pointer; }
.cal-day.start .cal-day-num, .cal-day.pickup-day .cal-day-num { background: var(--ink); color: var(--brand); font-weight: 700; }
.cal-day.start .cal-day-sub, .cal-day.pickup-day .cal-day-sub { color: var(--ink); }
.cal-day.start .cal-day-sub, .cal-day.pickup-day .cal-day-sub, .cal-day.in-range .cal-day-sub { margin-top: -2px; }
.cal-day.start, .cal-day.pickup-day, .cal-day.in-range { justify-content: flex-start; padding-top: 6px; }
.cal-loading { padding: 40px; text-align: center; font-size: 15px; color: var(--muted); }

/* PRICE BAR */
.price-bar { margin-top: 12px; background: var(--ink); border-radius: var(--radius); padding: 18px 24px; display: none; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; position: sticky; bottom: 12px; z-index: 50; box-shadow: 0 10px 30px rgba(22,21,15,.18); }
.price-bar.visible { display: flex; }
.pb-lines { display: flex; flex-direction: column; gap: 4px; }
.pb-line { display: flex; gap: 24px; font-size: 14px; color: #c9c5ba; }
.pb-line-lbl { flex: 1; }
.pb-line-amt { color: #fff; font-weight: 500; }
.pb-total-lbl { font-size: 13px; color: #a29e93; }
.pb-total { font-weight: 700; font-size: 36px; letter-spacing: -0.02em; color: var(--brand); line-height: 1; }

/* BOOKING BUTTONS */
.btn-pri { background: var(--brand); color: var(--ink); font: 600 17px/1 var(--font); padding: 16px 26px; border: 1px solid #cf8c00; border-radius: var(--radius-sm); cursor: pointer; transition: background 0.15s; display: inline-flex; align-items: center; gap: 8px; }
.btn-pri:hover:not(:disabled) { background: var(--brand-hover); }
.btn-pri:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-sec { background: transparent; color: var(--ink-2); font: 500 15px/1 var(--font); padding: 12px 18px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); cursor: pointer; transition: border-color 0.15s; }
.btn-sec:hover { border-color: var(--ink); color: var(--ink); }
.btn-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* SUMMARY */
.summary-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; margin-bottom: 20px; }
.sum-title { font-weight: 600; font-size: 15px; color: var(--muted); margin-bottom: 10px; }
.sum-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.sum-row:last-child { border-bottom: none; }
.sum-row-lbl { color: var(--ink-2); }
.sum-row-val { font-weight: 600; text-align: right; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; margin-top: 4px; border-top: 1px solid var(--ink); }
.sum-total-lbl { font-weight: 600; font-size: 17px; }
.sum-total-val { font-weight: 700; font-size: 32px; letter-spacing: -0.02em; }

.hold-notice { background: #f1f7f2; border: 1px solid #cfe3d4; border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 20px; display: none; }
.hold-title { font-weight: 600; font-size: 15px; color: #1f5a37; margin-bottom: 6px; }
.hold-text { font-size: 14px; color: #1f5a37; line-height: 1.6; }
.terms-row { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--ink-2); margin-bottom: 18px; cursor: pointer; line-height: 1.55; }
.terms-row input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ink); cursor: pointer; flex: none; }
.terms-row a { color: var(--ink); font-weight: 600; }
.stripe-note { font-size: 14px; color: var(--muted); margin-top: 12px; }
.save-quote { margin-top: 28px; padding: 18px; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.sq-title { font-weight: 600; margin-bottom: 4px; }
.sq-text { font-size: 14px; color: var(--ink-2); margin-bottom: 12px; }
.sq-row { display: flex; gap: 8px; flex-wrap: wrap; }
.sq-row input { flex: 1 1 220px; min-width: 0; font: 400 16px var(--font); padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); }
.sq-remind { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-2); margin-top: 10px; cursor: pointer; }
.sq-done { font-size: 14px; margin-top: 10px; color: var(--ink); }

.toast { position: fixed; top: 76px; right: 24px; background: var(--ink); color: #fff; font-weight: 500; font-size: 15px; padding: 12px 18px; border-radius: var(--radius-sm); z-index: 500; transform: translateX(220%); transition: transform 0.28s cubic-bezier(0.23, 1, 0.32, 1); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.toast.show { transform: translateX(0); }

@media (max-width: 640px) {
  #booking { padding: 56px 0; }
  .book-shell { padding: 0 12px; }
  .book-header { padding: 18px 16px; }
  .book-body { padding: 24px 16px; }
  .load-grid { grid-template-columns: repeat(2, 1fr); }
  .cal-wrap { padding: 4px 6px 12px; }
  .cal-day { min-height: 46px; }
  .cal-day-num { width: 36px; height: 36px; font-size: 15px; }
  .cal-day.in-range::before, .cal-day.start::before, .cal-day.pickup-day::before { height: 36px; }
  .cal-day-sub { font-size: 9px; }
  .price-bar { padding: 14px 16px; }
  .pb-total { font-size: 30px; }
}
