.booking-dialog {
  width: min(1100px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.booking-dialog::backdrop { background: #211322a8; }
.booking-dialog[open] { animation: dialog-arrive .25s ease-out; }
.booking-window-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--pink);
}
.booking-window-bar h2 { font: 600 13px/1.4 var(--body); letter-spacing: 0; }
#booking-window-close {
  flex: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}
.booking-dialog .booking { padding: 36px clamp(16px, 4vw, 44px); }
.booking-dialog .booking-copy { display: block; top: 85px; }
.booking-dialog .booking-panel { margin-top: 0; scroll-margin-top: 85px; }
.booking-dialog .booking-panel input { scroll-margin-top: 95px; }
@media (max-width: 740px) {
  .booking-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 12px; }
  .booking-window-bar { padding: 10px 16px; }
  .booking-dialog .booking-copy { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  .booking-dialog[open] { animation: none; }
}

/* The date picker is a separate modal above the appointment draft. */
.calendar-dialog{width:min(560px,calc(100vw - 24px));padding:0}
.calendar-content{padding:24px clamp(14px,4vw,30px)}
.calendar-content .agenda{margin:0;border:0;background:transparent}
.calendar-dialog .form-note{font-size:11px;line-height:1.7;margin-bottom:18px}
.calendar-dialog .time-slots{max-height:240px}
.calendar-actions{display:flex;align-items:center;gap:18px;position:sticky;bottom:-24px;background:var(--paper);padding:18px 0 8px;border-top:1px solid var(--line);margin-top:18px}
#calendar-window-close{width:36px;height:36px;border:1px solid var(--line);border-radius:50%;padding:0;background:var(--paper);color:var(--ink);font-size:24px;line-height:1}
#calendar-selection{font-size:12px;line-height:1.8;margin-bottom:12px}
.appointment-slot #calendar-open{width:100%;justify-content:center}
.booking-panel label>small{display:block;font-size:10px;line-height:1.7;font-weight:400;margin-top:8px;color:var(--muted)}
.whatsapp-number{display:flex;align-items:start;gap:10px;min-width:0}
.booking-panel .form-row{grid-template-columns:repeat(2,minmax(0,1fr))}
.booking-panel .form-row>label{min-width:0}
.booking-panel .whatsapp-number select{flex:0 1 140px;width:140px;min-width:0;padding-right:12px;font-size:11px}
.booking-panel .whatsapp-number input{flex:1 1 110px;width:110px;min-width:0}
@media(max-width:480px){.whatsapp-number{flex-direction:column;gap:0}.booking-panel .whatsapp-number select,.booking-panel .whatsapp-number input{flex:none;width:100%;font-size:16px}}
@media(max-width:1000px){.booking-panel .form-row{grid-template-columns:minmax(0,1fr)}}
#booking-success{padding:24px 0}#booking-success h3{font-family:var(--display);font-size:36px}#booking-success p{font-size:13px;line-height:1.8;margin:16px 0}#booking-receipt{overflow-wrap:anywhere;font-weight:600}#booking-send{width:100%}
@media(max-width:480px){.calendar-actions{flex-wrap:wrap}.calendar-actions .dark-button{flex:1;justify-content:center;font-size:12px}.calendar-content .time-slots{grid-template-columns:repeat(2,minmax(0,1fr))}}
