/* Booking components share the public-site tokens in DESIGN.md. */
.tf-booking {
  --navy: var(--tf-light-text);
  --cyan: var(--tf-accent);
  --coral: var(--tf-accent);
  gap: var(--tf-space-8);
  padding: var(--tf-space-8);
  border: 1px solid var(--tf-border-dark);
  border-radius: var(--tf-radius-panel);
  background: var(--tf-surface);
  color: var(--tf-text);
  box-shadow: none;
}
.tf-booking-main {
  min-width: 0;
  padding: var(--tf-space-8);
  border: 1px solid var(--tf-border-light);
  border-radius: var(--tf-radius-card);
  background: var(--tf-light);
  color: var(--tf-light-text);
  box-shadow: none;
}
.tf-intro h2 { font-size: clamp(1.875rem, 3vw, 3rem); }
.tf-intro p,
.tf-intro-note { color: var(--tf-text-muted); font-size: 1rem; line-height: 1.65; }
.tf-intro .tf-meta { color: var(--tf-text); }
.tf-intro-note { border-left-color: var(--tf-accent); }
.tf-kicker { color: var(--tf-accent); font-size: .875rem; }
.tf-booking h3,
.tf-form h3,
.tf-review h3 { color: var(--tf-light-text); font-size: 1.25rem; }
.tf-booking .tf-booking-main p,
.tf-booking .tf-selected { color: var(--tf-light-muted); font-size: .9375rem; line-height: 1.65; }
.tf-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--tf-space-2); }
.tf-progress li { min-width: 0; color: var(--tf-light-muted); font-size: .875rem; line-height: 1.4; }
.tf-progress li span,
.tf-progress .current span { flex: 0 0 28px; width: 28px; height: 28px; background: var(--tf-light); color: var(--tf-light-text); }
.tf-progress .current { color: var(--tf-light-text); }
.tf-progress .current span { background: var(--tf-light-text); color: var(--tf-light); }
.tf-picker > div { min-width: 0; }
.tf-month strong { min-width: 0; text-align: center; }
.tf-month button { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0; }
.tf-calendar-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; }
.tf-calendar button { min-width: 44px; min-height: 44px; padding: 0; border-radius: var(--tf-radius-control); }
.tf-week { color: var(--tf-light-muted); font-size: .875rem; }
.tf-booking .tf-calendar-status { color: var(--tf-light-muted); font-size: .875rem; }
.tf-booking button { min-height: 44px; border-radius: var(--tf-radius-control); font-size: .9375rem; transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease; }
.tf-booking button:hover:not(:disabled) { background: var(--tf-accent-hover); border-color: var(--tf-accent-active); color: var(--tf-light-text); }
.tf-booking button:active:not(:disabled) { transform: translateY(1px) scale(.98); }
.tf-booking button:disabled { opacity: .58; cursor: not-allowed; }
.tf-booking button.active,
.tf-booking button.active:hover:not(:disabled) { background: var(--tf-light-text); color: var(--tf-light); }
.tf-booking .tf-submit { min-height: 48px; background: var(--tf-light-text); color: var(--tf-light); font-size: .9375rem; }
.tf-booking .tf-submit:hover:not(:disabled) { background: var(--tf-surface-raised); color: var(--tf-light); }
.tf-booking .tf-submit:active:not(:disabled) { background: var(--tf-bg); color: var(--tf-light); }
.tf-booking .tf-submit:disabled { background: var(--tf-light-muted); color: var(--tf-light); }
.tf-booking button:focus-visible,
.tf-booking input:focus-visible,
.tf-booking select:focus-visible,
.tf-booking textarea:focus-visible { outline: 3px solid var(--tf-light-text); outline-offset: 3px; }
.tf-fields label { min-width: 0; color: var(--tf-light-text); font-size: .9375rem; }
.tf-fields input,
.tf-fields select,
.tf-fields textarea { min-width: 0; min-height: 48px; border: 1px solid var(--tf-border-light); border-radius: var(--tf-radius-control); background: var(--tf-light); color: var(--tf-light-text); font-size: 1rem; }
.tf-fields textarea { min-height: 100px; }
.tf-fields input::placeholder,
.tf-fields textarea::placeholder { color: var(--tf-light-muted); opacity: 1; }
.tf-fields [aria-invalid="true"],
.tf-consent [aria-invalid="true"] { border: 2px solid var(--tf-error); }
.tf-field-error { display: block; margin-top: var(--tf-space-1); color: var(--tf-error); font-size: .875rem; font-weight: 600; line-height: 1.5; }
.tf-field-error[hidden] { display: none; }
.tf-consent { color: var(--tf-light-text); font-size: .875rem; }
.tf-consent a { color: var(--tf-light-text); text-decoration: underline; }
.tf-feedback { color: var(--tf-error); font-size: .9375rem; }
.tf-feedback button { display: block; margin-top: var(--tf-space-4); }
.tf-feedback.success { background: var(--tf-light); color: var(--tf-success); border: 1px solid var(--tf-success); border-radius: var(--tf-radius-card); }
.tf-feedback.success p { color: var(--tf-light-text); }
.tf-review > p,
.tf-selected,
.tf-closed { background: var(--tf-light); border-radius: var(--tf-radius-card); }
.tf-closed-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: var(--tf-space-3);
  padding: 12px 24px;
  border: 1px solid var(--tf-light-text);
  border-radius: 999px;
  background: var(--tf-light-text);
  color: var(--tf-light);
  font-size: .9375rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 180ms ease, transform 180ms ease;
}
.tf-closed-link:hover { background: var(--tf-surface-raised); color: var(--tf-light); }
.tf-closed-link:active { background: var(--tf-bg); transform: translateY(1px); }
.tf-closed-link:focus-visible { outline: 3px solid var(--tf-light-text); outline-offset: 3px; }

@media (max-width: 560px) {
  .tf-booking { gap: var(--tf-space-4); padding: var(--tf-space-4); border-radius: var(--tf-radius-panel); }
  .tf-booking-main { padding: var(--tf-space-4); border-radius: var(--tf-radius-card); min-height: 0; }
  .tf-intro h2 { margin: var(--tf-space-2) 0; }
  .tf-intro p { margin: var(--tf-space-2) 0; }
  .tf-progress { margin-bottom: var(--tf-space-4); }
  .tf-progress li { display: flex; flex-direction: column; align-items: center; gap: var(--tf-space-1); text-align: center; overflow-wrap: anywhere; }
  .tf-calendar-scroll .tf-week,
  .tf-calendar-scroll .tf-calendar { min-width: 332px; grid-template-columns: repeat(7, 44px); gap: 4px; }
  .tf-date-actions { flex-wrap: wrap; }
  .tf-date-actions p { max-width: 100%; }
  .tf-date-actions .tf-submit { margin-left: auto; }
  .tf-slots { font-size: .875rem; }
}

@media (max-width: 240px) {
  .tf-booking { padding: var(--tf-space-3); }
  .tf-booking-main { padding: var(--tf-space-3); }
  .tf-month { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--tf-space-2); }
  .tf-month strong { grid-column: 1 / -1; grid-row: 1; }
  .tf-month [data-prev] { grid-column: 1; grid-row: 2; }
  .tf-month [data-next] { grid-column: 2; grid-row: 2; }
  .tf-slots { grid-template-columns: 1fr; }
  .tf-progress { grid-template-columns: 1fr; }
  .tf-progress li { flex-direction: row; justify-content: flex-start; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .tf-booking button,
  .tf-closed-link { transition: none; }
}

/* Keep the contact form within a laptop viewport without clipping content. */
.tf-booking-page .document-page {
  width: min(1160px, calc(100% - 48px));
  padding-top: 96px;
  padding-bottom: 16px;
  min-height: 0;
}
.tf-booking-page .document-page > .wp-block-post-title { display: none; }
.tf-booking-page #booking-area { padding: 0; }
.tf-booking-page .tf-booking { margin: 0; padding: 20px; gap: 28px; }
.tf-booking-page .tf-booking-main { padding: 20px; min-height: 0; }
.tf-booking-page .tf-progress { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 12px; }
.tf-booking-page .tf-progress li { flex-direction: row; text-align: left; }
.tf-booking-page .tf-progress li span { width: 24px; height: 24px; flex-basis: 24px; }
.tf-booking-page .tf-form h3 { margin: 0 0 12px; line-height: 1.2; }
.tf-booking-page .tf-fields { gap: 10px 16px; }
.tf-booking-page .tf-fields label { margin: 0; gap: 4px; font-size: 14px; line-height: 1.4; }
.tf-booking-page .tf-fields input { min-height: 44px; padding: 9px 12px; line-height: 1.4; }
.tf-booking-page .tf-fields textarea { min-height: 64px; height: 64px; margin: 0; padding: 9px 12px; line-height: 1.4; resize: vertical; }
.tf-booking-page .document-page .tf-booking-main p { margin: 8px 0; font-size: 14px; line-height: 1.45; }
.tf-booking-page .tf-consent { margin-top: 10px; font-size: 13px; line-height: 1.5; }
.tf-booking-page .tf-form > p:not(#tf-contact-hint) { display: none; }
.tf-booking-page .tf-submit { min-height: 44px; margin-top: 12px; padding: 10px 18px; }
.tf-booking-page .tf-booking-main button { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.tf-booking-page .tf-intro h2 { font-size: clamp(26px, 2.6vw, 36px); margin: 12px 0; }
.tf-booking-page .document-page .tf-intro p { font-size: 15px; line-height: 1.6; margin: 12px 0; }
.tf-booking-page .tf-intro-note { margin-top: 20px; }
@media (min-width: 901px) {
  .tf-booking-page .document-page { min-height: 100svh; }
  .tf-booking-page .tf-booking,
  .tf-booking-page .tf-booking-main { padding: 24px; }
  .tf-booking-page .tf-fields { row-gap: 12px; }
  .tf-booking-page .tf-fields label { font-size: 15px; }
  .tf-booking-page .tf-fields input { min-height: 48px; }
  .tf-booking-page .tf-fields textarea { min-height: 80px; height: 80px; }
  .tf-booking-page .tf-submit { min-height: 48px; }
  .tf-booking-page .tf-booking { grid-template-columns: .8fr 1.5fr; }
  .tf-booking-page .tf-intro-note { display: block; }
}
@media (max-width: 900px) {
  .tf-booking-page .document-page { width: calc(100% - 32px); padding-top: 84px; }
  .tf-booking-page .tf-booking { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  .tf-booking-page .tf-intro-note { display: none; }
  .tf-booking-page .tf-booking-main { padding: 16px; }
}
