/* Bella Vie — booking.css (agendar.html e painel.html) */

.back-link { font-size: .95rem; color: var(--ink-soft); }
.book { padding: calc(var(--header-h) + 48px) 0 96px; }
.book-head { max-width: 40rem; margin-bottom: 48px; }
.book-head h1, .done h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin-bottom: 14px; }

.book-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.steps-form { display: grid; gap: 0; min-width: 0; }
.step { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 28px 0 36px; min-width: 0; transition: opacity .3s; }
.step.is-locked { opacity: .38; }
.step legend { display: flex; align-items: center; gap: 14px; padding: 0; margin-bottom: 20px; font: 400 1.75rem/1.1 var(--font-display); float: left; width: 100%; }
.step legend + * { clear: both; }
.step .n {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  font: 500 .9rem/1 var(--font-body); background: var(--sand); color: var(--gold-deep);
}

/* opções (procedimento / profissional) */
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.options.pros { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opt { display: block; cursor: pointer; }
.opt, .date-opt, .time-opt { position: relative; }
.opt input, .date-opt input, .time-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt-box {
  display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; min-height: 68px; justify-content: center;
  border: 1px solid var(--line); border-radius: 4px; background: #fff; transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.opt-title { font-weight: 500; line-height: 1.3; }
.opt-sub { font-size: .88rem; color: var(--ink-soft); }
.opt:hover .opt-box { border-color: var(--gold); }
.opt input:checked + .opt-box { border-color: var(--ink); background: var(--ink); color: var(--cream); }
.opt input:checked + .opt-box .opt-sub { color: var(--gold-light); }
.opt input:focus-visible + .opt-box, .date-opt input:focus-visible + .date-box, .time-opt input:focus-visible + span { outline: 2px solid var(--gold-deep); outline-offset: 2px; }

/* dias */
.dates { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.date-opt { flex: 0 0 auto; scroll-snap-align: start; cursor: pointer; }
.date-box {
  display: grid; justify-items: center; gap: 1px; width: 68px; padding: 12px 0 10px;
  border: 1px solid var(--line); border-radius: 4px; background: #fff; transition: border-color .2s, background-color .2s;
}
.dw { font-size: .82rem; color: var(--ink-soft); text-transform: capitalize; }
.dn { font: 400 1.7rem/1.1 var(--font-display); }
.dm { font-size: .78rem; color: var(--ink-soft); }
.date-opt:hover .date-box { border-color: var(--gold); }
.date-opt input:checked + .date-box { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.date-opt input:checked + .date-box .dw, .date-opt input:checked + .date-box .dm { color: var(--gold-light); }
.date-opt.is-full { cursor: not-allowed; }
.date-opt.is-full .date-box { background: transparent; border-style: dashed; opacity: .55; }
.more { margin-top: 8px; background: none; border: 0; padding: 6px 0; font-weight: 500; color: var(--gold-deep); text-decoration: underline; text-underline-offset: 4px; }

/* horários */
.time-group + .time-group { margin-top: 22px; }
.time-group h3 { font: 500 .9rem/1 var(--font-body); color: var(--ink-soft); margin-bottom: 10px; letter-spacing: 0; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.time-opt { cursor: pointer; }
.time-opt span {
  display: grid; place-items: center; min-height: 46px; border: 1px solid var(--line); border-radius: 4px; background: #fff; font-weight: 500;
  font-variant-numeric: tabular-nums; transition: border-color .2s, background-color .2s;
}
.time-opt:hover span { border-color: var(--gold); }
.time-opt input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--cream); }

/* dados */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; font-size: .92rem; font-weight: 500; }
.field em { font-style: normal; font-weight: 400; color: var(--ink-soft); }
.field.wide { grid-column: 1 / -1; }
.field input, .field textarea, .login-card input {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 4px; background: #fff; font-weight: 400; min-height: 48px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 72px; }
.field input:focus, .field textarea:focus, .login-card input:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(176, 141, 87, .22); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.privacy { margin: 16px 0 0; font-size: .86rem; color: var(--ink-soft); }
.error { margin-top: 14px; padding: 12px 14px; border-radius: 4px; background: #f8e9e6; color: var(--danger); font-size: .95rem; }
.submit { margin-top: 22px; width: 100%; min-height: 54px; }
.loading { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }

/* resumo */
.summary { position: sticky; top: calc(var(--header-h) + 24px); padding: 28px; background: var(--sand); border-radius: 4px; }
.summary h2 { font-size: 1.8rem; margin-bottom: 18px; }
.summary dl { margin: 0; }
.summary dl > div { padding: 12px 0; border-top: 1px solid rgba(42, 33, 28, .12); }
.summary dt { font-size: .82rem; color: var(--ink-soft); }
.summary dd { margin: 2px 0 0; font-weight: 500; text-transform: none; }
.summary dd.empty { color: rgba(42, 33, 28, .4); font-weight: 400; }
.summary-note { margin-top: 14px; font-size: .86rem; color: var(--ink-soft); }

@media (max-width: 960px) {
  .book-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .summary { position: static; order: -1; margin-bottom: 28px; padding: 20px; }
  .summary h2 { display: none; }
  .summary dl { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .summary-note { display: none; }
}
@media (max-width: 560px) { .options, .options.pros { grid-template-columns: 1fr; } .fields { grid-template-columns: 1fr; } .book { padding-top: calc(var(--header-h) + 28px); } }

/* aviso offline */
.notice { padding: 28px; border-radius: 4px; background: var(--sand); max-width: 40rem; }
.notice p { margin: 6px 0 18px; }
.notice-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* confirmação */
.done { max-width: 40rem; padding-top: 8px; }
.done-mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 1.6rem; margin-bottom: 24px; }
.done-card { margin: 32px 0 20px; border-top: 1px solid var(--line); }
.done-card > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.done-card dt { color: var(--ink-soft); font-size: .95rem; }
.done-card dd { margin: 0; font-weight: 500; }
.done-hint { margin-bottom: 20px; }
.done-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.small { font-size: .88rem; margin-top: 20px; }
@media (max-width: 560px) { .done-card > div { grid-template-columns: 1fr; gap: 2px; } }
