/* Booking wizard. Depends on core.css tokens. */

.cnk-book { overflow: hidden; overflow: clip; }

/* ---------- hero ---------- */
.cnk-book .cnk-hero {
	position: relative; padding: 52px 44px 96px; color: #fff; isolation: isolate; overflow: hidden;
	background: linear-gradient(150deg, var(--ink), color-mix(in srgb, var(--ink) 60%, var(--pri-2)));
}
@supports not (color: color-mix(in srgb, red, blue)) { .cnk-book .cnk-hero { background: var(--ink); } }
.cnk-book .cnk-blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); opacity: .75; animation: cnk-drift 16s ease-in-out infinite alternate; }
.cnk-book .cnk-blob--a { width: 380px; height: 380px; right: -80px; top: -120px; background: radial-gradient(circle, var(--pri-2), transparent 68%); }
.cnk-book .cnk-blob--b { width: 340px; height: 340px; left: 22%; bottom: -190px; background: radial-gradient(circle, var(--acc-2), transparent 68%); animation-duration: 20s; animation-direction: alternate-reverse; }
@keyframes cnk-drift { to { transform: translate(-40px, 30px) scale(1.12); } }
.cnk-book .cnk-hero-title { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 15ch; color: #fff; letter-spacing: -.035em; line-height: 1.04; }
.cnk-book .cnk-hero-lede { margin-top: 18px; max-width: 50ch; font-size: 1.1rem; color: rgba(255, 255, 255, .8); }
.cnk-book .cnk-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 24px 0 0; padding: 0; }
.cnk-book .cnk-trust li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); font-size: .88rem; font-weight: 600; backdrop-filter: blur(6px); }
.cnk-book .cnk-trust li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(18, 184, 134, .25); }

/* ---------- shell ---------- */
.cnk-book .cnk-shell { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 20px; margin: -52px 24px 24px; align-items: start; }
.cnk-book .cnk-main { position: relative; padding: 28px 30px 26px; overflow: hidden; }

/* ---------- stepper ---------- */
.cnk-book .cnk-steps { display: flex; list-style: none; margin: 0 0 30px; padding: 0; }
.cnk-book .cnk-steps li { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cnk-book .cnk-steps li:not(:last-child)::after {
	content: ""; position: absolute; top: 19px; left: calc(50% + 26px); width: calc(100% - 52px); height: 3px; border-radius: 3px;
	background: linear-gradient(90deg, var(--mint), var(--pri-2)) left / 0% 100% no-repeat, var(--line); transition: background-size .7s var(--ease);
}
.cnk-book .cnk-steps li.is-done:not(:last-child)::after { background-size: 100% 100%; }
.cnk-book .cnk-dot { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: #e7ecf6; color: var(--muted); font: 700 .95rem var(--display); transition: background .35s, color .35s, box-shadow .35s; }
.cnk-book .cnk-dot:disabled { cursor: default; }
.cnk-book .is-current .cnk-dot { background: var(--ink); color: #fff; box-shadow: 0 0 0 5px color-mix(in srgb, var(--pri-2) 22%, transparent); }
.cnk-book .is-done .cnk-dot { background: var(--mint); color: #fff; }
.cnk-book .is-done .cnk-dot span { font-size: 0; }
.cnk-book .is-done .cnk-dot span::before { content: "\2713"; font-size: 1rem; font-family: var(--body); }
.cnk-book .cnk-lab { font-size: .8rem; font-weight: 600; color: var(--muted); }
.cnk-book .is-current .cnk-lab { color: var(--ink); }

/* ---------- panels ---------- */
.cnk-book .cnk-panel { outline: 0; }
.cnk-book .cnk-q { font-size: clamp(1.35rem, 3vw, 1.75rem); margin-bottom: 8px; }
.cnk-book .cnk-sub { color: var(--muted); margin-bottom: 22px; max-width: 56ch; }
.cnk-book .cnk-h4 { font-size: 1rem; margin: 22px 0 12px; }
.cnk-book .cnk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* universities */
.cnk-book .cnk-unis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.cnk-book .cnk-uni {
	position: relative; text-align: left; padding: 18px; border: 1.5px solid var(--line); border-radius: var(--r-lg); background: #fff; color: var(--ink);
	transition: transform .5s var(--ease), box-shadow .4s, border-color .25s, background .25s;
}
.cnk-book .cnk-uni:hover { transform: translateY(-4px); box-shadow: 0 22px 34px -24px rgba(10, 22, 48, .55); border-color: color-mix(in srgb, var(--pri-2) 45%, var(--line)); }
.cnk-book .cnk-uni b { display: block; font: 700 1.5rem var(--display); letter-spacing: -.03em; }
.cnk-book .cnk-uni span { display: block; margin-top: 4px; font-size: .86rem; color: var(--muted); line-height: 1.3; }
.cnk-book .cnk-uni[aria-checked="true"] { border-color: var(--pri-2); background: color-mix(in srgb, var(--pri-2) 7%, #fff); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pri-2) 14%, transparent); }
.cnk-book .cnk-uni::after { content: "\2713"; position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--pri-2); color: #fff; font-size: .8rem; font-weight: 700; transform: scale(0); transition: transform .5s var(--ease); }
.cnk-book .cnk-uni[aria-checked="true"]::after { transform: scale(1); }

/* residences */
.cnk-book .cnk-reswrap { margin-top: 20px; }
.cnk-book .cnk-search { margin-bottom: 10px; }
.cnk-book .cnk-reslist { display: grid; gap: 8px; max-height: 300px; overflow-y: auto; padding: 2px; scrollbar-width: thin; }
.cnk-book .cnk-res { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: #fff; color: var(--ink); text-align: left; font-weight: 600; transition: background .25s, border-color .25s, color .25s, transform .4s var(--ease); }
.cnk-book .cnk-res:hover { transform: translateX(4px); border-color: var(--pri-2); }
.cnk-book .cnk-res[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.cnk-book .cnk-res[aria-checked="true"]::after { content: "\2713"; color: var(--mint); font-weight: 700; }

/* items */
.cnk-book .cnk-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 14px; scrollbar-width: none; }
.cnk-book .cnk-tabs::-webkit-scrollbar { display: none; }
.cnk-book .cnk-tab { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border: 0; border-radius: 999px; background: #e9eef8; color: var(--ink); font-weight: 600; transition: background .3s, color .3s, transform .4s var(--ease); }
.cnk-book .cnk-tab:hover { transform: translateY(-2px); }
.cnk-book .cnk-tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.cnk-book .cnk-tab i { font-style: normal; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--acc); color: #fff; font-size: .75rem; line-height: 20px; text-align: center; }
.cnk-book .cnk-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.cnk-book .cnk-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-lg); background: #fff; transition: border-color .3s, background .3s, transform .5s var(--ease), box-shadow .4s; }
.cnk-book .cnk-item:hover { transform: translateY(-3px); box-shadow: 0 20px 30px -24px rgba(10, 22, 48, .5); }
.cnk-book .cnk-item.is-on { border-color: var(--pri-2); background: color-mix(in srgb, var(--pri-2) 6%, #fff); }
.cnk-book .cnk-item-name { font-weight: 600; line-height: 1.25; }
.cnk-book .cnk-step { display: flex; align-items: center; gap: 8px; flex: none; }
.cnk-book .cnk-step button { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-size: 1.25rem; line-height: 1; display: grid; place-items: center; padding: 0; transition: background .25s, color .25s, border-color .25s, transform .3s var(--ease); }
.cnk-book .cnk-step button:hover { border-color: var(--ink); transform: scale(1.08); }
.cnk-book .cnk-step .cnk-plus { background: var(--ink); color: #fff; border-color: var(--ink); }
.cnk-book .cnk-step output { min-width: 22px; text-align: center; font: 700 1rem var(--display); }
.cnk-book .cnk-other { margin-top: 14px; }

/* dates */
.cnk-book .cnk-noreturn { margin-top: 18px; }
.cnk-book .cnk-noreturn small { display: block; margin-top: 2px; font-weight: 400; }
.cnk-book .cnk-duration { margin-top: 16px; min-height: 28px; }
.cnk-book .cnk-duration b { font-family: var(--display); }
.cnk-book .cnk-hp { position: absolute; left: -9999px; }

/* review */
.cnk-book .cnk-rev { display: grid; gap: 0; border-radius: var(--r-lg); background: var(--mist); padding: 6px 18px; margin-bottom: 18px; }
.cnk-book .cnk-rev-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.cnk-book .cnk-rev-row:last-child { border-bottom: 0; }
.cnk-book .cnk-rev-row dt { color: var(--muted); font-size: .9rem; margin: 0; }
.cnk-book .cnk-rev-row dd { margin: 0; text-align: right; font-weight: 600; }
.cnk-book .cnk-rev-row dd small { display: block; font-weight: 400; color: var(--muted); }
.cnk-book .cnk-chg { margin-left: 10px; padding: 0; border: 0; background: none; color: var(--pri-2); font-weight: 700; font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; }
.cnk-book .cnk-terms { max-height: 150px; overflow: auto; padding: 14px 16px; border-radius: var(--r-md); background: var(--mist); font-size: .84rem; color: var(--muted); margin: 0 0 16px; }

/* nav + busy */
.cnk-book .cnk-error { margin-top: 18px; }
.cnk-book .cnk-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; }
.cnk-book .cnk-nav .cnk-btn:only-of-type { margin-left: auto; }
.cnk-book .cnk-busy { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: rgba(255, 255, 255, .94); text-align: center; }
.cnk-book .cnk-busy-in { color: var(--mint); }
.cnk-book .cnk-busy-in p { margin-top: 12px; color: var(--ink); font-weight: 600; }
.cnk-book .cnk-busy .cnk-check { display: block; margin: 0 auto; }

/* ---------- the stage: your load ---------- */
.cnk-book .cnk-stage {
	position: sticky; top: 18px; padding: 22px; border-radius: var(--r-xl); color: #fff; overflow: hidden; isolation: isolate;
	background: radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--pri-2) 50%, transparent), transparent 62%), linear-gradient(165deg, color-mix(in srgb, var(--ink) 88%, var(--pri-2)), var(--ink));
	box-shadow: 0 40px 60px -36px rgba(10, 22, 48, .8);
	transform-style: preserve-3d;
}
.cnk-book .cnk-stage-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cnk-book .cnk-stage-head h3 { font-size: 1.05rem; color: #fff; }
.cnk-book .cnk-tier { padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: .8rem; font-weight: 700; transition: background .4s, color .4s; }
.cnk-book .cnk-tier.is-on { background: var(--acc); color: #fff; }
.cnk-book .cnk-unit { margin: 14px 0 6px; }
.cnk-book .cnk-unit svg { display: block; width: 100%; height: auto; overflow: visible; }
.cnk-book .cnk-unit-frame { fill: rgba(255, 255, 255, .05); stroke: rgba(255, 255, 255, .38); stroke-width: 2; }
.cnk-book .cnk-slats line { stroke: rgba(255, 255, 255, .18); stroke-width: 2; stroke-linecap: round; }
.cnk-book .cnk-floor { stroke: rgba(255, 255, 255, .3); stroke-width: 2; }
.cnk-book .cnk-blk { transition: transform .6s var(--ease); }
.cnk-book .cnk-blk rect { stroke: rgba(10, 22, 48, .5); stroke-width: 1.5; }
.cnk-book .cnk-blk .hl { fill: rgba(255, 255, 255, .28); stroke: none; }
.cnk-book .cat-0 rect:first-child { fill: #7e95ff; }
.cnk-book .cat-1 rect:first-child { fill: var(--acc); }
.cnk-book .cat-2 rect:first-child { fill: var(--acc-2); }
.cnk-book .cat-3 rect:first-child { fill: var(--mint); }
.cnk-book .cat-4 rect:first-child { fill: #b58cff; }

.cnk-book .cnk-meter { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin: 12px 0 6px; padding-top: 14px; font-size: .7rem; font-weight: 700; color: rgba(255, 255, 255, .5); text-align: center; }
.cnk-book .cnk-meter::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .13); }
.cnk-book .cnk-meter i { position: absolute; left: 0; top: 0; height: 8px; width: 0; border-radius: 8px; background: linear-gradient(90deg, #7e95ff, var(--acc), var(--acc-2)); box-shadow: 0 0 18px color-mix(in srgb, var(--acc) 70%, transparent); transition: width .8s var(--ease); }
.cnk-book .cnk-meter span.is-on { color: #fff; }
.cnk-book .cnk-vol { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 14px; }
.cnk-book .cnk-vol b { font: 700 2rem var(--display); letter-spacing: -.04em; }
.cnk-book .cnk-vol span { color: rgba(255, 255, 255, .6); font-size: .9rem; }
.cnk-book .cnk-lines { display: grid; gap: 0; margin-bottom: 12px; }
.cnk-book .cnk-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed rgba(255, 255, 255, .16); font-size: .92rem; color: rgba(255, 255, 255, .82); }
.cnk-book .cnk-line b { color: #fff; font-weight: 600; }
.cnk-book .cnk-total { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, .06); }
.cnk-book .cnk-total::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; background: conic-gradient(from var(--cnk-a), transparent 0 55%, var(--acc), var(--acc-2), transparent); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: cnk-spin 6s linear infinite; }
@keyframes cnk-spin { to { --cnk-a: 360deg; } }
.cnk-book .cnk-total-l { color: rgba(255, 255, 255, .75); font-weight: 600; }
.cnk-book .cnk-total strong { font: 700 1.7rem var(--display); letter-spacing: -.04em; background: linear-gradient(100deg, #fff, color-mix(in srgb, var(--acc) 35%, #fff)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cnk-book .cnk-fine { margin-top: 10px; min-height: 1.2em; font-size: .82rem; color: rgba(255, 255, 255, .62); }
.cnk-book .cnk-fine.is-warn { color: #ffd29a; }

/* ---------- small screens ---------- */
@media (max-width: 899px) {
	.cnk-book .cnk-hero { padding: 36px 24px 84px; }
	.cnk-book .cnk-shell { grid-template-columns: 1fr; margin: -48px 12px 12px; gap: 12px; }
	.cnk-book .cnk-main { padding: 22px 18px 18px; }
	.cnk-book .cnk-stage { order: -1; position: sticky; top: 8px; z-index: 6; display: grid; grid-template-columns: 112px 1fr; grid-template-areas: "unit head" "unit vol" "unit total"; gap: 2px 14px; align-items: center; padding: 12px 16px; border-radius: 22px; }
	.cnk-book .cnk-stage-head { grid-area: head; }
	.cnk-book .cnk-unit { grid-area: unit; margin: 0; }
	.cnk-book .cnk-vol { grid-area: vol; margin: 0; }
	.cnk-book .cnk-vol b { font-size: 1.15rem; }
	.cnk-book .cnk-total { grid-area: total; padding: 8px 12px; border-radius: 14px; }
	.cnk-book .cnk-total strong { font-size: 1.2rem; }
	.cnk-book .cnk-meter, .cnk-book .cnk-lines, .cnk-book .cnk-fine { display: none; }
	.cnk-book .cnk-grid { grid-template-columns: 1fr; }
	.cnk-book .cnk-lab { display: none; }
	.cnk-book .is-current .cnk-lab { display: block; position: absolute; top: 48px; white-space: nowrap; }
	.cnk-book .cnk-steps { margin-bottom: 44px; }
	.cnk-book .cnk-nav { position: sticky; bottom: 0; margin: 22px -18px -18px; padding: 12px 18px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
}

/* saving state: a ring that turns until the booking is stored, then the tick draws itself */
.cnk-book .cnk-busy.is-wait .cnk-check path { opacity: 0; }
.cnk-book .cnk-busy.is-wait .cnk-check circle { stroke-opacity: 1; stroke-dasharray: 38 120; transform-origin: 26px 26px; animation: cnk-rot .9s linear infinite; }
@keyframes cnk-rot { to { transform: rotate(360deg); } }

/* status / opening-soon cards */
.cnk-app.cnk-solo { max-width: 640px; padding: 28px; background: linear-gradient(140deg, color-mix(in srgb, var(--pri-2) 14%, var(--mist)), color-mix(in srgb, var(--acc) 12%, var(--mist))); }
.cnk-solo .cnk-status h3, .cnk-solo .cnk-card h3 { font-size: 1.5rem; margin: 14px 0 8px; }
.cnk-solo .cnk-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cnk-solo .cnk-bank { margin: 12px 0; padding: 14px 16px; border-radius: var(--r-md); background: var(--mist); white-space: pre-wrap; font: 500 .92rem/1.5 var(--body); }
.cnk-book .cnk-admin-note { margin: 14px 18px 0; background: #fff8ec; color: #6d4100; font-size: .9rem; }
