/* Página "Agende seu horário" — caderno de agenda sobre o creme da placa.
   Usa estilo.css + galeria.css (topo com Voltar e a barra do botão). */
.pagina-agendar {
  --tinta: var(--titulo);
  --linha: color-mix(in srgb, var(--titulo) 16%, transparent);
  --suave: color-mix(in srgb, var(--titulo) 58%, transparent);
  color: var(--tinta);
}

/* ---------- título ---------- */
.caderno-topo { text-align: center; padding: 34px 24px 6px; animation: entrar .7s cubic-bezier(.2,.7,.2,1) both; }
.caderno-topo h1 {
  font-family: 'Cinzel', Georgia, serif; font-weight: 500;
  font-size: clamp(24px, 7.4vw, 30px); line-height: 1.15; letter-spacing: .05em; text-transform: uppercase;
  color: var(--dourado-escuro);
}
.caderno-traco { width: 54px; height: 1px; margin: 16px auto 0; background: var(--dourado); }
.caderno-intro { margin-top: 14px; font-size: 14px; line-height: 1.55; color: var(--suave); }

/* ---------- folha ---------- */
.caderno { padding: 18px 24px 0; }
.bloco { min-width: 0; border: 0; padding: 22px 0 24px; border-top: 1px solid var(--linha); }
.bloco:first-child { border-top: 0; }
.bloco legend, .rotulo {
  float: left; width: 100%;
  margin-bottom: 14px;
  font-family: 'Cinzel', Georgia, serif; font-weight: 600;
  font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--tinta);
}
.bloco legend + * { clear: both; }
.opcional { margin-left: 6px; font-family: var(--sans); font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--suave); }

.opcao { color: var(--tinta); background: none; border: 0; font: inherit; cursor: pointer; transition: color .2s ease, background-color .2s ease; }

/* serviço: linhas com o preço à direita */
.lista { display: grid; }
.opcao.linha {
  display: flex; align-items: baseline; gap: 10px;
  width: 100%; min-height: 46px; padding: 12px 0;
  text-align: left; font-size: 15px;
  border-bottom: 1px dashed var(--linha);
}
.opcao.linha:last-child { border-bottom: 0; }
.marca {
  flex: 0 0 auto; align-self: center;
  width: 15px; height: 15px; border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--titulo) 35%, transparent);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.l-nome { flex: 0 1 auto; font-weight: 500; }
.l-pontos { flex: 1 1 auto; min-width: 12px; border-bottom: 1px dotted color-mix(in srgb, var(--titulo) 30%, transparent); transform: translateY(-4px); }
.l-preco { flex: 0 0 auto; font-size: 14px; font-weight: 600; color: var(--dourado-escuro); white-space: nowrap; }
.opcao.linha:hover .marca { border-color: var(--dourado); }
.opcao.linha[aria-pressed="true"] .marca { border-color: var(--dourado-escuro); box-shadow: inset 0 0 0 3px var(--fundo), inset 0 0 0 8px var(--dourado-escuro); }
.opcao.linha[aria-pressed="true"] .l-nome { font-weight: 800; }

/* dia: calendário */
.cal-mes { margin: -6px 0 12px; font-family: var(--serifa); font-style: italic; font-size: 20px; font-weight: 600; text-transform: lowercase; color: var(--dourado-escuro); }
.cal-semana, .cal-dias { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.cal-semana { padding-bottom: 8px; border-bottom: 1px solid var(--linha); font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--suave); }
.cal-dias { row-gap: 4px; padding-top: 8px; }
.cal-dia, .cal-off {
  position: relative; display: grid; place-items: center;
  justify-self: center; width: 42px; height: 42px; border-radius: 50%;
  font-size: 15px; font-weight: 600; line-height: 1;
}
.cal-off { color: color-mix(in srgb, var(--titulo) 22%, transparent); font-weight: 400; }
.cal-dia small, .cal-off small { position: absolute; top: 1px; font-size: 8.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cal-dia.hoje::after { content: ''; position: absolute; bottom: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--dourado); }
.cal-dia:hover { background: color-mix(in srgb, var(--dourado) 16%, transparent); }
.cal-dia[aria-pressed="true"] { background: var(--titulo); color: var(--fundo); }
.cal-dia[aria-pressed="true"]::after { background: var(--fundo); }

/* período: palavras na mesma linha */
.bloco-linha .periodos { display: flex; gap: 28px; }
.opcao.periodo {
  min-height: 44px; padding: 0 2px;
  font-family: var(--serifa); font-size: 22px; font-weight: 600;
  color: var(--suave);
  border-bottom: 1.5px solid transparent;
}
.opcao.periodo:hover { color: var(--tinta); }
.opcao.periodo[aria-pressed="true"] { color: var(--tinta); border-bottom-color: var(--dourado); }

/* nome e observação: só a linha, como num caderno */
.campo {
  width: 100%; min-height: 44px; padding: 8px 0;
  border: 0; border-bottom: 1px solid color-mix(in srgb, var(--titulo) 35%, transparent);
  border-radius: 0; background: none;
  color: var(--tinta); font: inherit; font-size: 16px;
  resize: none;
  transition: border-color .2s ease;
}
.campo::placeholder { color: color-mix(in srgb, var(--titulo) 35%, transparent); }
.campo:focus { outline: none; border-bottom-color: var(--dourado-escuro); box-shadow: 0 1px 0 var(--dourado-escuro); }
.campo[aria-invalid="true"] { border-bottom-color: #B4483F; }
.rotulo-obs { margin-top: 26px; }

.erro { margin-top: 10px; font-size: 13px; font-weight: 700; color: #A33A31; }

.resumo {
  margin: 4px 0 0; padding: 16px 0 0; border-top: 1px solid var(--linha);
  text-align: center; font-family: var(--serifa); font-style: italic; font-size: 18px; line-height: 1.35;
  color: var(--dourado-escuro);
}

/* botão: retângulo chapado em bronze */
button.pilula.cta { border: 0; cursor: pointer; }
.barra-cta button.pilula.cta {
  border-radius: 6px; background: var(--titulo); color: var(--fundo); box-shadow: none;
  font-family: var(--sans); font-weight: 700; letter-spacing: .08em;
}
.barra-cta button.pilula.cta:hover { background: var(--dourado-escuro); filter: none; }
