/* ShoreMate — instant quote tool. Reuses tokens from styles.css. */

.quote-page {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  padding: 24px 16px 64px; box-sizing: border-box;
}

.q-shell { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 18px; }
.q-shell.wide { max-width: 720px; }
.q-shell.narrow { max-width: 480px; }

/* Top bar */
.q-topbar {
  width: 100%; max-width: 560px;
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px;
}
.q-topbar.wide { max-width: 720px; }
/* Mark and wordmark balanced. The SVG viewBox is cropped to the artwork (no empty canvas), so a
   fixed height sizes the visible mark directly — ~22px tall against an 18px/700 wordmark reads as
   a proper lockup, not an oversized icon. Width auto keeps the mark's real 1.2:1 shape. */
.q-brand { display: flex; align-items: center; gap: 9px; }
.q-brand svg { height: 22px; width: auto; flex: none; }
.q-brand span { font-size: 18px; font-weight: 700; letter-spacing: -.01em; color: var(--navy); line-height: 1; }
.q-dash-link { font-size: 12px; color: var(--faint); cursor: pointer; background: none; border: none; padding: 0; }
.q-dash-link:hover { color: var(--mustard); }

/* Headings & steps */
.q-step { font-size: 13px; color: var(--faint); }
.q-h1 { font-size: 22px; font-weight: 600; color: var(--navy); margin: 0; }
.q-h1.lg { font-size: 26px; }
.q-sub { font-size: 15px; color: var(--slate); margin: 0; line-height: 1.5; }
.q-center { text-align: center; }

/* Service select cards */
.q-service-list { display: flex; flex-direction: column; gap: 14px; }
.q-service {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px 24px; text-align: left; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  transition: border-color .12s ease, transform .12s ease, box-shadow .12s ease;
}
.q-service:hover { border-color: var(--mustard); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(15,42,68,.08); }
.q-service-title { font-size: 17px; font-weight: 600; color: var(--navy); }
.q-service-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.q-arrow { color: var(--mustard); font-size: 20px; }

/* Large / commercial job note on the service-select screen */
.q-commercial {
  margin: 4px 0 0; padding: 14px 18px; text-align: left;
  background: var(--white); border-left: 4px solid var(--mustard); border-radius: 10px;
  font-size: 13px; color: var(--muted); line-height: 1.7;
}
.q-commercial strong { color: var(--navy); }
.q-commercial a { color: var(--navy); font-weight: 600; text-decoration: underline; }
.q-commercial a:hover { color: var(--mustard); }

/* Cards / fields */
.q-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
}
.q-field label, .q-label { font-size: 12px; color: var(--slate); display: block; margin-bottom: 6px; }
.q-row { display: flex; gap: 12px; }
.q-row > * { flex: 1; }
input.q-input, select.q-input, textarea.q-input {
  width: 100%; box-sizing: border-box; padding: 10px 12px;
  border-radius: 8px; border: 1px solid var(--input); font-size: 15px; background: #fff; color: var(--navy);
}
select.q-input { appearance: auto; }
textarea.q-input { resize: vertical; }
.q-input:focus { outline: none; border-color: var(--mustard); box-shadow: 0 0 0 3px rgba(212,160,23,.15); }
.q-area { font-size: 13px; color: var(--muted); }

/* Honeypot — off-screen, hidden from real users & assistive tech; bots fill it. */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Photo dropzone */
.q-drop {
  border: 2px dashed #C9BFA8; border-radius: 12px; padding: 24px; background: var(--white);
  display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; text-align: center;
  transition: border-color .12s ease, background .12s ease;
}
.q-drop:hover, .q-drop.drag { border-color: var(--mustard); background: #FCFAF5; }
.q-drop-plus { font-size: 22px; color: var(--mustard); font-weight: 600; }
.q-drop-main { font-size: 13.5px; color: var(--slate); font-weight: 500; }
.q-drop-hint { font-size: 12px; color: var(--faint); }
.q-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.q-thumb { position: relative; width: 68px; height: 68px; border-radius: 8px; overflow: hidden; background: var(--cream); }
.q-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.q-thumb-x {
  position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(15,42,68,.75); color: #fff; font-size: 11px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; border: none;
}

/* Toggle buttons (seal it too?) */
.q-toggle-group { display: flex; gap: 10px; }
.q-toggle {
  flex: 1; padding: 10px 16px; border-radius: 8px; font-size: 13.5px; cursor: pointer;
  border: 1px solid var(--input); background: #fff; color: var(--slate);
}
.q-toggle.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Nav buttons */
.q-nav { display: flex; gap: 12px; justify-content: space-between; margin-top: 8px; }
.q-nav.center { justify-content: center; }
.q-btn { border: none; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; padding: 12px 28px; transition: filter .12s ease, transform .12s ease; }
.q-btn:hover:not(:disabled) { filter: brightness(1.04); transform: translateY(-1px); }
.q-btn-navy { background: var(--navy); color: #fff; }
.q-btn-accent { background: var(--mustard); color: var(--navy); }
.q-btn-ghost { background: transparent; border: 1px solid var(--input); color: var(--slate); font-size: 14px; padding: 12px 20px; }
.q-btn:disabled { cursor: not-allowed; }

/* Estimate */
.q-estimate-card { background: var(--navy); border-radius: 16px; padding: 36px 24px; color: #fff; }
.q-estimate-label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--mustard); margin-bottom: 10px; }
.q-estimate-range { font-size: 38px; font-weight: 600; }
.q-estimate-unit { font-size: 14px; color: var(--scrim-light); margin-top: 8px; }
.q-ai-loading { font-size: 13px; color: var(--muted); }
.q-ai-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; text-align: left; font-size: 13.5px; color: var(--slate); }
.q-ai-card strong { color: var(--navy); }
.q-disclaimer { font-size: 13px; color: var(--muted); margin: 0; }

/* Confirmation */
.q-check { width: 56px; height: 56px; border-radius: 50%; background: var(--mustard); color: var(--navy); font-size: 26px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.q-recap { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 16px 20px; font-size: 14px; color: var(--navy); }

/* Dashboard */
.q-dash-head { display: flex; align-items: center; justify-content: space-between; }
.q-dash-close { font-size: 13px; color: var(--muted); cursor: pointer; background: none; border: none; }
.q-dash-close:hover { color: var(--mustard); }
.q-req-list { display: flex; flex-direction: column; gap: 12px; }
.q-req { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 16px; display: flex; gap: 14px; }
.q-req-photo { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: var(--cream); flex-shrink: 0; }
.q-req-body { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.q-req-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.q-req-title { font-weight: 600; color: var(--navy); font-size: 14.5px; }
.q-req-date { font-size: 11px; color: var(--faint); flex-shrink: 0; }
.q-req-line { font-size: 13px; color: var(--slate); }
.q-req-sub { font-size: 13px; color: var(--muted); }
.q-req-ai { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.q-req-actions { display: flex; gap: 10px; margin-top: 6px; }
.q-chip { font-size: 12px; padding: 5px 10px; border-radius: 6px; cursor: pointer; border: none; background: var(--cream); color: var(--navy); }
.q-chip.quoted { background: #E7F3EA; color: #1B6B3A; }
.q-chip-del { font-size: 12px; padding: 5px 10px; border-radius: 6px; cursor: pointer; border: none; background: none; color: var(--del, #B91C1C); }
.q-empty { text-align: center; color: var(--faint); font-size: 14px; padding: 40px 0; }

@media (max-width: 560px) {
  .q-req-top { flex-direction: column; align-items: flex-start; gap: 2px; }
}

/* Two businesses in one list: a coloured spine plus a code chip, so which business a row
   belongs to is readable without reading. See dashboard.js BRANDS / brandChip(). */
.q-req.surface{border-left:4px solid #D4A017}
.q-req.handyman{border-left:4px solid #1F5641}
.q-brand{display:inline-block;font-size:10px;font-weight:800;letter-spacing:.06em;border-radius:5px;
  padding:1px 6px;margin-right:7px;vertical-align:1px}
