/**
 * Kite Family Core — booking dialog, booking pages and contact form.
 * Design tokens fall back to the Kite Family palette when the companion
 * theme is not active. Uses logical properties for RTL support.
 */
:root {
	--coral: oklch(68% .17 35);
	--navy: oklch(26% .07 255);
	--navy-foreground: oklch(97% .015 85);
	--lagoon: oklch(72% .12 195);
	--lagoon-deep: oklch(55% .11 205);
	--sand: oklch(95% .035 85);
	--accent: oklch(93% .05 195);
	--muted: oklch(95% .025 85);
	--muted-foreground: oklch(48% .04 250);
	--border: oklch(90% .025 85);
	--input: oklch(88% .03 85);
	--card: oklch(100% 0 0);
	--background: oklch(98.5% .012 85);
	--primary-foreground: oklch(99% .01 85);
	--destructive: oklch(57.7% .245 27.325);
	--shadow-soft: 0 12px 30px -14px oklch(26% .07 255 / .3);
	--font-display: Fredoka, ui-rounded, sans-serif;
}
:where(.kf-modal, .bk, .contact-form) :where(.btn-coral, .btn-navy, .btn-outline) { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: 9999px; font-weight: 700; padding: .75rem 1.4rem; border: 0; cursor: pointer; }
:where(.kf-modal, .bk, .contact-form) :where(.btn-coral) { background: var(--coral); color: var(--primary-foreground); }
:where(.kf-modal, .bk, .contact-form) :where(.btn-navy) { background: var(--navy); color: var(--navy-foreground); }
:where(.kf-modal, .bk, .contact-form) :where(.btn-outline) { border: 1px solid var(--border); background: var(--card); }
:where(.kf-modal, .bk, .contact-form) :where(.field) { width: 100%; border-radius: 1.5rem; border: 1px solid var(--input); padding: .75rem; background: var(--card); }
:where(.bk) :where(.card) { background: var(--card); border-radius: 2rem; box-shadow: var(--shadow-soft); padding: 1.5rem; }
:where(.bk) :where(.eyebrow) { text-transform: uppercase; letter-spacing: .14em; color: var(--coral); font-size: .75rem; font-weight: 700; line-height: 1rem; }
.kf-modal[hidden] { display: none; }
.bk-narrow { max-width: 48rem; }
.bk .h-sm { font-size: 1.25rem; line-height: 1.75rem; }
.done-hero h1 { font-size: 2.25rem; line-height: 2.5rem; }
.done-hero .tick { font-size: 1.75rem; font-weight: 700; }
.ref-box { margin-top: .5rem; }
.text-error { color: var(--destructive); }
.bk .justify-center { justify-content: center; }
/* ==========================================================================
   Booking flow
   ========================================================================== */
.kf-modal { position: fixed; inset: 0; z-index: 100; background: var(--background); overflow-y: auto; display: none; }
.kf-modal.open { display: block; }
body.kf-lock { overflow: hidden; }
.kf-modal .close-x { position: fixed; top: 1rem; inset-inline-end: 1rem; z-index: 5; display: grid; place-items: center; width: 1rem; height: 1rem; padding: 0; border: 0; border-radius: .125rem; background: none; color: var(--foreground); opacity: .7; transition: opacity .2s; }
.kf-modal .close-x:hover, .kf-modal .close-x:focus-visible { opacity: 1; }
.kf-modal .close-x svg { width: 1rem; height: 1rem; }
.bk { max-width: 72rem; margin: 0 auto; padding: 2.5rem 1.25rem; }
.kf-modal .bk { max-width: 58.75rem; }
.bk h1 { margin-top: .5rem; font-size: 1.875rem; line-height: 2.25rem; }
@media (min-width: 768px) { .bk h1 { font-size: 3rem; line-height: 1; } }
.bk .sub { margin-top: .75rem; color: var(--muted-foreground); }
.bk-steps { margin: 2rem 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.bk-steps li { font-size: .75rem; line-height: 1rem; font-weight: 600; }
.bk-steps .bar { margin-bottom: .5rem; height: .375rem; border-radius: 9999px; background: var(--muted); }
.bk-steps li.on .bar { background: var(--coral); }
.bk-grid { display: grid; align-items: start; gap: 2rem; }
@media (min-width: 1024px) { .bk-grid { grid-template-columns: minmax(0,1fr) 340px; } }
.bk-main { min-width: 0; }
.bk-main h2 { font-size: 1.5rem; line-height: 2rem; }
.bk-main h2.sm { font-size: 1.25rem; line-height: 1.75rem; }
.bk-stack > * + * { margin-top: 1.5rem; }
.chips { margin-top: .75rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { height: 2.25rem; border-radius: 9999px; border: 1px solid var(--input); background: var(--background); padding: .5rem 1rem; font-size: .875rem; line-height: 1.25rem; font-weight: 500; box-shadow: 0 1px 2px 0 rgb(0 0 0 / .05); }
.chip:hover { background: var(--accent); }
.chip.on { background: var(--coral); border-color: var(--coral); color: var(--primary-foreground); box-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1); }
.bk-cat { margin-bottom: .75rem; font-size: .875rem; font-weight: 700; color: var(--lagoon-deep); line-height: 1.25rem; }
.opt-grid { display: grid; gap: .75rem; }
@media (min-width: 640px) { .opt-grid { grid-template-columns: 1fr 1fr; } }
.opt { text-align: start; border-radius: 1.75rem; border: 1px solid var(--input); background: var(--background); padding: 1rem; font-size: .875rem; line-height: 1.25rem; font-weight: 500; box-shadow: 0 1px 2px 0 rgb(0 0 0 / .05); transition: border-color .2s, background .2s; }
.opt:hover { background: var(--accent); }
.opt.on { border-color: var(--coral); background: var(--accent); }
.opt strong { display: block; font-weight: 700; }
.opt small { display: block; font-size: .75rem; line-height: 1rem; color: var(--muted-foreground); }
.opt .p { margin-top: .5rem; display: block; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.75rem; font-weight: 500; }
.bk .field { margin-top: .25rem; background: var(--card); }
.bk label.blk { display: block; font-size: .875rem; font-weight: 700; line-height: 1.25rem; }
.info-box { border-radius: 1.75rem; background: var(--accent); padding: 1rem 1.25rem; font-size: .875rem; line-height: 1.25rem; }
.info-box label { margin-top: .75rem; display: flex; gap: .75rem; }
.info-box ul { margin: .75rem 0; display: grid; gap: .5rem; }
.bk fieldset { border: 0; border-top: 1px solid var(--border); margin: 0; padding: 1.25rem 0 0; }
.bk fieldset > * + * { margin-top: .75rem; }
.bk legend { font-weight: 700; padding: 0; float: inline-start; width: 100%; margin-bottom: .75rem; }
.bk .row3 { display: grid; gap: .75rem; clear: both; }
@media (min-width: 640px) { .bk .row3 { grid-template-columns: repeat(3, 1fr); } }
.bk .phone-row { display: flex; align-items: center; gap: .5rem; }
.bk .phone-row span { margin-top: .25rem; font-weight: 600; }
.bk .err { margin-top: 1.25rem; font-size: .875rem; font-weight: 600; color: var(--destructive); line-height: 1.25rem; }
.bk-nav { margin-top: 2rem; display: flex; justify-content: space-between; gap: .75rem; border-top: 1px solid var(--border); padding-top: 1.25rem; }
.bk-summary { position: sticky; top: 6rem; display: none; }
@media (min-width: 1024px) { .bk-summary { display: block; } }
.sum ul { display: grid; gap: .75rem; font-size: .875rem; line-height: 1.25rem; }
.sum li { display: flex; justify-content: space-between; gap: 1rem; }
.sum .tot { margin-top: 1.25rem; border-top: 1px solid var(--border); padding-top: 1rem; }
.sum .tot .amount { font-family: var(--font-display); font-size: 2.25rem; font-weight: 700; line-height: 2.5rem; }
.sum .tot p + p { margin-top: .5rem; font-size: .875rem; line-height: 1.25rem; }
.bk-mobile-sum { position: sticky; bottom: 0; z-index: 5; margin-top: 2rem; border-radius: 1.75rem; border: 1px solid var(--border); background: var(--card); padding: 1rem; box-shadow: var(--shadow-soft); }
.bk-mobile-sum summary { cursor: pointer; font-weight: 700; }
.bk-mobile-sum > div { margin-top: 1rem; }
@media (min-width: 1024px) { .bk-mobile-sum { display: none; } }
.review-block { border-bottom: 1px solid var(--border); padding-bottom: 1.25rem; }

/* Calendar */
.cal { margin: 0 auto; width: 100%; max-width: 48rem; border-radius: 2rem; border: 1px solid var(--sand); background: var(--card); padding: 1rem; box-shadow: var(--shadow-soft); }
@media (min-width: 640px) { .cal { padding: 1.5rem; } }
@media (min-width: 768px) { .cal { padding: 2rem; } }
.cal .hint { margin-bottom: .75rem; text-align: center; font-size: .75rem; font-weight: 600; color: var(--muted-foreground); line-height: 1rem; }
.cal-body { position: relative; }
.cal-nav { position: absolute; inset: 0 0 auto 0; display: flex; height: 2.75rem; align-items: center; justify-content: space-between; pointer-events: none; }
.cal-nav button { pointer-events: auto; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 9999px; color: var(--navy); }
.cal-nav button:hover { background: oklch(72% .12 195 / .15); }
.cal-nav button:disabled { opacity: .3; cursor: not-allowed; }
.cal-months { display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 768px) { .cal-months { flex-direction: row; justify-content: center; } }
.cal-month { width: 100%; }
@media (min-width: 768px) { .cal-month { width: 19rem; } }
.cal-cap { display: flex; height: 2.75rem; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; color: var(--navy); text-transform: capitalize; line-height: 1.75rem; }
.cal table { margin-top: .75rem; width: 100%; border-collapse: collapse; }
.cal th { padding-bottom: .5rem; text-align: center; font-size: .75rem; font-weight: 600; text-transform: uppercase; color: var(--muted-foreground); line-height: 1rem; }
.cal td { padding: .125rem 0; text-align: center; }
.cal td.rs, .cal td.re, .cal td.rm { background: oklch(72% .12 195 / .2); }
.cal td.rs { border-start-start-radius: 9999px; border-end-start-radius: 9999px; }
.cal td.re { border-start-end-radius: 9999px; border-end-end-radius: 9999px; }
.cal td.rs.re { border-radius: 9999px; }
.cal .day { position: relative; z-index: 1; margin: 0 auto; display: flex; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center; border-radius: 9999px; font-size: .875rem; font-weight: 600; line-height: 1.25rem; }
@media (min-width: 768px) { .cal .day { width: 2.5rem; height: 2.5rem; } }
.cal .day:hover:not(:disabled) { background: oklch(72% .12 195 / .15); }
.cal .day:disabled { cursor: not-allowed; color: oklch(48% .04 250 / .4); text-decoration: line-through; }
.cal .day.end { background: var(--coral); color: var(--primary-foreground); }
.cal .day.today:not(.end) { box-shadow: 0 0 0 1px oklch(55% .11 205 / .6); }
.cal-foot { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; }
.cal-foot .box { min-width: 7.5rem; border-radius: 9999px; border: 1px solid var(--sand); background: var(--background); padding: .5rem .75rem; text-align: center; }
@media (min-width: 640px) { .cal-foot .box { min-width: 9.5rem; padding-inline: 1rem; } }
.cal-foot .box small { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-foreground); }
.cal-foot .box b { font-size: .875rem; color: var(--navy); line-height: 1.25rem; }
.cal-foot .n { font-size: .875rem; font-weight: 700; color: var(--lagoon-deep); line-height: 1.25rem; }
.cal .clear { margin-top: .75rem; text-align: center; }
.cal .clear button { font-size: .875rem; font-weight: 600; color: var(--coral); line-height: 1.25rem; }
.cal .clear button:hover { text-decoration: underline; }

/* Confirmation & manage */
.done-hero { text-align: center; }
.done-hero .tick { margin: 0 auto; display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 9999px; background: var(--accent); color: var(--lagoon-deep); }
.done-hero h1 { margin-top: 1rem; }
.ref-box { margin: 1.5rem auto 0; width: fit-content; border-radius: 1.75rem; border: 2px dashed var(--lagoon); padding: .75rem 1.5rem; font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; letter-spacing: .05em; }
.status-pill { display: inline-flex; border-radius: 9999px; padding: .25rem .75rem; font-size: .8125rem; font-weight: 700; background: var(--muted); }
.status-pill.confirmed, .status-pill.completed { background: oklch(90% .08 150); color: oklch(35% .1 150); }
.status-pill.pending { background: oklch(93% .07 85); color: oklch(40% .1 70); }
.status-pill.proposed { background: oklch(92% .06 300); color: oklch(40% .12 300); }
.status-pill.cancelled, .status-pill.no_show { background: oklch(92% .05 25); color: oklch(45% .15 25); }
.kv { display: grid; gap: .5rem; font-size: .9375rem; }
.kv div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--border); padding-bottom: .5rem; }
.kv dt { color: var(--muted-foreground); }
.kv dd { font-weight: 600; text-align: end; }
.sess { display: grid; gap: .5rem; }
.sess li { border-radius: 1.5rem; background: var(--sand); padding: .75rem 1rem; font-size: .875rem; line-height: 1.25rem; }
.adj-box { border-radius: 1.75rem; border: 2px solid var(--coral); background: var(--card); padding: 1.25rem; }
.adj-box table { width: 100%; font-size: .875rem; border-collapse: collapse; margin-top: .75rem; line-height: 1.25rem; }
.adj-box th, .adj-box td { text-align: start; padding: .375rem .25rem; border-bottom: 1px solid var(--border); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.notice { border-radius: 1.75rem; padding: 1rem; background: var(--accent); font-size: .875rem; font-weight: 600; line-height: 1.25rem; }

