.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  background: rgba(255, 250, 248, 0.96);
}

.booking-card {
  scroll-margin-top: 104px;
}

.welcome-start {
  max-width: 320px;
  margin: 1.4rem auto 0;
}

.header-meta {
  display: grid;
  justify-items: center;
  gap: 0.22rem;
}

.header-meta strong {
  min-width: 72px;
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  background: #fff4df;
  color: #8b681b;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.wizard-progress {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0 0 0.6rem;
}

.wizard-progress span {
  display: grid;
  min-width: 0;
  padding: 0.6rem 0.35rem;
  border-radius: 14px;
  background: #f8f2f2;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-align: center;
}

.wizard-progress span b {
  overflow: hidden;
  text-overflow: ellipsis;
}

.wizard-progress span.active,
.wizard-progress span.complete {
  background: #f3d3da;
  color: #7e5620;
}

.completion {
  height: 6px;
  margin: 0 0 1.7rem;
  overflow: hidden;
  border-radius: 999px;
  background: #f2e8e9;
}

.completion i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c89b37, #b86d83);
  transition: width 220ms ease;
}

.wizard-step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.wizard-step[hidden] {
  display: none;
}

.wizard-step legend {
  margin-bottom: 1.25rem;
  font-family: Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
}

.wizard-step label,
.wizard-step .grid,
.date-field {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.wizard-step input,
.wizard-step select,
.wizard-step textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  color: var(--ink);
  background: #fff;
}

.wizard-step select option {
  color: #292125;
  background: #fff;
}

.wizard-step .disclaimer {
  margin-top: -0.2rem;
  color: #8a7b80;
  font-size: 0.72rem;
  font-weight: 500;
}

.date-field {
  overflow: hidden;
}

.date-field input {
  appearance: none;
  -webkit-appearance: none;
}

.wizard-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 1.1rem;
}

.professional-slots + .professional-slots {
  margin-top: 1.15rem;
}

.slots {
  display: block;
}

.professional-slots h3 {
  margin: 0 0 0.65rem;
  color: #7e5620;
  font-family: Georgia, serif;
  font-size: 1.05rem;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.time-slot {
  min-width: 0;
  padding: 0.65rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
  cursor: pointer;
}

.time-slot:hover,
.time-slot:focus-visible {
  border-color: var(--gold);
  background: #fff8e9;
}

.secondary {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.screen-help {
  color: var(--muted);
}

.calendar {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.calendar-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.calendar-head strong {
  font-family: Georgia, serif;
  font-size: 1.25rem;
  text-align: center;
  text-transform: capitalize;
}

.calendar-head button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff8f5;
  color: var(--ink);
  font-size: 1.5rem;
  cursor: pointer;
}

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

.calendar-weekdays {
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-align: center;
}

.calendar-day {
  display: grid;
  min-width: 0;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #f9f3f3;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.calendar-day.available {
  border-color: #d6b15d;
  background: #fff8e9;
  color: #7b5814;
}

.calendar-day.selected {
  border-color: #9f741c;
  background: #b88922;
  color: #fff;
}

.calendar-day:disabled {
  cursor: not-allowed;
  opacity: 0.34;
}

.calendar-day.blank {
  visibility: hidden;
}

.calendar-status {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.slot-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.slot-heading h2 {
  margin: 0;
  text-align: center;
}

.slot-heading .back-link {
  color: var(--muted);
}

.hold-panel {
  position: static;
  padding: clamp(1.1rem, 4vw, 1.6rem);
  background: linear-gradient(145deg, #fffaf0, #fff);
}

.hold-panel > .confirmation-heading {
  display: block;
  margin-bottom: 1.1rem;
  text-align: center;
}

.confirmation-heading h2 {
  margin: 0.65rem 0 0.25rem;
  font-family: Georgia, serif;
  font-size: clamp(1.75rem, 6vw, 2.35rem);
  line-height: 1;
}

.confirmation-heading p {
  margin: 0;
  color: var(--muted);
}

.pending-badge {
  display: inline-flex;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  background: #f7e1a9;
  color: #765311;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hold-panel > .confirmation-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  justify-content: initial;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
}

.confirmation-details > div {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.82);
  text-align: center;
}

.confirmation-details > div:nth-child(-n+2) {
  grid-column: 1 / -1;
}

.confirmation-details small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hold-panel > .confirmation-details strong {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
  color: #8b681b;
  font-size: clamp(0.9rem, 3.1vw, 1.02rem);
  line-height: 1.25;
}

.confirmation-contact {
  margin: 0 0 1.1rem;
  padding: 0.15rem 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
}

@media (max-width: 640px) {
  .topbar img { width: 132px; }
  .header-meta span { font-size: 0.64rem; }
  .header-meta strong { min-width: 66px; font-size: 0.88rem; }
  main { padding: 2rem 0; }
  .wizard-progress span b { font-size: 0.6rem; }
  .wizard-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .time-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slot-heading h2 { font-size: 1.3rem; }
  .slot-heading button { font-size: 0.7rem; }
  .hold-panel { padding: 1rem; }
  .hold-panel > .confirmation-heading { margin-bottom: 0.9rem; }
  .confirmation-heading h2 { font-size: clamp(1.45rem, 6.7vw, 1.8rem); line-height: 1.08; }
  .confirmation-heading p { font-size: 0.9rem; line-height: 1.35; }
  .pending-badge { font-size: 0.6rem; }
  .hold-panel > .confirmation-details { gap: 0.55rem; }
  .confirmation-details > div { min-height: 76px; padding: 0.75rem 0.65rem; place-content: center; }
  .confirmation-details > div:nth-child(-n+2) { min-height: auto; }
}

