/* Booking sheet: bottom sheet on phones, centered dialog on larger screens. */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(26, 24, 20, .55); backdrop-filter: blur(5px); animation: fadein .2s ease both;
}
.sheet {
  background: var(--bg); width: 100%; max-width: 520px; max-height: 92vh; border-radius: 24px;
  display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .25); outline: none;
  animation: rise .3s cubic-bezier(.2, .9, .3, 1) both;
}
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }
.sheet-head { padding: 20px 24px 16px; border-bottom: 1px solid var(--line); }
.sheet-head-row { display: flex; justify-content: space-between; align-items: center; }
.sheet-step { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sage); }
.sheet-title { font-family: var(--serif); font-weight: 400; font-size: 1.55rem; letter-spacing: -.3px; margin-top: 4px; }
.progress { height: 4px; background: var(--line); border-radius: 4px; margin-top: 14px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--sage); border-radius: 4px; transition: width .3s; }
.sheet-body { flex: 1; overflow-y: auto; padding: 8px 24px 20px; }
.sheet-foot { display: flex; gap: 10px; padding: 14px 24px 20px; border-top: 1px solid var(--line); }
.sheet-next { flex: 1; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); font-size: 1.1rem; }
.icon-btn:hover:not(:disabled) { background: var(--bg-tint); color: var(--ink); }
.icon-btn:disabled { opacity: .3; cursor: default; }

.field-label { display: block; font-size: .85rem; font-weight: 600; margin: 18px 0 8px; }
.hint, .hint-inline { font-size: .8rem; color: var(--muted); font-weight: 400; }
.hint { margin-top: 8px; }
.input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  font: inherit; font-size: 16px; color: var(--ink); /* 16px stops iOS zooming in */
}
.input:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(29, 158, 117, .15); }
textarea.input { resize: vertical; }

/* Session + method choices */
.choices { display: grid; gap: 10px; }
.choice {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left;
  padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink);
  transition: border-color .15s, background .15s;
}
.choice:hover { border-color: rgba(29, 158, 117, .5); }
.choice.on, .method.on { border-color: var(--sage); background: var(--sage-light); }
.choice b { font-weight: 600; }
.choice small { display: block; color: var(--muted); font-size: .82rem; }
.choice-price { font-family: var(--serif); font-size: 1.3rem; white-space: nowrap; }
.tag { font-style: normal; font-size: .7rem; font-weight: 600; background: var(--sage); color: #fff; padding: 2px 8px; border-radius: 999px; vertical-align: 2px; }
.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.method {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px;
  border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); font-size: .88rem; font-weight: 500;
}
.method-icon { font-size: 1.4rem; }

/* Calendar + time slots */
.cal { margin-top: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.cal-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-head { text-align: center; font-size: .72rem; color: var(--muted); padding: 4px 0; }
.cal-day { height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font-size: .9rem; }
.cal-day:hover:not(:disabled) { background: var(--sage-light); }
.cal-day.today { box-shadow: inset 0 0 0 1.5px var(--sage); }
.cal-day.on { background: var(--sage); color: #fff; }
.cal-day:disabled { color: #c3bdb2; cursor: default; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot { padding: 10px 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font-size: .85rem; }
.slot:hover:not(:disabled) { border-color: var(--sage); }
.slot.on { background: var(--sage); border-color: var(--sage); color: #fff; }
.slot:disabled { opacity: .35; cursor: default; }

.note-box { margin-top: 14px; background: var(--sage-light); color: var(--sage-deep); border-radius: 12px; padding: 12px 14px; font-size: .88rem; line-height: 1.7; }
.summary { margin-top: 16px; text-align: left; width: 100%; }
.summary small { display: block; opacity: .8; }

/* Result */
.result { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 32px 0 12px; }
.result p { color: var(--muted); max-width: 380px; }
.result-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; background: var(--sage-light); color: var(--sage-dark); }
.result-icon.warn { background: #fff4e0; color: #9a5b00; }
.pay-note { background: #fff8e8; color: #7c5700 !important; border-radius: 12px; padding: 12px 14px; font-size: .85rem; }

@media (max-width: 600px) {
  .sheet-backdrop { align-items: flex-end; padding: 0; }
  .sheet { max-width: none; border-radius: 24px 24px 0 0; max-height: 94vh; }
  .sheet-head, .sheet-body, .sheet-foot { padding-left: 18px; padding-right: 18px; }
  .sheet-foot { padding-bottom: max(18px, env(safe-area-inset-bottom)); }
  .slots { grid-template-columns: repeat(3, 1fr); }
}
