/* ------ checkout pages (log in / create account) ------ */
/* Tokens stay scoped to these containers, never :root — these pages can also
   render the site header/footer, which read the same names from styles.css. */
.co, .cf-wrap {
  --serif: "Montserrat", Georgia, serif;
  --white: #fff; --bg: #f6f6f4;
  --ink: #20222a; --muted: #6c7079; --muted2: #9a9ea7;
  --line: #e7e6e2; --line2: #dedcd6;
  --gold: #b4a886; --gold-d: #9b8e69; --gold-tint: #f1ede2; --gold-ink: #6f6535;
  --radius-sm: 8px; --radius-md: 12px;
  --dur-fast: 120ms;
}

.co { min-height: calc(100vh - 61px); }
.co__grid { max-width: 942px; margin: 0 auto; padding: 46px 40px 96px; display: grid; grid-template-columns: minmax(0, 470px) 344px; gap: 46px; align-items: start; justify-content: center; }
.co__card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 34px rgba(31,30,28,.06); }

/* ---- left: auth form ---- */
.au { padding: 32px 32px 28px; }
.au__kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--gold-ink); }
.au__kicker svg { color: var(--gold-ink); }
.au__title { font-family: var(--serif); font-size: 27px; font-weight: 500; color: var(--ink); margin: 14px 0 0; letter-spacing: -.01em; }
.au__sub { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 6px 0 24px; }

.au__social { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.au__soc { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; border: 1px solid var(--line2); border-radius: var(--radius-sm); background: var(--white); font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; transition: border-color var(--dur-fast), background var(--dur-fast); }
.au__soc:hover { border-color: var(--muted2); background: var(--bg); }

.au__or { display: flex; align-items: center; gap: 14px; margin: 20px 0; color: var(--muted2); font-size: 12px; white-space: nowrap; }
.au__or::before, .au__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.au__row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.au__row2 .au__field { margin-bottom: 0; }
.au__field { position: relative; margin-bottom: 18px; }
.au__field-ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted2); pointer-events: none; display: grid; }
.au__in { width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--line2); border-radius: var(--radius-sm); font-size: 15px; font-family: inherit; color: var(--ink); background: var(--white); transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.au__in--ic { padding-left: 44px; }
.au__in::placeholder { color: var(--muted2); }
.au__in:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-tint); }
.au__eye { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted2); padding: 6px; cursor: pointer; }
.au__eye:hover { color: var(--muted); }
.au__in--bad, .au__in--bad:focus { border-color: #c47b77; box-shadow: 0 0 0 3px rgba(180,81,78,.09); }
.au__err { display: block; margin: -8px 0 16px; font-size: 12px; color: #b4514e; }
.au__hint { display: block; margin: -8px 0 16px; font-size: 12px; color: var(--muted2); }
.au__hint--bad { color: #b4514e; }

/* phone with country code (reuses booking's .gf__cc dropdown) */
.au__phone { display: flex; align-items: stretch; height: 52px; border: 1px solid var(--line2); border-radius: var(--radius-sm); overflow: visible; transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.au__phone:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-tint); }
.au__phone .gf__cc { display: flex; }
.au__phone .gf__cc-btn { border: 0; border-right: 1px solid var(--line2); border-radius: 0; height: auto; padding: 0 10px 0 14px; background: none; }
.au__phone input { flex: 1; min-width: 0; border: 0; background: none; padding: 0 16px; font-size: 15px; font-family: inherit; color: var(--ink); }
.au__phone input:focus { outline: none; }
.au__phone input::placeholder { color: var(--muted2); }

.au__srow { display: flex; align-items: center; justify-content: space-between; margin: 24px 0 32px; }
.au__check { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); cursor: pointer; line-height: 1.4; }
.au__cb { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; pointer-events: none; }
.au__box { display: inline-grid; place-items: center; width: 19px; height: 19px; flex: 0 0 auto; border: 1.5px solid var(--line2); border-radius: 5px; background: var(--white); color: #fff; transition: background var(--dur-fast), border-color var(--dur-fast); }
.au__cb:checked + .au__box { background: var(--gold); border-color: var(--gold); }
.au__cb:focus-visible + .au__box { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-tint); }
.au__link { font-size: 14px; font-weight: 600; color: var(--gold); cursor: pointer; text-decoration: none; }
.au__link:hover { color: var(--gold-d); text-decoration: none; }
.au__checks { display: flex; flex-direction: column; gap: 12px; margin: 18px 0 28px; }
/* terms/marketing can wrap to two lines: top-align the box with the first line */
.au__checks .au__check { align-items: flex-start; }
.au__checks .au__box { margin-top: 1px; }

.au__submit { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 52px; border: 0; border-radius: var(--radius-sm); background: var(--gold); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; transition: background var(--dur-fast); }
.au__submit:hover { background: var(--gold-d); }
.au__submit:disabled { opacity: .5; cursor: not-allowed; }
.au__guest { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 52px; margin-top: 0; border: 1px solid var(--line2); border-radius: var(--radius-sm); background: var(--white); font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; transition: border-color var(--dur-fast), background var(--dur-fast); }
.au__guest:hover { border-color: var(--muted2); background: var(--bg); }
.au__foot { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.au__foot .au__link { font-weight: 600; }

/* ---- payment page ---- */
.pay__brands { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: flex; gap: 5px; align-items: center; pointer-events: none; }
.pay__brands svg { height: 20px; width: auto; display: block; }
.pay__save { margin: 16px 0 24px; }
.pay__trust { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 16px; }
.pay__trust svg { color: var(--gold-ink); flex: 0 0 auto; }
.pay__seclabel { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 14px; }
.pay__seclabel--pay { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.pay__guesthint { font-size: 12px; color: var(--muted); margin: 2px 0 0; line-height: 1.4; }

/* ---- right: order summary ---- */
.os { padding: 20px; }
.os__img { position: relative; aspect-ratio: 16/9; border-radius: 13px; overflow: hidden; display: grid; place-items: center; margin-bottom: 15px; }
.os__img img { width: 84%; height: 84%; object-fit: contain; }
.os__img .card__badge { position: absolute; top: 11px; left: 11px; font-size: 10.5px; padding: 4px 11px; }
.os__name { font-size: 16px; font-weight: 600; color: var(--ink); }
.os__model { font-size: 13px; color: var(--muted); margin-top: 2px; }
.os__total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 14px; }
.os__total-l { font-size: 12.5px; color: var(--muted); }
.os__price { font-size: 21px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; }
.os__rate { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); white-space: nowrap; }
.os__rate svg { color: var(--gold); flex: 0 0 auto; }
.os__rate b { color: var(--ink); font-weight: 700; }
.os__jhead { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); margin-bottom: 14px; }
.os__jlbl { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
/* order-summary journey stays calm: keep the subtle static connector, drop booking's looping gold draw */
.os .jrny__row:not(:last-child)::after, .cf .jrny__row:not(:last-child)::after { display: none; }
/* membership perks (signup) — plain bordered section */
.os__perks { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.os__perks-t { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.os__perk { display: flex; align-items: flex-start; gap: 11px; font-size: 12px; color: var(--ink); line-height: 1.4; }
.os__perk + .os__perk { margin-top: 15px; }
.os__perk svg { color: var(--gold-ink); flex: 0 0 auto; margin-top: 1px; }
/* free-cancellation policy (login) — plain bordered section, matching the reference */
.os__foot { display: flex; align-items: flex-start; gap: 10px; margin: 18px -20px -20px; padding: 16px 20px; border-top: 1px solid var(--line); background: var(--bg); border-radius: 0 0 18px 18px; font-size: 12px; color: var(--muted); line-height: 1.4; }
.os__foot-ic { color: var(--gold-ink); flex: 0 0 auto; margin-top: 1px; }
.os__foot b { color: var(--ink); font-weight: 600; display: block; margin-bottom: 1px; }

/* ---- reservation confirmed (centered single column) ---- */
.cf-wrap { max-width: 520px; margin: 0 auto; padding: 46px 20px 96px; }
.cf { padding: 40px 36px 32px; text-align: center; }
.cf__icon { width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-tint); color: var(--gold-ink); }
.cf__title { font-family: var(--serif); font-size: 27px; font-weight: 500; color: var(--ink); letter-spacing: -.01em; }
.cf__sub { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 8px auto 0; max-width: 380px; }
.cf__ref { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; padding: 10px 16px; border: 1px dashed var(--line2); border-radius: var(--radius-sm); font-size: 13px; }
.cf__ref span { color: var(--muted); }
.cf__ref b { color: var(--ink); font-weight: 700; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.cf__sec { text-align: left; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.cf__veh { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.cf__veh-img { width: 84px; height: 56px; flex: 0 0 auto; border-radius: var(--radius-md); display: grid; place-items: center; overflow: hidden; }
.cf__veh-img img { width: 88%; height: auto; }
.cf__veh-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.cf__veh-model { font-size: 13px; color: var(--muted); margin-top: 2px; }
.cf__pay { display: flex; flex-direction: column; gap: 6px; }
.cf__payrow { display: flex; align-items: baseline; justify-content: space-between; }
.cf__payrow span { font-size: 14px; color: var(--muted); }
.cf__payrow b { font-size: 20px; font-weight: 700; color: var(--ink); }
.cf__paymeta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.cf__paymeta svg { color: var(--gold-ink); flex: 0 0 auto; }
.cf__policy { display: flex; align-items: flex-start; gap: 10px; text-align: left; margin-top: 22px; padding: 14px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-md); font-size: 12px; color: var(--muted); line-height: 1.4; }
.cf__policy-ic { color: var(--gold-ink); flex: 0 0 auto; margin-top: 1px; }
.cf__policy b { color: var(--ink); font-weight: 600; display: block; margin-bottom: 1px; }
.cf .au__submit { margin-top: 24px; }
.cf__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.cf .au__foot { margin-top: 20px; }

@media (max-width: 942px) {
  .co__grid { grid-template-columns: 1fr; max-width: 480px; gap: 24px; padding: 32px 16px 64px; }
  .au { padding: 26px 22px 24px; }
  .os { display: none; }   /* mobile: hide the order-summary column, keep the form only */
}
