/* ==========================================================================
   GVI Tech Connect: video quotes on the Leaf and Tesla sister sites
   Self-contained (own colours/fonts under .tcx) so it works on both sites.
   Same look as the gviservice.kiwi homepage promo and /video-quote page.
   ========================================================================== */
.tcx {
  --red: #e01b2e; --red-dark: #b31423; --ink: #16181c; --yellow: #ffc60b;
  --bg: #f7f5f2; --card-alt: #faf9f7; --field: #fbfaf9; --border: #e6e2dd; --border-strong: #d9d4ce;
  --muted: #6b7076; --muted-strong: #4a4f55;
  --sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Bricolage Grotesque', var(--sans);
  --ease: cubic-bezier(.22, 1, .36, 1);
  font-family: var(--sans); color: var(--ink);
}
.tcx h1, .tcx h2, .tcx h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.025em; line-height: 1.04; margin: 0 0 .5em; text-wrap: balance; }
.tcx p { text-wrap: pretty; }
.tcx-sec { padding: clamp(44px, 7vw, 80px) 0; }
.tcx-wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.tcx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 16px;
  font-family: var(--sans); border: 1px solid transparent; cursor: pointer; min-height: 44px; text-decoration: none; transition: background .2s ease, border-color .2s ease, color .2s ease; }
.tcx-btn-primary { background: var(--red); color: #fff; }
.tcx-btn-primary:hover { background: var(--red-dark); color: #fff; }
.tcx-btn-primary:disabled { opacity: .6; cursor: wait; }
.tcx-btn-outline { background: #fff; border-color: var(--border-strong); color: var(--ink); }
.tcx-btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.tcx-btn-ghost { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.tcx-btn-ghost:hover { border-color: #fff; color: #fff; }

/* ---- Homepage promo ---- */
.tc-promo { background: var(--ink); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.tc-promo::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 140%; z-index: -1;
  background: radial-gradient(closest-side, rgba(224,27,46,.28), rgba(224,27,46,0) 70%); }
.tc-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.tc-brand { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); padding: 7px 14px 7px 12px; border-radius: 999px; }
.tc-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(224,27,46,.25); }
.tc-promo h2 { color: #fff; font-size: clamp(30px, 5.4vw, 48px); margin: 18px 0 14px; }
.tc-promo .tc-lead { color: rgba(255,255,255,.8); font-size: 18px; line-height: 1.6; margin: 0 0 26px; max-width: 54ch; }
.tc-steps { list-style: none; counter-reset: tc; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.tc-steps li { counter-increment: tc; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; align-items: start; }
.tc-steps li::before { content: counter(tc); grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff;
  font-family: var(--display); font-weight: 800; font-size: 18px; display: grid; place-items: center; }
.tc-steps b { font-family: var(--display); font-weight: 800; font-size: 18px; }
.tc-steps span { font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.72); }
.tc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.tc-fine { font-size: 13px; color: rgba(255,255,255,.6); max-width: 34ch; line-height: 1.45; }

.tc-visual { position: relative; display: grid; place-items: center; min-height: 560px; }
.tc-phone { width: 272px; aspect-ratio: 9 / 19; border-radius: 44px; background: #0b0c0e; padding: 11px; position: relative;
  box-shadow: 0 0 0 2px #2c3036, 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 9px rgba(255,255,255,.03); transform: rotate(-5deg); }
.tc-phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 84px; height: 24px; margin-left: -42px; border-radius: 999px; background: #0b0c0e; z-index: 3; }
.tc-screen { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #000; }
.tc-screen img { width: 100%; height: 100%; object-fit: cover; display: block; max-width: none; }
.tc-screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 62%, rgba(0,0,0,.7) 100%); }
.tc-ui-top { position: absolute; top: 54px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: center; z-index: 2; }
.tc-rec { display: inline-flex; align-items: center; gap: 7px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; padding: 5px 10px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.tc-rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.tc-plate { font-family: var(--display); font-weight: 800; font-size: 12px; letter-spacing: .08em; background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 4px; padding: 0 5px; }
.tc-focus { position: absolute; z-index: 2; left: 50%; top: 52%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border: 2px solid rgba(255,198,11,.9); border-radius: 14px; }
.tc-ui-bottom { position: absolute; left: 14px; right: 14px; bottom: 22px; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.tc-caption { position: absolute; z-index: 2; top: 92px; left: 16px; right: 16px; background: rgba(255,255,255,.95); color: var(--ink); font-size: 12.5px; font-weight: 600; line-height: 1.35; padding: 8px 11px; border-radius: 12px; text-align: center; }
.tc-shutter { width: 58px; height: 58px; border-radius: 50%; border: 4px solid #fff; display: grid; place-items: center; }
.tc-shutter::after { content: ""; width: 22px; height: 22px; border-radius: 6px; background: var(--red); }
.tc-float { position: absolute; z-index: 4; background: #fff; color: var(--ink); border-radius: 16px; box-shadow: 0 24px 50px -20px rgba(0,0,0,.65); }
.tc-float-sent { top: 16%; right: 0; display: flex; align-items: center; gap: 10px; padding: 11px 15px; font-size: 14px; font-weight: 700; }
.tc-tick { width: 24px; height: 24px; border-radius: 50%; background: #1f8a4c; position: relative; flex: none; }
.tc-tick::after { content: ""; position: absolute; left: 8px; top: 5px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.tc-float-quote { bottom: 12%; left: 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; border-left: 4px solid var(--red); max-width: 230px; }
.tc-float-quote small { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.tc-float-quote b { font-family: var(--display); font-size: 18px; }
.tc-float-quote span { font-size: 13px; color: var(--muted-strong); }
@media (prefers-reduced-motion: no-preference) {
  .tc-rec i { animation: tc-blink 1.2s steps(2, start) infinite; }
  @keyframes tc-blink { to { visibility: hidden; } }
  .tc-float-sent { animation: tc-bob 5s var(--ease) infinite; }
  .tc-float-quote { animation: tc-bob 5s var(--ease) 2.5s infinite; }
  @keyframes tc-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
}
@media (max-width: 920px) { .tc-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; } .tc-visual { min-height: 500px; } }
@media (max-width: 480px) {
  .tc-phone { width: 232px; } .tc-visual { min-height: 450px; }
  .tc-float-sent { display: none; } .tc-float-quote { left: -4px; max-width: 200px; }
}

/* Small pill link (homepage heroes) */
.tc-hero-link { display: inline-flex; align-self: flex-start; width: fit-content; align-items: center; gap: 10px; padding: 10px 16px 10px 13px; border-radius: 999px;
  background: rgba(22,24,28,.55); border: 1px solid rgba(255,255,255,.22); color: #fff !important; font-family: 'Public Sans', system-ui, sans-serif; font-size: 14.5px; font-weight: 600; text-decoration: none;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: border-color .2s ease, background .2s ease; max-width: 100%; }
.tc-hero-link b { background: #e01b2e; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.tc-hero-link:hover { border-color: #fff; background: rgba(22,24,28,.75); }
.tc-hero-link.on-light { background: #16181c; border-color: #16181c; }
.tc-hero-link.on-light:hover { background: #2a2e33; }

/* ---- Video quote page hero ---- */
.tcx-hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.tcx-hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(900px 480px at 10% -10%, rgba(224,27,46,.25), transparent 60%), radial-gradient(700px 480px at 100% 120%, rgba(255,198,11,.1), transparent 55%); }
.tcx-hero .tcx-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; padding-top: clamp(40px, 6vw, 64px); padding-bottom: clamp(44px, 7vw, 72px); }
.tcx-crumbs { font-size: 14px; color: rgba(255,255,255,.55); margin-bottom: 18px; }
.tcx-crumbs a { color: rgba(255,255,255,.75); }
.tcx-hero h1 { color: #fff; font-size: clamp(36px, 8vw, 60px); line-height: .99; letter-spacing: -0.03em; margin: 18px 0 18px; }
.tcx-hero p { font-size: 19px; line-height: 1.55; color: rgba(255,255,255,.8); margin: 0 0 24px; max-width: 46ch; }
.tcx-hero .tc-actions { gap: 12px; }
.tcx-hero-img { border-radius: 20px; overflow: hidden; height: clamp(230px, 40vw, 400px); box-shadow: 0 30px 70px -30px rgba(0,0,0,.8); }
.tcx-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) { .tcx-hero .tcx-wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* ---- Video quote form ---- */
.vq-section { background: var(--bg); }
.vq-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; align-items: start; }
.vq-card { background: #fff; border-radius: 20px; padding: 28px; border: 1px solid var(--border); box-shadow: 0 24px 60px -30px rgba(0,0,0,.25); scroll-margin-top: 110px; }
.vq-card h2 { font-size: 26px; margin: 0 0 4px; }
.vq-card .form-intro { font-size: 14.5px; color: var(--muted); margin: 0 0 18px; }
.vq-form { display: flex; flex-direction: column; gap: 14px; }
.vq-form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--muted-strong); margin: 0; }
.vq-form input[type=text], .vq-form input[type=tel], .vq-form input[type=email], .vq-form textarea {
  width: 100%; min-width: 0; border: 1px solid var(--border-strong); border-radius: 10px; padding: 11px 12px; font-size: 15px;
  background: var(--field); font-family: var(--sans); color: var(--ink); min-height: 44px; box-sizing: border-box; }
.vq-form input:focus, .vq-form textarea:focus { outline: none; border-color: var(--red); background: #fff; box-shadow: 0 0 0 4px rgba(224,27,46,.12); }
.vq-form textarea { resize: vertical; min-height: 96px; }
.vq-form .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .vq-form .grid-2 { grid-template-columns: 1fr; } }
.vq-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.vq-capture { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vq-form .vq-tile { position: relative; border: 2px dashed var(--border-strong); border-radius: 16px; background: var(--card-alt); min-height: 150px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 16px; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.vq-form .vq-tile:hover { border-color: var(--red); }
.vq-form .vq-tile.is-set { border-style: solid; border-color: var(--ink); background: #fff; }
.vq-tile b { font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--ink); }
.vq-tile small { font-size: 13px; font-weight: 500; color: var(--muted); }
.vq-form .vq-tile input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; min-height: 0; }
.vq-rec { width: 52px; height: 52px; border-radius: 50%; background: var(--red); border: 5px solid #fff; box-shadow: 0 0 0 2px var(--red); }
.vq-cam { width: 54px; height: 42px; border-radius: 10px; background: var(--ink); position: relative; }
.vq-cam::after { content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border-radius: 50%; border: 4px solid #fff; background: var(--red); }
.vq-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.vq-preview:empty { display: none; }
.vq-thumb { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #000; }
.vq-thumb img, .vq-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vq-thumb-video::before { content: "Video"; position: absolute; left: 6px; bottom: 6px; z-index: 1; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.vq-thumb button { position: absolute; top: 4px; right: 4px; z-index: 2; width: 30px; height: 30px; min-height: 0; border-radius: 50%; border: 0; background: rgba(22,24,28,.85); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; padding: 0; }
.vq-contact { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.vq-contact legend { font-size: 13px; font-weight: 600; color: var(--muted-strong); margin-bottom: 6px; padding: 0; width: 100%; }
.vq-form .vq-contact label { flex-direction: row; align-items: center; gap: 8px; border: 1px solid var(--border-strong); border-radius: 999px; padding: 9px 15px; font-size: 14.5px; color: var(--ink); cursor: pointer; }
.vq-form .vq-contact label:has(input:checked) { border-color: var(--red); background: rgba(224,27,46,.06); }
.vq-form .vq-contact input { accent-color: var(--red); margin: 0; width: auto; min-height: 0; }
.vq-form .vq-consent { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 500; font-size: 14px; color: var(--ink); }
.vq-form .vq-consent input { width: 20px; height: 20px; min-height: 0; margin: 1px 0 0; flex: none; accent-color: var(--red); }
.vq-error { margin: 0; color: var(--red-dark); font-weight: 600; font-size: 14.5px; }
.vq-error:empty { display: none; }
.vq-form .tcx-btn { width: 100%; }
.vq-card .form-fineprint { margin: 0; font-size: 12.5px; line-height: 1.5; color: #8a8f95; text-align: center; }
.vq-status, .vq-done { display: flex; flex-direction: column; gap: 12px; text-align: center; align-items: center; padding: 20px 4px; }
.vq-status[hidden], .vq-done[hidden], .vq-form[hidden], .vq-retry[hidden], .vq-retry [hidden] { display: none; }
.vq-status p, .vq-done p { margin: 0; color: var(--muted-strong); max-width: 46ch; }
.vq-bar { width: 100%; height: 12px; border-radius: 999px; background: var(--card-alt); border: 1px solid var(--border); overflow: hidden; }
.vq-bar i { display: block; height: 100%; width: 0; background: var(--red); transition: width .3s ease; }
.vq-pct { font-variant-numeric: tabular-nums; font-weight: 600; }
.vq-retry { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.vq-done svg { width: 84px; height: 84px; }
.vq-done circle { fill: none; stroke: #1f8a4c; stroke-width: 6; }
.vq-done path { fill: none; stroke: #1f8a4c; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.vq-aside h2 { font-size: 26px; margin: 0 0 18px; }
.vq-aside h3 { font-size: 19px; margin: 28px 0 12px; }
.vq-aside .tc-steps span { color: var(--muted-strong); }
.vq-aside .tc-steps b { color: var(--ink); }
.tcx-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tcx-check li { position: relative; padding-left: 30px; line-height: 1.5; color: var(--muted-strong); }
.tcx-check li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--red); }
.tcx-check li::after { content: ""; position: absolute; left: 6px; top: 7px; width: 5px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@media (max-width: 920px) { .vq-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .vq-card { padding: 20px 16px; } .vq-capture { gap: 8px; } .vq-form .vq-tile { min-height: 128px; padding: 12px 8px; } }
