/* =============================================================
   AGENDAMENTO E CALENDÁRIO
============================================================= */

/* -------------------------------------------------------------
   AGENDAMENTO
------------------------------------------------------------- */
.back {
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--brand);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-width: 64px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip:hover {
  border-color: var(--rose);
  background: var(--soft);
}

.chip[aria-pressed="true"] {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--brand-ink);
  box-shadow: 0 5px 14px rgba(120, 59, 74, 0.2);
}

/* Calendário mensal de agendamento */
.calendar {
  width: 100%;
  max-width: 460px;
  margin: 4px 0 34px;
  padding: 18px 16px 14px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.calendar-month {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.calendar-nav {
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--brand);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.calendar-nav:hover:not(:disabled) {
  border-color: var(--rose);
  background: var(--soft);
}

.calendar-nav:disabled {
  opacity: 0.32;
  cursor: not-allowed;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-weekdays {
  margin: 16px 0 6px;
}

.calendar-weekdays span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
}

.cal-empty,
.cal-day {
  aspect-ratio: 1;
}

.cal-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.cal-day:hover:not(:disabled):not(.selected) {
  background: var(--soft);
}

.cal-day:disabled {
  color: var(--muted);
  opacity: 0.36;
  cursor: not-allowed;
}

.cal-day.is-today:not(.selected) {
  box-shadow: inset 0 0 0 1px var(--rose);
}

.cal-day.selected {
  background: var(--brand);
  color: var(--brand-ink);
  box-shadow: 0 6px 16px rgba(120, 59, 74, 0.24);
}

.cal-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand);
}

.cal-day.selected .cal-dot {
  background: var(--brand-ink);
}

.calendar-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.calendar-legend-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}

.chosen {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-bottom: 20px;
}

.chosen-name {
  display: block;
  width: 100%;
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1.2;
}

.chosen-price {
  color: var(--brand);
  font-size: 1.02rem;
  font-weight: 600;
}

.chosen-sep {
  color: var(--rose);
  font-size: 1rem;
  line-height: 1;
}

.chosen-dur {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

#summary {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}
