/* TETAMU booking page (booking.html). Builds on styles.css: same colours,
   fonts, buttons, form fields and choice cards. */

.pagehero--compact { padding: clamp(40px, 5vw, 64px) 0 clamp(36px, 4.5vw, 56px); }
.pagehero--compact h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); margin-bottom: 12px; }

.bk-preview { background: var(--amber-50); border-bottom: 1px solid var(--amber-100); color: var(--amber-700); font-size: .875rem; }
.bk-preview .container { padding-block: 10px; }

.bk-section { padding-top: clamp(32px, 4vw, 52px); }
.bk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.bk-section--wide .bk-layout { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.bk-narrow { max-width: 820px; }

/* Steps */
.bk-stepper { list-style: none; margin: 0 0 22px; padding: 0; display: flex; gap: 8px; counter-reset: none; }
.bk-stepper li { flex: 1 1 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.bk-stepper li::before { content: ""; display: block; width: 100%; height: 4px; border-radius: 4px; background: var(--line); transition: background-color .3s var(--ease); }
.bk-stepper li.is-done::before, .bk-stepper li.is-current::before { background: var(--teal-600); }
.bk-stepper__num {
  display: none;
}
.bk-stepper__label { font-size: .8125rem; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.bk-stepper li.is-current .bk-stepper__label { color: var(--teal-600); }
.bk-stepper li.is-done .bk-stepper__label { color: var(--ink-2); }

/* Cards */
.bk-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 34px); box-shadow: var(--shadow-sm);
}
.bk-card[hidden] { display: none; }
.bk-card__title { margin: 0 0 6px; font-size: clamp(1.375rem, 1.2rem + .6vw, 1.75rem); outline: none; }
.bk-card__lead { margin: 0 0 22px; color: var(--muted); }
.bk-subhead { margin: 28px 0 14px; font-size: 1.0625rem; }
.bk-optional { font-weight: 500; color: var(--muted); }
.bk-row-3 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, 1.2fr); gap: 18px; }
.bk-card .form__status { margin: 16px 0 0; min-height: 0; }
.bk-card .form__status:empty { display: none; }
.was-validated .field :invalid { border-color: #D92D20; box-shadow: 0 0 0 4px rgba(217, 45, 32, .1); }

.bk-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.bk-actions .btn[disabled] { opacity: .7; cursor: progress; }

/* Package */
/* Packages: one to choose (radio cards), from the admin's Products list */
.bk-pkgs { display: grid; gap: 12px; margin: 18px 0 0; padding: 0; border: 0; min-width: 0; }
.bk-pkg {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center;
  border-radius: var(--radius); background: linear-gradient(120deg, var(--teal-700), #0F5B5A); color: #fff;
  padding: 20px 22px; cursor: pointer; opacity: .78;
  box-shadow: 0 0 0 3px transparent; transition: opacity .2s var(--ease), box-shadow .2s var(--ease);
}
.bk-pkg input { position: absolute; top: 18px; right: 18px; width: 20px; height: 20px; margin: 0; accent-color: var(--amber-500); cursor: pointer; }
.bk-pkg:hover { opacity: .92; }
.bk-pkg:has(input:checked) { opacity: 1; box-shadow: 0 0 0 3px var(--amber-500); }
.bk-pkg:has(input:focus-visible) { outline: 3px solid rgba(31, 106, 111, .35); outline-offset: 3px; }
/* A single package is simply shown, already chosen */
.bk-pkg--only { cursor: default; opacity: 1; }
.bk-pkg--only:has(input:checked) { box-shadow: none; }
.bk-pkg--only input { position: absolute; opacity: 0; pointer-events: none; }
.bk-pkg__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bk-pkg__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding-right: 26px; }
.bk-pkg--only .bk-pkg__head { padding-right: 0; }
.bk-pkg__tag { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.bk-pkg__name { font-family: var(--font-display); font-weight: 800; color: #fff; font-size: 1.25rem; flex: 1 1 auto; }
.bk-pkg__price { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--amber-300); }
.bk-pkg__desc { font-size: .9375rem; color: rgba(255, 255, 255, .8); }
.bk-pkg__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; font-size: .9375rem; color: rgba(255, 255, 255, .86); }
.bk-pkg__list span { position: relative; padding-left: 22px; }
.bk-pkg__list span::before { content: "✓"; position: absolute; left: 0; color: var(--amber-300); font-weight: 800; }
.bk-pkg__list b { color: var(--amber-300); }
.bk-pkg__img { width: 110px; height: 110px; object-fit: contain; border-radius: 14px; background: rgba(255, 255, 255, .92); padding: 8px; }
.bk-pkg__img--none { display: none; }

/* Add-on devices (step 1) */
.bk-addons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bk-addon {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.bk-addon.is-on { border-color: #00695C; background: #E6F4F2; }
.bk-addon__img { width: 56px; height: 56px; object-fit: contain; }
.bk-addon__img--none { border-radius: 10px; background: var(--teal-50); }
.bk-addon__desc { font-size: .8125rem; line-height: 1.3; color: var(--ink-2); }
.bk-addon__text { display: flex; flex-direction: column; min-width: 0; }
.bk-addon__name { font-weight: 700; font-size: .9375rem; line-height: 1.25; color: var(--ink); }
.bk-addon__price { font-size: .8125rem; color: var(--muted); }
.bk-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.bk-qty button {
  width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; cursor: pointer;
  font-size: 1.125rem; font-weight: 700; color: var(--teal-600); display: grid; place-items: center;
}
.bk-qty button:hover:not(:disabled) { background: var(--teal-50); }
.bk-qty button:disabled { color: var(--line); cursor: default; }
.bk-qty output { min-width: 22px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Payment */
.bk-promo { margin-bottom: 24px; }
.bk-promo label { display: block; margin-bottom: 7px; font-size: .875rem; font-weight: 700; }
.bk-promo__row { display: flex; gap: 10px; max-width: 420px; }
.bk-promo__row input {
  flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 12px; font-size: 1rem; text-transform: uppercase;
}
.bk-promo__row input:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 4px rgba(31, 106, 111, .12); }
.bk-promo__msg { margin: 8px 0 0; font-size: .875rem; font-weight: 600; min-height: 1.2em; }
.bk-promo__msg.is-ok { color: #1E7A4C; }
.bk-promo__msg.is-bad { color: #B42318; }

.bk-options, .bk-methods, .bk-slots { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.bk-options legend, .bk-methods legend, .bk-slots legend { padding: 0; margin-bottom: 10px; font-size: .875rem; font-weight: 700; color: var(--ink); }
.bk-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bk-option, .bk-method, .bk-slot { position: relative; cursor: pointer; }
.bk-option input, .bk-method input, .bk-slot input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.bk-option__body {
  display: flex; flex-direction: column; gap: 2px; height: 100%;
  padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff;
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.bk-option__title { font-weight: 700; color: var(--ink-2); }
.bk-option__value { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--teal-600); }
.bk-option__note { font-size: .8125rem; color: var(--muted); }
.bk-methods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.bk-method span {
  display: flex; flex-direction: column; gap: 2px; height: 100%;
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.bk-method b { font-size: .9375rem; color: var(--ink); }
.bk-method small { font-size: .75rem; color: var(--muted); }
.bk-option:hover .bk-option__body, .bk-method:hover span, .bk-slot:hover span { border-color: var(--teal-300); }
.bk-option input:checked + .bk-option__body, .bk-method input:checked + span, .bk-slot input:checked + span { border-color: var(--teal-600); background: var(--teal-50); box-shadow: inset 0 0 0 1px var(--teal-600); }
.bk-option input:focus-visible + .bk-option__body, .bk-method input:focus-visible + span, .bk-slot input:focus-visible + span { outline: 3px solid rgba(31, 106, 111, .3); outline-offset: 2px; }
.bk-instalment { display: grid; gap: 6px; max-width: 320px; margin: -8px 0 22px; }
.bk-instalment[hidden] { display: none; }
.bk-instalment label { font-size: .875rem; font-weight: 700; }
.bk-instalment select { min-height: 46px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 1rem; }
.bk-consent { margin-top: 4px; }
.bk-consent a { color: var(--teal-600); font-weight: 600; }
.bk-secure { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin: 12px 0 0; font-size: .8125rem; color: var(--muted); }
.bk-secure svg { width: 14px; height: 14px; }

/* Dates and times */
.bk-paid { margin: -4px 0 20px; padding: 12px 16px; border-radius: 12px; background: #E8F5EE; color: #1E5F3F; font-size: .9375rem; }
.bk-dates { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 8px; margin-bottom: 22px; }
.bk-date {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 10px 4px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer;
  font: inherit; color: var(--ink);
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.bk-date:hover { border-color: var(--teal-300); }
.bk-date[aria-checked="true"] { border-color: var(--teal-600); background: var(--teal-600); color: #fff; }
.bk-date:focus-visible { outline: 3px solid rgba(31, 106, 111, .3); outline-offset: 2px; }
.bk-date__dow, .bk-date__mon { font-size: .75rem; font-weight: 600; opacity: .75; }
.bk-date__day { font-family: var(--font-display); font-size: 1.375rem; font-weight: 800; line-height: 1.1; }
.bk-slots { display: flex; flex-wrap: wrap; gap: 10px; }
.bk-slots legend { width: 100%; }
.bk-slot span { display: block; padding: 11px 20px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-weight: 700; transition: border-color .18s var(--ease), background-color .18s var(--ease); }
.bk-loading { grid-column: 1 / -1; color: var(--muted); }

/* Done */
.bk-done { text-align: left; }
.bk-done__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 16px; border-radius: 50%; background: #E8F5EE; color: #1E7A4C; }
.bk-done__icon svg { width: 28px; height: 28px; }
.bk-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.bk-facts div { padding: 12px 14px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line-2); }
.bk-facts dt { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.bk-facts dd { margin: 2px 0 0; font-weight: 700; color: var(--ink); }
.bk-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.bk-timeline li { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 0 0 18px 30px; }
.bk-timeline li[hidden] { display: none; }
.bk-timeline li::before { content: ""; position: absolute; left: 0; top: 3px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--teal-300); background: #fff; }
.bk-timeline li::after { content: ""; position: absolute; left: 7px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.bk-timeline li:last-child::after, .bk-timeline li:has(~ li[hidden]):not(:has(~ li:not([hidden])))::after { display: none; }
.bk-timeline li.is-done::before { background: #1E7A4C; border-color: #1E7A4C; }
.bk-timeline li.is-current::before { border-color: var(--amber-500); box-shadow: 0 0 0 4px var(--amber-100); }
.bk-timeline b { color: var(--ink); }
.bk-timeline span { font-size: .9375rem; color: var(--muted); }
.bk-preview-links { margin-top: 8px; padding: 16px; border: 1px dashed var(--amber-300); border-radius: 14px; background: var(--amber-50); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.bk-preview-links p { margin: 0; width: 100%; font-size: .875rem; color: var(--amber-700); }

/* Summary */
.bk-summary {
  position: sticky; top: calc(var(--header-h) + 20px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm);
}
.bk-summary[hidden] { display: none; }
.bk-summary__title { margin: 0 0 14px; font-size: 1.125rem; }
.bk-summary__lines { list-style: none; margin: 0; padding: 0 0 14px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; font-size: .9375rem; }
.bk-summary__lines li, .bk-summary__totals div { display: flex; justify-content: space-between; gap: 12px; }
.bk-summary__lines li span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.bk-summary__totals { margin: 14px 0 0; display: grid; gap: 8px; }
.bk-summary__totals dt { color: var(--ink-2); }
.bk-summary__totals dd { margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bk-summary__totals .is-promo dd { color: #1E7A4C; }
.bk-summary__totals .is-total { font-weight: 800; font-size: 1.0625rem; }
.bk-summary__totals .is-now { margin-top: 6px; padding: 10px 12px; border-radius: 12px; background: var(--teal-600); color: #fff; font-weight: 800; }
.bk-summary__totals .is-now dt { color: #fff; }

/* Proposal / balance tables */
.bk-ref { margin: 0 0 6px; font-size: .875rem; color: var(--muted); }
.bk-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.bk-table td { padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.bk-table td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bk-table tfoot td { border-bottom: 0; padding: 6px 0; color: var(--ink-2); }
.bk-table tfoot .is-total td { padding-top: 14px; font-weight: 800; color: var(--ink); }
.bk-table tfoot .is-due td { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; color: var(--teal-600); }

/* Sample checkout */
.bk-pay { width: min(420px, calc(100% - 32px)); padding: 26px; border: 0; border-radius: 22px; box-shadow: var(--shadow-lg); }
.bk-pay::backdrop { background: rgba(7, 40, 42, .55); }
.bk-pay__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.bk-pay__brand { font-family: var(--font-display); font-size: 1.375rem; font-weight: 800; color: #1A4BDB; letter-spacing: -.02em; }
.bk-pay__sample { padding: 4px 10px; border-radius: 999px; background: var(--amber-50); color: var(--amber-700); font-size: .75rem; font-weight: 700; }
.bk-pay__title { margin: 0; font-size: 1rem; color: var(--muted); }
.bk-pay__amount { margin: 4px 0 2px; font-family: var(--font-display); font-size: 2.25rem; font-weight: 800; color: var(--ink); }
.bk-pay__method { margin: 0; color: var(--ink-2); }

@media (max-width: 1080px) {
  .bk-layout { grid-template-columns: minmax(0, 1fr); }
  .bk-summary { position: static; }
  .bk-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .bk-row-3, .bk-addons, .bk-options, .bk-facts, .bk-pkg__list { grid-template-columns: minmax(0, 1fr); }
  .bk-addon { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; padding: 10px; }
  .bk-addon__img { width: 48px; height: 48px; }
  .bk-pkg { grid-template-columns: minmax(0, 1fr); }
  .bk-pkg__img { width: 84px; height: 84px; order: -1; }
  .bk-qty button { width: 30px; height: 30px; }
  .bk-qty output { min-width: 18px; }
  .bk-stepper__label { font-size: .6875rem; }
  .bk-stepper li:not(.is-current) .bk-stepper__label { visibility: hidden; }
  .bk-actions .btn { flex: 1 1 auto; }
  .bk-actions > span:empty { display: none; }
  .bk-secure { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .bk-stepper li::before, .bk-addon, .bk-date, .bk-option__body, .bk-method span, .bk-slot span { transition: none; }
}

/* Payment link: promo box below the order table */
.bk-promo--spaced { margin-top: 22px; }

/* Invoice copy */
.bk-invoice__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 2px solid var(--teal-600); }
.bk-invoice__head img { width: 170px; height: auto; }
.bk-invoice__meta { text-align: right; }
.bk-invoice__title { margin: 0 0 8px; font-size: 1.75rem; color: var(--teal-600); letter-spacing: .04em; text-transform: uppercase; }
.bk-invoice__meta p { margin: 0; font-size: .9375rem; }
.bk-invoice__meta span { color: var(--muted); }
.bk-invoice__parties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 22px 0; }
.bk-invoice__parties h3 { margin: 0 0 6px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bk-invoice__parties p { margin: 0; font-size: .9375rem; line-height: 1.55; }
.bk-invoice__payments { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .9375rem; }
.bk-invoice__payments li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.bk-invoice__status { display: inline-block; margin: 20px 0 0; padding: 8px 14px; border-radius: 999px; background: #E8F5EE; color: #1E5F3F; font-weight: 800; }
.bk-invoice__status.is-due { background: var(--amber-50); color: var(--amber-700); }
@media (max-width: 640px) {
  .bk-invoice__meta { text-align: left; }
  .bk-invoice__parties { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .header, .footer, .pagehero, .bk-preview, .bk-noprint, .chat-fab, .scroll-progress { display: none !important; }
  body { background: #fff; }
  .bk-section { padding: 0; }
  .bk-invoice { border: 0; box-shadow: none; padding: 0; }
}

/* Your details: sign in, or continue as a guest */
.bk-who { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bk-who[hidden], [data-details][hidden], [data-who-actions][hidden] { display: none; }
.bk-who__opt { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.bk-who__opt--guest { background: var(--teal-50); border-color: var(--teal-100); justify-content: flex-start; }
.bk-who__opt--guest .btn { align-self: flex-start; }
.bk-who__title { margin: 0; font-size: 1.125rem; }
.bk-who__text { margin: 0; color: var(--ink-2); font-size: .9375rem; }
.bk-who__opt .form__status { margin: 0; min-height: 0; }
.bk-who__opt .form__status:empty { display: none; }
.bk-who__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bk-who__link { font-size: .875rem; font-weight: 600; }
.bk-who__hint { margin: 0; padding: 8px 10px; border-radius: 10px; background: var(--amber-50); color: var(--amber-700); font-size: .8125rem; }
.bk-who__status { margin: 0 0 18px; padding: 10px 14px; border-radius: 12px; background: var(--teal-50); font-size: .9375rem; color: var(--ink-2); }
.bk-who__switch { padding: 0; border: 0; background: none; color: var(--teal-600); font-weight: 700; text-decoration: underline; cursor: pointer; }
[data-saved-props] { margin-bottom: 18px; }
[data-saved-props][hidden] { display: none; }

/* Confirmed: create an account (guests) */
.bk-account { margin: 22px 0 0; padding: 20px; border: 1px solid var(--teal-100); border-radius: 18px; background: var(--teal-50); }
.bk-account[hidden] { display: none; }
.bk-account__title { margin: 0 0 6px; font-size: 1.125rem; }
.bk-account__text { margin: 0 0 14px; color: var(--ink-2); font-size: .9375rem; }
.bk-account .form__status { margin: 10px 0; min-height: 0; }
.bk-account .form__status:empty { display: none; }
.bk-account .form__row { margin-bottom: 14px; }
.bk-account--done { font-size: .9375rem; color: var(--ink-2); }
@media (max-width: 640px) {
  .bk-who { grid-template-columns: minmax(0, 1fr); }
}
