/* J.K Services — client booking app (mobile-first PWA) */
:root {
  --bg: #04060B;
  --bg-2: #080C14;
  --bg-3: #0E1420;
  --card: rgba(255, 255, 255, .035);
  --text: #EEF3FB;
  --text-2: #B7C2D3;
  --muted: #6F7C92;
  --blue: #3B8BFF;
  --blue-hi: #BFE0FF;
  --blue-lo: #1747C9;
  --green: #35D07F;
  --amber: #FFB547;
  --red: #FF5A5A;
  --line: rgba(190, 215, 255, .10);
  --line-blue: rgba(59, 139, 255, .45);
  --display: "Sora", "Segoe UI", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --r: 18px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: #010205; color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
.noscript { padding: 24px; text-align: center; }
.noscript a { color: var(--blue-hi); text-decoration: underline; }

/* Shell */
.app { position: relative; max-width: 480px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; background: radial-gradient(120% 50% at 50% 0%, #0d1b36 0%, var(--bg) 55%); box-shadow: 0 0 0 1px var(--line); padding-bottom: calc(84px + var(--safe-b)); }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: calc(12px + var(--safe-t)) 18px 12px; background: rgba(4, 6, 11, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; }
.mono { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; border: 1.5px solid var(--blue); font-family: var(--display); font-weight: 800; font-size: .92rem; letter-spacing: -.04em; color: var(--blue-hi); background: linear-gradient(135deg, rgba(59,139,255,.18), transparent); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--display); font-size: .72rem; letter-spacing: .2em; }
.brand-text em { font-style: normal; font-size: .78rem; color: var(--blue); }
.lang { font-family: var(--mono); font-size: .75rem; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); }

.views { padding: 0 18px; }
.view { display: none; animation: view-in .45s var(--ease); }
.view.is-active { display: block; }
@keyframes view-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Home */
.hero { position: relative; margin: 16px -18px 0; height: 260px; overflow: hidden; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 55%; transform: scale(1.04); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,6,11,.15) 0%, rgba(4,6,11,.05) 35%, rgba(4,6,11,.92) 88%, var(--bg) 100%); }
.hero-copy { position: absolute; left: 18px; right: 18px; bottom: 14px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-hi); }
.kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
h1 { font-family: var(--display); font-size: 1.75rem; line-height: 1.12; letter-spacing: -.035em; margin-top: 6px; }
.blue { background: linear-gradient(120deg, var(--blue-hi), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.where { width: 100%; display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 17px 18px; border-radius: var(--r); background: linear-gradient(180deg, #121b2c, #0b1120); border: 1px solid var(--line-blue); box-shadow: 0 14px 40px -18px rgba(59,139,255,.6); font-weight: 600; text-align: left; transition: transform .2s var(--ease); }
.where:active { transform: scale(.985); }
.where-ico { width: 22px; color: var(--blue); }
.where span:nth-child(2) { flex: 1; }
.where-arrow { color: var(--blue); font-size: 1.2rem; }

.label { font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 26px 2px 12px; font-weight: 500; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 15px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); text-align: left; transition: border-color .2s, transform .2s var(--ease); }
.tile:active { transform: scale(.97); border-color: var(--line-blue); }
.tile-ico { font-size: 1.15rem; color: var(--blue-hi); margin-bottom: 4px; }
.tile b { font-size: .92rem; }
.tile small { font-size: .74rem; color: var(--muted); }

.install-card { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 12px 12px 12px; border-radius: var(--r); background: linear-gradient(135deg, rgba(59,139,255,.14), rgba(59,139,255,.03)); border: 1px solid var(--line-blue); animation: view-in .5s var(--ease); }
.install-ico img { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 6px 18px -6px rgba(59,139,255,.7); }
.install-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.install-copy b { font-size: .92rem; }
.install-copy small { font-size: .76rem; color: var(--text-2); }

.fleet-mini { display: grid; gap: 10px; }
.car-card { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.car-card img { width: 110px; height: 70px; object-fit: cover; border-radius: 11px; }
.car-card b { display: block; font-size: .92rem; }
.car-card small { color: var(--muted); font-size: .78rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 15px 22px; border-radius: 14px; font-weight: 600; font-size: .98rem; transition: transform .15s var(--ease), filter .2s; text-align: center; }
.btn:active { transform: scale(.97); }
.btn-blue { background: linear-gradient(135deg, #5aa2ff, var(--blue) 45%, var(--blue-lo)); color: #fff; box-shadow: 0 12px 30px -12px rgba(59,139,255,.8); }
.btn-glass { background: var(--card); border: 1px solid var(--line); }
.btn-sm { padding: 10px 16px; font-size: .86rem; border-radius: 11px; white-space: nowrap; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.ico { width: 19px; height: 19px; }

/* Wizard */
.wiz-head { position: sticky; top: calc(61px + var(--safe-t)); z-index: 10; display: flex; align-items: center; gap: 12px; padding: 14px 0 12px; background: linear-gradient(var(--bg) 70%, transparent); }
.back { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-size: 1.1rem; }
.progress { flex: 1; height: 5px; border-radius: 5px; background: rgba(255,255,255,.07); overflow: hidden; }
.progress span { display: block; height: 100%; width: 20%; border-radius: 5px; background: linear-gradient(90deg, var(--blue-hi), var(--blue)); transition: width .45s var(--ease); }
.step-count { font-family: var(--mono); font-size: .75rem; color: var(--muted); min-width: 28px; text-align: right; }

.step { display: none; border: 0; animation: view-in .4s var(--ease); }
.step.is-active { display: block; }
legend { font-family: var(--display); font-size: 1.45rem; font-weight: 700; letter-spacing: -.03em; margin: 6px 0 16px; }

.choices { display: grid; gap: 10px; }
.choice { display: block; cursor: pointer; }
.choice input, .vehicle input, .seg input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span { display: flex; flex-direction: column; padding: 15px 16px 15px 46px; border-radius: 15px; background: var(--card); border: 1px solid var(--line); position: relative; transition: border-color .2s, background .2s; }
.choice > span::before { content: ""; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; border: 2px solid var(--muted); transition: all .2s; }
.choice input:checked + span { border-color: var(--blue); background: rgba(59,139,255,.1); }
.choice input:checked + span::before { border-color: var(--blue); background: radial-gradient(circle, var(--blue) 45%, transparent 50%); }
.choice input:focus-visible + span { outline: 2px solid var(--blue-hi); outline-offset: 2px; }
.choice b { font-size: .96rem; }
.choice small { color: var(--muted); font-size: .8rem; }

.vehicles { display: grid; gap: 12px; }
.vehicle { display: block; cursor: pointer; }
.vehicle-body { display: block; border-radius: 18px; overflow: hidden; background: var(--card); border: 1.5px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.vehicle-body img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.vehicle-info { display: flex; flex-direction: column; gap: 3px; padding: 13px 15px 15px; }
.vehicle-info b { font-size: 1rem; }
.vehicle-info small { color: var(--text-2); font-size: .82rem; }
.vehicle input:checked + .vehicle-body { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,139,255,.18); }
.vehicle input:focus-visible + .vehicle-body { outline: 2px solid var(--blue-hi); outline-offset: 2px; }
.tag { align-self: flex-start; margin-top: 5px; font-style: normal; font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 8px; }
.tag-live { color: var(--green); background: rgba(53,208,127,.1); }
.tag-soon { color: var(--amber); background: rgba(255,181,71,.1); }

.field, .field-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.field > span, .field-label { font-size: .8rem; color: var(--text-2); font-weight: 500; }
.field input, .field textarea, .field select { width: 100%; padding: 14px 15px; border-radius: 13px; background: var(--bg-2); border: 1px solid var(--line); outline: none; font-size: 16px; transition: border-color .2s, box-shadow .2s; color-scheme: dark; }
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,139,255,.18); }
.field.is-bad input { border-color: var(--red); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-row > .field { min-width: 0; }

.seg { display: flex; gap: 6px; padding: 5px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.seg label { flex: 1; cursor: pointer; }
.seg span { display: block; text-align: center; padding: 10px 6px; border-radius: 10px; font-size: .88rem; font-weight: 600; color: var(--text-2); transition: background .2s, color .2s; }
.seg input:checked + span { background: var(--blue); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--blue-hi); }

.stepper { display: flex; align-items: center; justify-content: space-between; padding: 5px; border-radius: 13px; background: var(--bg-2); border: 1px solid var(--line); }
.stepper button { width: 42px; height: 40px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-size: 1.2rem; }
.stepper output { font-family: var(--display); font-weight: 700; font-size: 1.1rem; }

.check-row { display: flex; align-items: center; gap: 11px; margin: 4px 0 14px; font-size: .9rem; color: var(--text-2); cursor: pointer; }
.check-row input { width: 20px; height: 20px; accent-color: var(--blue); }

.form-error { margin: 4px 0 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255,90,90,.1); border: 1px solid rgba(255,90,90,.35); color: #ffb4b4; font-size: .86rem; }
.wiz-foot { position: sticky; bottom: calc(84px + var(--safe-b)); padding: 14px 0 6px; background: linear-gradient(transparent, var(--bg) 35%); margin-top: 8px; }

.summary { display: grid; gap: 1px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.summary > div { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 12px 15px; background: var(--card); }
.summary dt { color: var(--muted); font-size: .8rem; }
.summary dd { font-size: .9rem; font-weight: 500; word-break: break-word; }
.quote-note { margin: 14px 2px; font-size: .84rem; color: var(--text-2); }
.send-buttons { display: grid; gap: 10px; margin-bottom: 12px; }

.done { text-align: center; padding: 34px 6px 20px; }
.done h2 { font-family: var(--display); font-size: 1.6rem; margin: 18px 0 8px; }
.done p { color: var(--text-2); margin-bottom: 22px; }
.done .btn { margin-bottom: 10px; }
.check { width: 78px; height: 78px; margin: 0 auto; }
.check circle { stroke: var(--green); stroke-width: 2; stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw .7s var(--ease) forwards; }
.check path { stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 50; stroke-dashoffset: 50; animation: draw .45s .55s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Trips */
.view-title { margin: 22px 0 16px; font-size: 1.6rem; }
.trips { display: grid; gap: 12px; }
.trip { padding: 15px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.trip-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.trip-when { font-family: var(--mono); font-size: .74rem; color: var(--blue-hi); }
.trip-status { font-family: var(--mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 7px; color: var(--amber); background: rgba(255,181,71,.1); }
.trip-status.is-past { color: var(--muted); background: rgba(255,255,255,.05); }
.trip h3 { font-size: 1rem; margin: 7px 0 3px; }
.trip p { font-size: .84rem; color: var(--text-2); }
.trip-actions { display: flex; gap: 8px; margin-top: 12px; }
.trip-actions .btn { flex: 1; padding: 10px; font-size: .84rem; }
.empty { text-align: center; padding: 40px 10px; color: var(--text-2); }
.empty .btn { margin-top: 16px; }

/* Contact */
.contact-list { display: grid; gap: 10px; }
.contact { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-radius: 15px; background: var(--card); border: 1px solid var(--line); }
.contact span { color: var(--text-2); font-size: .88rem; }
.contact b { font-size: .92rem; color: var(--blue-hi); }
.about { margin: 22px 2px; font-size: .88rem; color: var(--text-2); }
.about p + p { margin-top: 6px; }

/* Tab bar */
.tabbar { position: fixed; z-index: 30; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 480px; display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 8px calc(8px + var(--safe-b)); background: rgba(6, 9, 16, .9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.tabbar button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; font-size: .7rem; color: var(--muted); transition: color .2s; }
.tabbar button svg { width: 23px; height: 23px; }
.tabbar button.is-active { color: var(--blue-hi); }
.tab-book-dot { display: grid; place-items: center; width: 44px; height: 30px; border-radius: 11px; background: linear-gradient(135deg, #5aa2ff, var(--blue-lo)); color: #fff; box-shadow: 0 8px 20px -8px rgba(59,139,255,.9); }
.tab-book-dot svg { width: 18px !important; height: 18px !important; }

/* Sheet + toast */
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.6); animation: fade .25s; }
.sheet-card { width: 100%; max-width: 480px; padding: 24px 22px calc(24px + var(--safe-b)); border-radius: 24px 24px 0 0; background: var(--bg-3); border-top: 1px solid var(--line-blue); animation: up .35s var(--ease); }
.sheet-card h2 { font-family: var(--display); font-size: 1.25rem; margin-bottom: 14px; }
.sheet-card ol { list-style: decimal; padding-left: 20px; margin-bottom: 20px; color: var(--text-2); }
.sheet-card li { margin-bottom: 8px; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(100%); } }
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translateX(-50%); padding: 11px 18px; border-radius: 12px; background: #1b2638; border: 1px solid var(--line-blue); font-size: .88rem; box-shadow: 0 12px 30px rgba(0,0,0,.5); animation: fade .25s; }

@media (min-width: 520px) {
  body { padding: 0; }
  .hero { height: 300px; }
}
