/* Prestige Car Wash · Tesla tint & PPF configurator
   Everything is scoped to .tcfg and tc- class names so it can sit inside the live /tesla page
   without touching the rest of the site. Fonts: Inter + Saira Condensed (already self-hosted on the live site). */

.tcfg {
  --tc-ink: #14171C;
  --tc-ink-2: #4F5663;
  --tc-muted: #6E7684;
  --tc-faint: #8B93A0;
  --tc-line: #E6E0D3;
  --tc-line-2: #F0EBE1;
  --tc-bg: #F2EEE6;
  --tc-panel: #FBF9F4;
  --tc-gold: #E7B24C;
  --tc-gold-2: #C8902E;
  --tc-gold-ink: #80601B;
  --tc-sticky-top: 0px; /* set to the live site's sticky header height */
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 544px);
  max-width: 1440px;
  margin: 0 auto;
  background: var(--tc-bg);
  color: var(--tc-ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-align: left;
}
.tcfg *, .tcfg *::before, .tcfg *::after { box-sizing: border-box; }
.tcfg [hidden] { display: none !important; }
:where(.tcfg) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: left; }
:where(.tcfg) p, :where(.tcfg) h1, :where(.tcfg) h2 { margin: 0; }
.tcfg a { color: var(--tc-gold-ink); }
.tcfg a:hover { color: #5E4613; }
.tcfg button:focus-visible, .tcfg input:focus-visible, .tcfg select:focus-visible { outline: 2px solid var(--tc-gold-2); outline-offset: 2px; }

.tc-disp { font-family: 'Saira Condensed', 'Arial Narrow', sans-serif; font-weight: 800; text-transform: uppercase; line-height: .95; letter-spacing: -.005em; }
.tc-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: #8F6A1E; }
.tc-cap { font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #9AA2AE; }

/* ---------------- stage ---------------- */
.tc-stage { position: sticky; top: var(--tc-sticky-top); align-self: start; padding: 26px 38px 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tc-stage-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.tc-stage-titles { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tc-title { font-size: 48px; }
.tc-sub { font-size: 15px; color: var(--tc-ink-2); }
.tc-pill { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 999px; background: #fff; border: 1px solid var(--tc-line); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--tc-ink-2); }
.tc-pdot { width: 7px; height: 7px; border-radius: 50%; background: #1F9D6B; box-shadow: 0 0 0 3px rgba(31,157,107,.18); }
.tc-card { background: #fff; border-radius: 18px; box-shadow: 0 22px 60px -30px rgba(20,23,28,.35), 0 1px 0 rgba(20,23,28,.04); overflow: hidden; }
.tc-photo { position: relative; width: 100%; aspect-ratio: 960 / 440; overflow: hidden; }
.tc-photo-in { position: absolute; inset: 0; }
.tc-photo img, .tc-photo svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.tc-photo img { transition: opacity .45s ease; user-select: none; -webkit-user-drag: none; }
.tc-photo img.tc-satin { transition: opacity .8s ease; }
.tc-photo .tc-cap { position: absolute; left: 22px; top: 18px; }
.tc-ftag { position: absolute; right: 18px; top: 12px; display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.92); border: 1px solid var(--tc-line); font-size: 12px; font-weight: 600; color: var(--tc-ink); box-shadow: 0 6px 16px -10px rgba(20,23,28,.4); }
.tc-ftag i { width: 9px; height: 9px; border-radius: 3px; background: rgba(231,178,76,.55); border: 1.5px solid var(--tc-gold-2); }
.tc-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.tc-empty span { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: var(--tc-ink); color: #fff; font-size: 14px; font-weight: 600; }
.tc-glass { transition: opacity .7s ease; }
.tc-ppf { transition: opacity .6s ease; }
.tc-zline { fill: none; stroke: var(--tc-gold); stroke-width: 2.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity .35s ease; }
.tc-zline.show { opacity: 1; }
.tc-pline { fill: none; stroke: var(--tc-gold); stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity .45s ease; }
.tc-pline.show { opacity: .95; }

.tc-legend { padding: 12px 22px 16px; border-top: 1px solid var(--tc-line-2); min-height: 142px; }
.tc-legend-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 8px 8px; min-height: 32px; }
.tc-legend-hint { font-size: 11.5px; color: var(--tc-faint); }
.tc-lgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; row-gap: 2px; }
.tc-lrow { display: flex; align-items: center; gap: 10px; min-height: 30px; padding: 4px 8px; border-radius: 8px; font-size: 13px; color: var(--tc-muted); cursor: default; }
.tc-lrow:hover { background: #F7F3EA; }
.tc-lrow.on { color: var(--tc-ink); }
.tc-lsw { flex: none; width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid #AEB9C4; transition: background .6s ease, border-color .3s ease; }
.tc-lname { flex: 1; min-width: 0; }
.tc-lcount { color: var(--tc-faint); font-size: 12px; margin-left: 4px; }
.tc-lnote { color: #9AA2AE; font-size: 11.5px; font-style: italic; margin-left: 6px; }
.tc-lstat { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.tc-warn-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #D97706; margin-left: 6px; vertical-align: 1px; }
.tc-legend-empty { margin: 6px 8px 0; font-size: 13px; color: var(--tc-muted); }
.tc-vtabs { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: #F4F1EA; border: 1px solid var(--tc-line); }
.tc-vtab { height: 26px; padding: 0 12px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tc-muted); transition: background .2s, color .2s; }
.tc-vtab.sel { background: var(--tc-ink); color: #fff; }
.tc-chips-row { display: none; flex-wrap: wrap; align-items: center; gap: 6px; padding: 2px 16px 12px; min-height: 40px; }
.tc-gchip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px 0 6px; border-radius: 999px; background: #F7F3EA; border: 1px solid var(--tc-line); font-size: 11.5px; font-weight: 600; color: var(--tc-ink); white-space: nowrap; }
.tc-gsw { width: 13px; height: 13px; border-radius: 4px; border: 1.5px solid #AEB9C4; }
.tc-chips-empty { font-size: 12px; color: var(--tc-muted); }
.tc-disclaim { padding: 10px 22px 12px; background: var(--tc-panel); border-top: 1px solid var(--tc-line-2); font-size: 11.5px; color: var(--tc-muted); }
.tc-trust-row { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 2px 4px; }
.tc-trust { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--tc-ink-2); font-weight: 500; }
.tc-trust svg { flex: none; }

/* ---------------- build panel ---------------- */
.tc-panel { display: flex; flex-direction: column; background: var(--tc-panel); border-left: 1px solid #E3DCCB; min-width: 0; }
.tc-steps { flex-grow: 1; padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 12px; }
.tc-intro { display: flex; flex-direction: column; gap: 8px; margin-bottom: 6px; }
.tc-intro h2 { font-size: 34px; }
.tc-intro p { font-size: 13.5px; color: var(--tc-ink-2); }
.tc-step { background: #fff; border: 1px solid var(--tc-line); border-radius: 14px; transition: border-color .2s ease, box-shadow .2s ease; }
.tc-step.open { border-color: #D6BC84; box-shadow: 0 14px 34px -22px rgba(20,23,28,.45); }
.tc-step.locked { opacity: .5; }
.tc-shead { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 18px; min-height: 58px; }
.tc-step.locked .tc-shead { cursor: default; }
.tc-snum { flex: none; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; background: #EFEAE0; color: var(--tc-muted); }
.tc-snum.cur { background: var(--tc-ink); color: #fff; }
.tc-snum.done { background: var(--tc-gold); color: #1A1206; }
.tc-stitle { font-family: 'Saira Condensed', 'Arial Narrow', sans-serif; font-weight: 800; font-size: 21px; text-transform: uppercase; letter-spacing: .01em; white-space: nowrap; }
.tc-ssum { flex: 1; min-width: 0; text-align: right; font-size: 13px; color: var(--tc-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-sedit { flex: none; font-size: 12.5px; font-weight: 700; color: var(--tc-gold-ink); text-decoration: underline; text-underline-offset: 3px; }
.tc-sbody { padding: 0 18px 18px; }
.tc-lbl { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--tc-muted); margin: 16px 0 8px; }
.tc-lbl.first { margin-top: 2px; }
.tc-lbl span { letter-spacing: 0; text-transform: none; font-weight: 500; font-size: 12px; color: var(--tc-faint); }
.tc-hint { font-size: 12.5px; color: var(--tc-muted); margin: 6px 2px 0; }
.tc-mgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.tc-mcard { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px 10px; border: 1.5px solid var(--tc-line); border-radius: 12px; background: #fff; transition: border-color .2s, box-shadow .2s, transform .15s; }
.tc-mcard:hover { border-color: #D6BC84; transform: translateY(-1px); }
.tc-mcard.sel { border-color: var(--tc-gold-2); box-shadow: 0 0 0 3px rgba(231,178,76,.28); }
.tc-mcard img { width: 100%; height: 40px; object-fit: cover; object-position: 50% 52%; }
.tc-mname { font-size: 12.5px; font-weight: 700; text-align: center; }
.tc-scard { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 1.5px solid var(--tc-line); border-radius: 12px; background: #fff; margin-bottom: 8px; transition: border-color .2s, box-shadow .2s; }
.tc-scard:hover, .tc-ocard:hover, .tc-atog:hover, .tc-fcard:hover, .tc-chip:hover { border-color: #D6BC84; }
.tc-scard.sel, .tc-ocard.sel, .tc-atog.sel, .tc-fcard.sel { border-color: var(--tc-gold-2); box-shadow: 0 0 0 3px rgba(231,178,76,.22); background: #FFFCF5; }
.tc-cbox { flex: none; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid #B9B2A3; display: flex; align-items: center; justify-content: center; background: #fff; }
.tc-cbox svg { opacity: 0; transition: opacity .15s; }
.sel > .tc-cbox { background: var(--tc-ink); border-color: var(--tc-ink); }
.sel > .tc-cbox svg { opacity: 1; }
.tc-scol { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tc-sname { font-size: 15px; font-weight: 700; }
.tc-ssub { font-size: 12.5px; color: var(--tc-ink-2); }
.tc-sfrom { flex: none; font-size: 12.5px; font-weight: 600; color: var(--tc-gold-ink); text-align: right; }
.tc-ocard { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 13px 14px; border: 1.5px solid var(--tc-line); border-radius: 12px; background: #fff; margin-bottom: 8px; transition: border-color .2s, box-shadow .2s; }
.tc-radio { flex: none; margin-top: 2px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #B9B2A3; display: flex; align-items: center; justify-content: center; }
.tc-radio i { width: 10px; height: 10px; border-radius: 50%; background: var(--tc-ink); opacity: 0; transition: opacity .15s; }
.tc-ocard.sel .tc-radio { border-color: var(--tc-ink); }
.tc-ocard.sel .tc-radio i { opacity: 1; }
.tc-oname { font-size: 14.5px; font-weight: 700; }
.tc-osub { font-size: 12.5px; color: var(--tc-ink-2); }
.tc-oprice { flex: none; font-size: 15px; font-weight: 700; margin-top: 1px; }
.tc-agrid, .tc-fgrid, .tc-pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tc-atog { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1.5px solid var(--tc-line); border-radius: 12px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.tc-aname { font-size: 13.5px; font-weight: 700; }
.tc-aprice { flex: none; font-size: 13px; font-weight: 700; }
.tc-arow { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; }
.tc-fcard { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 14px 14px 12px; border: 1.5px solid var(--tc-line); border-radius: 12px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.tc-fbadge { align-self: flex-start; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #6B4E12; background: #F6E7C4; border-radius: 4px; padding: 2px 6px; margin-bottom: 4px; }
.tc-fname { font-size: 15px; font-weight: 700; }
.tc-fspec { font-size: 12px; color: var(--tc-ink-2); }
.tc-fprice { margin-top: 6px; font-size: 16px; font-weight: 700; }
.tc-fdelta { font-size: 11.5px; color: var(--tc-gold-ink); font-weight: 600; }
.tc-srow { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.tc-srow-l { flex: none; width: 92px; font-size: 12.5px; font-weight: 600; color: var(--tc-ink-2); }
.tc-chips { flex: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.tc-chip { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 44px; border: 1.5px solid var(--tc-line); border-radius: 10px; background: #fff; font-size: 13.5px; font-weight: 700; transition: border-color .2s, background .2s; }
.tc-chip small { font-size: 9.5px; font-weight: 600; color: var(--tc-faint); letter-spacing: .02em; margin-top: 1px; }
.tc-chip.sel { border-color: var(--tc-ink); background: var(--tc-ink); color: #fff; }
.tc-chip.sel small { color: var(--tc-gold); }
.tc-chip.wide { height: auto; padding: 10px 12px; align-items: flex-start; text-align: left; }
.tc-chip.wide b { font-size: 14px; font-weight: 700; }
.tc-chip.wide small { font-size: 11.5px; margin-top: 2px; }
.tc-legal { display: flex; gap: 9px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.45; }
.tc-legal.ok { background: #EEF6F1; color: #1D4F3B; }
.tc-legal.warn { background: #FDF3E3; color: #6B4510; }
.tc-legal svg { flex: none; margin-top: 1px; }
.tc-lines { border: 1px solid #EAE4D8; border-radius: 12px; overflow: hidden; }
.tc-line { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--tc-line-2); font-size: 13.5px; }
.tc-line small { display: block; color: var(--tc-muted); font-size: 12px; font-weight: 500; margin-top: 1px; }
.tc-tot { display: flex; justify-content: space-between; padding: 7px 14px; font-size: 13px; color: var(--tc-ink-2); }
.tc-tot.first { padding-top: 10px; }
.tc-tot.big { padding: 10px 14px 12px; font-size: 15px; font-weight: 700; color: var(--tc-ink); }
.tc-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.tc-fld { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.tc-fld label { font-size: 12px; font-weight: 600; color: var(--tc-ink-2); }
.tc-fld label span { font-weight: 500; color: var(--tc-faint); }
.tc-fld input, .tc-fld select { font: inherit; font-size: 14px; color: var(--tc-ink); height: 42px; padding: 0 12px; border: 1.5px solid #E1DACB; border-radius: 9px; background: #fff; outline: none; width: 100%; }
.tc-fld input:focus, .tc-fld select:focus { border-color: var(--tc-gold-2); box-shadow: 0 0 0 3px rgba(231,178,76,.22); }
.tc-fld input[readonly] { background: #F7F4EE; color: var(--tc-ink-2); }
.tc-consent { display: flex; gap: 9px; align-items: flex-start; margin-top: 12px; font-size: 11px; line-height: 1.45; color: var(--tc-muted); }
.tc-consent input { margin-top: 2px; flex: none; }
.tc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.tc-msg { margin-top: 12px; padding: 12px 14px; border-radius: 10px; font-size: 13px; line-height: 1.5; }
.tc-msg.ok { background: #EEF6F1; color: #1D4F3B; }
.tc-msg.err { background: #FDECEC; color: #8A1C1C; }

.tc-bar { position: sticky; bottom: 0; z-index: 2; padding: 16px 28px 20px; background: #fff; border-top: 1px solid #E3DCCB; box-shadow: 0 -14px 30px -24px rgba(20,23,28,.4); display: flex; flex-direction: column; gap: 12px; }
.tc-bar-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.tc-bar-sum { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tc-bar-sum .tc-cap { color: #8F6A1E; }
.tc-bar-sum b { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.tc-bar-price { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.tc-price { font-size: 40px; }
.tc-price-note { font-size: 11.5px; color: var(--tc-muted); }
.tc-cta { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 50px; border-radius: 4px; background: linear-gradient(180deg, #E7B24C, #D9A03A); color: #1A1206; font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 12px 26px -14px rgba(200,144,46,.9); transition: transform .15s, box-shadow .2s, opacity .2s; }
.tc-cta:hover { transform: translateY(-1px); }
.tc-cta[disabled] { background: #E9E4D9; color: var(--tc-faint); box-shadow: none; cursor: not-allowed; transform: none; }
.tcfg button.tc-cta { text-align: center; }

/* ---------------- tablet / phone ---------------- */
@media (max-width: 1023px) {
  .tcfg { grid-template-columns: minmax(0, 1fr); }
  .tc-stage { top: var(--tc-sticky-top); z-index: 3; padding: 0; gap: 0; background: #fff; border-bottom: 1px solid #E3DCCB; box-shadow: 0 12px 24px -22px rgba(20,23,28,.55); }
  .tc-stage-head { align-items: center; padding: 12px 16px 0; }
  .tc-stage-titles { gap: 0; }
  .tc-eyebrow, .tc-sub, .tc-trust-row, .tc-legend, .tc-disclaim, .tc-photo .tc-cap { display: none; }
  .tc-title { font-size: 23px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tc-pill { height: 24px; padding: 0 9px; font-size: 10px; }
  .tc-card { border-radius: 0; box-shadow: none; }
  .tc-photo { aspect-ratio: 390 / 176; }
  .tc-photo-in { left: -4.6%; right: -4.6%; top: -8%; bottom: -3%; }
  .tc-ftag { right: 12px; top: 6px; height: 22px; padding: 0 9px; font-size: 10.5px; }
  .tc-empty span { font-size: 13px; padding: 10px 16px; }
  .tc-chips-row { display: flex; }
  .tc-panel { border-left: 0; }
  .tc-steps { padding: 14px 12px 18px; gap: 10px; }
  .tc-intro { display: none; }
  .tc-shead { gap: 10px; padding: 12px 14px; min-height: 52px; }
  .tc-stitle { font-size: 19px; }
  .tc-ssum { font-size: 12px; }
  .tc-sbody { padding: 0 14px 14px; }
  .tc-mgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tc-mcard img { height: 42px; }
  .tc-srow { flex-direction: column; align-items: stretch; gap: 6px; margin-top: 10px; }
  .tc-srow-l { width: auto; }
  .tc-chips { gap: 5px; }
  .tc-arow { flex-direction: column; align-items: flex-start; gap: 2px; }
  .tc-aprice { font-size: 12.5px; }
  .tc-chip { height: 46px; font-size: 13px; }
  .tc-chip small { font-size: 8.5px; }
  .tc-form-grid { grid-template-columns: minmax(0, 1fr); }
  .tc-fld input, .tc-fld select { font-size: 16px; height: 46px; }
  .tc-bar { padding: 12px 16px 14px; gap: 10px; }
  .tc-price { font-size: 34px; }
  .tc-bar-sum b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tc-cta { height: 48px; font-size: 13.5px; }
}
@media (max-width: 420px) {
  .tc-agrid, .tc-fgrid, .tc-pgrid { gap: 6px; }
  .tc-atog { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .tcfg *, .tcfg *::before, .tcfg *::after { transition: none !important; }
}
