/* Planlæggeren (/forespoergsel) */
.plan-head { background: var(--night); color: #fff; padding: 56px 0 120px; }
.plan-head .eyebrow { color: var(--champagne); }
.plan-head .lead { color: var(--on-night-muted); margin-top: 12px; }
.plan { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; align-items: start; margin-top: -72px; position: relative; z-index: 2; }
.plan-main { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 40px; min-width: 0; }
@media (max-width: 1020px) { .plan { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .plan-head { padding: 40px 0 96px; } .plan { margin-top: -64px; width: calc(100% - 24px); } .plan-main { padding: 24px 18px; border-radius: 16px; } }

/* progress */
.prog { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.prog button { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 0 0 4px; border: 0; background: none; color: var(--muted); font: 500 14px/1.2 var(--sans); cursor: pointer; text-align: left; }
.prog button::before { content: ""; display: block; width: 100%; height: 4px; border-radius: 4px; background: var(--line); transition: background-color 260ms; }
.prog button span { display: none; }
.prog button em { font-style: normal; }
.prog button.is-done::before, .prog button[aria-current="step"]::before { background: var(--accent); }
.prog button[aria-current="step"] { color: var(--ink); font-weight: 600; }
.prog button:disabled { cursor: default; }
.prog button:not(:disabled):hover em { text-decoration: underline; }
@media (max-width: 560px) { .prog button em { display: none; } .prog button[aria-current="step"] em { display: block; white-space: nowrap; } }

.stepbox { border: 0; margin: 0; padding: 0; min-width: 0; }
.stepbox legend { font: 600 clamp(30px, 3.4vw, 40px)/1.1 var(--serif); padding: 0; margin: 0 0 8px; }
.stepbox .hint { color: var(--muted); margin: 0 0 24px; }
.stepbox h2.sub { font: 600 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 32px 0 12px; }
.stepbox h2.sub:first-of-type { margin-top: 8px; }

/* option cards */
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt > span { display: flex; flex-direction: column; gap: 2px; min-height: 72px; justify-content: center; padding: 14px 44px 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color 180ms, background-color 180ms, transform 180ms var(--ease-out, ease); }
.opt > span::after { content: ""; position: absolute; right: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; transition: all 180ms; }
.opt b { font-weight: 600; }
.opt small { color: var(--muted); font-size: 14px; }
.opt:hover > span { border-color: var(--accent); }
.opt:active > span { transform: scale(.98); }
.opt input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.opt input:checked + span::after { border: 6px solid var(--accent); }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 560px) { .opts { grid-template-columns: 1fr; gap: 8px; } .opt > span { min-height: 60px; } }

/* fields */
.grid3 { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld-wide { grid-column: 1 / -1; }
.fld label, .fld .lab { font-weight: 600; font-size: 15px; }
.fld label i { font-style: normal; font-weight: 400; color: var(--muted); }
.fld input, .fld textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid #CFC8BD; border-radius: var(--r-sm); background: #fff; color: var(--ink); font: 400 17px/1.4 var(--sans); transition: border-color 180ms, box-shadow 180ms; -webkit-appearance: none; appearance: none; }
.fld input[type="date"], .fld input[type="time"] { min-width: 0; }
.fld textarea { min-height: 52px; resize: vertical; }
.fld input:hover, .fld textarea:hover { border-color: var(--muted); }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(43 111 145 / .2); }
.fld input[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 3px rgb(179 38 30 / .12); }
.fld input::placeholder, .fld textarea::placeholder { color: #8A949C; }
.fld-pax { margin-top: 20px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid #CFC8BD; border-radius: 999px; padding: 4px; width: max-content; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; cursor: pointer; }
.stepper button:hover { background: var(--accent); color: #fff; }
.stepper button:active { transform: scale(.94); }
.stepper input { width: 64px; text-align: center; border: 0; font: 600 20px/1 var(--sans); background: none; color: var(--ink); -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.dur { margin-top: 20px; padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); font-size: 15px; }
.dur b { font-weight: 600; }
@media (max-width: 640px) { .grid3 { grid-template-columns: 1fr 1fr; } .grid3 .fld:first-child { grid-column: 1 / -1; } .grid2 { grid-template-columns: 1fr; } }

/* route */
.route { position: relative; display: grid; gap: 16px; }
.route::before { content: ""; position: absolute; left: 9px; top: 44px; bottom: 26px; width: 2px; background: repeating-linear-gradient(var(--line) 0 6px, transparent 6px 12px); }
.stop { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 16px; align-items: end; }
.stop .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--accent); background: #fff; margin-bottom: 16px; position: relative; z-index: 1; }
.stop-a .dot, .stop-b .dot { background: var(--accent); }
.stop-add { align-items: center; }
.stop-add .dot { border-style: dashed; border-color: var(--muted); margin: 0; }
.stop-x { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) 104px 44px; gap: 10px; align-items: end; }
.stop-x .rm { width: 44px; height: 52px; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.stop-x .rm:hover { color: var(--bad); border-color: var(--bad); }
@media (max-width: 640px) { .stop-x { grid-template-columns: minmax(0, 1fr) 96px 44px; } .stop-x .fld:nth-child(2) { grid-column: 1 / -1; grid-row: 2; } .stop-x .fld:first-child { grid-column: 1; } }

/* car + tyl pickers */
.cars-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.carpick, .tp { position: relative; cursor: pointer; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; transition: border-color 180ms, box-shadow 180ms, transform 180ms var(--ease-out, ease); }
.carpick input, .tp input { position: absolute; opacity: 0; pointer-events: none; }
.carpick img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--line-2); }
.carpick .any-ic { display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--accent-soft); color: var(--accent); }
.carpick .any-ic svg { width: 32px; height: 32px; }
.carpick > span:last-child { padding: 10px 12px 12px; display: flex; flex-direction: column; }
.carpick b { font-weight: 600; font-size: 15px; }
.carpick small { color: var(--muted); font-size: 13px; }
.carpick:hover, .tp:hover { border-color: var(--accent); }
.carpick:active, .tp:active { transform: scale(.98); }
.carpick:has(input:checked), .tp:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.carpick:has(input:focus-visible), .tp:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.carpick.on, .tp.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.tylpick { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.tp img, .tp .none-ic { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.tp .none-ic { display: grid; place-items: center; background: var(--line-2); color: var(--muted); }
.tp > span:last-child { padding: 8px 8px 10px; font-size: 13px; font-weight: 600; text-align: center; }
@media (max-width: 640px) { .cars-pick { grid-template-columns: 1fr 1fr; } .carpick-any { grid-column: 1 / -1; flex-direction: row; align-items: center; } .carpick-any .any-ic { aspect-ratio: auto; width: 64px; height: 56px; } .tylpick { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.checks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ck { position: relative; cursor: pointer; }
.ck input { position: absolute; opacity: 0; pointer-events: none; }
.ck span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 15px; transition: all 180ms; }
.ck span::before { content: ""; width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid #B9B1A5; background: #fff center / 12px no-repeat; transition: all 180ms; }
.ck:hover span { border-color: var(--accent); }
.ck input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.ck input:checked + span::before { background-color: var(--accent); border-color: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.ck input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

/* trust + misc */
.trust { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; padding: 18px 20px; border-radius: 12px; background: var(--accent-soft); margin: 4px 0 8px; }
.trust svg { color: var(--accent); width: 26px; height: 26px; }
.trust p { margin: 0; font-size: 16px; }
.fine { font-size: 14px; color: var(--muted); margin: 20px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.err { color: var(--bad); font-size: 15px; font-weight: 500; margin: 16px 0 0; min-height: 0; }
.err:empty { display: none; }
.nav-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.nav-row .btn-p { margin-left: auto; }
.is-busy { pointer-events: none; opacity: .7; }

/* done */
.done { text-align: left; }
.done-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; margin-bottom: 20px; }
.done-ic svg { width: 32px; height: 32px; }
.done h2 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 12px; }
.done-fb { margin-top: 28px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; }
.done-fb p { margin: 0; }
.done-fb .nav-row { margin-top: 16px; justify-content: flex-start; }
.done-fb .nav-row .btn-p { margin-left: 0; }
.done.is-err .done-ic { background: var(--warn-bg); color: var(--warn); }

/* trip summary */
.trip { position: sticky; top: 104px; }
.trip-card { background: var(--night-2); color: var(--on-night); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); border: 1px solid rgb(201 178 124 / .25); }
.tl .t, .trip-price b, .mbar b { font-variant-numeric: lining-nums tabular-nums; }
.trip-top .eyebrow { color: var(--champagne); margin-bottom: 10px; }
.trip-top h2 { font-size: 32px; color: #fff; }
.trip-date { color: var(--on-night-muted); margin: 6px 0 0; font-size: 15px; }
.tl { list-style: none; margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid rgb(255 255 255 / .1); display: grid; gap: 0; }
.tl li { position: relative; display: grid; grid-template-columns: 52px 14px minmax(0, 1fr); gap: 10px; padding-bottom: 16px; font-size: 15px; animation: rise 260ms var(--ease-out, ease) both; }
.tl li::before { content: ""; position: absolute; left: 67px; top: 16px; bottom: -2px; width: 1px; background: rgb(255 255 255 / .18); }
.tl li:last-child { padding-bottom: 0; }
.tl li:last-child::before { display: none; }
.tl .t { color: var(--champagne); font-variant-numeric: tabular-nums; font-weight: 600; }
.tl .d { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--champagne); margin-top: 6px; background: var(--night); position: relative; z-index: 1; }
.tl b { display: block; color: #fff; font-weight: 600; }
.tl span.a { color: var(--on-night-muted); overflow-wrap: anywhere; }
.tl .tl-empty { display: block; color: var(--on-night-muted); padding: 0; }
.tl .tl-empty::before { display: none; }
.trip-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.trip-tags:empty { display: none; }
.trip-tags span { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; background: rgb(255 255 255 / .08); color: var(--on-night); font-size: 13px; }
.trip-price { margin-top: 20px; padding: 18px 20px; border-radius: 14px; background: rgb(255 255 255 / .06); border: 1px solid rgb(201 178 124 / .35); }
.tp-l { display: block; font: 600 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--champagne); }
.trip-price b { display: block; font: 600 40px/1.1 var(--serif); color: #fff; margin-top: 8px; }
.trip-price small { display: block; color: var(--on-night-muted); font-size: 14px; margin-top: 2px; }
.pl { font-size: 13px; color: var(--on-night-muted); margin: 14px 0 0; line-height: 1.5; }
.pl span { color: var(--on-night); }

/* mobile bar + sheet */
.mbar { display: none; }
@media (max-width: 1020px) {
  .trip { position: fixed; inset: auto 0 0 0; z-index: 70; top: auto; max-height: 86svh; overflow: auto; transform: translateY(105%); transition: transform 300ms var(--ease-out, ease); padding: 0; }
  .trip.open { transform: none; }
  .trip-card { border-radius: 20px 20px 0 0; padding: 28px 20px calc(96px + env(safe-area-inset-bottom)); }
  .mbar { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 80; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 20px; border-radius: 999px; background: var(--night); color: #fff; box-shadow: 0 12px 32px -8px rgb(14 26 36 / .5); }
  .mbar small { display: block; font-size: 12px; color: var(--on-night-muted); }
  .mbar b { font: 600 22px/1.1 var(--serif); }
  .mbar .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }
  .is-plan .ftr { padding-bottom: 120px; }
}

.is-done .mbar { display: none !important; }

/* runde 2 */
.plan-head { padding: 40px 0 104px; }
.plan-head h1 { font-size: clamp(36px, 5vw, 60px); }
.prog-m { display: none; font: 600 14px/1.2 var(--sans); color: var(--muted); margin: 12px 0 0; }
.prog-m b { color: var(--ink); }
.stop-x { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) 128px 44px; }
.stop-x .fld input[type="time"] { padding-right: 8px; }
.stop:not(.stop-a):not(.stop-b):not(.stop-add) .stop-x { background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px; }
.stop:not(.stop-a):not(.stop-b):not(.stop-add) .dot { margin-bottom: 28px; }
.carpick::after, .tp::after { content: ""; position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat; opacity: 0; transform: scale(.6); transition: opacity 180ms, transform 180ms var(--ease-out, ease); box-shadow: 0 0 0 2px #fff; }
.carpick.on::after, .tp.on::after { opacity: 1; transform: none; }
.carpick img { aspect-ratio: 16 / 10; }
.opt > span::after { border-color: #9AA4AC; }
.sent-box { margin-top: 20px; padding: 16px 18px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.sent-box p.lab { font: 600 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.sent-box pre { margin: 0; white-space: pre-wrap; font: 400 15px/1.55 var(--sans); color: var(--ink); max-height: 320px; overflow: auto; }
.done-fb { border: 0; padding: 20px 0 0; border-top: 1px solid var(--line); border-radius: 0; }
.tl .a { color: #B9C4CD !important; }
@media (max-width: 1020px) {
  .plan-main { padding-bottom: 32px; }
  body.is-plan { padding-bottom: 96px; }
  .mbar .btn { background: transparent; color: #fff; border: 1px solid rgb(255 255 255 / .45); }
  .trip { box-shadow: 0 -20px 60px rgb(14 26 36 / .45); }
  .trip-card::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: rgb(255 255 255 / .3); margin: -12px auto 20px; }
}
@media (max-width: 640px) {
  .plan-head { padding: 28px 0 88px; }
  .plan-head .lead { font-size: 16px; }
  .prog { margin-bottom: 8px; }
  .prog button em { display: none !important; }
  .prog-m { display: block; margin-bottom: 24px; }
  .stop-x { grid-template-columns: minmax(0, 1fr) 112px 44px; }
}

/* runde 3 */
.mbar-sum { background: none; border: 0; color: #fff; text-align: left; padding: 0; cursor: pointer; display: flex; flex-direction: column; }
.mbar-sum small u { text-underline-offset: 2px; }
@media (max-width: 1020px) { .mbar .btn-p { background: #fff; color: var(--ink); border: 0; min-width: 120px; } .mbar .btn-p:hover { background: var(--accent-soft); } }
.sheet-open::after { content: ""; position: fixed; inset: 0; background: rgb(14 26 36 / .55); z-index: 60; }
.sent-box pre { max-height: none; overflow: visible; }
.is-done .trip { display: none; }
@media (min-width: 1021px) { .is-done .plan { grid-template-columns: minmax(0, 760px); justify-content: center; } }
.carpick img.acc-img { object-position: 30% 50%; }

@media (max-width: 1020px) { .plan { z-index: auto; } .plan-main { position: relative; z-index: 2; } }

/* runde 4: kontrast på kanter og pladsholdere */
.fld input, .fld textarea, .stepper { border-color: #8A949C; }
.fld input::placeholder, .fld textarea::placeholder { color: #66717B; }
.opt > span, .carpick, .tp, .ck span { border-color: #A3ACB3; }
.opt > span::after { border-color: #7D8790; }
.ck span::before { border-color: #7D8790; }
