/* ══════════════════════════════════════
   AUTOVIINDU — CAR CARD & DETAIL STYLES
══════════════════════════════════════ */

/* ─── CAR GRID ─── */
.cars-grid,
.used-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 480px)  { .cars-grid, .used-grid { gap: 14px; } }
@media (min-width: 640px)  { .cars-grid, .used-grid { gap: 16px; } }
@media (min-width: 900px)  { .cars-grid, .used-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .cars-grid, .used-grid { grid-template-columns: repeat(4, 1fr); } }

/* ─── CAR CARD ─── */
.car-card {
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow var(--ease-out), transform var(--ease-out);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  container-type: inline-size;
}
@media (min-width: 768px) and (hover: hover) {
  .car-card:hover {
    box-shadow: 0 10px 28px rgba(0,0,0,0.10);
    transform: translateY(var(--lift));
  }
  /* photo drifts in slightly behind the card lift — reads as depth */
  .car-card:hover .cc-img { transform: scale(1.045); }
}

/* ─── NAME + SUBTITLE (above image) ─── */
.cc-top {
  padding: 14px 16px 0;
}

.cc-sub {
  font-size: 12px;
  color: #6d7d72;
  margin-top: 3px;
}

/* ─── IMAGE WRAPPER ─── */
.cc-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f8f9fa;
  flex-shrink: 0;
  padding: 14px 12px;
  margin-top: 10px;
}

.cc-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  mix-blend-mode: darken;
  transition: transform var(--ease-out);
}

.cc-img--empty {
  width: 40%;
  height: 40%;
  margin: 30% auto;
  object-fit: contain;
  mix-blend-mode: normal;
  opacity: 0.6;
}

/* Compare toggle — small icon button, top-right of the image */
.cc-cmp-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #eaeaea;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: all 0.2s ease;
}
.cc-cmp-btn:hover {
  border-color: #c3ccc5;
  color: #111;
}
.cc-cmp-btn.added {
  background: #1a8a44;
  border-color: #1a8a44;
  color: #fff;
}
@container (max-width: 230px) {
  .cc-cmp-btn { width: 26px; height: 26px; top: 8px; right: 8px; }
  .cc-cmp-btn svg { width: 12px; height: 12px; }
}

/* Small info tags on the image — certified (top-left) / km (bottom-left), used cars */
.cc-tag {
  position: absolute;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.cc-tag-cert {
  top: 10px;
  left: 10px;
  background: #1a8a44;
  color: #fff;
}
.cc-tag-km {
  bottom: 10px;
  left: 10px;
  background: rgba(17, 22, 18, 0.7);
  color: #fff;
}
@container (max-width: 230px) {
  .cc-tag { font-size: 9.5px; padding: 3px 7px; top: 8px; left: 8px; bottom: 8px; }
}

/* Top Overlays (used by upcoming-car status pills) */
.cc-top-row {
  position: absolute;
  top: 12px; left: 12px; right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 2;
}

/* ─── CARD BODY (upcoming-car layout) ─── */
.cc-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cc-name {
  font-size: 15.5px;
  font-weight: 700;
  color: #111;
  margin: 0 0 4px;
  line-height: 1.25;
}

.cc-variant {
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
}

/* ─── PRICE + EMI ─── */
.cc-price-block {
  margin-bottom: 14px;
  flex: 1 1 auto;
  min-width: 0;
}

.cc-price {
  font-size: 17px;
  font-weight: 800;
  color: #111;
  line-height: 1.2;
}

.cc-emi {
  font-size: 11.5px;
  color: #6d7d72;
  margin-top: 2px;
}
.cc-emi span {
  color: #1a8a44;
  font-weight: 700;
  white-space: nowrap;
}

/* ─── FOOTER ROW: price left, action on the side ─── */
.cc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px 16px;
  margin-top: auto;
}
.cc-foot .cc-price-block { margin-bottom: 0; }

/* Narrow cards (2-up mobile grids) — stack price above a full-width button */
@container (max-width: 230px) {
  .cc-foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .cc-btn-view { width: 100%; }
}

/* View Details — compact side button */
.cc-btn-view {
  flex-shrink: 0;
  padding: 9px 12px;
  background: #111612;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.cc-btn-view svg { width: 12px; height: 12px; flex-shrink: 0; }
.cc-btn-view:hover {
  background: #1f2721;
}

/* Upcoming-car card actions (fill + outline pair) */
.cc-actions {
  display: flex;
  gap: 8px;
}

.cc-btn-fill,
.cc-btn-outline {
  flex: 1;
  min-height: 40px;
  padding: 10px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.cc-btn-fill {
  background: #111612;
  color: #fff;
  border: none;
}
.cc-btn-fill:hover {
  background: #1f2721;
}

.cc-btn-outline {
  background: #fff;
  color: #111612;
  border: 1.5px solid #dfe3e0;
}
.cc-btn-outline:hover {
  background: #f8f9fa;
  border-color: #c3ccc5;
}


/* ─── VARIANT SELECTOR ─── */
.variant-selector-wrap { margin-bottom: 20px; }
.variant-tabs-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.variant-tabs-row::-webkit-scrollbar { display: none; }

.variant-tab {
  flex-shrink: 0;
  border: 2px solid var(--border);
  border-radius: var(--r12);
  padding: 11px 14px;
  cursor: pointer;
  transition: all var(--ease);
  background: var(--white);
  min-width: 130px;
  position: relative;
}
.variant-tab:hover { border-color: var(--green); background: var(--green-ll); }
.variant-tab.active { border-color: var(--green); background: var(--green-ll); }
.variant-tab.active .vt-price { color: var(--green); }
.variant-tab .popular-tag {
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #fff;
  font-size: 8.5px; font-weight: 800;
  padding: 2px 9px; border-radius: 0 0 var(--r6) var(--r6);
  text-transform: uppercase; letter-spacing: .4px; white-space: nowrap;
}
.vt-name { font-size: 13px; font-weight: 800; color: var(--ink); margin-bottom: 3px; }
.vt-price { font-size: 15px; font-weight: 800; color: var(--ink-3); margin-bottom: 6px; transition: color var(--ease); }
.vt-features { display: flex; flex-direction: column; gap: 3px; }
.vt-feature { font-size: 11px; color: var(--ink-3); display: flex; align-items: flex-start; gap: 4px; line-height: 1.4; }
.vt-feature .tick { color: var(--green); flex-shrink: 0; font-size: 10px; margin-top: 1px; }

/* Variant detail panel */
.variant-detail-panel {
  background: var(--green-ll);
  border: 1.5px solid rgba(26,107,42,.2);
  border-radius: var(--r12);
  padding: 14px;
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 640px) { .variant-detail-panel { grid-template-columns: repeat(4, 1fr); } }
.vdp-item { background: rgba(255,255,255,.7); border-radius: var(--r8); padding: 10px; text-align: center; }
.vdp-value { font-size: 13.5px; font-weight: 800; color: var(--green); }
.vdp-label { font-size: 10px; color: var(--ink-4); margin-top: 2px; }

/* Color selector */
.color-selector { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; margin: 14px 0; }
.color-swatch {
  width: 24px; height: 24px;
  border-radius: 50%;
  cursor: pointer;
  border: 2.5px solid rgba(255,255,255,.6);
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  transition: all var(--ease);
}
.color-swatch:hover { transform: scale(1.2); }
.color-swatch.active { border-color: var(--ink); transform: scale(1.2); box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--ink); }
.color-name-display { font-size: 12.5px; font-weight: 600; color: var(--ink-3); margin-top: 4px; }

/* ─── DETAIL PAGE LAYOUT ─── */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 60px;
}
@media (min-width: 980px) {
  .detail-layout {
    grid-template-columns: 1fr 340px;
    gap: 32px;
    padding-top: 32px;
    padding-bottom: 80px;
  }
}
.detail-sidebar { order: -1; }
@media (min-width: 980px) { .detail-sidebar { order: 0; position: sticky; top: calc(var(--nav-h) + 16px); align-self: start; } }

/* ─── IMAGE GALLERY ─── */
.gallery-wrap { margin-bottom: 22px; }
.gallery-main {
  position: relative;
  width: 100%;
  height: 240px;
  border-radius: var(--r16);
  overflow: hidden;
  background: var(--bg-2);
  cursor: zoom-in;
}
@media (min-width: 480px) { .gallery-main { height: 280px; } }
@media (min-width: 768px) { .gallery-main { height: 360px; border-radius: var(--r20); } }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s ease, transform .25s ease; }
.gallery-main img.fade { opacity: 0; transform: scale(.98); }
.g-nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px;
  background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--ease); border: none;
  box-shadow: var(--shadow-sm);
}
.g-nav-btn:hover { transform: translateY(-50%) scale(1.08); }
.g-nav-btn.prev { left: 10px; }
.g-nav-btn.next { right: 10px; }
.g-count-badge {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(8,14,20,.65); backdrop-filter: blur(6px);
  color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: var(--pill);
}
.gallery-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.gallery-thumbs::-webkit-scrollbar { display: none; }
.g-thumb {
  width: 68px; height: 48px;
  border-radius: var(--r8); overflow: hidden;
  border: 2.5px solid transparent;
  cursor: pointer; transition: all var(--ease);
  flex-shrink: 0; background: var(--bg-2);
}
@media (min-width: 768px) { .g-thumb { width: 80px; height: 56px; } }
.g-thumb.active { border-color: var(--green); }
.g-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ─── DETAIL TABS ─── */
.detail-tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--white);
  border-radius: var(--r16) var(--r16) 0 0;
}
.detail-tabs-nav::-webkit-scrollbar { display: none; }
.detail-tab-btn {
  padding: 13px 16px;
  border: none; border-bottom: 2.5px solid transparent;
  background: none; font-family: var(--font-body);
  font-size: 13px; font-weight: 700; color: var(--ink-4);
  cursor: pointer; white-space: nowrap;
  margin-bottom: -1px; transition: all var(--ease);
}
.detail-tab-btn:hover { color: var(--green); }
.detail-tab-btn.active { color: var(--green); border-bottom-color: var(--green); }
.detail-tab-pane { display: none; padding: 22px; border: 1px solid var(--border); border-top: none; border-radius: 0 0 var(--r16) var(--r16); }
.detail-tab-pane.active { display: block; }

/* ─── SPEC CARDS ─── */
.quick-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
@media (min-width: 640px) { .quick-specs-grid { grid-template-columns: repeat(3, 1fr); } }
.quick-spec-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r10);
  padding: 12px;
  text-align: center;
}
.qs-value { font-size: 14px; font-weight: 800; color: var(--green); }
.qs-label { font-size: 10.5px; color: var(--ink-4); margin-top: 2px; }

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr:nth-child(even) td { background: var(--bg); }
.spec-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); font-size: 13px; }
.spec-table td:first-child { font-weight: 700; color: var(--ink-2); width: 45%; }
.spec-table td:last-child { color: var(--ink-3); }

/* ─── VARIANT MATRIX TABLE ─── */
.var-matrix { width: 100%; border-collapse: collapse; border-radius: var(--r12); overflow: hidden; font-size: 12.5px; }
.var-matrix thead th { background: var(--ink-2); color: rgba(255,255,255,.7); padding: 10px 11px; font-weight: 700; text-align: center; font-size: 11.5px; }
.var-matrix thead th:first-child { text-align: left; background: rgba(13,17,23,.95); }
.var-matrix td { padding: 9px 11px; border-bottom: 1px solid var(--border); text-align: center; color: var(--ink-3); }
.var-matrix td:first-child { text-align: left; font-weight: 700; color: var(--ink-2); }
.var-matrix tr:nth-child(even) td { background: var(--bg); }
.vm-yes { color: var(--green) !important; font-weight: 800 !important; }
.vm-no  { color: var(--ink-5) !important; }

/* ─── PROS CONS ─── */
.pros-cons-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 480px) { .pros-cons-grid { grid-template-columns: 1fr 1fr; } }
.pros-box { background: #F0FDF4; border: 1.5px solid #BBF7D0; border-radius: var(--r12); padding: 16px; }
.cons-box { background: #FFF5F5; border: 1.5px solid #FECACA; border-radius: var(--r12); padding: 16px; }
.pc-title { font-size: 13px; font-weight: 800; margin-bottom: 12px; }
.pc-item { display: flex; align-items: flex-start; gap: 7px; padding: 5px 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.pc-item .icon { flex-shrink: 0; margin-top: 1px; }

/* ─── EXPERT SCORE ─── */
.expert-score-card { background: var(--green-ll); border: 1px solid rgba(26,107,42,.14); border-radius: var(--r16); padding: 20px; display: flex; align-items: center; gap: 20px; margin-top: 16px; }
.expert-number { font-family: var(--font-display); font-size: 52px; font-weight: 900; color: var(--green); line-height: 1; }
.score-out-of { font-size: 12px; color: var(--ink-4); margin-top: 2px; }
.score-bar-wrap { flex: 1; }
.score-bar-track { height: 7px; background: var(--bg-3); border-radius: var(--pill); overflow: hidden; margin-top: 8px; }
.score-bar-fill { height: 100%; background: linear-gradient(90deg, var(--green), var(--gold-text)); border-radius: var(--pill); transition: width .8s ease; }
.score-labels { display: flex; justify-content: space-between; font-size: 10px; color: var(--ink-5); margin-top: 4px; }

/* ─── PRICE SIDEBAR CARD ─── */
.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r20);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.price-card-from { font-size: 10px; font-weight: 700; color: var(--ink-4); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.price-card-amount { font-family: var(--font-display); font-size: 30px; font-weight: 900; color: var(--ink); line-height: 1; transition: all .25s ease; }
@media (min-width: 768px) { .price-card-amount { font-size: 34px; } }
.price-card-note { font-size: 11px; color: var(--ink-5); margin-bottom: 16px; }
.price-card-actions { display: flex; flex-direction: column; gap: 8px; }
.price-card-variant-list { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.price-card-variant-title { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-4); margin-bottom: 8px; }
.pcv-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 11px; border-radius: var(--r8);
  border: 1.5px solid var(--border);
  cursor: pointer; transition: all var(--ease); margin-bottom: 5px;
  background: var(--white);
}
.pcv-item:hover { border-color: var(--green); background: var(--green-ll); }
.pcv-item.active { border-color: var(--green); background: var(--green-ll); }
.pcv-name { font-size: 12.5px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.pcv-best { background: var(--gold); color: #fff; font-size: 8px; font-weight: 800; padding: 1px 5px; border-radius: 99px; }
.pcv-price { font-size: 13px; font-weight: 800; }
.pcv-item.active .pcv-name, .pcv-item.active .pcv-price { color: var(--green); }

/* ─── EMI CARD ─── */
.emi-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r20); padding: 18px; margin-top: 12px; }
.emi-card-title { font-size: 14px; font-weight: 800; color: var(--ink); margin-bottom: 16px; display: flex; align-items: center; gap: 7px; }
.emi-field { margin-bottom: 14px; }
.emi-field label { display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 700; color: var(--ink-4); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 7px; }
.emi-field label .val { font-size: 13px; font-weight: 800; color: var(--ink); text-transform: none; letter-spacing: 0; }
.tenure-buttons { display: flex; flex-wrap: wrap; gap: 5px; }
.tenure-btn { padding: 6px 11px; background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--r6); font-size: 12px; font-weight: 700; color: var(--ink-3); cursor: pointer; transition: all var(--ease); }
.tenure-btn.active { background: var(--green); color: #fff; border-color: var(--green); }
.emi-result { background: linear-gradient(135deg, var(--green-ll), #EDFAE5); border: 1px solid rgba(26,107,42,.15); border-radius: var(--r12); padding: 14px; margin-top: 12px; }
.emi-monthly-label { font-size: 10.5px; font-weight: 600; color: var(--ink-4); margin-bottom: 2px; }
.emi-monthly-amount { font-family: var(--font-display); font-size: 30px; font-weight: 900; color: var(--green); line-height: 1; }
.emi-monthly-period { font-size: 12px; font-weight: 600; color: var(--ink-4); font-family: var(--font-body); }
.emi-breakdown-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; }
.emi-bd-item { background: rgba(255,255,255,.65); border-radius: var(--r8); padding: 9px; }
.emi-bd-value { font-size: 13.5px; font-weight: 800; color: var(--ink); }
.emi-bd-label { font-size: 10px; color: var(--ink-4); margin-top: 1px; }
.emi-pbar-wrap { margin-top: 12px; }
.emi-pbar-track { height: 6px; background: var(--bg-3); border-radius: var(--pill); overflow: hidden; }
.emi-pbar-fill { height: 100%; background: var(--green); border-radius: var(--pill); transition: width .4s ease; }
.emi-pbar-labels { display: flex; justify-content: space-between; font-size: 10px; color: var(--ink-4); margin-top: 3px; }

/* ─────────────────────────────────────────────
   LEAD MODALS  (Book Test Drive & Request Info)
───────────────────────────────────────────── */
.av-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,14,20,.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity .25s ease;
}
.av-modal-overlay.show,
.av-modal-overlay.open {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.av-modal-box {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 25px 60px rgba(0,0,0,.3);
  overflow: hidden;
  position: relative;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.av-modal-head {
  padding: 20px 24px 14px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  position: relative;
}
.av-modal-title {
  font-size: 18px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 4px;
}
.av-modal-sub {
  font-size: 12.5px;
  color: #6b7280;
  margin: 0 0 8px;
}
.av-modal-badge {
  display: inline-block;
  align-self: flex-start;
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
}
.av-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: #f3f4f6;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 100;
}
.av-modal-close:hover { background: #e5e7eb; color: #111; }

.av-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

.av-form-group {
  margin-bottom: 14px;
}
.av-form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 5px;
}
.av-form-inp, .av-form-textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  font-size: 13.5px;
  color: #111827;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}
.av-form-inp:focus, .av-form-textarea:focus {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22,163,74,0.12);
}
.av-form-textarea {
  resize: vertical;
  min-height: 80px;
}

.av-time-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 4px;
}
.av-time-btn {
  padding: 8px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}
.av-time-btn:hover { border-color: #16a34a; color: #16a34a; }
.av-time-btn.selected { border-color: #16a34a; background: #f0fdf4; color: #16a34a; }

.av-modal-foot {
  padding: 14px 24px 20px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.btn-submit-modal {
  width: 100%;
  padding: 12px;
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s;
  text-align: center;
}
.btn-submit-modal:hover { background: #15803d; }

.av-modal-success {
  padding: 30px 24px;
  text-align: center;
  display: none;
}
.av-modal-success.show { display: block; }
.av-success-title { font-size: 19px; font-weight: 800; color: #111827; margin-bottom: 6px; }
.av-success-sub { font-size: 13px; color: #4b5563; line-height: 1.5; margin-bottom: 18px; }
  border: 1px solid rgba(22,163,74,.2);
  color: #16a34a;
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 11.5px;
  font-weight: 700;
}
.av-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--bg,#f5f5f5);
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--ink-3,#555);
  transition: background .18s, color .18s;
  z-index: 100;
}
.av-modal-close:hover { background: var(--bg-2,#eee); color: var(--ink,#111); }

#av-td-form-wrap, #av-ri-form-wrap {
  padding: 18px 22px;
  overflow-y: auto;
  flex: 1;
}
form#av-td-form, form#av-ri-form { display: flex; flex-direction: column; }

.av-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
@media (max-width: 420px) { .av-form-row { grid-template-columns: 1fr; } }
.av-form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.av-form-row .av-form-group { margin-bottom: 0; }
.av-form-label {
  font-size: 10.5px; font-weight: 700;
  color: var(--ink-4,#888);
  text-transform: uppercase; letter-spacing: .5px;
}
.av-form-inp, .av-form-input, .av-form-select, .av-form-textarea {
  padding: 10px 13px;
  border: 1.5px solid var(--border,#e0e0e0);
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--ink,#111);
  background: #fff;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  transition: border-color .18s, box-shadow .18s;
}
.av-form-inp:focus, .av-form-input:focus, .av-form-select:focus, .av-form-textarea:focus {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22,163,74,.1);
}
.av-form-ta, .av-form-textarea { resize: vertical; min-height: 80px; line-height: 1.6; }

.av-time-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 7px;
  margin-top: 4px;
}
@media (max-width: 380px) { .av-time-grid { grid-template-columns: repeat(2,1fr); } }
.av-time-btn, .av-time-slot {
  padding: 8px 6px;
  border: 1.5px solid var(--border,#e0e0e0);
  border-radius: 8px;
  font-size: 12px; font-weight: 700;
  color: var(--ink-3,#555);
  cursor: pointer;
  background: #fff;
  font-family: inherit;
  text-align: center;
  transition: all .18s;
}
.av-time-btn:hover, .av-time-slot:hover { border-color: #d97706; color: #92400e; background: #fffbeb; }
.av-time-btn.active, .av-time-slot.selected { border-color: #d97706; background: #d97706; color: #fff; }

.av-modal-foot {
  padding: 14px 22px 18px;
  border-top: 1px solid var(--border,#e8e8e8);
  flex-shrink: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.av-btn-submit {
  width: 100%; padding: 13px;
  background: linear-gradient(135deg,#16a34a,#15803d);
  color: #fff; border: none; border-radius: 10px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-family: inherit;
  transition: opacity .18s, transform .18s;
  box-shadow: 0 4px 14px rgba(22,163,74,.3);
}
.av-btn-submit:hover { opacity: .92; transform: translateY(-1px); }
.av-btn-submit:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.av-btn-cancel {
  width: 100%; padding: 11px;
  background: transparent;
  color: var(--ink-4,#888);
  border: 1.5px solid var(--border,#e0e0e0);
  border-radius: 10px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: inherit;
  transition: all .18s;
}
.av-btn-cancel:hover { background: var(--bg,#f5f5f5); color: var(--ink,#111); }

.av-modal-success {
  display: none; flex-direction: column;
  align-items: center; text-align: center;
  padding: 36px 24px; gap: 10px;
}
.av-success-icon { font-size: 52px; line-height: 1; }
.av-modal-success h3 { font-size: 20px; font-weight: 800; color: var(--ink,#111); margin: 4px 0; }
.av-modal-success p  { font-size: 13.5px; color: var(--ink-3,#555); line-height: 1.65; margin: 0 0 10px; }

.btn-phone-cta { display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
a.dp-cta-primary[href^='tel'] { text-decoration: none !important; }

/* ── MULTI-STEP CAR WIZARD MODAL ── */
.av-wizard-modal {
  max-width: 540px !important;
  width: 92% !important;
  border-radius: 24px !important;
  margin: auto !important;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.45) !important;
  background: #ffffff !important;
  position: relative !important;
}
.wizard-progress-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px 8px;
  background: #f8faf9;
  border-bottom: 1px solid #e8e8e8;
  position: relative;
}
.wizard-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
  z-index: 2;
  cursor: pointer;
  flex: 1;
}
.wizard-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.wizard-step-item.active .wizard-step-dot {
  background: #16a34a;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(22,163,74,0.2);
}
.wizard-step-item.completed .wizard-step-dot {
  background: #15803d;
  color: #fff;
}
.wizard-step-lbl {
  font-size: 10px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.wizard-step-item.active .wizard-step-lbl { color: #16a34a; }
.wizard-track-line {
  position: absolute;
  top: 28px;
  left: 15%;
  right: 15%;
  height: 3px;
  background: #e5e7eb;
  z-index: 1;
}
.wizard-track-fill {
  height: 100%;
  background: #16a34a;
  width: 0%;
  transition: width 0.3s ease;
}

/* Step Content Panes */
.wizard-step-pane { display: none; }
.wizard-step-pane.active { display: block; animation: wizardFadeIn 0.25s ease; }
@keyframes wizardFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Option Cards */
.wizard-options-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.wizard-opt-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
}
.wizard-opt-card:hover {
  border-color: #16a34a;
  background: #f0fdf4;
}
.wizard-opt-card.selected {
  border-color: #16a34a;
  background: #f0fdf4;
  box-shadow: 0 4px 14px rgba(22,163,74,0.15);
}
.wizard-opt-icon {
  font-size: 24px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.wizard-opt-card.selected .wizard-opt-icon {
  background: #16a34a;
  color: #fff;
}
.wizard-opt-info { flex: 1; }
.wizard-opt-title { font-size: 14px; font-weight: 800; color: #111; margin-bottom: 2px; }
.wizard-opt-desc { font-size: 11.5px; color: #666; line-height: 1.35; }
.wizard-radio-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wizard-opt-card.selected .wizard-radio-check {
  border-color: #16a34a;
  background: #16a34a;
}
.wizard-opt-card.selected .wizard-radio-check::after {
  content: '✓';
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

/* Nav Footer */
.wizard-nav-foot {
  display: flex;
  gap: 10px;
  padding: 14px 22px 18px;
  border-top: 1px solid #e8e8e8;
  background: #fff;
}
.wizard-btn-prev {
  padding: 12px 18px;
  border: 1.5px solid #d1d5db;
  background: #fff;
  color: #4b5563;
  font-weight: 700;
  font-size: 13.5px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.wizard-btn-prev:hover { background: #f3f4f6; color: #111; }
.wizard-btn-next {
  flex: 1;
  padding: 12px 20px;
  background: linear-gradient(135deg,#16a34a,#15803d);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 14px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(22,163,74,0.3);
  transition: all 0.2s;
}
.wizard-btn-next:hover { opacity: 0.92; transform: translateY(-1px); }

/* Confirmation Card */
.wizard-summary-card {
  background: #f8faf9;
  border: 1px solid #dcfce7;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  text-align: left;
}
.wsc-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 12.5px;
}
.wsc-row:last-child { border-bottom: none; }
.wsc-label { color: #64748b; font-weight: 600; }
.wsc-val { color: #0f172a; font-weight: 800; }

/* ─── NEW TAB LAYOUT ─── */
.dp-tabs-nav {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.dp-tabs-nav::-webkit-scrollbar { display: none; }
.dp-tab-btn {
  background: none;
  border: none;
  padding: 14px 0;
  font-family: var(--font-b);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink4);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
}
.dp-tab-btn:hover { color: var(--ink); }
.dp-tab-btn.active { color: #1a73e8; }
.dp-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #1a73e8;
}
.dp-tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}
.dp-tab-pane.active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
.dp-spec-grid {
  display: flex;
  flex-direction: column;
}
.dp-spec-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.dp-spec-row:last-child {
  border-bottom: none;
}
.dp-spec-label {
  font-size: 15px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dp-spec-val {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}

/* ─── VARIANT-SWITCH SKELETON ───
   Applied briefly to the Overview / Features / Specifications containers while
   their contents are swapped for the newly selected variant. */
.dp-var-skel {
  position: relative;
  pointer-events: none;
  min-height: 60px;
}
.dp-var-skel > * { opacity: 0 !important; }
.dp-var-skel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(100deg, #eef1f4 30%, #f8fafc 50%, #eef1f4 70%);
  background-size: 250% 100%;
  animation: dpSkelShimmer 1.1s ease-in-out infinite;
}
@keyframes dpSkelShimmer {
  0% { background-position: 150% 0; }
  100% { background-position: -150% 0; }
}
.dp-var-reveal { animation: dpVarReveal 0.42s ease both; }
@keyframes dpVarReveal {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}
/* .dp-flash itself is defined alongside the variant-context banner in index.html */
@media (prefers-reduced-motion: reduce) {
  .dp-var-skel::after, .dp-var-reveal { animation: none; }
  .dp-var-skel > * { opacity: 1 !important; }
  .dp-var-skel::after { display: none; }
}

/* ─── SIDEBAR COLLAPSIBLE SECTIONS ─── */
details summary::-webkit-details-marker {
  display: none;
}
details[open] .summary-arrow {
  transform: rotate(180deg);
}



.dp-spec-grid-collapsed .dp-spec-hidable { display: none !important; }
.dp-spec-grid-collapsed .dp-spec-row:nth-child(6) { border-bottom: none !important; }


/* ─── VIEW MORE (used car specs) ─── */
.dp-spec-extra.dp-spec-hidden {
  display: none !important;
}

/* ─── NEW CAR OVERVIEW GRID ─── */
.co-section-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 2px solid #ef4444;
  display: inline-block;
}
.car-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 32px;
}
@media (max-width: 600px) {
  .car-overview-grid { grid-template-columns: 1fr; }
}
.co-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
}
.co-icon {
  color: #ef4444;
  width: 20px;
  height: 20px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.co-icon svg {
  width: 100%;
  height: 100%;
}
.co-label {
  font-size: 13px;
  color: #111827;
  font-weight: 600;
}
.co-val {
  font-size: 13px;
  color: #6b7280;
  margin-left: auto;
  font-weight: 500;
  text-align: right;
}

/* ─── HEADER BADGES ─── */
.dp-header-badges {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.dp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f9fafb;
  color: #374151;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #e5e7eb;
}
.dp-badge .badge-icon {
  color: #ef4444;
  display: flex;
  align-items: center;
}
.dp-badge .badge-icon svg {
  width: 14px;
  height: 14px;
}

/* Cute DOTM-Style Form Redesign Elements */
@keyframes floatSlow { 0%,100%{ transform:translateY(0) rotate(0deg);} 50%{ transform:translateY(-8px) rotate(3deg);} }
@keyframes floatSlow2 { 0%,100%{ transform:translateY(0) scale(1);} 50%{ transform:translateY(6px) scale(1.08);} }
/* starts at .4 (not 0) so it grows from something, not from nowhere */
@keyframes popIn { 0%{ transform:scale(.4); opacity:0;} 60%{ transform:scale(1.12); opacity:1;} 100%{ transform:scale(1);} }
@keyframes drawCheck { to{ stroke-dashoffset:0; } }
@keyframes gentlePulse { 0%,100%{ box-shadow:0 0 0 0 rgba(26,107,42,.18);} 50%{ box-shadow:0 0 0 8px rgba(26,107,42,0);} }
@keyframes confettiFall { 0%{ transform:translateY(-8px) rotate(0deg); opacity:0;} 15%{ opacity:1;} 100%{ transform:translateY(70px) rotate(220deg); opacity:0;} }

.cute-avatar {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--g3), var(--g4));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 8px 20px rgba(26,107,42,.25);
  animation: gentlePulse 3.2s ease-in-out infinite;
  margin: 0 auto 12px;
}
.cute-avatar::before, .cute-avatar::after { content:''; position:absolute; border-radius:50%; }
.cute-avatar::before { width:7px; height:7px; top:-5px; left:-6px; background:#B8720F; animation:floatSlow 3.6s ease-in-out infinite; }
.cute-avatar::after { width:11px; height:11px; top:12px; left:-14px; background:#2563EB; opacity:.55; animation:floatSlow2 4.2s ease-in-out infinite .3s; }
.cute-avatar svg { width:24px; height:24px; color:#fff; }

.av-modal-head.cute-head {
  padding: 24px 24px 16px;
  border-bottom: 1.5px dashed var(--border);
  text-align: center;
  background: radial-gradient(120px 100px at 50% 0%, rgba(46,143,69,.08), transparent 70%), #ffffff;
}

.av-modal-head.cute-head.brochure-theme {
  background: linear-gradient(135deg, #092c13 0%, #1a6b2a 100%);
  text-align: center;
  border-bottom: none;
}
.av-modal-head.cute-head.brochure-theme .av-modal-title {
  color: #fff;
}
.av-modal-head.cute-head.brochure-theme .av-modal-sub {
  color: rgba(255,255,255,.75);
}

.cute-input-group {
  margin-bottom: 14px;
}
.cute-label {
  font-family: var(--font-b);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink3);
  margin-bottom: 6px;
  display: block;
}
.cute-label span { color: #d63031; }

.cute-input-icon {
  position: relative;
}
.cute-input-icon svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--ink5);
  pointer-events: none;
}
.cute-input-icon .cute-inp {
  padding-left: 36px;
}

.cute-inp {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-b);
  font-size: 13.5px;
  color: var(--ink);
  background: var(--white);
  transition: border-color var(--ease), box-shadow var(--ease);
  outline: none;
}
.cute-inp:focus {
  border-color: var(--g3);
  box-shadow: 0 0 0 3px rgba(26,107,42,.09);
}

.cute-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7685' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.cute-time-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.cute-time-btn {
  padding: 8px 4px;
  font-size: 11.5px;
  font-weight: 700;
  border: 1.5px solid var(--border);
  background: var(--white);
  border-radius: 8px;
  color: var(--ink3);
  cursor: pointer;
  transition: all var(--ease);
}
.cute-time-btn:hover {
  border-color: var(--g3);
  background: var(--g-ll);
}
.cute-time-btn.selected {
  border-color: var(--g3);
  background: var(--g-ll);
  color: var(--g3);
  box-shadow: 0 0 0 2px rgba(26,107,42,0.1);
}

.cute-submit {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--g3), var(--g4));
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--font-b);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(26,107,42,.2);
  transition: all var(--ease);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.cute-submit::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 30px; height: 100%;
  background: rgba(255,255,255,0.13);
  transform: skewX(-20deg);
  animation: shine 4s ease-in-out infinite;
}
.cute-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(26,107,42,.3);
}

.cute-success {
  text-align: center;
  padding: 24px 16px;
}
.success-icon-pop {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--g-ll);
  border: 2px solid var(--g3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  animation: popIn 0.45s cubic-bezier(.34,1.56,.64,1);
  color: var(--g3);
}
.success-icon-pop svg {
  width: 28px;
  height: 28px;
}

/* Pill-Style Form Redesign (Book Test Drive & Request Info) */
.av-modal-head.simple-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.simple-head-back {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: none;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
  transition: background var(--ease);
}
.simple-head-back:hover { background: var(--bg); }
.simple-head-title {
  flex: 1;
  text-align: center;
  font-family: var(--font-b);
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}
.simple-head-badge {
  flex-shrink: 0;
  max-width: 118px;
  font-family: var(--font-b);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink3);
  background: var(--bg);
  border-radius: var(--pill);
  padding: 6px 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pill-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.pill-row .pill-group { margin-bottom: 0; }

.pill-group {
  margin-bottom: 16px;
}
.pill-caption {
  font-family: var(--font-b);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink4);
  margin-bottom: 8px;
}

.pill-inp {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid var(--border);
  border-radius: 26px;
  font-family: var(--font-b);
  font-size: 14px;
  color: var(--ink);
  background: var(--white);
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.pill-inp::placeholder { color: var(--ink4); opacity: 1; }
.pill-inp:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(17,22,18,.06);
}

.pill-select {
  appearance: none;
  color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236d7d72' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 40px;
}
.pill-select:invalid { color: var(--ink4); }

.pill-textarea {
  border-radius: 20px;
  resize: vertical;
  min-height: 90px;
  line-height: 1.55;
  padding-top: 15px;
}

.pill-time-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.pill-time-btn {
  padding: 10px 4px;
  font-family: var(--font-b);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--pill);
  color: var(--ink3);
  cursor: pointer;
  transition: all var(--ease);
}
.pill-time-btn:hover { border-color: var(--ink); }
.pill-time-btn.selected {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.pill-submit {
  width: 100%;
  padding: 16px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 26px;
  font-family: var(--font-b);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: opacity var(--ease), transform var(--ease);
}
.pill-submit:hover { opacity: .9; transform: translateY(-1px); }
.pill-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; }

