/* =====================================================================
   Clínica de Beleza — Booking page (calendar)
   Uses tokens/base from styles.css
   ===================================================================== */

.back-btn { gap: 8px; }

.booking {
  padding: 54px 0 90px;
  background:
    radial-gradient(120% 80% at 100% 0%, #fbe0da 0%, transparent 55%),
    linear-gradient(160deg, var(--blush) 0%, #fdf4f1 60%, var(--blush-2) 100%);
  min-height: 70vh;
}
.booking-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.booking-head .eyebrow { margin-bottom: 12px; }
.booking-head h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); color: var(--ink-2); }
.booking-head h1 em { font-style: italic; color: var(--rose); }
.booking-head p { color: var(--text-soft); margin-top: 12px; }

.booking-card {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 0;
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden;
}
.booking-picker { padding: 38px 40px; }
.bk-step { margin-bottom: 30px; }
.bk-step:last-child { margin-bottom: 0; }
.bk-step-label {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: .95rem; color: var(--ink-2);
  margin-bottom: 16px;
}
.bk-step-label .num {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--pink), var(--rose)); color: #fff;
  display: grid; place-items: center; font-size: .8rem;
}

/* Service chips */
.service-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1.5px solid var(--pink-soft); background: var(--cream); cursor: pointer;
  color: var(--mauve); font-family: var(--sans); font-weight: 500; font-size: .84rem;
  padding: 9px 16px; border-radius: 999px; transition: all .2s ease;
}
.chip:hover { border-color: var(--pink); color: var(--rose-deep); }
.chip.active {
  background: linear-gradient(135deg, var(--pink), var(--rose)); color: #fff;
  border-color: transparent; box-shadow: 0 8px 18px rgba(201,127,121,.3);
}

/* Calendar */
.calendar { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--cream); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-title { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; color: var(--rose-deep); }
.cal-nav {
  width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line);
  background: #fff; color: var(--rose); cursor: pointer; display: grid; place-items: center;
  transition: all .2s ease;
}
.cal-nav:hover:not(:disabled) { border-color: var(--pink); color: var(--rose-deep); }
.cal-nav:disabled { opacity: .35; cursor: not-allowed; }
.cal-nav svg { width: 18px; height: 18px; }
.cal-dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 6px; }
.cal-dow span {
  text-align: center; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  font-weight: 600; color: var(--text-soft);
}
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-cell {
  aspect-ratio: 1; border: none; background: none; cursor: pointer;
  border-radius: 12px; font-family: var(--sans); font-size: .9rem; color: var(--ink-2);
  display: grid; place-items: center; position: relative; transition: all .18s ease;
}
.cal-cell.empty { pointer-events: none; }
.cal-cell.disabled { color: #d8c8c3; pointer-events: none; }
.cal-cell:hover:not(.disabled):not(.empty):not(.selected) { background: var(--blush); }
.cal-cell.today { box-shadow: inset 0 0 0 1.5px var(--pink-soft); }
.cal-cell.selected {
  background: linear-gradient(135deg, var(--pink), var(--rose)); color: #fff; font-weight: 600;
  box-shadow: 0 8px 18px rgba(201,127,121,.35);
}

/* Time slots */
.time-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.slots-empty { grid-column: 1 / -1; color: var(--text-soft); font-size: .9rem; }
.slot {
  border: 1.5px solid var(--line); background: var(--cream); cursor: pointer;
  padding: 11px 8px; border-radius: 12px; font-family: var(--sans); font-weight: 500;
  font-size: .84rem; color: var(--mauve); text-align: center; transition: all .18s ease;
}
.slot:hover:not(.taken) { border-color: var(--pink); color: var(--rose-deep); }
.slot.taken { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.slot.selected {
  background: linear-gradient(135deg, var(--pink), var(--rose)); color: #fff;
  border-color: transparent; box-shadow: 0 8px 18px rgba(201,127,121,.3);
}

/* Summary / details */
.booking-summary {
  background: linear-gradient(165deg, #fff, #fdf5f2);
  border-left: 1px solid var(--line); padding: 38px 34px;
}
.booking-summary h3 { font-size: 1.6rem; margin-bottom: 18px; }
.summary-list {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 6px 18px; margin-bottom: 22px;
}
.summary-row {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 13px 0; border-bottom: 1px dashed var(--line);
}
.summary-row:last-child { border-bottom: none; }
.summary-row span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mauve); font-weight: 600; }
.summary-row b { font-family: var(--sans); color: var(--ink-2); font-size: .92rem; text-align: right; }
.summary-row b.set { color: var(--rose-deep); }
.booking-summary .btn { width: 100%; justify-content: center; margin-top: 6px; }
.booking-summary .form-note { font-size: .74rem; }

/* Success state */
.booking-success { text-align: center; padding: 20px 6px; }
.booking-success .check {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--pink), var(--rose)); display: grid; place-items: center; color: #fff;
}
.booking-success .check svg { width: 34px; height: 34px; }
.booking-success h3 { font-size: 1.8rem; margin-bottom: 8px; }
.booking-success p { color: var(--text-soft); }
.booking-success .ref {
  display: inline-block; margin: 16px 0 4px; padding: 10px 18px; border-radius: 999px;
  background: var(--blush); color: var(--rose-deep); font-weight: 600; letter-spacing: .05em;
}
.booking-success .recap {
  margin: 18px auto 24px; max-width: 320px; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 18px;
}

.booking-footer { padding: 26px 0; }

/* ---- Responsive ---- */
/* Tablet & down: stack the picker over the summary, everything centered */
@media (max-width: 1024px) {
  .booking-card { grid-template-columns: 1fr; }
  .booking-picker, .booking-summary { max-width: 640px; width: 100%; margin: 0 auto; }
  .booking-summary { border-left: none; border-top: 1px solid var(--line); }
  .booking-summary h3 { text-align: center; }
  .bk-step-label { justify-content: center; }
  .service-chips, .time-slots { justify-content: center; }
}
@media (max-width: 560px) {
  .booking { padding: 34px 0 60px; }
  .booking-picker { padding: 28px 20px; }
  .booking-summary { padding: 28px 20px; }
  .time-slots { grid-template-columns: repeat(3, 1fr); }
  .cal-grid { gap: 4px; }
  .cal-cell { border-radius: 10px; font-size: .84rem; }
  .chip { font-size: .8rem; padding: 8px 13px; }
  .booking-summary .btn { padding: 15px 26px; }
}
@media (max-width: 380px) {
  .time-slots { grid-template-columns: repeat(2, 1fr); }
}
