.booking {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
  padding: clamp(1.2rem, 3vw, 2.2rem);
  margin-top: var(--space-l);
}

/* Progress */
.booking__steps {
  display: flex;
  gap: var(--space-xs);
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-l);
  counter-reset: step;
}
.booking__steps li {
  flex: 1;
  position: relative;
  padding-left: 2rem;
  font-size: var(--step--1);
  color: var(--muted);
  display: flex;
  align-items: center;
  min-height: 34px;
}
.booking__steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--cream-2);
  color: var(--muted);
  display: grid; place-content: center;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.booking__steps li.is-active { color: var(--ink); font-weight: 600; }
.booking__steps li.is-active::before { background: var(--teal); color: #fff; }
.booking__steps li.is-done::before { background: var(--sage); color: #fff; }
@media (max-width: 560px) {
  .booking__steps li { font-size: 0; padding-left: 0; justify-content: center; }
  .booking__steps li::before { position: static; }
}

.booking__live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.booking__panel { animation: fade 0.3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .booking__panel { animation: none; } }

.booking__loading, .cal__loading { color: var(--muted); padding: var(--space-s) 0; }
.booking__back {
  background: none; border: 0; cursor: pointer;
  color: var(--teal-dark); font-weight: 600; font-family: var(--font-body);
  padding: 0.2rem 0; margin-bottom: var(--space-s);
}
.booking__chosen {
  background: var(--cream-2); border-radius: 12px;
  padding: 0.7rem 1rem; font-weight: 500; margin-bottom: var(--space-m);
}

/* Step 1: servizi */
.svc-group { margin-bottom: var(--space-m); }
.svc-group__title { font-size: var(--step-1); margin-bottom: var(--space-xs); }
.svc-group__list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xs); }
@media (max-width: 620px) { .svc-group__list { grid-template-columns: 1fr; } }
.svc-pick {
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  cursor: pointer;
  display: flex; flex-direction: column; gap: 0.15rem;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.svc-pick:hover { border-color: var(--teal); box-shadow: var(--shadow-s); transform: translateY(-2px); }
.svc-pick__name { font-weight: 600; }
.svc-pick__meta { font-size: var(--step--1); color: var(--muted); }

/* Step 2: calendario + slot */
.booking__cal { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-l); }
@media (max-width: 720px) { .booking__cal { grid-template-columns: 1fr; } }

.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-s); }
.cal__title { font-family: var(--font-display); font-size: var(--step-1); text-transform: capitalize; }
.cal__nav {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white); cursor: pointer;
  font-size: 1.3rem; line-height: 1; color: var(--ink);
}
.cal__nav:hover { border-color: var(--teal); color: var(--teal-dark); }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__wd { text-align: center; font-size: 0.72rem; color: var(--muted); padding-bottom: 4px; text-transform: uppercase; letter-spacing: .04em; }
.cal__cell {
  aspect-ratio: 1;
  border: 1px solid transparent;
  background: var(--cream-2);
  border-radius: 10px;
  color: var(--muted);
  cursor: default;
  font-size: var(--step--1);
  font-family: var(--font-body);
}
.cal__cell--empty { background: transparent; }
.cal__cell.is-available {
  background: var(--white);
  border-color: var(--line-2);
  color: var(--ink);
  cursor: pointer;
  font-weight: 600;
}
.cal__cell.is-available:hover { border-color: var(--teal); background: #eef6f5; }
.cal__cell.is-today { box-shadow: inset 0 0 0 2px var(--lime); }
.cal__cell.is-selected { background: var(--teal); color: #fff; border-color: var(--teal); }
.cal__loading { grid-column: 1 / -1; }

.booking__slots-title { font-weight: 600; margin-bottom: var(--space-s); }
.slot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 0.5rem; }
.slot {
  padding: 0.6rem 0.4rem;
  border: 1px solid var(--line-2);
  background: var(--white);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--ink);
  transition: all 0.15s;
}
.slot:hover { border-color: var(--teal); background: #eef6f5; color: var(--teal-dark); }
.booking__empty { color: var(--muted); }

/* Step 3: form */
.booking__form { display: grid; gap: var(--space-s); max-width: 520px; }
.field { display: grid; gap: 0.3rem; }
.field label { font-weight: 500; font-size: var(--step--1); }
.field input, .field textarea {
  font: inherit;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(46,139,150,.15); }
.field--check label { display: flex; gap: 0.5rem; align-items: flex-start; font-weight: 400; }
.field--check input { width: 20px; height: 20px; margin-top: 2px; }
.field__err { color: #b3261e; font-size: var(--step--1); }
.field.has-error input, .field.has-error textarea { border-color: #b3261e; }
.booking__submit { justify-self: start; margin-top: var(--space-xs); }
.booking__form-err { color: #b3261e; font-weight: 500; }

/* Success */
.booking__success { text-align: center; padding-block: var(--space-l); }
.booking__success-mark {
  width: 88px; height: 88px; margin: 0 auto var(--space-s);
  background: #e9f4f1; border-radius: 50%;
  display: grid; place-content: center;
}
