/* Vrentals public site: one small stylesheet, light and dark, no framework. */
:root {
  --bg: #ffffff; --surface: #f4f6f9; --text: #15202b; --muted: #4a5868; --line: #d8dee6;
  --brand: #0b5cab; --brand-text: #ffffff; --accent: #0a7d4f; --danger: #b42318; --focus: #f5a524;
  --radius: 10px; --shadow: 0 6px 24px rgba(10, 30, 60, .14);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 17px; line-height: 1.55;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1720; --surface: #17222e; --text: #e8eef5; --muted: #a9b7c6; --line: #2a3a4b; --brand: #4ea3ff; --brand-text: #06121f; --accent: #3ccf8e; --danger: #ff8a80; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: var(--brand-text); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-top: 10px; padding-bottom: 10px; }
.brand { font-weight: 800; font-size: 1.5rem; text-decoration: none; color: var(--brand); letter-spacing: -.5px; }
.brand span { color: var(--text); }
nav { display: flex; flex-wrap: wrap; gap: 4px 14px; }
nav a { text-decoration: none; color: var(--text); padding: 4px 2px; border-bottom: 2px solid transparent; }
nav a[aria-current="page"], nav a:hover { border-color: var(--brand); }
main { padding-top: 24px; padding-bottom: 48px; min-height: 60vh; }
h1 { font-size: 2rem; line-height: 1.2; margin: .2em 0 .4em; }
h2 { font-size: 1.3rem; margin: 1.2em 0 .4em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46em; }
.hero { padding: 28px 0 8px; }
.btn { display: inline-block; background: var(--brand); color: var(--brand-text); border: 0; border-radius: var(--radius); padding: 12px 20px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--brand); border: 2px solid var(--brand); }
.btn.small { padding: 8px 14px; font-size: .95rem; }
.btn[disabled] { opacity: .6; cursor: wait; }
.cards { display: grid; gap: 16px; margin: 24px 0; }
.cards.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cards.two { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cards article, .car, .offer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.cards h2 { margin-top: 0; }
.cars { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.car img, .offer img, .ph { width: 100%; height: auto; aspect-ratio: 400 / 260; object-fit: cover; border-radius: 8px; background: var(--line); display: flex; align-items: center; justify-content: center; color: var(--muted); font-weight: 700; font-size: 1.3rem; }
.car h3 { margin: .6em 0 .2em; font-size: 1.1rem; }
.yr { color: var(--muted); font-weight: 400; }
.price { font-weight: 700; color: var(--accent); margin: .3em 0; }
.price.ask { color: var(--muted); font-weight: 600; }
.muted { color: var(--muted); }
.steps li, .docs li { margin-bottom: .6em; }
.form { max-width: 560px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 16px; padding: 12px 16px; }
legend { font-weight: 700; padding: 0 6px; }
.row { display: flex; flex-direction: column; margin-bottom: 12px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { font-weight: 600; margin-bottom: 4px; }
input, select, textarea { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--muted); border-radius: 8px; padding: 10px; width: 100%; }
input[type="checkbox"] { width: auto; margin: 4px 8px 0 0; }
.check { display: flex; align-items: flex-start; margin: 10px 0; }
.check label { font-weight: 400; }
.status { min-height: 1.5em; }
.status.ok { color: var(--accent); font-weight: 600; }
.status.err { color: var(--danger); font-weight: 600; }
.foot { background: var(--surface); border-top: 1px solid var(--line); padding: 24px 0; font-size: .95rem; }
.foot .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
address { font-style: normal; }

/* Chat widget: small, bottom right, easy to close */
.vc-launch { position: fixed; right: 16px; bottom: 16px; z-index: 40; border-radius: 999px; box-shadow: var(--shadow); }
.vc-box { position: fixed; right: 16px; bottom: 16px; z-index: 41; width: min(360px, calc(100vw - 32px)); max-height: min(520px, calc(100vh - 32px)); display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.vc-head { display: flex; align-items: center; justify-content: space-between; background: var(--brand); color: var(--brand-text); padding: 10px 12px; font-weight: 700; }
.vc-head button { background: transparent; color: inherit; border: 0; font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 2px 8px; }
.vc-log { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 160px; }
.vc-msg { max-width: 85%; padding: 8px 10px; border-radius: 10px; background: var(--surface); white-space: pre-wrap; word-wrap: break-word; font-size: .95rem; }
.vc-msg.visitor { align-self: flex-end; background: var(--brand); color: var(--brand-text); }
.vc-msg.system { align-self: center; background: transparent; color: var(--muted); font-size: .85rem; text-align: center; }
.vc-msg .who { display: block; font-size: .75rem; font-weight: 700; opacity: .8; }
.vc-form { display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--line); }
.vc-form input { flex: 1; padding: 8px; }
.vc-human { margin: 0 8px 8px; }
@media (max-width: 520px) { .two { grid-template-columns: 1fr; } h1 { font-size: 1.6rem; } }
@media (prefers-reduced-motion: no-preference) { .vc-box { animation: vcin .25s ease-out; } @keyframes vcin { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } } }
