/* Quote wizard */
.quotePanel{
  position:relative;
  width:min(820px, 100%);
  background:#fff;
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:18px;
  max-height:calc(100vh - 3rem);
  overflow:auto;
}

.quoteTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.quoteTitle{
  margin:0;
  font-family:Oswald, Inter, sans-serif;
  letter-spacing:.7px;
  text-transform:uppercase;
  color:var(--black);
}

.quoteProgress{ display:flex; gap:6px; margin-top:4px; }
.qpDot{
  width:10px; height:10px; border-radius:999px;
  border:1px solid rgba(0,0,0,.18);
  background:rgba(0,0,0,.06);
}
.qpDot.isOn{
  width:28px;
  background:rgba(214,178,94,.85);
  border-color:rgba(214,178,94,.95);
}

.quoteBody{ margin-top:14px; }
.qStepTitle{ margin:0 0 8px; font-weight:900; color:#111; }
.qStepSub{ margin:0 0 12px; color:rgba(0,0,0,.62); line-height:1.6; }

.quoteNav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:space-between;
  margin-top:14px;
}

.quoteBack{
  background:#fff;
  color:#000;
  border:2px solid rgba(0,0,0,.18);
  box-shadow:none;
}
.quoteNext{ min-width:160px; }

/* Cards grid */
.qCards{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}

/* Vehicle step: always 2x2 */
.qCards--vehicle2x2{
  grid-template-columns: 1fr 1fr;
}

/* ✅ NEW: compact 3-up grid for mobile (category + conditions) */
.qCards--compact3{
  grid-template-columns: repeat(3, 1fr);
  gap:8px;
}
.qCards--compact3 .qCard{
  padding:10px;
  border-radius:16px;
  box-shadow:0 10px 26px rgba(0,0,0,.06);
}
.qCards--compact3 .qCardMedia{
  border-radius:14px;
}

/* Make “portrait” cards shorter ONLY in compact grids (fixes giant scroll issue) */
.qCards--compact3 .qCard--portrait .qCardMedia{
  aspect-ratio: 4 / 3;
}

/* Tighten text in compact grid so it stays scannable */
.qCards--compact3 .qCardLabel{
  margin:8px 2px 2px;
  font-size:.95rem;
  line-height:1.15;
}
.qCards--compact3 .qCardHint{
  font-size:.80rem;
  line-height:1.25;
}

/* If phone is super narrow, go 2 columns + last card full width */
@media (max-width:360px){
  .qCards--compact3{
    grid-template-columns: 1fr 1fr;
  }
  .qCards--compact3 .qCard:last-child{
    grid-column: 1 / -1;
  }
}

/* Exterior services: one horizontal row */
.qCards--row{
  display:flex;
  gap:12px;
  flex-wrap:nowrap;
  overflow-x:auto;
  padding-bottom:6px;
  -webkit-overflow-scrolling:touch;
  scroll-snap-type:x mandatory;
}
.qCards--row .qCard{
  flex:0 0 78%;
  scroll-snap-align:start;
}
@media (min-width:768px){
  .qCards--row .qCard{ flex:0 0 260px; }
}

/* Card base */
.qCard{
  text-align:left;
  border-radius:18px;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  padding:12px;
  cursor:pointer;
  box-shadow:0 12px 30px rgba(0,0,0,.08);
  transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}
.qCard.isSel{
  border-color:rgba(214,178,94,.70);
  box-shadow:0 18px 44px rgba(214,178,94,.18);
}
.qCard:focus-visible{
  outline:none;
  box-shadow:0 0 0 4px rgba(214,178,94,.22), 0 12px 30px rgba(0,0,0,.08);
  border-color:rgba(214,178,94,.72);
}

.qCardMedia{
  width:100%;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.08);
  background:rgba(0,0,0,.04);
  position:relative;
}

.qCard--img .qCardMedia{
  aspect-ratio: 16 / 9;
}

.qCardMedia img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
}

/* ✅ tiny badge for pre-wash (keeps all cards aligned) */
.qCardBadge{
  position:absolute;
  top:8px;
  left:8px;
  width:22px;
  height:22px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:1000;
  font-size:14px;
  color:#111;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(0,0,0,.14);
  box-shadow:0 8px 18px rgba(0,0,0,.14);
}

/* Vehicle cards: contain + normalized zoom */
.qCard--vehicle .qCardMedia{
  aspect-ratio: 16 / 9;
  padding:10px;
  background:#fff;
  --carZoom: 1.26;
}
.qCard--vehicle img.isContain{
  object-fit:contain;
  background:#fff;
  transform: scale(var(--carZoom));
  transform-origin:center;
}

/* Portrait cards */
.qCard--portrait .qCardMedia{ aspect-ratio: 3 / 4; }
.qCard--portrait .qCardMedia img{ object-fit:cover; }

/* Square cards for service selection */
.qCard--square .qCardMedia{ aspect-ratio: 1 / 1; }
.qCard--square .qCardMedia img{ object-fit:cover; }

.qCardLabel{
  margin:10px 2px 2px;
  font-weight:900;
  color:#111;
}
.qCardHint{
  margin:0 2px 0;
  color:rgba(0,0,0,.62);
  font-weight:700;
  font-size:.95rem;
  line-height:1.45;
}
.qCardHint:empty{ display:none; }

/* Fields */
.qGrid2{ display:grid; grid-template-columns:1fr; gap:10px; }

.qField label{ display:block; font-weight:900; margin-bottom:6px; color:#111; }
.qField input, .qField textarea{
  width:100%;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.12);
  outline:none;
  font-weight:600;
  font-family:inherit;
}
.qField textarea{ min-height:92px; resize:vertical; }
.qField input:focus, .qField textarea:focus{
  border-color:rgba(214,178,94,.70);
  box-shadow:0 0 0 4px rgba(214,178,94,.18);
}

.qCheck{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:12px;
  border-radius:16px;
  border:1px solid rgba(0,0,0,.10);
  background:rgba(0,0,0,.02);
}
.qCheck input{ margin-top:4px; }

.qStatus{
  margin-top:8px;
  font-weight:800;
  color:rgba(0,0,0,.65);
}

/* Estimate */
.qEstimateBox{
  border-radius:20px;
  padding:16px;
  border:2px solid rgba(214,178,94,.55);
  box-shadow:0 18px 50px rgba(214,178,94,.18);
  background:
    radial-gradient(900px 320px at 20% 15%, rgba(214,178,94,.14), rgba(255,255,255,0) 55%),
    linear-gradient(180deg, rgba(214,178,94,.08), rgba(0,0,0,.02));
  text-align:center;
}
.qEstimateBox--simple{
  border-color: rgba(0,0,0,.10);
  box-shadow: 0 16px 44px rgba(0,0,0,.08);
  background: linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.01));
}
.qEstimateBig{
  margin-top:2px;
  font-weight:1000;
  font-size:2.15rem;
  line-height:1.1;
  color:#111;
}
.qEstimatePills{
  margin-top:12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
}
.qPill{
  display:inline-flex;
  gap:6px;
  align-items:center;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.10);
  background:rgba(255,255,255,.78);
  color:rgba(0,0,0,.78);
  font-weight:800;
  font-size:.92rem;
}
.qEstimateFine{
  margin-top:12px;
  color:rgba(0,0,0,.62);
  font-weight:700;
  line-height:1.6;
}

/* Appointment summary */
.qApptSummary{
  margin-top:10px;
  border-radius:16px;
  border:1px solid rgba(0,0,0,.10);
  background:rgba(0,0,0,.02);
  padding:12px;
}
.qApptLine{
  font-weight:900;
  color:rgba(0,0,0,.70);
  line-height:1.6;
}

/* Heard About */
.qHearWrap{
  border-radius:18px;
  border:1px solid rgba(0,0,0,.10);
  background:
    radial-gradient(700px 240px at 10% 0%, rgba(214,178,94,.12), rgba(255,255,255,0) 55%),
    rgba(0,0,0,.02);
  padding:12px;
}
.qHearGrid{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  margin-top:10px;
}
.qHearBtn{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  text-align:left;
  padding:12px 12px;
  border-radius:16px;
  border:1px solid rgba(0,0,0,.12);
  background:rgba(255,255,255,.92);
  cursor:pointer;
  box-shadow:0 10px 26px rgba(0,0,0,.06);
  transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}
.qHearBtn:hover{ transform: translateY(-1px); }
.qHearBtn.isSel{
  border-color:rgba(214,178,94,.72);
  box-shadow:0 0 0 4px rgba(214,178,94,.18), 0 18px 44px rgba(214,178,94,.14);
}
.qHearBtn:focus-visible{
  outline:none;
  border-color:rgba(214,178,94,.85);
  box-shadow:0 0 0 4px rgba(214,178,94,.22), 0 10px 26px rgba(0,0,0,.08);
}
.qHearLeft{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
}
.qHearLabel{
  font-weight:1000;
  letter-spacing:.2px;
  color:#111;
  line-height:1.1;
}
.qHearHint{
  color:rgba(0,0,0,.62);
  font-weight:750;
  font-size:.95rem;
  line-height:1.35;
}
.qHearRight{
  display:inline-flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
}
.qHearPill{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.10);
  background:rgba(0,0,0,.04);
  color:rgba(0,0,0,.72);
  font-weight:950;
  font-size:.82rem;
  text-transform:uppercase;
  letter-spacing:.7px;
}
.qHearCheck{
  width:18px; height:18px;
  border-radius:999px;
  border:2px solid rgba(0,0,0,.16);
  background:#fff;
  box-shadow:inset 0 0 0 4px rgba(255,255,255,1);
}
.qHearBtn.isSel .qHearPill{
  border-color:rgba(214,178,94,.55);
  background:rgba(214,178,94,.12);
  color:rgba(0,0,0,.82);
}
.qHearBtn.isSel .qHearCheck{
  border-color:rgba(214,178,94,.85);
  background:rgba(214,178,94,.85);
  box-shadow:inset 0 0 0 4px rgba(255,255,255,1);
}

/* Calendar */
.qCalWrap{
  border-radius:18px;
  border:1px solid rgba(0,0,0,.10);
  background:rgba(0,0,0,.01);
  padding:14px;
}

.qCalTopRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:6px;
}

.qCalTz{
  font-weight:800;
  color:rgba(0,0,0,.60);
}

.qReloadLink{
  border:none;
  background:transparent;
  color:rgba(0,0,0,.55);
  font-weight:900;
  cursor:pointer;
  padding:6px 8px;
  border-radius:10px;
}
.qReloadLink:hover{
  background:rgba(0,0,0,.05);
}

/* ✅ loading bar */
.qLoadBar{
  height:10px;
  border-radius:999px;
  background:rgba(0,0,0,.06);
  border:1px solid rgba(0,0,0,.08);
  overflow:hidden;
  margin:8px 0 10px;
  display:none;
}
.qLoadBar.isOn{ display:block; }
.qLoadBarFill{
  display:block;
  height:100%;
  width:45%;
  border-radius:999px;
  background:rgba(214,178,94,.75);
  animation:qLoadMove 1.1s infinite ease-in-out;
}
@keyframes qLoadMove{
  0%{ transform:translateX(-110%); }
  100%{ transform:translateX(260%); }
}

.qCal{
  border-top:1px solid rgba(0,0,0,.10);
  padding-top:10px;
}

.qCalHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:2px;
}
.qCalNav{
  width:46px;
  height:40px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  font-weight:1000;
  cursor:pointer;
}
.qCalMonth{
  font-weight:1000;
  color:#111;
  font-size:1.15rem;
}
.qCalWeek{
  display:grid;
  grid-template-columns:repeat(7, 1fr);
  gap:8px;
  margin-top:10px;
}
.qCalW{
  font-weight:900;
  color:rgba(0,0,0,.55);
  text-align:center;
  font-size:.9rem;
}
.qCalGrid{
  display:grid;
  grid-template-columns:repeat(7, 1fr);
  gap:8px;
  margin-top:10px;
}
.qCalDay{
  height:42px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  font-weight:1000;
  cursor:pointer;
}
.qCalDay.isSel{
  border-color:rgba(214,178,94,.85);
  box-shadow:0 0 0 4px rgba(214,178,94,.18);
}
.qCalDay.isDisabled{
  opacity:.35;
  cursor:not-allowed;
}
.qCalDay--blank{
  border:none;
  background:transparent;
}

.qTimes{
  margin-top:14px;
  border-top:1px solid rgba(0,0,0,.10);
  padding-top:12px;
}
.qTimesTitle{
  font-weight:1000;
  color:#111;
  margin-bottom:10px;
}
.qTimesNone{
  font-weight:900;
  color:rgba(0,0,0,.60);
  padding:8px 0;
}
.qTimesGrid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:10px;
}
.qTimeBtn{
  height:44px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  font-weight:1000;
  cursor:pointer;
}
.qTimeBtn.isSel{
  border-color:rgba(214,178,94,.85);
  box-shadow:0 0 0 4px rgba(214,178,94,.18);
}

.qNextAvail{
  margin-top:12px;
  width:100%;
  justify-content:center;
}

/* Done */
.qDoneBox{
  border-radius:18px;
  border:1px solid rgba(0,0,0,.10);
  background:rgba(0,0,0,.02);
  padding:14px;
}
.qDoneBig{
  font-weight:1000;
  font-size:1.25rem;
  color:#111;
  margin-bottom:10px;
}
.qDoneLine{
  font-weight:900;
  color:rgba(0,0,0,.70);
  line-height:1.7;
}
.qDoneFine{
  margin-top:10px;
  font-weight:800;
  color:rgba(0,0,0,.55);
}

/* Desktop layout */
@media (min-width:768px){
  .qCards{ grid-template-columns:repeat(3, 1fr); }
  .qCards--vehicle2x2{ grid-template-columns:repeat(2, 1fr); }
  .qGrid2{ grid-template-columns:1fr 1fr 1fr; }

  .qHearWrap{ padding:14px; }
  .qHearGrid{ grid-template-columns:repeat(2, 1fr); }
  .qHearBtn{ padding:14px; }

  .qTimesGrid{ grid-template-columns:repeat(3, 1fr); }
}
@media (min-width:1024px){
  .qHearGrid{ grid-template-columns:repeat(3, 1fr); }
  .qTimesGrid{ grid-template-columns:repeat(4, 1fr); }
}
