.booking-schedule {
  display: grid;
  gap: 16px;
  margin-top: 2px;
  padding: 22px 0 4px;
  border-top: 1px solid var(--line);
}

.selected-service-summary {
  margin: -8px 2px 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.booking-form.prototype-schedule-active::after {
  content: "";
  display: block;
  height: calc(50vh + 120px);
  pointer-events: none;
}

.booking-schedule h2,
.booking-schedule h3,
.booking-schedule p {
  margin: 0;
}

.booking-schedule h2 {
  font-size: 1.3rem;
  line-height: 1.2;
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
}

.calendar-toolbar h3 {
  color: var(--navy);
  font-size: 1.1rem;
  text-align: center;
}

.calendar-nav {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  background: #fff;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 900;
  cursor: pointer;
}

.calendar-nav:hover,
.calendar-nav:focus-visible {
  border-color: var(--coastal);
  background: #edf3f5;
}

.calendar-nav:disabled {
  color: #8b9aa3;
  cursor: not-allowed;
  opacity: 0.55;
}

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

.calendar-weekdays span {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.calendar-blank,
.calendar-day {
  aspect-ratio: 1;
  min-width: 0;
}

.calendar-day {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  background: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.calendar-day:hover,
.calendar-day:focus-visible {
  border-color: var(--coastal);
  background: #edf3f5;
}

.calendar-day.is-today {
  box-shadow: inset 0 0 0 2px var(--coastal);
}

.calendar-day.is-selected {
  border-color: var(--gold);
  color: var(--navy);
  background: var(--gold);
  box-shadow: none;
}

.calendar-day:disabled {
  border-color: transparent;
  color: #91a0a8;
  background: #edf1f2;
  cursor: not-allowed;
  opacity: 0.7;
}

.time-slot-panel {
  display: grid;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.time-slot-panel[hidden] {
  display: none;
}

.schedule-location-field {
  display: grid;
  gap: 8px;
  margin: 0;
}

.schedule-location-field span {
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 900;
}

.location-suggestions {
  display: grid;
  overflow: hidden;
  margin-top: -8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(3, 36, 70, 0.14);
}

.location-suggestions[hidden] {
  display: none;
}

.location-suggestion {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.location-suggestion:hover,
.location-suggestion:focus-visible {
  color: var(--navy);
  background: #edf8f7;
  outline: 2px solid var(--teal);
  outline-offset: -2px;
}

.location-google-attribution {
  display: flex;
  justify-content: flex-end;
  min-height: 28px;
  padding: 7px 10px;
  background: #fff;
}

.location-google-attribution img {
  width: 120px;
  height: 14px;
  object-fit: contain;
}

.location-lookup-status {
  min-height: 20px;
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.35;
}

.location-lookup-status:empty {
  display: none;
}

.location-lookup-status.is-error {
  color: #a32121;
}

.location-lookup-status.is-success {
  color: #137364;
}

.location-policy-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #f7fafb;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.45;
  cursor: pointer;
}

.booking-form .location-policy-check input {
  width: 20px;
  min-height: 20px;
  margin: 2px 0 0;
  accent-color: var(--teal);
}

.location-policy-check span {
  overflow-wrap: anywhere;
}

.schedule-continue {
  justify-self: start;
  min-width: 140px;
}

.prototype-return-dialog {
  width: min(430px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  color: var(--navy);
  background: #fff;
  box-shadow: 0 20px 55px rgba(3, 36, 70, 0.28);
}

.prototype-return-dialog::backdrop {
  background: rgba(3, 36, 70, 0.58);
}

.prototype-return-dialog-content {
  display: grid;
  gap: 22px;
  padding: 26px;
}

.prototype-return-dialog h2 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.35;
  text-align: center;
}

.prototype-return-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.prototype-return-actions .button {
  width: 100%;
}

.time-slot-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 18px;
}

.time-slot-heading h3 {
  font-size: 1.05rem;
}

.time-slot-heading p {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.time-slot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.time-slot-message {
  grid-column: 1 / -1;
  min-height: 44px;
  margin: 0;
  padding: 12px;
  color: var(--muted);
  background: #f7fafb;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.time-slot-message.is-error {
  color: #a32121;
}

.time-slot-retry {
  grid-column: 1 / -1;
  justify-self: center;
  min-height: 44px;
  border: 1px solid var(--navy);
  border-radius: 8px;
  padding: 8px 18px;
  color: #fff;
  background: var(--navy);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 900;
  cursor: pointer;
}

.time-slot-retry:hover,
.time-slot-retry:focus-visible {
  background: var(--coastal);
}

.time-slot-button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  color: var(--navy);
  background: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 900;
  cursor: pointer;
}

.time-slot-button:hover,
.time-slot-button:focus-visible {
  border-color: var(--coastal);
  background: #edf3f5;
}

.time-slot-button.is-selected {
  border-color: var(--gold);
  background: var(--gold);
}

.time-slot-button:disabled {
  border-color: transparent;
  color: #91a0a8;
  background: #edf1f2;
  cursor: not-allowed;
  opacity: 0.7;
}

.schedule-selection-summary {
  min-height: 1.5em;
  color: var(--navy);
  font-size: 0.94rem;
  font-weight: 900;
  text-align: center;
}

.customer-information-section {
  display: grid;
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.customer-information-section h2 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.2;
}

.customer-information-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.customer-actions {
  display: grid;
}

@media (max-width: 560px) {
  .booking-schedule {
    padding-top: 20px;
  }

  .calendar-weekdays,
  .calendar-grid {
    gap: 5px;
  }

  .calendar-weekdays span {
    font-size: 0.7rem;
  }

  .calendar-day {
    font-size: 0.88rem;
  }

  .time-slot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedule-continue {
    width: 100%;
  }

  .prototype-return-dialog-content {
    padding: 22px 18px;
  }

  .customer-information-grid {
    grid-template-columns: 1fr;
  }
}
