/* Online accident assistant — builds on style.css tokens */
.assist-body { background: var(--color-bg); min-height: 100dvh; }

.as-top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  padding-top: max(var(--space-3), env(safe-area-inset-top));
  background: color-mix(in oklab, var(--color-surface) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-divider);
}
.as-brand img { height: 30px; width: auto; }
.as-top-actions { display: flex; gap: var(--space-2); }
.as-000 {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 44px; padding: 0 var(--space-4);
  border-radius: var(--radius-full);
  background: #15803d; color: #fff; font-weight: 700; font-size: var(--text-sm);
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 2px 8px oklch(0.45 0.15 150 / 0.35);
}
.as-000:hover { background: #166534; }
.as-000 svg { width: 18px; height: 18px; }

.as-main { max-width: 640px; margin: 0 auto; padding: var(--space-6) var(--space-4) var(--space-16); }

.as-progress { height: 4px; background: var(--color-surface-offset); border-radius: 99px; overflow: hidden; margin-bottom: var(--space-6); }
.as-progress span { display: block; height: 100%; width: 0; background: var(--color-primary); transition: width .4s ease; }

.as-eyebrow { font-size: var(--text-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--color-primary); margin-bottom: var(--space-2); }
.as-intro h1 { font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.15; letter-spacing: -0.01em; margin-bottom: var(--space-2); }
.as-sub { color: var(--color-text-muted); font-size: var(--text-sm); margin-bottom: var(--space-6); }

.as-chat { display: flex; flex-direction: column; gap: var(--space-3); }
.as-msg { max-width: 88%; padding: var(--space-3) var(--space-4); border-radius: 18px; font-size: var(--text-base); line-height: 1.45; animation: asIn .25s ease both; }
.as-msg p + p { margin-top: var(--space-2); }
.as-bot { align-self: flex-start; background: var(--color-surface); border: 1px solid var(--color-border); border-bottom-left-radius: 6px; }
.as-user { align-self: flex-end; background: var(--color-primary); color: #fff; border-bottom-right-radius: 6px; }
.as-typing { display: inline-flex; gap: 4px; }
.as-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--color-text-faint); animation: asDot 1s infinite ease-in-out; }
.as-typing i:nth-child(2) { animation-delay: .15s; } .as-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes asIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes asDot { 0%,80%,100% { opacity: .3; } 40% { opacity: 1; } }

.as-input { margin-top: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); }
.as-opt {
  width: 100%; min-height: 52px; text-align: left;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-border); border-radius: var(--radius-lg);
  background: var(--color-surface); color: var(--color-text);
  font: inherit; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  transition: border-color .15s, background .15s;
}
.as-opt small { display: block; font-weight: 400; color: var(--color-text-muted); font-size: var(--text-xs); margin-top: 2px; }
.as-opt:hover, .as-opt:focus-visible { border-color: var(--color-primary); background: var(--color-primary-highlight); outline: none; }
.as-opt::after { content: '›'; font-size: 1.4em; color: var(--color-text-faint); }
.as-back { align-self: flex-start; background: none; border: 0; color: var(--color-text-muted); font: inherit; font-size: var(--text-sm); padding: var(--space-2) 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.as-btn {
  min-height: 52px; border-radius: var(--radius-full); border: 0; cursor: pointer;
  font: inherit; font-weight: 700; padding: 0 var(--space-6);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  background: var(--color-primary); color: #fff; text-decoration: none;
}
.as-btn:hover { background: var(--color-primary-hover); }
.as-btn[disabled] { opacity: .6; cursor: wait; }
.as-btn.as-btn-ghost { background: transparent; color: var(--color-primary); border: 1.5px solid var(--color-primary); }
.as-btn.as-btn-000 { background: #15803d; font-size: var(--text-lg); min-height: 60px; }
.as-btn svg { width: 20px; height: 20px; }

.as-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.as-field label { display: block; font-size: var(--text-sm); font-weight: 600; margin-bottom: 4px; }
.as-field label span { font-weight: 400; color: var(--color-text-muted); }
.as-field input, .as-field textarea, .as-field select {
  width: 100%; min-height: 48px; padding: var(--space-3); font: inherit; font-size: 16px;
  border: 1.5px solid var(--color-border); border-radius: var(--radius-md);
  background: var(--color-bg); color: var(--color-text);
}
.as-field textarea { min-height: 80px; resize: vertical; }
.as-field input:focus, .as-field textarea:focus { outline: none; border-color: var(--color-primary); }
.as-consent { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.5; }
.as-consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--color-primary); }
.as-consent a { color: var(--color-primary); }
.as-error { color: var(--color-error); font-size: var(--text-sm); font-weight: 600; }
.as-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.as-loc-status { font-size: var(--text-sm); color: var(--color-text-muted); }
.as-divider { text-align: center; font-size: var(--text-xs); color: var(--color-text-faint); text-transform: uppercase; letter-spacing: .08em; }
.as-row { display: flex; gap: var(--space-2); }
.as-row > * { flex: 1; }

.as-foot { margin-top: var(--space-12); font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.5; }
.as-foot a { color: inherit; }

.brand-logo-dark { display: none; }
[data-theme='dark'] .brand-logo-light { display: none; }
[data-theme='dark'] .brand-logo-dark { display: block; }

@media (prefers-reduced-motion: reduce) { .as-msg, .as-progress span { animation: none; transition: none; } }

.as-other { border: 1.5px dashed var(--color-border); border-radius: var(--radius-md); padding: var(--space-3); }
.as-other summary { cursor: pointer; font-weight: 600; font-size: var(--text-sm); }
.as-other summary span { font-weight: 400; color: var(--color-text-muted); }
.as-other[open] summary { margin-bottom: var(--space-3); }
.as-other .as-row + .as-row { margin-top: var(--space-2); }
.as-confirm { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-2); }
.as-confirm-icon { flex: none; width: 36px; height: 36px; border-radius: 50%; background: #15803d; color: #fff; display: grid; place-items: center; }
.as-confirm-icon svg { width: 20px; height: 20px; }
.as-confirm-title { font-weight: 700; font-size: var(--text-lg); line-height: 1.25; }
.as-ref { font-size: var(--text-sm); color: var(--color-text-muted); }
.as-row-rego .as-field { flex: 1 1 auto; }
.as-row-rego .as-field-state { flex: 0 0 96px; }
.as-field select { width: 100%; min-height: 48px; padding: 0 var(--space-3); border: 1.5px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface, #fff); font: inherit; color: inherit; }
.as-veh { font-size: var(--text-sm); color: var(--color-text-muted); margin: calc(var(--space-2) * -1) 0 0; display: flex; gap: var(--space-2); align-items: flex-start; }
.as-veh svg { width: 18px; height: 18px; flex: none; color: #15803d; margin-top: 2px; }
.as-veh-ok { color: var(--color-text); }

/* Drivable / not drivable picture options */
.as-opt.as-opt-pic { display: flex; align-items: center; gap: var(--space-3); }
.as-opt.as-opt-pic img { width: 96px; height: 72px; object-fit: cover; border-radius: var(--radius-md, 8px); flex: none; background: #eef3ef; }
.as-opt.as-opt-pic span { flex: 1; }

/* Call 1300 button (primary) + 000 (secondary) */
.as-call {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 44px; padding: 0 var(--space-4);
  border-radius: var(--radius-full);
  background: var(--color-primary); color: #fff; font-weight: 700; font-size: var(--text-sm);
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 2px 8px rgb(0 0 0 / .18);
}
.as-call:hover { background: var(--color-primary-hover); }
.as-call svg { width: 18px; height: 18px; flex: none; }
.as-top .as-000 { background: transparent; color: #b3261e; border: 1.5px solid #b3261e; box-shadow: none; padding: 0 var(--space-3); }
.as-top .as-000:hover { background: rgb(179 38 30 / .07); }
.as-top .as-000 svg { flex: none; }
[data-theme='dark'] .as-top .as-000 { color: #f28b82; border-color: #f28b82; }
.as-call .sm, .as-000 .sm { display: none; }
@media (max-width: 480px) {
  .as-call .lg, .as-000 .lg { display: none; }
  .as-call .sm, .as-000 .sm { display: inline; }
  .as-call, .as-top .as-000 { padding: 0 var(--space-3); }
}
.as-callnote { font-size: var(--text-sm); color: var(--color-text-muted); margin: calc(var(--space-6) * -0.5) 0 var(--space-6); }
.as-callnote a { color: var(--color-primary); font-weight: 700; white-space: nowrap; }
.after-hours .as-call, .after-hours .as-callnote { display: none; }

.as-hirecar { display:flex; align-items:flex-start; gap:10px; margin:calc(-1 * var(--space-3)) 0 var(--space-4); padding:10px 14px; border-radius:10px; background:var(--color-primary-highlight); color:var(--color-text); font-size:var(--text-sm); line-height:1.45; }
.as-hirecar svg { flex:0 0 auto; margin-top:1px; color:var(--color-primary); }
.as-hirecar strong { color:var(--color-primary); }
