:root {
  --border: #E6D3B8;
  --card-selected: #F3ECDD;
  --muted-2: #7a6a5a; /* texto secundário: mínimo de 4,5:1 no creme */
}

::placeholder { color: #8a7a68; }


/* ---------- Layout ---------- */
/* A página inteira ocupa a altura da janela: cabeçalho, passos e botões ficam
   sempre visíveis e só a lista de conteúdo rola. Assim o cliente vê o que
   precisa (passo atual, serviço escolhido, botão de avançar) sem rolar a tela. */
.booking-page {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.booking-page .nav { padding: 14px 24px; }
.booking-page .logo { font-size: 1.3125rem; }

.booking {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
}
.booking__head {
  text-align: center;
  margin-bottom: 14px;
}
.booking__title {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--ink);
}

/* Área rolável — o único trecho da página que rola. */
.booking__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.booking__body::-webkit-scrollbar { width: 8px; }
.booking__body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 100px;
}

/* ---------- Stepper ---------- */
.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.stepper__item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
}
.stepper__item--clickable { cursor: pointer; }
.stepper__item--clickable:hover .stepper__dot { filter: brightness(1.08); }
.stepper__dot {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  background: var(--border);
  color: var(--brown-soft);
}
.stepper__dot--on {
  background: var(--sage);
  color: #fff;
}
.stepper__label {
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--muted-2);
}
.stepper__label--on { color: var(--ink); }
.stepper__line {
  width: 24px;
  height: 2px;
  background: var(--border);
}

/* ---------- Barra de contexto (serviço escolhido) ---------- */
/* Fica fixa acima da agenda para o serviço escolhido continuar à vista. */
.ctx {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 14px;
}
.ctx__body {
  flex: 1;
  min-width: 0;
}
.ctx__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ctx__meta {
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 1px;
}
.ctx__price { color: var(--terracotta); }
/* Valor original riscado ao lado do promocional (barra, card, horários, dias). */
.price-was {
  font-weight: 600;
  color: var(--muted-2);
  text-decoration: line-through;
  white-space: nowrap;
}
/* Promocional e riscado quebram de linha juntos. */
.promo-price { white-space: nowrap; }
.svc-card__promo-note strong,
.day-head__promo { color: var(--terracotta); }
.ctx__change {
  flex: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--terracotta);
}
.ctx__change:hover { text-decoration: underline; }

/* ---------- Passo 1: serviços ---------- */
/* Faixa de destaque das promoções, no topo da lista. */
.promo-section {
  background: #FBEEE7;
  border: 2px solid #EAC9B9;
  border-radius: 16px;
  padding: 12px 14px 14px;
  margin-bottom: 16px;
}
.featured-section {
  background: #F1F2E8;
  border: 2px solid var(--olive-2);
  border-radius: 16px;
  padding: 12px 14px 14px;
  margin-bottom: 16px;
}
.promo-section__title,
.featured-section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--terracotta);
  margin-bottom: 10px;
}
.featured-section__title { color: var(--sage); }

.svc-group__title {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  cursor: pointer;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sage);
  margin: 16px 0 8px;
  padding: 6px 0;
  /* Fica colado no topo da área rolável para não perder a referência do grupo. */
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--cream);
}
.svc-group__title:first-child { margin-top: 0; }
.svc-group__chevron {
  display: inline-block;
  transition: transform .15s ease;
  font-size: 0.75rem;
}
.svc-group__title--collapsed .svc-group__chevron { transform: rotate(-90deg); }
.svc-group__count {
  font-weight: 700;
  color: var(--muted-2);
  letter-spacing: 0;
}
/* Duas colunas em telas largas: o dobro de serviços à vista. */
.svc-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-content: start;
}
@media (min-width: 760px) {
  .svc-list { grid-template-columns: repeat(2, 1fr); }
}
.svc-card {
  position: relative;
  cursor: pointer;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 12px 14px;
  transition: border-color .15s ease, background .15s ease;
}
.svc-card:hover { border-color: var(--border); }
.svc-card--on {
  background: var(--card-selected);
  border-color: var(--terracotta);
}
/* Nome à esquerda, preço e duração à direita — tudo na primeira linha. */
.svc-card__top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  /* É o <button> que seleciona o serviço: tira a cara de botão nativo. */
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
/* Estica a área clicável do botão sobre o card inteiro. */
.svc-card__top::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
}
.svc-card__top:focus-visible { outline: none; }
.svc-card:has(.svc-card__top:focus-visible) {
  outline: 3px solid var(--sage);
  outline-offset: 3px;
}
.svc-card__name {
  flex: 1;
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
  color: var(--ink);
}
.svc-card__pricing {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.3;
}
.svc-card__price,
.svc-card__time {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  white-space: nowrap;
}
.svc-card__price { color: var(--terracotta); }
.svc-card__time { color: var(--sage); font-size: 0.8125rem; }
/* Preço original riscado, quando há promoção. */
.svc-card__price-was {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--muted-2);
  text-decoration: line-through;
  white-space: nowrap;
}
.svc-card__promo-badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 100px;
  background: var(--terracotta);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.625rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
/* Promoção que ainda não começou: selo vazado, para não parecer desconto de hoje. */
.svc-card__promo-badge--soon {
  background: #fff;
  color: var(--terracotta);
  box-shadow: inset 0 0 0 1.5px var(--terracotta);
}
.svc-card__promo-note {
  margin-top: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--sage);
}
/* Caixa com as regras/condições da promoção. */
.promo-rules-box {
  margin-top: 6px;
  padding: 8px 10px;
  background: #FBEEE7;
  border: 1px solid #EAC9B9;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.promo-rules-box__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--terracotta);
}
.promo-rules-box__text {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--muted);
  white-space: pre-wrap;
}
.svc-card__meta {
  font-weight: 500;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
  margin-top: 4px;
}
.svc-card__meta--clamped {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.svc-card__more {
  /* Fica por cima da área clicável esticada do card (.svc-card__top::after). */
  position: relative;
  z-index: 1;
  margin-top: 2px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--terracotta);
}
.svc-card__more:hover { text-decoration: underline; }

/* ---------- Passo 2: dia + horário ---------- */
/* Dias e horários lado a lado no desktop: a agenda inteira cabe em uma tela. */
.sched {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}
@media (min-width: 760px) {
  .sched { grid-template-columns: 220px 1fr; gap: 24px; }
}
.sched__pane { min-width: 0; }

.finder {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}
.finder__btn {
  min-height: 44px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: #fff;
  background: var(--sage);
  padding: 10px 22px;
  border: none;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.finder__btn:hover { filter: brightness(1.06); }
.finder__btn:disabled { opacity: .6; cursor: not-allowed; filter: none; }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ink);
}
.day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.day-head__meta {
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--muted);
}
.day-nav { display: flex; gap: 6px; }
.day-nav__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
}
.day-nav__btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}
/* Mobile: faixa horizontal com rolagem lateral. */
.days {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.day {
  cursor: pointer;
  font: inherit;
  flex: none;
  width: 4.125rem;
  text-align: center;
  padding: 10px 0;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--border);
  position: relative;
}
/* Dia em que a promoção do serviço vale: fundo rosado e a etiqueta no canto. */
.day--promo {
  background: #FBEEE7;
  border-color: #EAC9B9;
}
.day__promo {
  position: absolute;
  top: 2px;
  right: 4px;
  font-size: 0.6875rem;
  line-height: 1;
}
/* Preço do dia com promoção: promocional e o original riscado, empilhados. */
.day__price {
  display: block;
  margin-top: 3px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.6875rem;
  line-height: 1.2;
  color: var(--terracotta);
}
.day__price .price-was {
  display: block;
  font-size: 0.625rem;
}
.day--on .day__price,
.day--on .day__price .price-was { color: #fff; }
.day--on .day__price .price-was { opacity: .75; }
.day--on {
  background: var(--sage);
  color: #fff;
  border-color: var(--sage);
}
/* Empilhados no card do celular (são <span>, precisam virar bloco). */
.day__weekday,
.day__num,
.day__month {
  display: block;
  line-height: 1.2;
}
.day__weekday {
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.day__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1875rem;
  margin-top: 1px;
}
.day__month {
  font-weight: 600;
  font-size: 0.6875rem;
}
/* Desktop: coluna vertical, uma linha por dia. */
@media (min-width: 760px) {
  .days {
    flex-direction: column;
    overflow: visible;
    padding-bottom: 0;
    gap: 6px;
  }
  .day {
    width: 100%;
    display: flex;
    align-items: baseline;
    gap: 6px;
    text-align: left;
    padding: 8px 14px;
  }
  .day__num { font-size: 1.0625rem; margin-top: 0; }
  .day__weekday { min-width: 30px; }
  .day__price {
    display: inline;
    margin: 0 0 0 auto;
    padding-right: 22px;
    font-size: 0.8125rem;
  }
  .day__price .price-was {
    display: inline;
    font-size: 0.6875rem;
  }
  .day__promo {
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    font-size: 0.8125rem;
  }
}

/* Legenda da etiqueta de promoção / atalho para os dias com promoção. */
.days-legend {
  display: block;
  margin-top: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--terracotta);
}
.days-legend--link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.days-legend--link:hover { text-decoration: underline; }

.times {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: 8px;
}
.time {
  width: 100%;
  text-align: center;
  padding: 11px 0;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--border);
}
.time--on {
  background: var(--terracotta);
  color: #fff;
  border-color: var(--terracotta);
}
.time--booked {
  background: var(--card-selected);
  color: #c2b39c;
  cursor: not-allowed;
  text-decoration: line-through;
}
.times-empty {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--muted);
  background: var(--card-selected);
  border: 2px dashed var(--border);
  border-radius: 14px;
  padding: 22px 18px;
  text-align: center;
}

/* ---------- Fila de espera ---------- */
.wl-invite {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 2px dashed var(--border);
  background: var(--card-selected);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.wl-invite__text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--brown-soft);
}
.wl-invite__text strong { color: var(--ink); }
.wl-invite__btn {
  min-height: 44px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--terracotta);
  background: #fff;
  padding: 10px 20px;
  border: 2px solid var(--terracotta);
  border-radius: 100px;
}
.wl-invite__btn:hover { background: var(--terracotta); color: #fff; }
@media (min-width: 760px) {
  .wl-invite { flex-direction: row; align-items: center; justify-content: space-between; }
  .wl-invite__btn { flex: none; }
}
.wl__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.wl__back {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--terracotta);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.wl__intro {
  margin: 6px 0 16px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}
.wl__note {
  margin: 16px 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
}
.day:disabled { opacity: .45; cursor: not-allowed; }
.wl-ranges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wl-range {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 2px solid var(--border);
  background: #fff;
}
.wl-range--invalid { border-color: #a24a34; }
.wl-range--empty {
  min-height: 72px;
  border-style: dashed;
  background: transparent;
}
.wl-range--empty .wl-range__date { color: var(--muted); }
.wl-range__hint {
  font-size: 0.875rem;
  color: var(--muted);
}
.wl-count {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--muted);
}
.wl-count--over { color: #a24a34; }
.wl-range__date {
  flex: 1 1 100%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ink);
}
.wl-range__times {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--muted);
}
.wl-range__select {
  min-height: 44px;
  padding: 0 8px;
  border-radius: 10px;
  border: 2px solid var(--border);
  background: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ink);
}
.wl-range__select[aria-invalid="true"] { border-color: #a24a34; }
.wl-range__remove {
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.375rem;
  line-height: 1;
  color: var(--muted);
}
.wl-range__remove:hover { color: var(--terracotta); }
@media (min-width: 1000px) {
  .wl-range__date { flex: 1 1 auto; }
}
.wl-summary {
  margin: 6px 0 0;
  padding-left: 18px;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}
.confirm__val .wl-summary { margin: 0; padding-left: 16px; color: var(--ink); font-weight: 600; }

/* ---------- Passo 3: formulário ---------- */
/* Campos e resumo lado a lado no desktop: dá para conferir tudo sem rolar. */
.form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 480px;
  margin: 0 auto;
}
@media (min-width: 760px) {
  .form {
    max-width: 100%;
    grid-template-columns: 1fr 320px;
    column-gap: 28px;
    align-items: start;
  }
}
.form__fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.field__label {
  display: block;
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--ink);
  margin-bottom: 5px;
}
.field__input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid var(--border);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  background: #fff;
  color: var(--ink);
}
.field__input[aria-invalid="true"] { border-color: #a24a34; }
.field__textarea { resize: vertical; line-height: 1.4; }
.form__privacy { margin: 0; font-size: 0.8125rem; line-height: 1.5; color: var(--muted); }
.form__privacy a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 2px; }
.field__error {
  margin: 5px 0 0;
  font-weight: 600;
  font-size: 0.8125rem;
  color: #a24a34;
}
/* WhatsApp: país (DDI) + número. O <select> nativo fica invisível por cima
   do chip "🇧🇷 +55": no celular abre a lista do próprio sistema. */
.tel {
  display: flex;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: #fff;
  overflow: hidden;
}
.tel:has(.tel__number[aria-invalid="true"]) { border-color: #a24a34; }
.tel:focus-within {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(91, 107, 78, .3);
}
.tel__number { flex: 1; min-width: 0; }
.tel .tel__number,
.tel .tel__number:focus {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.tel__country {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-right: 1px solid var(--border);
  background: var(--card-selected);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.tel__country::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-right: 2px solid var(--muted-2);
  border-bottom: 2px solid var(--muted-2);
  transform: translateY(-2px) rotate(45deg);
}
.tel__select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 1rem;
}
.field__hint {
  margin: 5px 0 0;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--muted-2);
}
.field__input:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(91, 107, 78, .3);
}
/* O foco vai para o contêiner na troca de passo (para o leitor de tela);
   o contorno nele só atrapalharia. */
.booking__body:focus,
.appt__confirm:focus,
.appt__done:focus { outline: none; }
.summary {
  background: #fff;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 6px 20px rgba(56, 44, 34, .06);
}
.summary__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--terracotta);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.summary__service {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ink);
}
.summary__when {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 3px;
}
.summary__price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--sage);
  margin-top: 8px;
}
.summary__price-was {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--muted-2);
  text-decoration: line-through;
}
.summary__promo-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 100px;
  background: var(--terracotta);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  vertical-align: middle;
}
.summary__starting-at,
.summary__promo-off {
  margin-top: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--muted);
}

/* ---------- Passo 4: confirmação ---------- */
.confirm {
  text-align: center;
  padding: 16px 20px;
}
.confirm__check {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.confirm__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.625rem;
  color: var(--ink);
  margin-bottom: 8px;
}
.confirm__text {
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--brown-soft);
  max-width: 440px;
  margin: 0 auto 18px;
}
.confirm__card {
  background: #fff;
  border-radius: 16px;
  padding: 18px 22px;
  max-width: 380px;
  margin: 0 auto 20px;
  text-align: left;
  box-shadow: 0 6px 20px rgba(56, 44, 34, .06);
}
.confirm__key {
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--muted);
}
.confirm__val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 8px;
}
.confirm__val--price { color: var(--sage); margin-bottom: 0; }
.confirm__note {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
}
.confirm__price-was {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--muted-2);
  text-decoration: line-through;
}

/* ---------- Botões de navegação ---------- */
/* Rodapé fixo do app-shell: o "Continuar" nunca sai da tela. */
.booking__foot {
  flex: none;
  padding: 12px 0 14px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  background: var(--cream);
  box-shadow: 0 -10px 16px -12px rgba(56, 44, 34, .35);
}
.booking__foot:empty { display: none; }
.nav-buttons {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.nav-buttons__spacer { visibility: hidden; }
/* O que falta para liberar o "Continuar". */
.nav-hint {
  margin: 0 0 10px;
  text-align: right;
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--muted);
}
.btn-back {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ink);
  background: transparent;
  border: 2px solid var(--ink);
  padding: 12px 26px;
  border-radius: 100px;
}
.btn-next {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  color: #fff;
  background: var(--terracotta);
  border: none;
  padding: 12px 26px;
  border-radius: 100px;
  cursor: pointer;
}
.btn-next:disabled {
  background: #d9c8ae;
  opacity: .7;
  cursor: not-allowed;
}

/* ---------- Estados: carregando / vazio / erro ---------- */
.state-msg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 28px 24px;
  border-radius: 16px;
  background: #fff;
  border: 2px solid var(--border);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--muted);
}
.state-msg--empty {
  background: var(--card-selected);
  border-style: dashed;
}
.state-msg--error {
  background: #fdf1ee;
  border-color: var(--terracotta);
  color: #a24a34;
  padding: 14px 18px;
  margin-bottom: 14px;
}
.state-retry {
  min-height: 44px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: #fff;
  background: var(--terracotta);
  border: none;
  padding: 10px 22px;
  border-radius: 100px;
}
.state-retry:hover { filter: brightness(1.06); }

.spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--sage);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Responsivo ---------- */
@media (max-width: 620px) {
  .booking { padding: 0 16px; }
  .booking-page .nav { padding: 12px 16px; }
  .booking__title { font-size: 1.25rem; }
  .stepper__label { display: none; }
  .stepper__line { width: 18px; }
}

/* Telas baixas (notebooks, celular deitado): corta o cabeçalho decorativo. */
@media (max-height: 720px) {
  .booking__head { display: none; }
  .stepper { margin-bottom: 12px; }
}

/* ---------- Página do agendamento (a/index.html) ---------- */
.appt {
  max-width: 440px;
  margin: 0 auto;
  padding: 4px 0 24px;
}
.appt__title { text-align: center; margin-bottom: 6px; }
.appt__intro {
  margin: 0 0 18px;
  text-align: center;
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--brown-soft);
}
.appt__done {
  background: #eef2ea;
  border-color: var(--sage);
  color: var(--sage);
  margin-bottom: 16px;
  padding: 14px 18px;
}
.appt__card {
  background: #fff;
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: 0 6px 20px rgba(56, 44, 34, .06);
}
.appt__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.appt__service {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--ink);
}
.appt__badge {
  flex: none;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 100px;
}
.appt__badge--ok { background: #eef2ea; color: var(--sage); }
.appt__badge--off { background: #fdf1ee; color: #a24a34; }
.appt__badge--done { background: var(--card-selected); color: var(--muted); }
.appt__row { margin-bottom: 10px; }
.appt__row:last-child { margin-bottom: 0; }
.appt__key {
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--muted);
}
.appt__val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}
.appt__note {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--muted);
}
.appt__link {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--terracotta);
  text-decoration: underline;
}
.appt__link--button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.appt__link--muted {
  font-weight: 600;
  color: var(--muted);
  padding: 0;
}
.appt__link--muted:disabled { cursor: default; opacity: .7; }
.appt__small {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}
.appt__confirm .appt__link--muted { padding: 6px; }
.appt__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  text-align: center;
}
.appt__hint {
  margin: 0;
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--brown-soft);
}
.appt__actions .state-msg--error { margin-bottom: 0; }
.appt__cta { padding: 13px 30px; font-size: 1rem; }
button.appt__cta { border: none; }
.appt__footer {
  margin: 18px 0 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}

/* ---------- Página da fila de espera (f/index.html) ---------- */
/* Mais larga que a do agendamento: os dias e as faixas ficam lado a lado no desktop. */
.appt.fila { max-width: 760px; }
.fila .appt__intro { max-width: 520px; margin-left: auto; margin-right: auto; }
.fila .appt__done { margin-bottom: 0; }
.fila__issue { font-size: 0.875rem; color: var(--muted); }

/* ---------- Alvos de toque ---------- */
/* Botões/links que são só texto pequeno ganham uma área de toque invisível
   maior (~44px de altura), sem mudar o layout. */
.ctx__change,
.svc-card__more,
.appt__link--button,
.days-legend--link,
.wl__back,
.nav__back,
.stepper__item--clickable {
  position: relative;
}
.ctx__change::before,
.svc-card__more::before,
.appt__link--button::before,
.days-legend--link::before,
.wl__back::before,
.nav__back::before,
.stepper__item--clickable::before {
  content: "";
  position: absolute;
  inset: -12px -8px;
}

/* ---------- Meus agendamentos (meus-agendamentos/index.html) ---------- */
.mine__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mine__form .state-msg--error { margin: 0; }
.mine__submit { align-self: stretch; }
.mine__expired { margin-bottom: 16px; }
.mine__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
/* Quando e valor lado a lado: com vários horários, a lista fica curta. */
.mine__rows {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 16px;
}
.mine__rows .appt__row:last-child:not(:first-child) { text-align: right; }
.mine__rows .appt__row { margin-bottom: 0; }
.mine__card .appt__actions { margin-top: 14px; }
.mine__card-foot {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
}
.mine__card-foot .appt__link--muted { font-size: 0.8125rem; }
.mine__expires { margin-top: 14px; text-align: center; }
.booking__mine {
  margin: 6px 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}
.booking__mine a { color: var(--terracotta); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.mine__profile { margin-top: 28px; }
.mine__history { margin-top: 28px; }
.mine__card--past { box-shadow: none; }
.mine__card--past:focus { outline: none; }
.mine__card--past:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 2px; }
.mine__more { display: block; margin: 12px auto 0; min-height: 44px; }
.mine__subtitle {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--ink);
  text-align: center;
}
.mine__date { min-height: 48px; }
.mine__save-slot:empty { display: none; }
.mine__save-slot .mine__save { width: 100%; }
.mine__saved {
  margin: 0;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--sage);
  text-align: center;
}
.mine__saved:focus { outline: none; }
.mine__phone-note { margin-top: 8px; text-align: center; }
