/* Scanbiludlejning booking. Change the brand colours here only. */
:root {
    --brand: #a65a3e;        /* header band */
    --panel: #fbe4c6;        /* search box */
    --go: #5a9a62;           /* search button */
    --cta: #c2643c;          /* main buttons and links */
    --cta-ink: #fff;
    --ink: #2f2722;
    --muted: #6f625a;
    --line: #e7ddd2;
    --bg: #fbf8f4;
    --card: #fff;
    --soft: #f4eee6;
    --tip: #fff3df;
    --ok: #5a9a62;
    --error: #c0392b;
    --radius: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); overflow-x: hidden; }
a { color: var(--cta); }
[hidden] { display: none !important; }
.i { width: 1.1em; height: 1.1em; vertical-align: -.18em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Header and footer */
.top { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: .9rem max(1rem, calc((100% - 1120px) / 2)); background: var(--card); border-bottom: 1px solid var(--line); }
.brand { font-weight: 800; font-size: 1.3rem; text-decoration: none; color: var(--brand); }
.tagline { color: var(--muted); font-size: .95rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 1rem; }
.foot { text-align: center; color: var(--muted); padding: 2rem 1rem; font-size: .9rem; }
h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.15; margin: .25rem 0 1rem; letter-spacing: -.01em; }
h2 { font-size: 1.25rem; margin: 1.75rem 0 .75rem; }
h3 { font-size: 1rem; margin: 0 0 .5rem; }

/* Front page band with the search box */
.hero { background: var(--brand); color: #fff; margin: -1rem calc(50% - 50vw) 1rem; padding: 2rem 1rem 2.5rem; }
.hero .inner { max-width: 1120px; margin: 0 auto; }
.trust { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; padding: 0; margin: 0 0 1rem; font-weight: 700; }
.trust .i { color: #ffe0b8; }
.earliest { color: #f8e9e1; font-size: .9rem; margin: .75rem 0 0; }

/* Search box (wide on the front page, narrow beside the car list) */
.searchbox { background: var(--panel); border-radius: var(--radius); padding: 1rem; color: var(--ink); display: grid; gap: .6rem; }
.box { display: block; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: .35rem .7rem .3rem; margin: 0; font-weight: 400; min-width: 0; }
.box span { display: block; font-size: .8rem; color: var(--muted); }
.box input, .box select { border: 0; padding: 0; margin: 0; width: 100%; font: inherit; font-size: 1.05rem; background: transparent; color: var(--ink); min-height: 1.6rem; }
.box input:focus, .box select:focus { outline: none; }
.box:focus-within { outline: 2px solid var(--cta); outline-offset: 1px; }
.tick { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400; margin: .25rem 0; }
.tick input { width: 1.15rem; height: 1.15rem; margin: .15rem 0 0; accent-color: var(--cta); flex: none; }
.dates { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.pair { display: grid; grid-template-columns: 1fr 6.5rem; gap: 0; }
.pair .box:first-child { border-radius: 6px 0 0 6px; }
.pair .box.time { border-left: 0; border-radius: 0 6px 6px 0; }
.last { display: grid; grid-template-columns: 1fr auto; gap: .6rem; align-items: stretch; }
.go { background: var(--go); color: #fff; border: 0; border-radius: 99px; font: inherit; font-weight: 700; font-size: 1.1rem; padding: .7rem 1.8rem; cursor: pointer; }
.searchbox.compact .dates { grid-template-columns: 1fr; }
.searchbox.compact .last { grid-template-columns: 1fr; }

/* Car list */
.results { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.side { position: sticky; top: 1rem; }
.cats { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; margin-bottom: 1rem; }
.cats a { flex: none; display: grid; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem .9rem; min-width: 8.5rem; }
.cats a.on { border-color: var(--cta); box-shadow: inset 0 0 0 1px var(--cta); }
.cats small { color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.car { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 1rem; }
.car h2 { margin: 0 0 .25rem; font-size: 1.35rem; }
.car h2 small { font-size: .95rem; font-weight: 400; color: var(--muted); }
.specs { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: 0 0 .75rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.specs span { display: inline-flex; gap: .3rem; align-items: center; }
.car .body { display: grid; grid-template-columns: 200px 1fr; gap: 1rem; align-items: center; }
.photo { aspect-ratio: 16/10; background: var(--soft); border-radius: 8px; display: grid; place-items: center; font-size: 2rem; color: var(--muted); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: contain; }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.features li { display: flex; gap: .5rem; }
.features .i { color: var(--ok); margin-top: .2rem; }
.car .buy { border-left: 1px solid var(--line); padding-left: 1rem; display: flex; flex-direction: column; justify-content: flex-end; gap: .15rem; }
.car .buy strong { font-size: 1.6rem; line-height: 1.2; }
.car .buy small, .car .buy s { color: var(--muted); }
.badge { align-self: flex-start; background: #e3f5e9; color: #146c34; font-weight: 700; font-size: .8rem; padding: .1rem .5rem; border-radius: 99px; margin-bottom: auto; }
.button, button { font: inherit; cursor: pointer; }
.cta { display: block; background: var(--cta); color: var(--cta-ink); border: 0; border-radius: 99px; padding: .75rem 1.25rem; font-weight: 700; font-size: 1.05rem; text-align: center; text-decoration: none; margin-top: .6rem; }
.cta.wide { width: 100%; padding: .9rem; font-size: 1.15rem; }
.outline { background: #fff; color: var(--cta); border: 2px solid var(--cta); border-radius: 99px; padding: .45rem 1.1rem; font-weight: 600; margin: .5rem 0 1rem; }

/* Details / checkout */
.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: .25rem 0 .75rem; }
.progress span { height: 4px; border-radius: 2px; background: var(--line); }
.progress .done { background: var(--ok); }
.progress .on { background: var(--cta); }
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2rem; align-items: start; }
.crumbs { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); margin: 0; }
.crumbs a { text-decoration: none; font-weight: 600; }
.details label { display: block; font-weight: 600; margin-bottom: .9rem; }
.details input:not([type=checkbox]):not([type=radio]), .details select, .details textarea {
    display: block; width: 100%; margin-top: .3rem; padding: .7rem .75rem; font: inherit; border: 1px solid #d8ccbf; border-radius: 4px; background: #fff; color: var(--ink);
}
.details input:focus, .details select:focus, .details textarea:focus { outline: 2px solid var(--cta); outline-offset: 0; border-color: var(--cta); }
.details .tick { font-weight: 400; }
fieldset { border: 0; padding: 0; margin: 0 0 .9rem; min-width: 0; }
legend { font-weight: 600; padding: 0; margin-bottom: .3rem; }
.birth { display: grid; grid-template-columns: 1fr 1.3fr 1.2fr; gap: .5rem; }
.birth legend { grid-column: 1 / -1; }
.birth select { margin-top: 0 !important; }
.radio label { display: inline-flex !important; gap: .4rem; margin: .3rem 1.25rem 0 0 !important; font-weight: 400 !important; }
.radio input { accent-color: var(--cta); }
.row { display: flex; gap: 1.25rem; }
.row > * { flex: 1; min-width: 0; }
.note { display: flex; gap: .6rem; background: var(--soft); border-radius: 6px; padding: .75rem 1rem; margin: 0 0 1rem; font-weight: 600; }
.note .i { color: var(--cta); margin-top: .2rem; }
.extras { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.extra { display: flex !important; justify-content: space-between; align-items: center; gap: 1rem; font-weight: 400 !important; border-bottom: 1px solid var(--line); padding: .35rem 0; margin: 0 !important; }
.extra select { width: 4.5rem !important; margin: 0 !important; padding: .35rem .5rem !important; }
.extra em { color: var(--muted); font-style: normal; }
.summarycol { position: sticky; top: 1rem; display: grid; gap: .75rem; }
.trip { display: grid; grid-template-columns: 1fr 120px; gap: .75rem; align-items: center; margin: 0; }
.trip > div:first-child { display: grid; }
.trip .muted { color: var(--muted); }
.trip .photo { font-size: 1.4rem; }
.paybox { background: var(--soft); border-radius: 6px; padding: .8rem 1rem; }
.paybox p { display: flex; justify-content: space-between; margin: 0; }
.summary { width: 100%; border-collapse: collapse; }
.summary td { padding: .25rem 0; }
.summary td:last-child { text-align: right; white-space: nowrap; }
.summary .total td { font-weight: 800; font-size: 1.15rem; border-top: 1px solid var(--line); padding-top: .5rem; }
.tipbox { background: var(--tip); border-radius: var(--radius); padding: 1rem; }
.tipbox h4 { color: var(--error); margin: .75rem 0 .25rem; font-size: .95rem; }
.tipbox p { margin: .2rem 0; display: flex; gap: .5rem; }
.tipbox .ok .i { color: var(--ok); margin-top: .2rem; }
.errors { border: 1px solid var(--error); color: var(--error); background: #fff5f4; border-radius: 8px; padding: .5rem 1rem; margin-bottom: 1rem; }
.hp { position: absolute; left: -9999px; }

/* Insurance, deposit, excess, and the (i) explanations */
.cover { margin: .75rem 0 0; display: grid; gap: .2rem; font-size: .95rem; }
.cover > div { display: flex; justify-content: space-between; gap: 1rem; }
.cover dt { color: var(--muted); }
.cover dd { margin: 0; font-weight: 600; display: inline-flex; gap: .35rem; align-items: center; }
.info { position: relative; display: inline-block; font-weight: 400; }
.info summary { list-style: none; cursor: pointer; width: 1.15rem; height: 1.15rem; border-radius: 50%; border: 1.5px solid var(--muted); color: var(--muted); font: italic 700 .75rem/1 Georgia, serif; display: grid; place-items: center; }
.info summary::-webkit-details-marker { display: none; }
.info[open] summary, .info summary:hover { border-color: var(--cta); color: var(--cta); }
.info p { position: absolute; z-index: 5; right: -.5rem; top: 1.6rem; width: min(17rem, 80vw); margin: 0; padding: .65rem .8rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 20px rgba(47, 39, 34, .15); font-size: .9rem; line-height: 1.4; color: var(--ink); white-space: normal; }
.extra .info p { right: auto; left: -.5rem; }

/* Thank-you and booking page */
.okmsg { display: flex; gap: .5rem; background: #e9f4ea; color: #2d5e33; border-radius: 8px; padding: .75rem 1rem; font-weight: 600; }
.offerbox { border: 2px solid var(--cta); }
.offerbox h2 { margin-top: 0; }
.buttons { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.buttons .cta, .buttons .outline { margin: 0; }
.inline { display: flex; gap: .75rem; align-items: stretch; flex-wrap: wrap; }
.inline .box { flex: 1 1 12rem; }
.inline .cta { margin: 0; }
.muted { color: var(--muted); }
.steps { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1rem; flex-wrap: wrap; font-size: .9rem; }
.steps li { padding: .25rem .6rem; border-radius: 99px; background: var(--soft); color: var(--muted); }
.steps li.on { background: var(--cta); color: var(--cta-ink); }
.steps li.done { background: #f6dccd; color: var(--ink); }

@media (max-width: 900px) {
    .results, .checkout { grid-template-columns: minmax(0, 1fr); }
    .side, .summarycol { position: static; }
}
@media (max-width: 640px) {
    .dates, .last { grid-template-columns: 1fr; }
    .car { grid-template-columns: minmax(0, 1fr); }
    .car .body { grid-template-columns: 110px 1fr; }
    .car .buy { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: .75rem; }
    .row { flex-direction: column; gap: 0; }
    .extras { grid-template-columns: 1fr; }
    .hero { padding-top: 1.25rem; }
}

/* Help chat */
.chat-open { position: fixed; right: 1rem; bottom: 1rem; z-index: 50; display: inline-flex; gap: .45rem; align-items: center; background: var(--brand); color: #fff; border: 0; border-radius: 99px; padding: .75rem 1.15rem; font-weight: 700; box-shadow: 0 6px 20px rgba(47, 39, 34, .25); }
.chat-panel { position: fixed; right: 1rem; bottom: 4.6rem; z-index: 51; width: min(370px, calc(100vw - 2rem)); max-height: min(560px, calc(100vh - 6rem)); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 40px rgba(47, 39, 34, .25); overflow-y: auto; }
.chat-panel header { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: .7rem 1rem; background: var(--brand); color: #fff; }
.chat-close { background: none; border: 0; color: #fff; font-size: 1.1rem; }
.chat-log { flex: 1 0 9rem; overflow-y: auto; padding: .75rem; display: flex; flex-direction: column; gap: .5rem; min-height: 8rem; }
.chat-msg { margin: 0; padding: .55rem .8rem; border-radius: 12px; max-width: 88%; white-space: pre-wrap; line-height: 1.4; font-size: .95rem; }
.chat-msg.bot { background: var(--soft); align-self: flex-start; }
.chat-msg.me { background: var(--cta); color: #fff; align-self: flex-end; }
.chat-msg.wait { color: var(--muted); font-style: italic; }
.chat-ask { display: flex; gap: .5rem; padding: .6rem; border-top: 1px solid var(--line); }
.chat-ask textarea { flex: 1; resize: none; font: inherit; border: 1px solid #d8ccbf; border-radius: 8px; padding: .5rem .6rem; }
.chat-ask .cta, .chat-office .cta { margin: 0; padding: .55rem 1rem; font-size: .95rem; }
.chat-foot { margin: 0; padding: .4rem .75rem .6rem; font-size: .8rem; color: var(--muted); }
.chat-office-open { background: none; border: 0; padding: 0; color: var(--cta); text-decoration: underline; font-size: .8rem; }
.chat-office { display: grid; gap: .45rem; padding: .75rem; border-top: 1px solid var(--line); background: var(--bg); }
.chat-office p { margin: 0; font-size: .9rem; }
.chat-office input, .chat-office textarea { font: inherit; border: 1px solid #d8ccbf; border-radius: 6px; padding: .5rem .6rem; }
@media (max-width: 640px) { .chat-open { padding: .65rem 1rem; } }

/* Regular client pages and the survey */
.top .account { margin-left: auto; font-weight: 600; text-decoration: none; border: 1px solid var(--line); border-radius: 99px; padding: .35rem .9rem; }
.narrow { max-width: 34rem; margin: 0 auto; }
.details input.code { font-size: 1.6rem; letter-spacing: .3em; text-align: center; }
.linkish { background: none; border: 0; padding: .5rem 0; color: var(--cta); text-decoration: underline; font: inherit; cursor: pointer; }
.accounthead { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.accounthead h1 { margin-bottom: 0; }
.accounthead .outline { margin: 0; }
.warnmsg { background: var(--tip); border: 1px solid #f0c98c; border-radius: 8px; padding: .75rem 1rem; font-weight: 600; }
.mybookings { list-style: none; margin: 0; padding: 0; }
.mybookings li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .85rem 0; border-top: 1px solid var(--line); }
.mybookings li:first-child { border-top: 0; }
.mybookings .links { display: flex; gap: 1rem; align-items: center; }
.mybookings .cta { margin: 0; padding: .5rem 1.1rem; font-size: 1rem; }
.row.three > :nth-child(2) { flex: 0 0 6rem; }
.details h3 { margin: 1rem 0 .5rem; font-size: 1rem; }
.forget summary { cursor: pointer; font-weight: 600; color: var(--muted); }
.outline.danger { color: var(--error); border-color: var(--error); }
.scale { border: 0; padding: 0; margin: 0 0 1.1rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.scale legend { font-weight: 600; margin-bottom: .4rem; padding: 0; }
.scale label { margin: 0; }
.scale input { position: absolute; opacity: 0; }
.scale span { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border: 2px solid var(--line); border-radius: 50%; font-weight: 700; cursor: pointer; background: #fff; }
.scale input:checked + span { background: var(--cta); border-color: var(--cta); color: #fff; }
.scale input:focus-visible + span { outline: 2px solid var(--cta); outline-offset: 2px; }
.scale small { flex-basis: 100%; color: var(--muted); font-weight: 400; }
@media (max-width: 640px) {
    .row.three > :nth-child(2) { flex: 1; }
    .top .account { margin-left: 0; }
}
.scale label { display: inline-block; margin: 0; }
