/* ============================================================================
   Delightful Path — TASTE Edition · booking modal + forms
   Class names match booking.jsx exactly (ported from base, editorial restyle).
   ============================================================================ */

.modal-scrim {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20, 28, 20, .55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: scrimIn .25s ease;
}
@keyframes scrimIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--bg); width: 100%; max-width: 940px; max-height: calc(100vh - 48px);
  display: grid; grid-template-rows: auto 1fr auto; overflow: hidden;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 0 60px 110px -30px rgba(0,0,0,.5);
  animation: modalIn .35s cubic-bezier(.2,.7,.3,1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 28px; border-bottom: 1.5px solid var(--ink); background: var(--bg-card); }
.modal-head .title { font-family: var(--display); font-size: 22px; }
.modal-close { appearance: none; background: transparent; border: 1.5px solid var(--ink); cursor: pointer;
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--ink); font-size: 17px; transition: background .2s, color .2s; }
.modal-close:hover { background: var(--ink); color: var(--bg); }
.modal-body { padding: 34px 38px; overflow-y: auto; }
.modal-foot { padding: 18px 28px; border-top: 1.5px solid var(--ink); background: var(--bg-card);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; }

/* stepper */
.stepper { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.step-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--muted); }
.step-pill .n { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--muted); font-size: 11px; font-weight: 700; transition: all .25s; }
.step-pill.active .n { background: var(--ink); color: var(--bg); box-shadow: none; }
.step-pill.done .n { background: var(--sage); color: #fff; box-shadow: none; }
.step-pill.active { color: var(--ink); font-weight: 700; }
.step-sep { width: 22px; height: 1.5px; background: var(--line); }
.step-label { display: inline; letter-spacing: 0.04em; }

/* step content */
.step-title { font-family: var(--display); font-size: 28px; line-height: 1.05; margin: 0 0 8px; }
.step-sub { color: var(--ink-soft); margin: 0 0 26px; font-size: 14.5px; }

/* category cards */
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cat-card { appearance: none; text-align: left; background: var(--bg-card); border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 24px; cursor: pointer; transition: all .2s; display: grid; gap: 8px; font-family: inherit; color: inherit; }
.cat-card:hover { border-color: var(--sage); }
.cat-card.selected { border-color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.cat-card .glyph { font-family: var(--display); font-size: 30px; line-height: 1; color: var(--sage); margin-bottom: 6px; }
.cat-card h4 { margin: 0; font-family: var(--display); font-size: 22px; font-weight: 400; }
.cat-card p { margin: 0; font-size: 13px; color: var(--ink-soft); }

/* service rows */
.svc-list { display: grid; gap: 10px; }
.svc-row { appearance: none; text-align: left; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 20px;
  background: var(--bg-card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 17px 22px; font-family: inherit; color: inherit; cursor: pointer; transition: all .2s; }
.svc-row:hover { border-color: var(--sage); }
.svc-row.selected { border-color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.svc-row .name { font-family: var(--display); font-size: 19px; }
.svc-row .desc { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.svc-row .dur { font-size: 12.5px; color: var(--ink-soft); white-space: nowrap; }
.svc-row .price { font-family: var(--display); font-size: 20px; color: var(--ink); white-space: nowrap; }

/* calendar */
.calendar-wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.cal-head h4 { margin: 0; font-family: var(--display); font-size: 21px; font-weight: 400; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav button { appearance: none; border: 1.5px solid var(--line); background: transparent; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; color: var(--ink); transition: all .2s; }
.cal-nav button:hover:not(:disabled) { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cal-nav button:disabled { opacity: .3; cursor: not-allowed; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 8px 0; }
.cal-cell { position: relative; aspect-ratio: 1; border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  font-size: 14px; cursor: pointer; background: transparent; border: 1px solid transparent; color: var(--ink); font-family: inherit; transition: all .15s; }
.cal-cell:hover:not(:disabled) { background: var(--bg-soft); }
.cal-cell.muted, .cal-cell:disabled { color: var(--muted); opacity: .35; cursor: not-allowed; }
.cal-cell.today { box-shadow: inset 0 0 0 1.5px var(--clay-deep); }
.cal-cell.selected { background: var(--ink); color: var(--bg); }
.cal-cell.available { font-weight: 700; }
.cal-cell.available::after { content: ""; position: absolute; width: 4px; height: 4px; background: var(--sage); border-radius: 50%; bottom: 5px; }

.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
.slot { appearance: none; background: var(--bg-card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 11px 14px; font-family: inherit; font-size: 14px; cursor: pointer; transition: all .2s; color: var(--ink); }
.slot:hover { border-color: var(--sage); }
.slot.selected { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.slot:disabled { opacity: .35; cursor: not-allowed; }
.slot-empty { font-size: 13.5px; color: var(--muted); padding: 30px 16px; text-align: center; border: 1.5px dashed var(--line); border-radius: var(--radius); grid-column: span 2; }

/* form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: span 2; }
.field label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field textarea, .field select { appearance: none; font-family: inherit; font-size: 14px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--bg-card); color: var(--ink); transition: border-color .2s; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); }
.field .hint { font-size: 11.5px; color: var(--muted); }
.field input.err, .field textarea.err { border-color: #B5563A; }
.field .err-msg { font-size: 11.5px; color: #B5563A; }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-soft); cursor: pointer; }
.checkbox-row input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--sage); }

/* summary */
.summary { background: var(--bg-soft); border-radius: var(--radius); padding: 24px; }
.summary h4 { font-family: var(--display); font-weight: 400; font-size: 18px; margin: 0 0 16px; }
.summary dl { margin: 0; display: grid; gap: 12px; }
.summary dt { font-size: 10.5px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.summary dd { margin: 4px 0 0; font-size: 14px; color: var(--ink); }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1.5px solid var(--line); padding-top: 16px; margin-top: 16px; }
.summary .total .l { font-size: 13px; color: var(--ink-soft); }
.summary .total .v { font-family: var(--display); font-size: 28px; }
.confirm-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }

/* confirmation */
.confirm { text-align: center; padding: 24px 0; }
.confirm .icon { width: 64px; height: 64px; border-radius: 50%; background: var(--sage); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 30px; margin-bottom: 24px; animation: pop .5s cubic-bezier(.2,.9,.4,1.2); }
@keyframes pop { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.confirm h3 { font-family: var(--display); font-weight: 400; font-size: 32px; margin: 0 0 12px; }
.confirm p { color: var(--ink-soft); max-width: 480px; margin: 0 auto 28px; }
.review-card { background: var(--bg-card); border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 24px; text-align: left; max-width: 460px; margin: 0 auto; display: grid; gap: 14px; }
.review-card .row { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.review-card .row .l { color: var(--muted); }
.review-card .row .v { color: var(--ink); font-weight: 500; text-align: right; }

@media (max-width: 720px) {
  .step-label { display: none; }
  .stepper { gap: 4px; } .step-sep { width: 12px; }
  .calendar-wrap, .form-grid, .confirm-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: span 1; }
  .modal-body { padding: 24px; }
  .cat-grid { grid-template-columns: 1fr; }
}
