.appointment-body { --teal: #087e7b; --teal-dark: #076966; background: #fff; font-size: 15px; min-height: 100vh; display: flex; flex-direction: column; }
.appointment-body [hidden] { display: none !important; }
.appointment-body button, .appointment-body input, .appointment-body select, .appointment-body textarea { font: inherit; letter-spacing: 0; }
.appointment-body button { cursor: pointer; }
.appointment-body button:disabled { cursor: not-allowed; }
.appointment-body :focus-visible { outline: 3px solid #147da4; outline-offset: 3px; }
.appointment-body h1 { font-size: 32px; line-height: 1.45; text-wrap: initial; }
.appointment-body h2 { font-size: 22px; line-height: 1.5; }
.appointment-body h3 { font-size: 16px; }
.appointment-body h4 { font-size: 14px; margin: 0 0 8px; font-weight: 500; color: var(--muted); }
.appointment-body .btn { box-shadow: none; font-size: 14px; min-height: 46px; }
.appointment-body .btn:hover { transform: none; }
.appointment-body .btn-primary { background: var(--teal); }
.appointment-body .btn-primary:hover { background: var(--teal-dark); }
.appointment-body .btn:disabled { background: #e9eeee; color: #617579; border-color: #dbe4e5; }
.appointment-body .btn-outline { border-color: #b8d5d7; }
.appointment-body .btn-outline:hover { background: #f0f8f8; }
.skip-link { position: fixed; left: 12px; top: 12px; z-index: 100; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; background: #fff; }
.skip-link:focus { width: auto; height: auto; padding: 12px; clip-path: none; }
.app-header { border-bottom: 1px solid var(--line); background: #fff; }
.app-header-inner { max-width: 1180px; padding: 0 24px; margin: auto; min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.app-nav { display: flex; gap: 28px; font-size: 14px; font-weight: 600; align-items: center; }
.app-nav a { padding: 28px 0 25px; border-bottom: 3px solid transparent; }
.app-nav a[aria-current] { color: var(--teal-dark); border-bottom-color: var(--teal); }
.app-nav a:hover { color: var(--teal-dark); }
.demo-bar { background: #fbf6e9; color: #70603b; padding: 8px 20px; text-align: center; font-size: 12px; font-weight: 600; }
.demo-bar span { margin-left: 20px; font-weight: 400; }
.booking-shell { width: min(1096px, calc(100% - 48px)); margin: 0 auto; padding: 38px 0 72px; flex: 1; }
.page-heading .section-kicker { margin-bottom: 5px; font-size: 11px; }
.page-heading > p:last-child { color: var(--muted); margin-top: 8px; }
.booking-progress { padding: 0; margin: 30px 0 36px; display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; border-bottom: 1px solid var(--line); }
.booking-progress li { display: flex; justify-content: center; align-items: center; gap: 9px; padding: 0 8px 18px; font-size: 13px; color: #728088; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.booking-progress li > span { display: grid; place-items: center; background: #eef2f3; width: 25px; height: 25px; border-radius: 50%; font-size: 12px; }
.booking-progress li[aria-current] { color: var(--teal-dark); font-weight: 700; border-bottom-color: var(--teal); }
.booking-progress li[aria-current] > span { background: var(--teal); color: #fff; }
.booking-progress li.is-complete > span { background: #ddf0ea; color: var(--teal-dark); }
.booking-layout { display: grid; grid-template-columns: minmax(0, 1fr) 302px; gap: 58px; align-items: start; }
.booking-workspace { min-width: 0; }
.booking-workspace h2 { scroll-margin-top: 24px; }
.step-eyebrow { color: var(--teal-dark); font-size: 11px; font-weight: 700; margin-bottom: 6px; }
.section-description { color: var(--muted); margin: 10px 0 22px; font-size: 14px; }
.appointment-body fieldset { border: none; margin: 28px 0 0; padding: 0; min-width: 0; }
.appointment-body legend { padding: 0; margin: 0 0 12px; font-weight: 600; }
.required, .optional { margin-left: 7px; font-size: 11px; font-weight: 500; }
.required { color: #ac443f; }
.optional { color: var(--muted); }
.service-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.service-option, .radio-option { display: flex; align-items: center; gap: 12px; border: 1px solid #d6e2e6; border-radius: 6px; padding: 17px 15px; cursor: pointer; background: #fff; }
.service-option { min-height: 86px; }
.service-option:hover, .radio-option:hover { border-color: #72b5af; }
.service-option:has(input:checked), .radio-option:has(input:checked) { border-color: var(--teal); background: #f0f9f7; box-shadow: inset 0 0 0 1px var(--teal); }
.service-option > span { min-width: 0; }
.service-option strong { display: block; font-size: 15px; }
.service-option small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.appointment-body input[type="radio"], .appointment-body input[type="checkbox"] { accent-color: var(--teal); width: 18px; height: 18px; margin: 0; flex: 0 0 auto; }
.visit-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.radio-option { font-size: 13px; min-height: 56px; }
.form-actions { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; }
#next-step { margin-left: auto; min-width: 205px; }
.booking-sidebar { position: sticky; top: 24px; }
.sidebar-summary { background: #eff8f8; padding: 26px 24px; border-top: 3px solid #82c6bd; }
.sidebar-summary .section-kicker { font-size: 10px; }
.sidebar-summary h2 { font-size: 18px; }
.summary-list { margin: 20px 0; }
.summary-list > div { margin-bottom: 15px; }
.summary-list dt { color: var(--muted); font-size: 11px; }
.summary-list dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; }
.underlined-link { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 4px; font-size: 13px; background: transparent; border: 0; padding: 0; }
.sidebar-hours { margin-top: 28px; }
.sidebar-hours > .underlined-link { display: inline-block; margin-top: 16px; }
.compact-hours { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 10px; text-align: center; table-layout: fixed; }
.compact-hours th, .compact-hours td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.compact-hours thead { background: #f1f6f8; color: var(--muted); }
.compact-hours th:first-child { width: 89px; font-weight: 500; }
.compact-hours td { color: var(--teal-dark); }
.input-hint { color: var(--muted); font-size: 12px; line-height: 1.7; }
.calendar-heading { display: flex; align-items: center; justify-content: space-between; margin: 20px 0 12px; }
.icon-button { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--teal-dark); font-size: 20px !important; }
.icon-button:hover { background: #f0f8f8; }
.icon-button:disabled { opacity: .4; }
.calendar-week, .calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.calendar-week { text-align: center; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.calendar-week span:first-child { color: #b25952; }
.calendar-week span:last-child { color: #277ca0; }
.calendar-day { min-width: 0; height: 62px; background: #fff; border: 1px solid #dbe7e9; border-radius: 4px; padding: 5px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--ink); }
.calendar-day > span { font-size: 16px; line-height: 1.4; font-weight: 600; }
.calendar-day > small { font-size: 9px; line-height: 1.7; color: var(--teal-dark); white-space: nowrap; }
.calendar-day:disabled { background: #f4f6f7; border-color: #f4f6f7; color: #849095; }
.calendar-day:disabled small { color: #758189; }
.calendar-day[aria-pressed="true"] { color: #fff; border-color: var(--teal); background: var(--teal); }
.calendar-day[aria-pressed="true"] small { color: #fff; }
.calendar-day.is-today > span { text-decoration: underline; text-underline-offset: 3px; }
.calendar-legend { display: flex; gap: 20px; font-size: 11px; color: var(--muted); margin-top: 12px; }
.calendar-legend span:last-child { margin-left: auto; }
.legend-dot { width: 6px; height: 6px; background: var(--teal); display: inline-block; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.time-heading { margin: 25px 0 16px; padding-top: 20px; border-top: 1px solid var(--line); }
.slot-session + .slot-session { margin-top: 18px; }
.slot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.time-slot { height: 62px; border: 1px solid #bad5d4; border-radius: 4px; background: white; color: var(--teal-dark); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.time-slot strong { font-size: 16px; }
.time-slot small { font-size: 10px; }
.time-slot:disabled { background: #f3f5f6; border-color: #e7ecee; color: #758189; }
.time-slot[aria-pressed="true"] { color: white; background: var(--teal); border-color: var(--teal); }
.form-field { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; min-width: 0; }
.form-field > label { font-weight: 600; font-size: 14px; }
.form-field input:not([type="checkbox"]), .form-field select, .form-field textarea { width: 100%; min-width: 0; min-height: 46px; border: 1px solid #bfcfd6; border-radius: 5px; padding: 10px 12px; background: white; color: var(--ink); font-size: 16px; }
.form-field textarea { resize: vertical; line-height: 1.7; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #849198; }
.form-field [aria-invalid="true"] { border-color: #b14842 !important; }
.field-error { font-size: 13px; color: #a23832; margin: 7px 0 0; }
.ui-message { background: #fff3ef; border-left: 3px solid #b44e42; color: #923d34; padding: 14px 18px; margin: 20px 0; font-size: 14px; }
.detail-list { margin: 24px 0; }
.detail-list > div { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.detail-list dt { color: var(--muted); font-size: 13px; }
.detail-list dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; font-size: 14px; }
.inline-note { font-size: 12px; color: var(--muted); }
.receipt-number { padding: 20px 0; border-bottom: 2px solid var(--teal); margin-top: 20px; }
.receipt-number span { display: block; color: var(--muted); font-size: 12px; }
.receipt-number strong { font-size: 24px; color: var(--teal-dark); overflow-wrap: anywhere; }
.completion-mark { width: 48px; height: 48px; display: grid; place-items: center; background: #e2f3ee; color: var(--teal); border-radius: 50%; font-size: 26px; margin-bottom: 16px; }
.visit-guidance { margin: 25px 0; font-size: 14px; }
.visit-guidance p { margin-top: 8px; }
.completion-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.app-footer { display: flex; justify-content: center; align-items: center; gap: 26px; flex-wrap: wrap; padding: 22px 24px; background: #f4f8f9; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.app-footer a { text-decoration: underline; text-underline-offset: 3px; }
.lookup-shell { width: min(620px, calc(100% - 48px)); margin: 0 auto; flex: 1; padding: 46px 0 80px; }
.lookup-form { margin-top: 25px; }
.lookup-form > .btn { margin-top: 24px; width: 100%; }
.lookup-result { margin-top: 38px; border-top: 2px solid var(--teal); padding-top: 25px; }
.lookup-result .btn { margin-top: 20px; }
.return-link { display: inline-block; margin-top: 30px; }
.section-title-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 22px 0 14px; }
.btn-danger { background: #fff; color: #a13b34; border-color: #dca69f !important; }
.btn-danger:hover { background: #fff1ed; }
.app-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 48px); overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; padding: 28px; color: var(--ink); box-shadow: 0 20px 80px #132b3e30; }
.app-dialog::backdrop { background: #142b3d70; }
.app-dialog .section-title-row { margin-top: 0; }
.confirm-dialog { max-width: 460px; }
.confirm-dialog > p { margin: 15px 0 24px; font-size: 14px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 12px; }
.admin-shell { width: min(1160px, calc(100% - 48px)); margin: 0 auto; padding: 34px 0 70px; flex: 1; }
.admin-title-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.admin-tabs { display: flex; border-bottom: 1px solid var(--line); margin: 28px 0 0; gap: 24px; }
.admin-tabs button { padding: 12px 4px; background: none; border: none; border-bottom: 3px solid transparent; color: var(--muted); font-weight: 600; }
.admin-tabs button[aria-selected="true"] { color: var(--teal-dark); border-bottom-color: var(--teal); }
.admin-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #f5f9fa; padding: 20px 0; margin: 24px 0; }
.admin-stat { padding: 0 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-right: 1px solid var(--line); }
.admin-stat:last-child { border: 0; }
.admin-stat span { font-size: 13px; color: var(--muted); }
.admin-stat strong { font-size: 26px; font-weight: 600; color: var(--navy); }
.admin-filters { display: grid; grid-template-columns: 175px minmax(160px, 1fr) minmax(120px, 180px) minmax(120px, 150px) auto; gap: 14px; align-items: end; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.admin-filters .form-field { margin-top: 0; }
.admin-shell .section-title-row h2 { font-size: 19px; }
.reservation-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.reservation-table th { color: var(--muted); font-size: 12px; padding: 12px 14px; background: #f4f8f9; font-weight: 500; }
.reservation-table td { border-bottom: 1px solid var(--line); padding: 17px 14px; }
.reservation-table td:first-child { width: 195px; }
.reservation-table td:nth-child(2) { max-width: 280px; overflow-wrap: anywhere; }
.reservation-table td:last-child { width: 150px; }
.reservation-table td:last-child .btn { white-space: nowrap; }
.reservation-table small { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.reservation-table td:first-child > strong { font-size: 17px; }
.status-label { display: inline-block; padding: 3px 9px; border-radius: 4px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.status-booked { background: #e6f3ef; color: #136d58; }
.status-attended { background: #e8f1fa; color: #365f86; }
.status-cancelled { background: #f1eeee; color: #776767; }
.feedback { padding: 10px 16px; margin-top: 18px; background: #edf7f0; color: #296943; font-size: 13px; }
.empty-state { text-align: center; background: #f7f9fa; color: var(--muted); font-size: 14px; padding: 32px 16px; }
.settings-layout { display: grid; grid-template-columns: minmax(0, 1fr) 306px; gap: 54px; padding-top: 30px; }
.settings-layout h2 { font-size: 19px; }
.settings-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.settings-heading .form-field { margin: 0; }
.closure-setting { margin: 24px 0; background: #f3f8f9; padding: 16px; }
.checkbox-label { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.closure-setting p { margin-top: 6px; }
.affected-bookings { padding: 16px; border-left: 3px solid #c39a43; background: #fff9ed; font-size: 13px; margin: 20px 0; }
.affected-bookings button { display: block; margin-top: 10px; text-align: left; }
.setting-slot { display: grid; grid-template-columns: 65px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 13px 4px; border-bottom: 1px solid var(--line); }
.setting-slot > div { font-size: 13px; }
.setting-slot small { display: block; color: var(--muted); font-size: 11px; }
.setting-slot button { display: block; margin-top: 4px; }
.settings-aside { border-left: 1px solid var(--line); padding-left: 26px; }
.settings-aside .section-description { font-size: 12px; }
.number-input { display: flex; align-items: center; gap: 12px; }
.number-input input { max-width: 120px; }
#capacity-form > .btn { margin-top: 20px; }
@media (max-width: 1000px) {
  .booking-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 30px; }
  .app-nav { gap: 18px; font-size: 12px; }
  .admin-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .settings-layout { gap: 28px; grid-template-columns: minmax(0, 1fr) 270px; }
}
@media (max-width: 760px) {
  .app-header-inner { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 20px 0; }
  .app-nav { width: 100%; gap: 24px; }
  .app-nav a { padding: 6px 0 13px; }
  .demo-bar { font-size: 11px; padding: 7px 16px; }
  .demo-bar span { display: block; margin-left: 0; }
  .booking-shell, .admin-shell { width: calc(100% - 40px); padding-top: 28px; }
  .appointment-body h1 { font-size: 26px; }
  .appointment-body h2 { font-size: 20px; }
  .page-heading > p:last-child { font-size: 13px; }
  .booking-progress { margin: 24px 0 28px; }
  .booking-progress li { flex-direction: column; gap: 6px; font-size: 10px; padding: 0 0 12px; }
  .booking-progress li > span { width: 24px; height: 24px; }
  .booking-layout { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .booking-sidebar { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .sidebar-hours { margin-top: 0; }
  .sidebar-summary { padding: 20px; }
  .settings-layout { grid-template-columns: minmax(0, 1fr); }
  .settings-aside { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .settings-aside .sidebar-hours { margin-top: 28px; max-width: 400px; }
  .reservation-table thead { display: none; }
  .reservation-table tbody { display: grid; gap: 14px; }
  .reservation-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; border: 1px solid var(--line); border-radius: 6px; padding: 16px; }
  .reservation-table td { border: 0; padding: 0; width: auto !important; min-width: 0; }
  .reservation-table td:first-child { grid-column: 1; grid-row: 1; }
  .reservation-table td:nth-child(2) { grid-column: 1; grid-row: 2; }
  .reservation-table td:nth-child(3) { grid-column: 1; grid-row: 3; }
  .reservation-table td:nth-child(4) { grid-column: 2; grid-row: 1; text-align: right; }
  .reservation-table td:nth-child(5) { grid-column: 2; grid-row: 3; align-self: end; }
  .admin-title-row { align-items: flex-start; }
  .admin-title-row > .btn { font-size: 11px; padding: 8px 10px; min-height: 36px; white-space: nowrap; }
  .admin-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-filters > .btn { grid-column: 2; }
  .admin-stat { padding: 0 15px; flex-direction: column; gap: 4px; align-items: flex-start; }
  .admin-stat span { font-size: 11px; }
  .admin-stat strong { font-size: 24px; }
}
@media (max-width: 480px) {
  .admin-title-row { display: block; }
  .admin-title-row > .btn { margin-top: 15px; }
  .booking-sidebar { grid-template-columns: minmax(0, 1fr); }
  .sidebar-summary { display: none; }
  .sidebar-hours { border-top: 1px solid var(--line); padding-top: 24px; }
  .service-options { gap: 9px; }
  .service-option { padding: 13px 10px; gap: 8px; min-height: 95px; align-items: flex-start; }
  .service-option input { margin-top: 4px !important; }
  .service-option strong { font-size: 13px; }
  .service-option small { font-size: 10px; }
  .radio-option { padding: 13px 10px; gap: 7px; font-size: 11px; }
  .form-actions { gap: 10px; }
  .form-actions .btn { padding: 12px; font-size: 12px; }
  #next-step { min-width: 0; flex: 1; }
  .calendar-week, .calendar-days { gap: 3px; }
  .calendar-day { height: 55px; }
  .calendar-day > small { font-size: 8px; }
  .calendar-legend { gap: 10px; font-size: 10px; }
  .slot-grid { gap: 6px; }
  .time-slot { height: 60px; }
  .time-slot strong { font-size: 14px; }
  .time-slot small { font-size: 9px; }
  .detail-list > div { grid-template-columns: 90px minmax(0, 1fr); gap: 10px; }
  .detail-list dd { font-size: 13px; }
  .lookup-shell { width: calc(100% - 40px); padding-top: 30px; }
  .app-footer { justify-content: flex-start; gap: 8px 20px; }
  .app-dialog { padding: 20px; }
  .settings-heading { display: block; }
  .settings-heading .form-field { margin-top: 18px; }
  .setting-slot { gap: 10px; grid-template-columns: 50px minmax(0, 1fr) auto; }
  .setting-slot .checkbox-label { font-size: 12px; gap: 6px; }
  .admin-shell .section-title-row h2 { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .appointment-body *, .appointment-body *::before, .appointment-body *::after { scroll-behavior: auto !important; transition: none !important; }
}
