
body {
  overflow: auto;
}

.public-booking-page {
  min-height: 100vh;
  padding: 22px;
}

.public-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 16px;
}

.public-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.public-eyebrow,
.public-calendar-header p,
.public-form-header p,
.submit-note,
.review-help {
  color: var(--muted);
}

.public-eyebrow {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
}

.public-title-block h1,
.public-calendar-header h2,
.public-form-header h2 {
  margin: 0;
}

.public-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.95fr);
  gap: 16px;
  align-items: start;
}

.public-left-column {
  display: grid;
  gap: 16px;
}

.public-calendar-shell,
.public-form-shell,
.public-review-shell {
  padding: 18px;
}

.public-calendar-header,
.public-form-header {
  margin-bottom: 14px;
}

.public-calendar-header p,
.public-form-header p,
.submit-note,
.review-help {
  margin: 6px 0 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.public-timeline-grid {
  max-height: min(62vh, 760px);
  border-radius: 18px;
  border: 1px solid var(--border);
}

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

.field-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-stack > span:first-child {
  font-size: 0.9rem;
  color: var(--muted);
}

.field-stack input,
.field-stack .email-composite-wrap input,
.field-stack textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--field-bg);
  color: var(--text);
  padding: 12px 14px;
  outline: 0;
}

.field-stack input:focus,
.field-stack textarea:focus {
  border-color: var(--accent);
}

.field-stack textarea {
  grid-column: 1 / -1;
}

.field-span-full,
.field-stack-checkbox {
  grid-column: 1 / -1;
}

.field-span-half,
.email-composite-field {
  grid-column: span 3;
}

.field-span-third {
  grid-column: span 2;
}

.email-composite-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(180px, 0.9fr);
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  padding: 0 12px;
  background: var(--surface);
}

.email-composite-wrap input {
  border: 0;
  padding-left: 0;
  padding-right: 0;
}

.email-at {
  color: var(--muted);
  font-weight: 700;
}

.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.checkbox-row input {
  margin-top: 3px;
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
}

.review-row span {
  color: var(--muted);
}

.review-checkbox {
  margin-top: 18px;
}

.public-submit-button {
  width: 100%;
  margin-top: 18px;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  background: var(--disabled);
  color: #fff;
  font-weight: 700;
  transition: background var(--speed) ease, transform var(--speed) ease, opacity var(--speed) ease;
}

.public-submit-button.is-enabled {
  background: var(--accent);
}

.public-submit-button:disabled {
  cursor: not-allowed;
  opacity: 0.75;
}

.public-selection-pill {
  position: absolute;
  height: 50px;
  top: 0;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 24px rgba(23, 27, 38, 0.16);
  cursor: grab;
  pointer-events: auto;
  user-select: none;
}

.public-selection-pill.is-invalid {
  background: var(--danger);
}

.public-selection-pill.is-dragging {
  cursor: grabbing;
}

.selection-pill-labels {
  display: flex;
  gap: 10px;
  margin: 0 2rem;
}

.selection-pill-labels span:last-child {
  white-space: nowrap;
}

.selection-handle {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: rgba(255,255,255,0.22);
  transform: translateY(-50%);
  cursor: grab;
}

.selection-handle:hover {
  background: #fff;
}

.selection-handle.start {
  left: 8px;
}

.selection-handle.end {
  right: 8px;
}

.public-booked-pill {
  position: absolute;
  height: 44px;
  top: 0;
  border-radius: 999px;
  background: repeating-linear-gradient(-45deg,
    rgba(140, 146, 161, 0.22) 0px,
    rgba(140, 146, 161, 0.22) 8px,
    rgba(140, 146, 161, 0.38) 8px,
    rgba(140, 146, 161, 0.38) 16px);
  border: 1px solid rgba(140, 146, 161, 0.5);
  pointer-events: none;
}

.public-track {
  position: absolute;
  inset: 16px 0 12px var(--unit-width);
  pointer-events: none;
}

.public-unit-cell {
  align-items: stretch;
}

.public-unit-cell-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.public-unit-cell-content small {
  display: block;
  margin-top: 4px;
}

@media (max-width: 1080px) {
  .public-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .public-booking-page {
    padding: 16px;
  }

  .public-topbar {
    flex-direction: column;
  }

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

  .field-span-half,
  .email-composite-field,
  .field-span-third,
  .field-span-full,
  .field-stack-checkbox {
    grid-column: 1 / -1;
  }

  .email-composite-wrap {
    grid-template-columns: 1fr;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .email-at {
    display: none;
  }
}

.review-row strong {
  text-align: right;
}


.field-span-full {
  grid-column: 1 / -1;
}

.field-stack-checkbox {
  align-self: stretch;
}

.checkbox-row-inline {
  min-height: 48px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 0 14px;
}

.checkbox-row-inline input {
  margin-top: 0;
  flex: 0 0 auto;
}

.checkbox-row-inline span {
  line-height: 1.35;
}

@media (min-width: 721px) {
  .public-form-grid > .email-composite-field {
    grid-column: span 1;
  }
}


.checkbox-row-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
}

.checkbox-row-inline input {
  margin-top: 0;
  flex: 0 0 auto;
}


.public-form-shell {
  overflow: hidden;
}

.public-form-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.booking-form-row {
  display: flex;
  width: 100%;
  gap: 14px;
  flex-wrap: nowrap;
  align-items: stretch;
}

.booking-form-row-full {
  flex-direction: row;
}

.booking-form-row-two-up > .booking-field {
  flex: 1 1 0;
}

.booking-form-row-three-up > .booking-field {
  flex: 1 1 0;
  min-width: 0;
}

.booking-field {
  min-width: 0;
}

.booking-field-full {
  flex: 1 1 100%;
}

.field-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-stack > span:first-child {
  font-size: 0.9rem;
  color: var(--muted);
}

.field-stack input,
.field-stack textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--field-bg);
  color: var(--text);
  padding: 12px 14px;
  outline: 0;
}

.field-stack textarea {
  resize: vertical;
  min-height: 120px;
}

.email-composite-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  padding: 0 12px;
  background: var(--surface);
  min-height: 50px;
}

.email-composite-wrap input {
  border: 0;
  padding-left: 0;
  padding-right: 0;
  background: transparent;
}

.email-composite-wrap input:first-child {
  flex: 1 1 0;
}

.email-composite-wrap input:last-child {
  flex: 0 1 230px;
}

.field-stack-checkbox {
  align-self: stretch;
}

.checkbox-row-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 0 14px;
}

.checkbox-row-inline input {
  margin-top: 0;
  flex: 0 0 auto;
}

.checkbox-row-inline span {
  line-height: 1.35;
}

@media (max-width: 840px) {
  .booking-form-row,
  .booking-form-row-two-up,
  .booking-form-row-three-up,
  .booking-form-row-full {
    flex-direction: column;
  }

  .booking-form-row > .booking-field {
    flex: 1 1 100%;
    width: 100%;
  }

  .email-composite-wrap {
    flex-direction: column;
    align-items: stretch;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .email-composite-wrap input:last-child {
    flex: 1 1 auto;
  }

  .email-at {
    display: none;
  }
}

/* Booking Details form layout override */
.public-form-grid {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 14px;
}

.booking-form-row {
  display: flex;
  width: 100%;
  gap: 14px;
  align-items: stretch;
}

.booking-form-row > .booking-field {
  flex: 1 1 0;
  min-width: 0;
}

.booking-form-row-full > .booking-field,
.booking-field-full {
  flex: 1 1 100%;
}

.field-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.field-stack textarea {
  resize: vertical;
  min-height: 120px;
}

.email-composite-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
}

.email-composite-wrap input {
  flex: 1 1 0;
  min-width: 0;
}

.field-stack-checkbox {
  align-self: stretch;
}

.checkbox-row-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 0 14px;
}

.checkbox-row-inline input {
  margin-top: 0;
  flex: 0 0 auto;
}

@media (max-width: 720px) {
  .booking-form-row {
    flex-direction: column;
  }

  .booking-form-row > .booking-field {
    flex: 1 1 100%;
  }

  .email-composite-wrap {
    flex-direction: column;
    align-items: stretch;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .email-at {
    display: none;
  }
}