/* Customer-only reading and touch layout. Fonts are served from this app;
   there are no third-party font requests and no change to the owner UI. */
@font-face {
  font-family: Almarai;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/Almarai-Regular.ttf') format('truetype');
}
@font-face {
  font-family: Almarai;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/Almarai-Bold.ttf') format('truetype');
}
:root, html[lang=he] {
  font-family: Almarai, Tahoma, Arial, sans-serif;
  font-size: 112.5%;
  line-height: 1.85;
  --muted: #485f5c;
  --line: #c6d5ce;
}
/* Almarai supplies Arabic/Latin; Hebrew uses the installed readable fallback. */
html[lang=he] { font-family: Tahoma, Arial, sans-serif; }
html { scroll-padding-block: 1.5rem; }
button, input, select { font: inherit; }
button, a, input, select, [tabindex] { scroll-margin-block: 1.5rem; }
button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, [tabindex='-1']:focus-visible {
  outline: 3px solid #a84920;
  outline-offset: 4px;
}
button, a, input, select { -webkit-tap-highlight-color: #123f4524; }
button { white-space: normal; }
p, h1, h2, h3, strong, label, a { overflow-wrap: anywhere; }
h1, h2, h3, .service-copy h3, .primary-button, .field-label { font-weight: 700; }
.shell { max-width: 1280px; padding-inline: 32px; }
.booking-layout > *, .service-copy, .summary-item > div,
.section-heading > div, .form-field, .header-actions { min-width: 0; }
.demo-banner { font-size: .89rem; padding: 10px 18px; }
.demo-banner span { align-items: flex-start; }
.demo-banner svg { margin-top: 6px; flex-shrink: 0; }
.site-header { height: auto; min-height: 112px; padding-block: 18px; flex-wrap: wrap; }
.brand-copy { font-size: .89rem; color: var(--muted); }
.brand-copy strong { font-size: 1rem; font-weight: 700; }
.header-actions { gap: 14px; flex-wrap: wrap; }
.phone-link {
  direction: rtl; display: flex; flex-wrap: wrap; justify-content: center;
  font: inherit; font-size: .89rem; color: var(--teal); background: #e7f2ea;
  padding: 8px 14px; border-radius: 10px; min-height: 48px; text-decoration: none;
}
.phone-link svg { display: block; width: 20px; height: 20px; }
.phone-link bdi { direction: ltr; font-weight: 700; white-space: nowrap; }
.language-toggle { min-height: 48px; min-width: 80px; padding: 8px 15px; font-size: 1rem; }
.owner-link { font-size: .89rem; min-height: 48px; display: inline-flex; align-items: center; }
.hero { padding: 32px 0 28px; }
.hero h1, html[lang=he] .hero h1 { font-size: 2rem; letter-spacing: 0; line-height: 1.6; }
.hero p { font-size: 1rem; max-width: 44rem; line-height: 1.9; }
.eyebrow { font: 700 .8rem Arial, sans-serif; letter-spacing: 1px; color: #426157; }
.hero-note { display: none; }
.booking-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
.booking-panel { border-radius: 18px; overflow: visible; }
.stepper { padding: 24px 16px; gap: 8px; }
.step-tab, html[lang=he] .step-tab, .stepper .step-tab {
  font-size: .89rem; line-height: 1.7; min-height: 72px; gap: 10px; color: #485f5c;
}
.step-tab:disabled { color: #58665f; }
.step-num { width: 40px; height: 40px; font: 700 1rem Arial, sans-serif; }
.stepper li:not(:last-child):after { top: 20px; inset-inline-start: calc(50% + 27px); inset-inline-end: calc(-50% + 27px); }
.panel-content, html[lang=he] .panel-content { padding: 30px; min-height: 0; }
.section-heading { margin-bottom: 24px; }
.section-heading h2, .manage-heading h2 { font-size: 1.45rem; letter-spacing: 0; }
.section-heading p { font-size: 1rem; max-width: none; margin-top: 8px; line-height: 1.85; }
.section-heading .step-progress { font-size: .89rem; font-weight: 700; color: #426157; margin: 0 0 6px; }
.section-count { display: none; }
.service-list { gap: 16px; }
.service-card { padding: 20px; gap: 16px; border-width: 2px; border-radius: 14px; }
.service-card.selected { border-color: #245d47; background: #edf7ef; }
.service-copy h3, html[lang=he] .service-copy h3 { font-size: 1.12rem; line-height: 1.7; }
.service-copy p, html[lang=he] .service-copy p { font-size: .89rem; line-height: 1.85; max-width: none; margin-top: 7px; }
.service-icon { width: 44px; height: 48px; }
.service-meta { gap: 12px; flex-direction: column-reverse; }
.duration { font-size: .89rem; font-weight: 700; color: #385749; }
.radio-marker { width: 24px; height: 24px; border-width: 2px; flex-shrink: 0; }
.selected .radio-marker:after { width: 8px; height: 8px; }
.panel-footer {
  padding: 22px 30px; gap: 18px; flex-wrap: wrap;
  /* Remain in document flow: a fixed footer can hide fields at high zoom. */
  position: static; backdrop-filter: none; box-shadow: none; border-radius: 0 0 18px 18px;
}
.primary-button, .secondary-button, .text-button, .danger-button,
.action-row .secondary-button, .action-row .primary-button, .action-row .danger-button {
  font-size: 1rem; min-height: 56px; padding: 12px 22px; line-height: 1.8; border-radius: 10px;
}
.primary-button { font-weight: 700; }
.primary-button:disabled { color: #465a50; background: #dce5df; }
.text-button { text-decoration: underline; text-underline-offset: 4px; color: #38574f; }
.footer-hint, html[lang=he] .footer-hint { font-size: .89rem; max-width: none; color: var(--muted); }
.sidebar { position: static; gap: 20px; }
.summary-card { padding: 24px; }
.summary-top h2 { font-size: 1.12rem; font-weight: 700; }
.summary-item span { font-size: .89rem; color: #d2e7de; }
.summary-item strong { font-size: 1rem; font-weight: 700; line-height: 1.85; }
.summary-item .placeholder { color: #d2e7de; }
.summary-bottom { font-size: .89rem; color: #e2eee8; line-height: 1.9; }
.clinic-card h3 { font-size: 1.06rem; }
.clinic-card p, .clinic-card .hours { font-size: .89rem; color: #385447; line-height: 1.9; }
.clinic-card .hours { grid-template-columns: minmax(0, 1fr); gap: 5px; }
.hours .times { font: inherit; text-align: start; overflow-wrap: anywhere; }
.clinic-card .closed { color: #844129; }
.reminder-note { font-size: .89rem; color: var(--muted); }
.site-footer { font-size: .89rem; color: var(--muted); line-height: 2.2; flex-wrap: wrap; }
.site-footer a { display: inline-block; padding-block: 8px; text-underline-offset: 4px; }
.site-footer .english { font: inherit; letter-spacing: 0; }
.date-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.date-button { min-height: 120px; border-width: 2px; gap: 6px; padding: 14px 4px; }
.date-button:nth-child(n+5) { display: flex; }
.date-button .weekday, .date-button .month { font-size: .89rem; }
.date-button .day-number { font: 700 1.55rem Arial, sans-serif; }
.date-button:disabled { color: #626d65; background: #f0f2ef; border-color: #dce3dc; }
.date-field { max-width: none; }
.field-label { font-size: 1rem; }
.input, .phone-country { font: inherit; min-height: 56px; padding: 12px; border: 2px solid #78958a; }
.input::placeholder { color: #61756a; opacity: 1; }
.phone-fields { grid-template-columns: minmax(100px, .75fr) minmax(0, 2fr); }
.phone-input { direction: ltr; }
.field-help { font-size: .89rem; color: var(--muted); margin-top: 8px; }
.field-error { font-size: 1rem; color: #922e20; }
.time-group h3 { font-size: 1rem; font-weight: 700; color: var(--muted); }
.slot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.slot-button { font: 700 1.12rem Arial, sans-serif; min-height: 56px; border-width: 2px; }
.timezone-note { font-size: .89rem; color: var(--muted); }
.form-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
.consent-box { font-size: .89rem; color: #385447; padding: 18px; gap: 14px; line-height: 1.9; }
.consent-box input { width: 26px; height: 26px; margin-top: 3px; }
.details-notice, .message { font-size: .89rem; line-height: 1.9; }
.empty-state h3 { font-size: 1.12rem; }
.empty-state p, .loading-state { font-size: 1rem; }
.empty-state, .loading-state { color: var(--muted); }
.status-badge.cancelled { color: #844129; }
.confirmation { padding: 32px; }
.confirmation-heading h2 { font-size: 1.55rem; }
.confirmation-heading p { font-size: 1rem; }
.confirmation-reference { font: .89rem/1.9 Arial, sans-serif; color: var(--muted); }
.appointment-detail dt { font-size: .89rem; color: var(--muted); }
.appointment-detail dd { font-size: 1rem; font-weight: 700; }
.action-row { gap: 14px; }
.action-row > * { min-width: 0; flex: 1 1 180px; }
.manage-link-box p, .managed-note { font-size: .89rem; color: var(--muted); }
.manage-link-box .input { font: .89rem/1.9 Arial, sans-serif; min-height: 56px; }
.status-badge { font-size: .89rem; line-height: 1.8; padding: 6px 10px; }
.booking-status-notice strong, .reminder-preference h3, .reschedule-area h3 { font-size: 1.12rem; }
.booking-status-notice p, .manage-warning, .manage-warning p,
.reminder-preference p { font-size: 1rem; line-height: 1.9; }
.reschedule-area .date-field { margin-bottom: 24px; }
@media (max-width: 1100px) {
  .booking-layout { display: flex; flex-direction: column; }
  .booking-panel, .sidebar { width: 100%; }
  .brand-copy { display: none; }
  .summary-card-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
  .summary-item { margin: 0; }
  .summary-item:first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .shell { padding-inline: 16px; }
  .site-header { gap: 14px; padding-block: 16px; }
  .brand img { width: 110px; height: 66px; }
  .header-actions { flex: 1 1 240px; gap: 10px; justify-content: flex-end; }
  .owner-link { display: none; }
  .phone-link { flex: 1 1 190px; gap: 8px; }
  .hero { padding: 24px 0; }
  .hero h1, html[lang=he] .hero h1 { font-size: 1.65rem; letter-spacing: 0; }
  .hero p { font-size: 1rem; max-width: none; }
  .eyebrow { display: none; }
  .panel-content, html[lang=he] .panel-content { padding: 24px 18px; }
  .section-heading h2 { font-size: 1.34rem; }
  .stepper { padding: 20px 12px; gap: 6px; }
  .stepper .step-tab, html[lang=he] .step-tab { font-size: .89rem; }
  .service-card { padding: 18px 14px; gap: 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .service-icon { display: none; }
  .service-copy h3, html[lang=he] .service-copy h3 { font-size: 1.12rem; }
  .service-copy p, html[lang=he] .service-copy p { font-size: .89rem; }
  .panel-footer { padding: 20px 18px; flex-direction: column; align-items: stretch; }
  .panel-footer .primary-button { width: 100%; }
  .panel-footer .text-button { align-self: flex-start; }
  .panel-footer .footer-hint { max-width: none; font-size: .89rem; }
  .date-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .slot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .confirmation { padding: 28px 18px; }
  .appointment-detail { grid-template-columns: minmax(0, 1fr); }
  .manage-heading { flex-wrap: wrap; }
}
@media (max-width: 380px) {
  .shell { padding-inline: 10px; }
  .phone-link { flex-basis: 100%; }
  .header-actions { justify-content: stretch; }
  .language-toggle { width: 100%; }
  .stepper { gap: 10px; display: grid; grid-template-columns: 1fr 1fr; }
  .step-tab { flex-direction: row; justify-content: flex-start; gap: 10px; min-height: 48px; }
  .stepper li:after { display: none; }
  .phone-fields { grid-template-columns: minmax(0, 1fr); }
  .summary-card-body { grid-template-columns: minmax(0, 1fr); }
  .slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Keep the next action near long time lists only when the screen has room.
   Small/zoomed viewports use the non-sticky layout above. Scroll clearance
   keeps keyboard-focused options out from under this two-button footer. */
@media (min-width: 381px) and (max-width: 760px) and (min-height: 700px) {
  html { scroll-padding-block-end: 13rem; }
  button, input, select, [tabindex] { scroll-margin-block-end: 13rem; }
  .panel-footer { position: sticky; bottom: 0; z-index: 3; background: #fcfdfb; box-shadow: 0 -4px 18px #123f4514; }
}
