/* Attribution Lab - the booking platform ("Tidebook", invented), backlog 6204-4.
   Loaded only by web/booking/index.html, on top of tokens.css (fonts) and
   demo.css (the strip, modal, toast and hints). lab.css is not loaded: this
   host has no drawer. The look follows what tour-operator checkouts look like
   (a header with the platform name and "secure booking", a two-step bar, the
   form on the left, the order summary with the total and the button on the
   right, a confirmation page with the reference). Self-contained colours. */

:root {
  --bk-bg: #F4F6F8;
  --bk-surface: #FFFFFF;
  --bk-ink: #17212B;
  --bk-ink-2: #3D4A57;
  --bk-muted: #6B7784;
  --bk-line: #E1E6EB;
  --bk-line-2: #CBD3DB;
  --bk-primary: #0F6E8C;
  --bk-primary-2: #0B5670;
  --bk-primary-soft: #E6F2F6;
  --bk-go: #1E9E5A;
  --bk-go-2: #167F48;
  --bk-radius: 12px;
  --bk-radius-sm: 8px;
  --bk-shadow: 0 8px 28px rgba(23, 33, 43, 0.08);
  --bk-max: 1080px;
  --bk-gutter: 16px;
}
@media (min-width: 768px) { :root { --bk-gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.bk-body {
  margin: 0;
  background: var(--bk-bg);
  color: var(--bk-ink);
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* the base rules stop at the demo layer (strip, modals, toasts, hints): it
   keeps the hub's look (demo.css) */
.bk-body a:where(:not(.dm-strip *, .dm-modal *, .dm-toast *, .s-callout *)) { color: var(--bk-primary); text-decoration: none; }
.bk-body a:where(:not(.dm-strip *, .dm-modal *, .dm-toast *, .s-callout *)):hover { text-decoration: underline; }
.bk-body h1:where(:not(.dm-modal *)), .bk-body h2:where(:not(.dm-modal *)) { margin: 0; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.bk-body h2:where(:not(.dm-modal *)) { font-size: 20px; }
.bk-body p { margin: 0; }
.bk-body svg:where(:not(.dm-strip *)) { width: 16px; height: 16px; flex: none; }
.bk-wrap { max-width: var(--bk-max); margin: 0 auto; padding: 0 var(--bk-gutter); width: 100%; }
.bk-main { flex: 1; padding: 22px 0 40px; }
.bk-body .mono { font-family: var(--font-mono); }

/* the demo strip, and the static plaque before demo.js runs, wear the
   hub's look (demo.css) */

/* ------------------------------------------------------------ header */
.bk-top { background: var(--bk-surface); border-bottom: 1px solid var(--bk-line); }
.bk-top .bk-wrap { display: flex; align-items: center; gap: 22px; min-height: 66px; }
.bk-back { font-size: 14px; color: var(--bk-muted); white-space: nowrap; }
.bk-back:hover { color: var(--bk-ink); }
.bk-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--bk-primary-2); font-size: 21px; font-weight: 600; line-height: 1; margin: 0 auto; }
.bk-brand .bk-mark { width: 32px; height: 32px; }
.bk-brand small { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bk-muted); margin-top: 4px; }
.bk-top-right { display: flex; align-items: center; gap: 16px; font-size: 13.5px; }
.bk-secure { display: inline-flex; align-items: center; gap: 6px; color: var(--bk-go-2); font-weight: 600; white-space: nowrap; }
.bk-lang { display: inline-flex; gap: 2px; border: 1px solid var(--bk-line-2); border-radius: 999px; padding: 2px; }
.bk-lang a { padding: 2px 9px; border-radius: 999px; font-weight: 500; color: var(--bk-ink-2); }
.bk-lang a.on { background: var(--bk-primary); color: #fff; }
.bk-lang a:hover { text-decoration: none; }
.bk-help { color: var(--bk-ink-2); }
@media (max-width: 767px) {
  .bk-top .bk-wrap { gap: 12px; min-height: 58px; }
  .bk-brand { font-size: 18px; }
  .bk-brand small { display: none; }
  /* Anton 26.09: on a phone the header did not fit ("Secure booking" pushed the
     page wider than the screen, so it floated under the finger) - the label goes */
  .bk-top .bk-secure, .bk-embedbar .bk-secure, .bk-help { display: none; }
  .bk-top .bk-wrap { min-width: 0; }
  .bk-brand { min-width: 0; }
  .bk-back { font-size: 13px; }
}

/* ------------------------------------------------------------- steps */
.bk-steps { list-style: none; margin: 0 0 18px; padding: 0; display: flex; gap: 26px; font-size: 14px; color: var(--bk-muted); }
.bk-steps li { display: inline-flex; align-items: center; gap: 8px; }
.bk-steps li span { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--bk-line-2); display: inline-flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 600; }
.bk-steps li.on { color: var(--bk-ink); font-weight: 600; }
.bk-steps li.on span { background: var(--bk-primary); border-color: var(--bk-primary); color: #fff; }
.bk-steps li.done { color: var(--bk-go-2); }
.bk-steps li.done span { background: var(--bk-go); border-color: var(--bk-go); color: #fff; }
.bk-steps li.done svg { width: 13px; height: 13px; }

/* ------------------------------------------------------------ layout */
.bk-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.bk-cols[hidden] { display: none; }
.bk-card { background: var(--bk-surface); border: 1px solid var(--bk-line); border-radius: var(--bk-radius); box-shadow: var(--bk-shadow); }
.bk-form { padding: 24px 26px 22px; display: flex; flex-direction: column; gap: 16px; }
.bk-h2 { margin-top: 6px; }
.bk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bk-full { grid-column: 1 / -1; }
.bk-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.bk-field label { font-size: 12.5px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--bk-muted); }
.bk-field label em { font-style: normal; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--bk-muted); }
.bk-input {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--bk-line-2);
  border-radius: var(--bk-radius-sm);
  background: #fff;
  color: var(--bk-ink);
  font: inherit;
}
.bk-input:focus { outline: 2px solid var(--bk-primary); outline-offset: 1px; border-color: var(--bk-primary); }
select.bk-input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%233D4A57' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.bk-note { font-size: 13.5px; color: var(--bk-muted); }
.bk-note.err { color: #B42318; }

/* --------------------------------------------------------- summary */
.bk-side { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: calc(var(--dm-strip-h, 0px) + 16px); }
.bk-sum-head { display: flex; gap: 12px; align-items: center; }
.bk-sum-head img { width: 84px; height: 62px; object-fit: cover; border-radius: var(--bk-radius-sm); flex: none; }
.bk-sum-head strong { display: block; font-size: 15.5px; line-height: 1.25; }
.bk-sum-head span { display: block; font-size: 12.5px; color: var(--bk-muted); margin-top: 3px; }
.bk-sum { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; font-size: 14px; padding-top: 12px; border-top: 1px solid var(--bk-line); }
.bk-sum dt { color: var(--bk-muted); }
.bk-sum dd { margin: 0; text-align: right; }
.bk-ref { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-size: 13px; padding: 9px 12px; border: 1px dashed var(--bk-line-2); border-radius: var(--bk-radius-sm); background: var(--bk-bg); }
.bk-ref .k { color: var(--bk-muted); }
.bk-ref .v { font-family: var(--font-mono); font-size: 13px; }
.bk-ref .v.none { color: var(--bk-line-2); }
.bk-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px solid var(--bk-line); font-size: 15px; }
.bk-total strong { font-size: 26px; font-weight: 600; }
.bk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--bk-radius-sm);
  border: 1px solid var(--bk-go);
  background: var(--bk-go);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 140ms;
}
.bk-btn:hover { background: var(--bk-go-2); border-color: var(--bk-go-2); text-decoration: none; }
.bk-btn:disabled { opacity: 0.6; cursor: default; }
.bk-btn.ghost { background: #fff; border-color: var(--bk-line-2); color: var(--bk-ink); }
.bk-btn.ghost:hover { border-color: var(--bk-ink); background: #fff; }
/* a link that looks like a button («Return to …») would otherwise take the
   blue link colour of this page, blue on green (Anton 25.09) */
.bk-body a.bk-btn, .bk-body a.bk-btn:hover { color: #fff; text-decoration: none; }
.bk-body a.bk-btn.ghost, .bk-body a.bk-btn.ghost:hover { color: var(--bk-ink); }
.bk-trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; color: var(--bk-ink-2); }
.bk-trust li { display: flex; align-items: center; gap: 8px; }
.bk-trust svg { color: var(--bk-go-2); }

/* ------------------------------------------------------ confirmation */
.bk-confirm { max-width: 680px; margin: 0 auto; padding: 34px 36px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.bk-confirm-ico { width: 54px; height: 54px; border-radius: 50%; background: #E6F6EC; color: var(--bk-go-2); display: flex; align-items: center; justify-content: center; }
.bk-confirm-ico svg { width: 28px; height: 28px; }
.bk-confirm h1 { font-size: 30px; }
.bk-lead { font-size: 16.5px; color: var(--bk-ink-2); }
.bk-facts { margin: 6px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 22px; font-size: 15px; width: 100%; padding: 16px 0; border-top: 1px solid var(--bk-line); border-bottom: 1px solid var(--bk-line); }
.bk-facts dt { color: var(--bk-muted); }
.bk-facts dd { margin: 0; }
.bk-facts .mono { font-size: 15px; }
.bk-redirect { font-size: 14.5px; color: var(--bk-primary-2); font-weight: 500; }
.bk-redirect .count { font-family: var(--font-mono); }
.bk-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.bk-acts .bk-btn { width: auto; }
@media (max-width: 767px) {
  .bk-confirm { padding: 22px 18px; }
  .bk-confirm h1 { font-size: 25px; }
  .bk-acts .bk-btn { width: 100%; }
}

/* ------------------------------------------------------------ footer */
.bk-foot { background: var(--bk-surface); border-top: 1px solid var(--bk-line); padding: 22px 0 26px; font-size: 13.5px; color: var(--bk-muted); }
.bk-foot-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bk-foot-row.small { margin-top: 12px; font-size: 12.5px; }
.bk-foot-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--bk-primary-2); font-weight: 600; font-size: 15px; }
.bk-foot-brand svg { width: 20px; height: 20px; }
.bk-foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.bk-foot-links a { color: var(--bk-ink-2); }
.bk-pay { display: inline-flex; gap: 6px; }
.bk-pay span { padding: 2px 8px; border: 1px solid var(--bk-line-2); border-radius: 5px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: var(--bk-ink-2); }

/* ---------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .bk-cols { grid-template-columns: minmax(0, 1fr); }
  .bk-side { position: static; }
}
@media (max-width: 560px) {
  .bk-form { padding: 18px 16px; }
  .bk-grid { grid-template-columns: 1fr; }
  .bk-main { padding-top: 16px; }
}

/* ------------------------------------------------- embed (widget) layout */
/* Inside an iframe this host is a guest: nothing that belongs to its own
   presentation is shown, only the form, the summary and the confirmation. */
body.embed .bk-top,
body.embed .bk-steps,
body.embed .bk-foot,
body.embed #al-demo-strip { display: none; }
body.embed { background: var(--bk-surface); }
body.embed .bk-main { padding: 0; }
body.embed .bk-wrap { padding: 0; }
body.embed .bk-cols { grid-template-columns: minmax(0, 1fr); gap: 14px; }
body.embed .bk-card { border: 0; box-shadow: none; border-radius: 0; }
body.embed .bk-form { padding: 12px 4px 0; gap: 12px; }
body.embed .bk-side { padding: 12px 4px 8px; border-top: 1px solid var(--bk-line); }
body.embed .bk-confirm { padding: 16px 8px; max-width: none; }
.bk-embedbar { display: flex; align-items: center; gap: 10px; padding: 0 4px 10px; border-bottom: 1px solid var(--bk-line); color: var(--bk-primary-2); font-weight: 600; font-size: 15px; }
.bk-embedbar svg { width: 20px; height: 20px; }
.bk-embedbar .bk-secure { margin-left: auto; font-size: 12.5px; }
