/* OMODA & JAECOO — light surfaces, square geometry, cyan accents. */
:root {
  --bg: #ffffff;
  --surface: #f4f6f8;
  --ink: #1f2933;
  --ink-2: #5f6b76;
  --ink-3: #5f6b76;
  --line: #dfe3e8;
  --accent: #0e7490;
  --accent-bright: #06b6d4;
  --accent-soft: #ecfeff;
  --accent-ink: #0e7490;
  --warn: #805500;
  --danger: #b42318;
  font-family: 'Segoe UI', Arial, system-ui, sans-serif;
  color: var(--ink);
  color-scheme: light;
}
* { box-sizing: border-box; border-radius: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
html, body { margin: 0; background: var(--bg); }
body { min-height: 100vh; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button:disabled { cursor: not-allowed; }

.topbar {
  position: relative; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  min-height: 80px; padding: 20px 3.5%; gap: 24px; background: #fff; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; }
.logo {
  display: inline-block; width: 220px; height: 26px; flex: none;
  background: url('/img/logo.png') center / contain no-repeat; filter: brightness(0);
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.brand small { font-size: 11px; text-transform: uppercase; font-weight: 400; letter-spacing: .13em; color: var(--ink-2); padding-left: 16px; border-left: 1px solid var(--line); }
.topbar nav { display: flex; flex-wrap: wrap; gap: 18px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.topbar nav a { text-decoration: none; padding: 8px 0; border-bottom: 1px solid transparent; }
.topbar nav a:hover, .topbar nav a.active { color: var(--ink); border-color: var(--accent-bright); }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 56px 32px 80px; }
.eyebrow { font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 16px; line-height: 1.6; }
h1, h2 { text-transform: uppercase; font-weight: 300; }
h1 { font-size: clamp(30px, 4.5vw, 60px); letter-spacing: .07em; margin: 0 0 16px; line-height: 1.12; }
h2 { font-size: clamp(22px, 3vw, 30px); letter-spacing: .12em; margin: 0 0 24px; line-height: 1.3; }
.lead { font-size: 16px; color: var(--ink-2); margin: 0 0 40px; max-width: 560px; line-height: 1.6; }
.muted { color: var(--ink-2); line-height: 1.55; }

/* Kiosk: an uncropped banner followed by a compact introduction. */
.hero { position: relative; margin: 0; background: #fff; }
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 9.5%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff); pointer-events: none;
}
.hero img { display: block; width: 100%; height: auto; }
.hero-copy { padding: 28px 3.5%; background: #fff; border-bottom: 1px solid var(--line); }
.hero-copy .eyebrow { margin-bottom: 8px; }
.hero-copy h1 { font-size: clamp(28px, 3vw, 42px); margin-bottom: 10px; }
.hero-copy p:not(.eyebrow) { color: var(--ink-2); font-size: 15px; line-height: 1.6; margin: 0 0 16px; }
.registration { max-width: 1280px; padding-top: 36px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading h2 { margin: 0; }
.section-heading > p { font-size: 11px; letter-spacing: .18em; white-space: nowrap; }
.section-heading > p span { padding: 0 12px; color: #666; }
.models { min-width: 0; margin-bottom: 64px; scroll-margin-top: 32px; }
.model-tabs { display: flex; width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #aab4be #eef1f4; border-bottom: 1px solid var(--line); }
.model-tab { flex: 1 0 120px; padding: 16px 12px 20px; background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--ink-2); text-align: center; }
.model-tab small { display: block; font-size: 9px; letter-spacing: .2em; margin-bottom: 7px; }
.model-tab span { font-size: 19px; letter-spacing: .06em; font-weight: 400; white-space: nowrap; }
.model-tab:hover { color: var(--ink); background: var(--surface); }
.model-tab[aria-selected='true'] { color: var(--accent); border-bottom-color: var(--accent-bright); }
.model-tab:focus-visible { outline-offset: -5px; }
.model-stage { min-width: 0; }
.stage-visual { position: relative; display: grid; place-items: center; min-height: 290px; padding: 52px 0 10px; overflow: hidden; background: radial-gradient(ellipse at 50% 76%, #eef1f4, #fff 68%); }
.stage-word { position: absolute; left: 0; right: 0; top: 12px; text-align: center; white-space: nowrap; font-size: clamp(60px, 13vw, 180px); letter-spacing: .08em; line-height: 1.1; font-weight: 300; color: #dfe3e8; pointer-events: none; }
.car-select { position: relative; z-index: 1; width: 92%; max-width: 1060px; padding: 0; border: 0; background: transparent; }
.car-select img { display: block; width: 100%; aspect-ratio: 1582 / 550; object-fit: contain; opacity: 0; transition: opacity 250ms ease; }
.car-select img.is-loaded { opacity: 1; }
.car-select:hover img.is-loaded { opacity: .9; }
.car-select:focus-visible { outline-offset: 0; }
.stage-loader { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--ink-2); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; pointer-events: none; }
.stage-spinner { width: 28px; height: 28px; border: 2px solid var(--accent-soft); border-top-color: var(--accent-bright); border-radius: 50%; animation: stage-spin .9s linear infinite; }
@keyframes stage-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .stage-spinner { display: none; }
}
.stage-stats { background: var(--surface); display: flex; justify-content: center; align-items: center; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stage-stats > div { padding: 4px 36px; color: var(--ink-2); font-size: 14px; }
.stage-stats > div + div { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.stage-stats b { font-size: 24px; font-weight: 300; color: var(--accent); font-variant-numeric: tabular-nums; }
.stage-stats .btn { margin: 0 36px; min-width: 132px; }
.stage-stats .btn[aria-pressed='true'] { background: var(--accent); border-color: var(--accent); color: #fff; }
.selection-note { font-size: 13px; line-height: 1.6; color: var(--ink-2); margin: 16px 0 0; }

/* Form and shared controls. Light fields keep entered details highly legible. */
.staff { background: var(--surface); }
.panel { min-width: 0; background: #fff; border: 1px solid var(--line); padding: 24px; }
.registration-form { max-width: 920px; margin: 0 auto; padding: 40px; background: var(--surface); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid2 > div { min-width: 0; }
label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 8px; line-height: 1.5; }
input[type='text'], input[type='tel'], input[type='password'], input[type='date'], input[type='email'], select {
  width: 100%; min-width: 0; height: 48px; padding: 0 12px; border: 1px solid #aab4be; background: #fff; color: var(--ink); color-scheme: light;
}
input::placeholder { color: #686868; opacity: 1; }
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin: 24px 0; }
.check input { appearance: none; width: 18px; height: 18px; flex: 0 0 18px; margin: 2px 0 0; border: 1px solid #7b8792; background: #fff; display: grid; place-items: center; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { content: ''; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; padding: 10px 20px; border: 1px solid var(--accent); background: var(--accent); color: #fff; font-size: 12px; font-weight: 500; letter-spacing: .1em; line-height: 1.4; text-transform: uppercase; cursor: pointer; text-decoration: none; text-align: center; }
.btn:hover { background: #155e75; border-color: #155e75; }
.btn:disabled { opacity: .4; }
.btn.ghost { background: transparent; color: var(--ink); border-color: #7b8792; }
.btn.ghost:hover { background: var(--accent-soft); border-color: var(--accent); }
.btn.accent { background: transparent; border-color: var(--accent); color: var(--accent-ink); }
.btn.accent:hover { background: var(--accent-soft); }
.btn.sm { min-height: 34px; padding: 7px 12px; font-size: 11px; letter-spacing: .06em; }
.btn.danger { background: transparent; color: var(--danger); border-color: #986060; }
.btn.danger:hover { background: #fff1f0; }
.btn.block { width: 100%; }
.btn.btn-danger { background: #9f2929; border-color: #e07676; color: #fff; }
.error { color: var(--danger); font-size: 14px; min-height: 20px; margin-top: 12px; line-height: 1.5; }
.link-btn { background: none; border: 0; padding: 12px; font-size: 13px; color: var(--danger); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.link-inline { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.ticket { max-width: 600px; text-align: center; }
.ticket .panel { padding: 40px 24px; }
.ticket .num { font-size: clamp(38px, 8vw, 76px); overflow-wrap: anywhere; font-weight: 300; letter-spacing: -.035em; line-height: 1.2; margin: 24px 0 12px; color: var(--accent); }
.ticket img { width: 85%; margin: 32px auto 16px; display: block; }
.stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin-top: 28px; }
.stats div { padding: 24px 8px 0; }
.stats div + div { border-left: 1px solid var(--line); }
.stats b { display: block; font-size: 32px; font-weight: 300; margin-bottom: 6px; }
.stats span { font-size: 10px; color: var(--ink-2); letter-spacing: .15em; text-transform: uppercase; }
.ticket-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
/* Existing status class retained; its presentation is a square, outlined label. */
.pill { display: inline-flex; align-items: center; padding: 5px 10px; border: 1px solid var(--line); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.pill.called { color: var(--warn); border-color: #856735; }
.pill.done { color: var(--ink); }
.pill.driving { color: var(--accent-ink); border-color: #426a74; }
.pill.noshow, .pill.cancelled, .pill.expired { color: var(--danger); border-color: #986060; }
.called-banner { border: 1px solid var(--accent); background: var(--accent-soft); color: var(--accent-ink); padding: 20px; margin-top: 24px; font-size: 15px; line-height: 1.6; }

/* Dense staff work area: hairline rows and compact square actions. */
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.col-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.col-head img { width: 92px; }
.col-head .name { font-size: 21px; font-weight: 400; }
.col-head .sub { font-size: 12px; color: var(--ink-2); margin-top: 6px; }
.col-head .btn { margin-left: auto; padding: 9px 12px; flex-shrink: 0; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.list .n { flex-shrink: 0; font-weight: 500; font-size: 17px; min-width: 96px; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--accent-ink); }
.list .ticket-body { display: flex; flex: 1 1 220px; min-width: 0; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.list .who { flex: 1 1 220px; min-width: min(100%, 220px); overflow-wrap: anywhere; line-height: 1.6; }
.list .who div:first-child { font-weight: 500; }
.list .who div:not(:first-child) { font-size: 12px; color: var(--ink-2); }
.list .who .pill { font-size: 9px; padding: 2px 6px; margin-left: 4px; }
.list .who .link-inline { font-size: 12px; }
.list .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.section-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 24px 0 8px; }
.empty { color: var(--ink-3); font-size: 13px; padding: 12px 0; border-top: 1px solid var(--line); }
#summary > div { border-left: 1px solid var(--line); padding-left: 20px; }
#summary > div > div:first-child { color: var(--accent); font-weight: 300 !important; }
.guest-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.guest-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.guest-actions .btn { margin: 0; }
.guest-actions select { width: auto; max-width: 100%; height: 36px; padding: 0 8px; font-size: 13px; }
.guest-actions .btn.busy, .license-head .btn.busy { opacity: .5; pointer-events: none; }
.guest-result { margin-top: 16px; font-size: 14px; color: var(--ink-2); line-height: 1.6; overflow-wrap: anywhere; }
.guest-result.error-text { color: var(--danger); }
.guest-dealers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.guest-dealers span { padding: 6px 10px; border: 1px solid var(--line); font-size: 12px; color: var(--ink-2); overflow-wrap: anywhere; }
.license { margin-top: 28px; padding: 20px; border: 1px solid var(--line); background: var(--bg); }
.license-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.license-head .btn { flex: none; }
.license-preview { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.license-preview img { width: 120px; aspect-ratio: 1.6; object-fit: cover; border: 1px solid var(--line); background: #fff; }
.license-status { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.license-status.ok { color: var(--accent-ink); }
.license-status.warn { color: var(--warn); }
.back-capture { margin-top: 20px; }
.signature-section { margin-top: 28px; }
.signature-section canvas { display: block; width: 100%; height: 180px; margin-top: 12px; border: 1px solid var(--accent); background: #fff; touch-action: none; cursor: crosshair; }
.signature-section p { font-size: 13px; margin: 8px 0 0; }
.license-documents img { display: block; width: 100%; border: 1px solid var(--line); background: #fff; }
.license-documents h3 { font-size: 15px; }
.invite-note { margin-top: 20px; padding: 14px; border-left: 2px solid var(--accent); background: var(--accent-soft); color: var(--accent-ink); font-size: 14px; line-height: 1.5; }
#customer-type:disabled, #dealer:disabled { background: #eef1f4; border-color: #aab4be; color: var(--ink-2); opacity: 1; }
.waiver-check span { line-height: 1.6; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: #5f6b7680; opacity: 0; transition: opacity .18s; }
.modal-backdrop.open { opacity: 1; }
.modal { width: 100%; min-width: 0; max-width: 420px; max-height: calc(100dvh - 32px); overflow-y: auto; background: #fff; border: 1px solid var(--line); padding: 28px; }
.modal h2 { margin: 0 0 16px; font-size: 20px; }
.modal p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.modal-wide { max-width: 680px; display: flex; flex-direction: column; }
.modal-wide > img { min-height: 0; object-fit: contain; }
.modal-body { min-height: 0; overflow-y: auto; font-size: 14px; line-height: 1.7; color: var(--ink-2); padding-right: 8px; }
.modal-body p { margin: 0 0 16px; }
.modal-body ol { padding-left: 20px; margin: 0 0 16px; }
.modal-body li { margin-bottom: 12px; }
.modal-body b { color: var(--ink); font-weight: 600; }
.modal-actions { display: flex; gap: 12px; margin-top: 24px; flex-shrink: 0; }
.modal-actions .btn { flex: 1; padding: 10px 12px; min-width: 0; white-space: normal; }
.toast { position: fixed; z-index: 110; bottom: 24px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); background: #fff; color: #111; border: 1px solid #ccc; padding: 14px 20px; font-size: 14px; line-height: 1.5; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }

@media (max-width: 1100px) {
  .topbar { flex-wrap: wrap; gap: 14px; }
  .cols { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .brand small { display: none; }
  .stage-stats > div { padding: 4px 20px; }
  .stage-stats .btn { margin: 0 20px; }
  .registration-form { padding: 28px; }
}
@media (max-width: 640px) {
  .topbar { padding: 20px; gap: 14px; }
  .topbar nav { gap: 18px; font-size: 10px; }
  .logo { width: 210px; height: 24px; }
  .wrap { padding: 40px 20px 56px; }
  .registration { padding-top: 40px; }
  .section-heading { display: block; margin-bottom: 20px; }
  .section-heading > p { margin-top: 20px; }
  .model-tab { flex-basis: 100px; padding: 14px 12px 18px; }
  .model-tab span { font-size: 17px; }
  .stage-visual { min-height: 210px; padding-top: 48px; }
  .stage-word { top: 28px; font-size: clamp(54px, 16vw, 100px); }
  .car-select { width: 100%; }
  .stage-stats { flex-wrap: wrap; row-gap: 22px; padding: 20px 0; }
  .stage-stats > div { width: 50%; text-align: center; padding: 0 8px; font-size: 12px; }
  .stage-stats > div + div { border-right: 0; }
  .stage-stats b { font-size: 23px; }
  .stage-stats .btn { width: calc(100% - 32px); margin: 0 16px; }
  .models { margin-bottom: 40px; }
  .panel, .registration-form { padding: 24px 16px; }
  .grid2 { grid-template-columns: 1fr; gap: 18px; }
  .license { padding: 16px 12px; }
  .license-head { flex-direction: column; align-items: stretch; }
  .license-preview { flex-wrap: wrap; }
  .ticket .panel { padding: 28px 16px; }
  .ticket .num { font-size: clamp(34px, 10vw, 56px); }
  .stats b { font-size: 26px; }
  .col-head { flex-wrap: wrap; gap: 12px; }
  .col-head img { width: 84px; }
  .col-head .name { font-size: 18px; }
  .col-head .btn { width: 100%; margin-left: 0; }
  .list .n { min-width: 88px; font-size: 16px; }
  .list .acts { width: 100%; justify-content: flex-start; }
  .list .acts .btn { flex: 1; }
  .modal { padding: 24px 18px; }
  #summary { gap: 16px !important; }
  #summary > div { padding-left: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
