.booking-page {
  --booking-line: rgba(27, 18, 14, 0.13);
}

.booking-page [hidden] {
  display: none !important;
}

.booking-page .site-header {
  z-index: 70;
}

.booking-hero-block {
  padding-top: 76px;
}

.booking-shell {
  max-width: 1180px;
}

.booking-heading {
  max-width: 860px;
  margin-bottom: 32px;
}

.booking-heading h1 {
  margin-top: 20px;
  font-size: clamp(48px, 7vw, 82px);
}

html[lang="ru"] .booking-heading h1 {
  overflow-wrap: break-word;
  hyphens: auto;
}

.booking-heading p {
  max-width: 700px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 18px;
}

.booking-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 620px;
  margin: 28px 0 0;
  padding: 18px 0;
  border-top: 1px solid var(--booking-line);
  border-bottom: 1px solid var(--booking-line);
}

.booking-overview div {
  display: grid;
  gap: 5px;
}

.booking-overview .booking-overview-service {
  grid-column: 1 / -1;
}

.booking-overview dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.booking-overview dd {
  /* Keep the asynchronous summary in flow before its values arrive. */
  min-block-size: 1.2em;
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.booking-overview[aria-busy="true"] dd::after {
  content: "";
  display: block;
  width: 8ch;
  max-width: 100%;
  height: 0.8em;
  margin-block: 0.2em;
  border-radius: 4px;
  background: var(--booking-line);
}

.booking-status {
  min-height: 24px;
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.booking-status:empty {
  display: none;
}

.booking-flow-grid,
.booking-details-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.82fr);
  gap: 24px;
  align-items: start;
}

.booking-panel {
  display: block;
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--booking-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.booking-availability-panel {
  padding: 30px;
  border-radius: var(--radius-lg);
}

.booking-panel .booking-availability-title {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.booking-date-time-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr);
  gap: 30px;
  margin-top: 24px;
}

.booking-calendar-region,
.booking-slots-region {
  min-width: 0;
}

.booking-calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.booking-slots-region {
  padding-left: 30px;
  border-left: 1px solid var(--booking-line);
}

.booking-selected-date {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
}

.booking-selected-date:focus-visible {
  border-radius: var(--radius-sm);
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.booking-slot-intro {
  margin-top: 0;
}

.booking-panel-state {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}

.booking-panel-state.is-error {
  color: var(--accent);
}

.booking-panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.booking-panel-heading > div {
  min-width: 0;
  flex: 1 1 auto;
}

.booking-panel h2,
.booking-details-grid h2,
.booking-result-screen h2,
.booking-management-screen h2,
.booking-dialog h2,
.policy-card h1 {
  margin-top: 12px;
  font-size: clamp(30px, 4vw, 48px);
}

.booking-eyebrow {
  display: block;
  white-space: nowrap;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.booking-muted {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.calendar-navigation {
  display: flex;
  gap: 8px;
}

.calendar-arrow {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--booking-line);
  border-radius: 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  font-size: 20px;
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.calendar-arrow:hover:not(:disabled) {
  border-color: rgba(107, 42, 36, 0.32);
  background: #fff;
  transform: translateY(-1px);
}

.calendar-arrow:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.calendar-month-label {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  text-transform: capitalize;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.calendar-weekdays {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.calendar-day,
.slot-button {
  border: 1px solid var(--booking-line);
  border-radius: 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  font: inherit;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.calendar-day {
  min-height: 54px;
  padding: 7px 3px;
  font-size: 14px;
  font-weight: 800;
}

.calendar-day:hover:not(:disabled):not(.is-selected) {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(170, 86, 61, 0.08);
  transform: translateY(-1px);
}

.calendar-day.is-selected,
.slot-button:hover,
.slot-button.is-selected {
  border-color: var(--accent);
  color: var(--white);
  background: var(--accent);
  transform: translateY(-1px);
}

.calendar-day:disabled {
  border-color: transparent;
  color: rgba(100, 88, 80, 0.35);
  background: transparent;
  cursor: not-allowed;
}

.calendar-day .day-dot {
  display: block;
  width: 5px;
  height: 5px;
  margin: 4px auto 0;
  border-radius: 50%;
  background: var(--gold);
}

.calendar-day.is-selected .day-dot,
.calendar-day:hover:not(:disabled) .day-dot {
  background: var(--gold-soft);
}

.next-day-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--booking-line);
  color: var(--muted);
  font-size: 13px;
}

.text-link {
  border: 0;
  padding: 0;
  color: var(--accent);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--gold);
}

.slot-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.slot-button {
  min-height: 54px;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 800;
}

.booking-slot-panel > .button-full,
.booking-slots-region > .button-full {
  margin-top: 20px;
}

.empty-state {
  margin-top: 30px;
  padding: 18px;
  border: 1px dashed var(--booking-line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
}

.booking-details-screen {
  padding: 12px 0 18px;
}

.booking-details-grid > :first-child {
  padding: 28px 18px 0 0;
}

.booking-back-button {
  margin-top: 28px;
}

.booking-form {
  display: grid;
  gap: 16px;
  padding: 30px;
  border: 1px solid var(--booking-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.form-two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.booking-form label,
.booking-dialog label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.booking-form input,
.booking-form textarea,
.booking-dialog input,
.booking-dialog textarea {
  min-height: 50px;
  border: 1px solid var(--booking-line);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.booking-form input:focus,
.booking-form textarea:focus,
.booking-dialog textarea:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(239, 183, 73, 0.34);
  outline-offset: 1px;
}

.consent-group {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}

.consent-group legend {
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.checkbox-label {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: start;
  gap: 10px !important;
  color: var(--muted) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.5;
}

.checkbox-label input {
  width: 18px;
  min-height: 18px;
  flex: 0 0 auto;
  margin: 1px 0 0;
  accent-color: var(--accent);
}

.checkbox-label a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.booking-cancellation-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.form-error-summary {
  padding: 14px 16px;
  border: 1px solid rgba(107, 42, 36, 0.3);
  border-radius: 10px;
  color: var(--accent-strong);
  background: rgba(239, 183, 73, 0.14);
  font-size: 13px;
  font-weight: 700;
}

.booking-summary-card {
  padding: 18px;
  border: 1px solid var(--booking-line);
  border-radius: 12px;
  background: rgba(247, 242, 234, 0.68);
}

.booking-summary-card h3 {
  margin-top: 7px;
  font-size: 20px;
}

.booking-summary-card dl,
.result-details {
  display: grid;
  grid-template-columns: minmax(100px, 0.7fr) minmax(0, 1.3fr);
  gap: 9px 16px;
  margin: 18px 0 0;
}

.booking-summary-card dt,
.result-details dt {
  color: var(--muted);
  font-size: 12px;
}

.booking-summary-card dd,
.result-details dd {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.form-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.booking-result-screen,
.booking-management-screen {
  max-width: 820px;
  padding: 46px 0 30px;
}

.booking-result-lead {
  max-width: 600px;
  margin-top: 18px;
  color: var(--muted);
}

.result-details {
  max-width: 680px;
  margin-top: 32px;
  padding: 22px;
  border: 1px solid var(--booking-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.booking-result-note,
.management-message {
  max-width: 680px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
}

.management-message:empty {
  display: none;
}

.booking-result-actions,
.management-actions,
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.management-header {
  max-width: 650px;
}

.management-reschedule-panel {
  margin-top: 40px;
}

.management-calendar-grid {
  grid-template-columns: minmax(0, 1fr);
}

.management-calendar-grid .booking-panel {
  box-shadow: none;
}

.booking-dialog {
  width: min(520px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 16px;
  color: var(--ink);
  background: transparent;
  box-shadow: var(--shadow-strong);
}

.booking-dialog::backdrop {
  background: rgba(36, 25, 22, 0.62);
  backdrop-filter: blur(7px);
}

.booking-dialog-card {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 34px;
  background: var(--panel);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(27, 18, 14, 0.06);
  font-size: 24px;
  cursor: pointer;
}

.policy-section {
  min-height: calc(100vh - var(--header-height));
}

.policy-card {
  max-width: 760px;
  padding: 46px;
  border: 1px solid var(--booking-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.policy-card p {
  max-width: 620px;
  margin-top: 20px;
  color: var(--muted);
}

.policy-card .button {
  margin-top: 28px;
}

.booking-page a:focus-visible,
.booking-page button:focus-visible,
.booking-page input:focus-visible,
.booking-page textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .booking-heading {
    margin-bottom: 28px;
  }

  .booking-flow-grid,
  .booking-details-grid {
    grid-template-columns: 1fr;
  }

  .booking-date-time-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .booking-slots-region {
    padding-top: 26px;
    padding-left: 0;
    border-top: 1px solid var(--booking-line);
    border-left: 0;
  }

  .booking-selected-date {
    white-space: normal;
  }

  .booking-details-grid > :first-child {
    padding: 0;
  }
}

@media (max-width: 760px) {
  .booking-hero-block {
    padding-top: 42px;
  }

  .booking-heading h1 {
    font-size: clamp(42px, 13vw, 62px);
  }

  .booking-heading p {
    font-size: 16px;
  }

  .booking-overview {
    gap: 16px;
    margin-top: 24px;
    padding: 16px 0;
  }

  .booking-overview dd {
    font-size: 20px;
  }

  .booking-overview-service dd {
    min-block-size: 2.4em;
  }

  .booking-panel,
  .booking-form,
  .policy-card {
    padding: 22px;
  }

  .calendar-day {
    min-height: 46px;
    font-size: 13px;
  }

  .form-two-columns {
    grid-template-columns: 1fr;
  }

  .booking-summary-card dl,
  .result-details {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .booking-summary-card dd,
  .result-details dd {
    margin-bottom: 9px;
  }

  .booking-result-actions,
  .management-actions,
  .dialog-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .booking-result-actions .button,
  .management-actions .button,
  .dialog-actions .button {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .booking-heading {
    margin-bottom: 24px;
  }

  html[lang="de"] .booking-heading h1 {
    font-size: 46px;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .booking-availability-panel {
    padding-right: 16px;
    padding-left: 16px;
  }

  .booking-availability-panel .calendar-weekdays,
  .booking-availability-panel .calendar-grid {
    gap: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .booking-page *,
  .booking-page *::before,
  .booking-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

.booking-recovery-panel {
  margin-bottom: 24px;
}
.booking-recovery-panel h2 {
  margin-top: 0;
}
.booking-recovery-panel select {
  max-width: 100%;
  min-height: 44px;
  margin-bottom: 16px;
  padding: 8px 12px;
  border: 1px solid var(--booking-line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.booking-recovery-panel .result-details dd {
  overflow-wrap: anywhere;
}

/* A completed booking has one card; receipt controls stay inside it. */
.booking-result-screen {
  padding: 32px;
  border: 1px solid var(--booking-line);
  border-radius: 18px;
  background: #fff;
}
.booking-result-screen .result-details {
  padding: 0;
  border: 0;
  background: transparent;
}
.booking-result-payment {
  margin: 24px 0 0;
  color: var(--muted);
  line-height: 1.6;
}
.booking-status-result {
  margin: 20px 0 0;
  padding: 12px 16px;
  border: 1px solid #b8c3cc;
  border-left-width: 4px;
  border-radius: 8px;
  background: #f1f4f6;
  color: #334953;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.booking-status-result.is-positive {
  border-color: #99b9a5;
  background: #eff7f2;
  color: #245139;
}
.booking-status-result.is-warning {
  border-color: #d4af7a;
  background: #fff4e5;
  color: #71401d;
}
.booking-recovery-panel.is-inline {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.booking-recovery-panel.is-inline p:empty {
  display: none;
}
.booking-result-screen .booking-result-actions {
  align-items: stretch;
}
.booking-result-screen .booking-result-actions .button {
  min-width: 0;
  min-height: 48px;
  max-width: 100%;
  white-space: normal;
}
@media (min-width: 901px) {
  .booking-result-screen .booking-result-actions {
    display: grid;
    grid-template-columns: max-content minmax(0, max-content) max-content;
    justify-content: start;
  }
}
/* Keep the Russian resend phrase together without changing its wording or type size. */
html[lang="ru"] .booking-action-phrase {
  white-space: nowrap;
}
@media (min-width: 901px) {
  html[lang="ru"] .booking-result-screen .booking-result-actions {
    grid-template-columns: minmax(0, max-content) max-content minmax(
        0,
        max-content
      );
  }
}
.booking-status.is-announcement-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  margin: 0;
}
@media (max-width: 600px) {
  .booking-result-screen {
    padding: 24px 18px;
  }
}

/* Keep successful security readiness available to assistive technology. */
.booking-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
