.workspace-theme .appointment-page { max-width: 1080px; margin: 0 auto; padding: 48px 24px 40px; container: booking / inline-size; }
.appointment-page .booking-heading { max-width: 780px; margin-bottom: 30px; }
.appointment-page .booking-heading h1 { margin: 10px 0 14px; }
.appointment-page .booking-heading .lead { max-width: 700px; }
.appointment-page .booking-facts { display: flex; flex-wrap: wrap; list-style: none; gap: 12px 24px; padding: 0; margin: 22px 0 0; font-size: 14px; color: var(--ink, #152639); }
.appointment-page .booking-facts li { display: flex; align-items: center; gap: 8px; }
.appointment-page .booking-surface { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: #fff; border: 1px solid var(--line, #e0e6eb); border-radius: 8px; box-shadow: var(--aw-ui-shadow); overflow: hidden; }
.appointment-page .booking-calendar, .appointment-page .booking-details { padding: 28px; min-width: 0; }
.appointment-page .booking-details { border-left: 1px solid var(--line, #e0e6eb); }
.appointment-page h2 { margin: 0 0 8px; }
.appointment-page .booking-caption { font-size: 12px; color: #586779; line-height: 1.55; }
.appointment-page .booking-month { display: flex; justify-content: space-between; align-items: center; margin: 26px 0 16px; gap: 8px; }
.appointment-page .booking-month h3 { margin: 0; font-size: 16px; }
.appointment-page .booking-month > div { display: flex; gap: 4px; }
.appointment-page .booking-month button { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line, #e0e6eb); border-radius: 6px; background: white; padding: 0; }
.appointment-page .booking-week, .appointment-page .booking-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; text-align: center; }
.appointment-page .booking-week { color: #586779; font-size: 12px; margin-bottom: 8px; }
.appointment-page .booking-days { min-height: 240px; grid-auto-rows: 44px; align-content: start; }
.appointment-page .booking-days button, .appointment-page .booking-times button { min-width: 0; min-height: 44px; border: 1px solid transparent; border-radius: 6px; background: #edf3ff; color: #1049be; padding: 8px 2px; font-size: 14px; cursor: pointer; }
.appointment-page .booking-days button:disabled { background: transparent; color: #77818c; cursor: default; opacity: 1; }
.appointment-page .booking-month button:disabled { opacity: .45; cursor: default; }
.appointment-page .booking-days button[aria-pressed="true"], .appointment-page .booking-times button[aria-pressed="true"] { background: #155eef; color: #fff; border-color: #155eef; }
.appointment-page .booking-times { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.appointment-page .booking-times button { background: white; border-color: #d4dee9; color: #152639; }
.appointment-page #booking-slots h3 { font-size: 16px; margin: 24px 0 12px; }
.appointment-page button:hover:not(:disabled):not([aria-pressed="true"]) { border-color: #155eef; }
.appointment-page :is(button, input, textarea, a):focus-visible { outline: 3px solid #155eef; outline-offset: 3px; }
.appointment-page .booking-selection { min-height: 62px; padding: 12px 14px; margin: 16px 0 20px; background: #f5f8fa; border-left: 3px solid #155eef; font-size: 14px; line-height: 1.55; }
.appointment-page .form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 15px; }
.appointment-page .field { min-width: 0; display: grid; gap: 6px; }
.appointment-page .field :is(input, textarea) { width: 100%; min-width: 0; box-sizing: border-box; padding: 11px 12px; }
.appointment-page .field textarea { min-height: 88px; resize: vertical; }
.appointment-page .booking-privacy { display: flex; gap: 12px; align-items: flex-start; padding: 4px 0; line-height: 1.55; }
.appointment-page .booking-privacy input { flex: 0 0 20px; width: 20px; height: 20px; min-height: 20px; margin: 2px 0 0; accent-color: #155eef; }
.appointment-page .booking-privacy span { min-width: 0; }
.appointment-page .booking-privacy a { color: #1049be; text-decoration: underline; text-underline-offset: 3px; }
.appointment-page .booking-notice { background: #f0f6f8; border-left: 3px solid #087c83; padding: 12px 16px; margin-bottom: 20px; font-size: 14px; }
.appointment-page [hidden] { display: none !important; }
.appointment-page #appointment-status { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.appointment-page #appointment-status:empty { display: none; }
.appointment-page #appointment-status[role="alert"] { color: #a52a32; }
.appointment-page .booking-contact { text-align: center; font-size: 14px; margin: 22px 0 0; }
.appointment-page .booking-success { grid-column: 1 / -1; max-width: 640px; padding: 40px; margin: 0 auto; }
.appointment-page .booking-success > img { display: block; margin-bottom: 16px; }
.appointment-page .booking-success h2 { margin: 12px 0; }
.appointment-page .booking-success .btn { margin: 10px 0; }
@container booking (max-width: 720px) {
  .appointment-page .booking-surface { grid-template-columns: minmax(0, 1fr); }
  .appointment-page .booking-details { border-left: 0; border-top: 1px solid var(--line, #e0e6eb); }
}
@media (max-width: 760px) {
  .workspace-theme .workspace-body:has(> .appointment-page) { padding-inline: 0; }
  .workspace-theme .appointment-page { padding: 28px 16px; }
  .appointment-page .booking-surface { grid-template-columns: minmax(0, 1fr); }
  .appointment-page .booking-calendar, .appointment-page .booking-details { padding: 22px; }
  .appointment-page .booking-calendar { padding-inline: 12px; }
  .appointment-page .booking-days, .appointment-page .booking-week { gap: 4px; }
  .appointment-page .booking-details { border-left: 0; border-top: 1px solid var(--line, #e0e6eb); }
  .appointment-page .field :is(input, textarea) { font-size: 16px; }
  .appointment-page .booking-success { padding: 24px; }
}
@media (max-width: 380px) {
  .workspace-theme .appointment-page { padding-inline: 4px; }
  .appointment-page .booking-calendar, .appointment-page .booking-details { padding: 16px 12px; }
  .appointment-page .booking-calendar { padding-inline: 0; }
  .appointment-page .booking-calendar > :is(h2, p), .appointment-page .booking-month, .appointment-page #booking-slots, .appointment-page .booking-heading { margin-inline: 12px; }
  .appointment-page .booking-days, .appointment-page .booking-week { gap: 0; }
  .appointment-page .booking-times { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
