/* Gabylonic Nails — agendamento.
   Tokens em theme.css. Fundo preto-vinho do avatar, rosa-choque só como acento. */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  font: 400 15px/1.55 var(--sans);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
}

/* O xadrez rosa e vinho aparece só nas bordas, escurecido, como textura. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    var(--page-wash),
    url('assets/xadrez-rosa-vinho.jpg') center / cover;
}

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--hot); outline-offset: 3px; }

h1, h2, p { margin-block: 0; }

/* ---------- Estrutura ---------- */

.booking-app {
  width: min(1200px, calc(100% - 48px));
  margin: 28px auto;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  border-radius: 28px;
  box-shadow: var(--shadow);
  animation: appIn 0.7s var(--ease) both;
}

@keyframes appIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Painel da marca (desktop) ---------- */

.brand-panel {
  position: relative;
  overflow: hidden;
  border-radius: 28px 0 0 28px;
  padding: 30px 30px 26px;
  display: flex;
  flex-direction: column;
  color: var(--cream);
  background:
    radial-gradient(circle at 20% 0%, rgba(var(--hot-rgb), 0.22), transparent 55%),
    linear-gradient(180deg, var(--bg-3), var(--bg-2) 60%, var(--bg-1));
  border: 1px solid var(--line);
  border-right: 0;
}
.brand-panel > * { position: relative; }


.wordmark {
  font: 500 12px var(--mono);
  letter-spacing: 0.1em;
  color: var(--cream);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark span { color: var(--hot); font-size: 18px; margin-right: 6px; vertical-align: -2px; }
.wordmark b { font-weight: 500; color: var(--pink); }

.brand-art {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 34px auto 30px;
  display: grid;
  place-items: center;
}
.art-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px dashed rgba(var(--hot-rgb), 0.55);
  animation: spin 90s linear infinite;
}
.brand-art img {
  width: 164px;
  height: 164px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--ring);
  background: var(--bg-1);
  box-shadow: 0 14px 40px rgba(var(--hot-rgb), 0.28);
  --drift-amp: -9px;
  animation: drift-y 5s ease-in-out infinite alternate, drift-tilt 9s ease-in-out infinite alternate;
}
.art-caption {
  position: absolute;
  right: -6px;
  bottom: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--crimson);
  color: var(--cream);
  font: 500 9px/1.5 var(--mono);
  letter-spacing: 0.09em;
  transform: rotate(4deg);
}
.art-spark { position: absolute; color: var(--hot); font-size: 22px; animation: twinkle 6s ease-in-out infinite; }
.art-spark-one { left: 0; top: 24px; }
.art-spark-two { right: 2px; top: 44px; color: var(--pink); animation-delay: 1.4s; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes twinkle { 50% { opacity: 0.35; transform: scale(0.8); } }

.brand-eyebrow, .eyebrow {
  font: 500 11px var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.brand-eyebrow { color: var(--pink); margin-bottom: 14px; }
.brand-copy h1 { font: 700 38px/1.06 var(--serif); letter-spacing: -0.03em; }
.brand-copy h1 em { color: var(--hot); font-weight: 600; }
.brand-copy > p:last-child { margin-top: 16px; max-width: 250px; font-size: 14px; line-height: 1.65; color: var(--cream-dim); }

.brand-social {
  align-self: flex-start; margin-top: 26px; display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 15px 9px 12px; border-radius: 999px; border: 1px solid var(--line-strong);
  font: 500 12px var(--mono); letter-spacing: 0.04em; color: var(--cream); text-decoration: none;
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}
.brand-social svg, .success-social svg { width: 17px; height: 17px; flex: none; color: var(--hot); }
.brand-social:hover { border-color: var(--hot); background: rgba(var(--hot-rgb), 0.12); transform: translateY(-1px); }
.brand-meta {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--line);
  font: 500 10px var(--mono);
  letter-spacing: 0.08em;
  color: var(--cream-dim);
}

/* ---------- Painel principal ---------- */

.booking-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 0 44px 22px;
  border-radius: 0 28px 28px 0;
  background: var(--bg-1);
  border: 1px solid var(--line);
}

.app-header {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.appointment-label { font: 500 11px var(--mono); letter-spacing: 0.12em; color: var(--pink); }
.help-link { font-size: 13px; color: var(--cream-dim); text-decoration: none; transition: color 0.2s; }
.help-link:hover { color: var(--cream); }
.help-link span { color: var(--hot); margin-left: 4px; }


/* ---------- Progresso ---------- */

.progress-wrap { position: relative; margin: 28px 0 34px; scroll-margin-top: 70px; }
.progress-line { position: absolute; top: 15px; left: 12%; right: 12%; height: 2px; border-radius: 2px; background: var(--line); }
.progress-fill { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--hot-solid), var(--hot)); transition: width 0.55s var(--ease); }

.steps { position: relative; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); }
.step { display: grid; justify-items: center; gap: 8px; color: var(--cream-faint); transition: color 0.3s; }
.step span {
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg-1);
  font: 500 10px var(--mono);
  transition: background 0.35s var(--ease), border-color 0.35s, color 0.35s, transform 0.35s var(--ease), box-shadow 0.35s;
}
.step b { font: 500 11px var(--mono); letter-spacing: 0.05em; }
.step.is-active { color: var(--cream); }
.step.is-active span { background: var(--hot-solid); border-color: var(--hot-solid); color: var(--on-hot); transform: scale(1.1); box-shadow: 0 0 0 5px rgba(var(--hot-rgb), 0.16); }
.step.is-done { color: var(--pink); }
.step.is-done span { background: var(--bg-3); border-color: var(--hot); color: var(--hot); }

/* ---------- Etapas ---------- */

.step-view { display: none; }
.step-view.is-visible { display: block; animation: stepIn 0.5s var(--ease) both; }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.step-heading { margin-bottom: 24px; }
.eyebrow { margin-bottom: 12px; color: var(--pink); }
.eyebrow span { color: var(--cream-faint); }
.step-heading h2 { font: 700 clamp(32px, 4vw, 46px) / 1.04 var(--serif); letter-spacing: -0.035em; }
.step-heading h2 em { color: var(--hot); font-weight: 600; }
.step-subtitle { max-width: 520px; margin-top: 12px; font-size: 14px; line-height: 1.65; color: var(--cream-dim); }

/* ---------- Serviços ---------- */

.services-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 24px; align-items: start; }
.service-browser { min-width: 0; }

.service-categories {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0 12px;
}
.category-tab {
  flex: none; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent;
  font-size: 13px; font-weight: 500; color: var(--cream-dim);
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.category-tab:hover { color: var(--cream); border-color: var(--pink); }
.category-tab.is-active { background: var(--hot-solid); border-color: var(--hot-solid); color: #fff; }
.category-tab:active { transform: scale(0.96); }

.catalog-loading, .catalog-empty { padding: 28px 8px; font-size: 14px; line-height: 1.6; color: var(--cream-dim); text-align: center; }
.catalog-note { margin: 4px 0 16px; font-size: 13px; line-height: 1.6; color: var(--cream-faint); }

.service-options { display: grid; gap: 10px; }

.service-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
  animation: cardIn 0.5s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.service-card:hover { border-color: var(--line-strong); }
.service-card.is-expanded { background: var(--bg-3); border-color: var(--line-hot); }
.service-card.is-selected { border-color: var(--hot); box-shadow: 0 0 0 1px var(--hot), var(--glow); }

.service-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; }

/* Clicar no card só abre os detalhes. */
.service-toggle {
  min-width: 0; padding: 14px 10px 14px 14px;
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 16px; align-items: center; gap: 12px;
  border: 0; border-radius: 14px; background: none; text-align: left;
}
.service-num { font: 500 11px var(--mono); color: var(--hot); }
.service-text { display: grid; gap: 3px; min-width: 0; }
.service-text strong { font: 600 17px/1.25 var(--serif); }
.service-text small { font-size: 13px; line-height: 1.4; color: var(--cream-dim); }
.service-meta { display: grid; justify-items: end; gap: 2px; white-space: nowrap; }
.service-meta b { font: 500 14px var(--mono); color: var(--peach); }
.service-meta small { font-size: 12px; color: var(--cream-faint); }

.chevron { width: 9px; height: 9px; border-right: 2px solid var(--cream-faint); border-bottom: 2px solid var(--cream-faint); transform: translateY(-2px) rotate(45deg); transition: transform 0.4s var(--ease), border-color 0.3s; }
.service-toggle:hover .chevron { border-color: var(--pink); }
.is-expanded .chevron { transform: translateY(2px) rotate(225deg); border-color: var(--hot); }

/* Só o + seleciona o serviço. */
.service-add {
  width: 44px; height: 44px; display: grid; place-items: center; padding: 0;
  border-radius: 50%; border: 1.5px solid var(--line-strong); background: transparent; color: var(--cream);
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.service-add:hover { border-color: var(--hot); color: var(--hot); transform: scale(1.07); }
.service-add:active { transform: scale(0.92); }
.service-add svg { width: 22px; height: 22px; overflow: visible; }
.service-add path { transform-box: fill-box; transform-origin: center; }
.service-add .i-plus { transition: transform 0.35s var(--ease), opacity 0.2s; }
.service-add .i-check { stroke-dasharray: 22; stroke-dashoffset: 22; transition: stroke-dashoffset 0.4s var(--ease) 0.06s; }
.service-add[aria-pressed="true"] { background: var(--hot-solid); border-color: var(--hot-solid); color: #fff; box-shadow: 0 6px 18px -4px rgba(var(--hot-rgb), 0.6); }
.service-add[aria-pressed="true"]:hover { background: var(--hot-deep); border-color: var(--hot-deep); color: #fff; }
.service-add[aria-pressed="true"] .i-plus { transform: rotate(90deg) scale(0.2); opacity: 0; }
.service-add[aria-pressed="true"] .i-check { stroke-dashoffset: 0; }

/* Detalhes: abre e fecha sem salto de altura. */
.service-panel {
  display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden;
  transition: grid-template-rows 0.45s var(--ease), opacity 0.3s, visibility 0s linear 0.45s;
}
.is-expanded .service-panel { grid-template-rows: 1fr; opacity: 1; visibility: visible; transition-delay: 0s, 0.08s, 0s; }
.service-panel-inner { min-height: 0; overflow: hidden; }
.service-preview {
  display: grid; grid-template-columns: 148px minmax(0, 1fr); align-items: center; gap: 18px;
  margin: 0 16px; padding: 16px 0 18px; border-top: 1px solid var(--line);
}
.service-preview.no-photo { grid-template-columns: minmax(0, 1fr); }
.service-photo { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--bg-1); }
.service-photo img { width: 100%; height: 100%; display: block; object-fit: cover; opacity: 0; transition: opacity 0.5s; }
.service-photo img.is-loaded { opacity: 1; }
.service-photo small { position: absolute; left: 8px; bottom: 6px; font-size: 10px; color: rgba(255, 255, 255, 0.82); text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8); }
.service-copy { display: grid; gap: 8px; }
.service-copy small { font: 500 11px var(--mono); letter-spacing: 0.12em; color: var(--pink); }
.service-copy p { font-size: 14px; line-height: 1.65; color: var(--cream); }
.service-copy .service-hint { font-size: 12px; color: var(--cream-faint); }

.show-more-services {
  width: 100%; margin-top: 12px; padding: 13px; border-radius: 14px;
  border: 1px dashed var(--line-strong); background: transparent;
  font-size: 13px; font-weight: 500; color: var(--cream-dim);
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.show-more-services:hover { color: var(--cream); border-color: var(--hot); background: rgba(var(--hot-rgb), 0.06); }

/* ---------- Resumo do pedido ---------- */

.booking-cart {
  position: sticky; top: 20px;
  padding: 20px; border-radius: 20px;
  border: 1px solid var(--line); background: var(--bg-2);
  display: grid; gap: 14px;
}
.cart-heading { display: flex; justify-content: space-between; align-items: baseline; font: 500 11px var(--mono); letter-spacing: 0.12em; color: var(--pink); }
.cart-count { font-weight: 500; color: var(--cream); display: inline-block; }
.cart-count.is-bump { animation: bump 0.4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.25); color: var(--hot); } }

.cart-items { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.cart-empty { padding: 6px 0; font-size: 13px; line-height: 1.6; color: var(--cream-faint); }
.cart-item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 8px;
  padding: 9px 0; border-bottom: 1px solid var(--line);
  animation: cartIn 0.4s var(--ease) both;
}
.cart-item:last-child { border-bottom: 0; }
@keyframes cartIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.cart-item-name { grid-column: 1; font-size: 14px; line-height: 1.35; }
.cart-item-price { grid-column: 1; grid-row: 2; font: 500 12px var(--mono); color: var(--peach); white-space: nowrap; }
.cart-remove {
  grid-column: 2; grid-row: 1 / 3;
  width: 26px; height: 26px; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--cream-faint); font-size: 18px; line-height: 1;
  transition: background 0.2s, color 0.2s;
}
.cart-remove:hover { background: rgba(var(--hot-rgb), 0.16); color: var(--hot); }

.cart-totals { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.cart-totals p { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; color: var(--cream-dim); }
.cart-totals strong { font: 500 13px var(--mono); color: var(--cream); }
.cart-totals .cart-total { flex-direction: column; align-items: flex-start; gap: 2px; color: var(--cream); font-size: 14px; }
.cart-totals .cart-total strong { font: 700 24px var(--serif); color: var(--peach); }
.cart-footnote { font-size: 12px; line-height: 1.5; color: var(--cream-faint); }

/* ---------- Botões ---------- */

.button {
  min-height: 48px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  border: 1px solid transparent; border-radius: 14px;
  font-size: 14px; font-weight: 700; text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.25s, border-color 0.25s, opacity 0.25s;
}
.button span { font-size: 16px; transition: transform 0.25s var(--ease); }
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button:hover:not(:disabled) span { transform: translateX(3px); }
.button:active:not(:disabled) { transform: translateY(0) scale(0.98); }
.button:disabled { opacity: 0.4; cursor: not-allowed; }
.button-dark, .button-pink { background: var(--hot-solid); color: #fff; box-shadow: 0 10px 26px -10px rgba(var(--hot-rgb), 0.75); }
.button-dark:hover:not(:disabled), .button-pink:hover:not(:disabled) { background: var(--hot-deep); box-shadow: 0 14px 30px -10px rgba(var(--hot-rgb), 0.85); }
.button-light { background: transparent; border-color: var(--line-strong); color: var(--cream); }
.button-light:hover:not(:disabled) { border-color: var(--pink); background: rgba(240, 156, 168, 0.08); }
.button-light:hover:not(:disabled) span { transform: translateX(-3px); }
.booking-cart .next-step { width: 100%; }

.step-footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 26px; }

/* ---------- Horário ---------- */

.step-character-note { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.step-character-note img { width: 76px; height: auto; flex: none; animation: var(--drift-b); }
.step-character-note p { font-size: 14px; line-height: 1.6; color: var(--cream-dim); }

/* No computador, a Gaby do calendário ocupa o espaço vazio à direita do título, de frente pro conteúdo. */
@media (min-width: 1001px) {
  .step-view[data-step="2"] { position: relative; }
  .step-view[data-step="2"] .step-heading { padding-right: 270px; }
  .step-view[data-step="2"] .selected-service-strip { position: relative; z-index: 1; }
  .step-view[data-step="2"] .step-character-note img {
    position: absolute; top: -6px; right: 4px; width: 235px;
    scale: -1 1;
    filter: drop-shadow(0 18px 28px rgba(var(--hot-rgb), 0.22));
  }
}

.selected-service-strip {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 22px; padding: 14px 16px;
  border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2);
}
.selected-service-strip > span:first-child { font: 500 10px var(--mono); letter-spacing: 0.12em; color: var(--pink); }
.selected-service-strip strong { margin-right: auto; font: 600 14px/1.4 var(--serif); }
.summary-date { font-size: 13px; color: var(--cream-dim); }
.inline-edit { border: 0; background: none; padding: 0; font-size: 13px; font-weight: 500; color: var(--hot); text-decoration: underline; text-underline-offset: 3px; }

.schedule-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; }
.field-label { display: grid; align-content: start; gap: 8px; font: 500 11px var(--mono); letter-spacing: 0.1em; color: var(--pink); }
.field-label input, .field-label textarea {
  width: 100%; padding: 13px 14px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--bg-2);
  font: 400 15px var(--sans); letter-spacing: 0; color: var(--cream); outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.field-label input:hover, .field-label textarea:hover { border-color: var(--pink); }
.field-label input:focus, .field-label textarea:focus { border-color: var(--hot); background: var(--bg-3); box-shadow: 0 0 0 3px rgba(var(--hot-rgb), 0.2); }
.field-label input::placeholder, .field-label textarea::placeholder { color: var(--cream-faint); }

/* ---------- Calendário do dia (sempre aberto) ---------- */

.date-field { align-content: start; }
.date-calendar { padding: 14px; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--bg-2); }
.dc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.dc-title { font: 600 18px var(--serif); letter-spacing: -0.01em; color: var(--cream); }
.dc-nav {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent;
  font-size: 18px; line-height: 1; color: var(--pink);
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}
.dc-nav:hover:not(:disabled) { border-color: var(--hot); background: rgba(var(--hot-rgb), 0.12); color: var(--cream); }
.dc-nav:disabled { opacity: 0.3; cursor: default; }
.dc-weekdays, .dc-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.dc-weekdays { margin-bottom: 6px; text-align: center; font: 500 10px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cream-faint); }
.dc-day {
  position: relative; aspect-ratio: 1; min-height: 38px; border-radius: 10px; border: 1px solid transparent; background: transparent;
  font: 500 14px var(--sans); letter-spacing: 0; color: var(--cream);
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s var(--ease);
}
.dc-day:hover:not(:disabled) { border-color: var(--hot); background: rgba(var(--hot-rgb), 0.12); transform: translateY(-1px); }
.dc-day:active:not(:disabled) { transform: scale(0.94); }
.dc-day:disabled { color: var(--cream-faint); opacity: 0.32; cursor: default; }
.dc-day.is-today:not(.is-selected)::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--hot); }
.dc-day.is-selected { background: var(--hot-solid); border-color: var(--hot-solid); color: #fff; animation: pop 0.35s var(--ease); }
.dc-full-notice { padding: 10px 12px; border-radius: 12px; background: var(--st-pend-bg); color: var(--st-pend-fg); font: 500 13px/1.5 var(--sans); letter-spacing: 0; }
.dc-full-notice[hidden] { display: none; }
.dc-full-notice a { color: inherit; font-weight: 700; text-underline-offset: 3px; }
.dc-picked { font: 400 13px/1.5 var(--sans); letter-spacing: 0; color: var(--cream-dim); }
.dc-picked.is-error { color: var(--warn); }

.time-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.time-option {
  height: 42px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg-2);
  font: 500 13px var(--mono); color: var(--cream);
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s var(--ease);
}
.time-option:hover { border-color: var(--hot); transform: translateY(-1px); }
.time-option:active { transform: scale(0.95); }
.time-option.is-selected { background: var(--hot-solid); border-color: var(--hot-solid); color: #fff; animation: pop 0.35s var(--ease); }
@keyframes pop { 50% { transform: scale(1.08); } }
.time-option:disabled, .time-option.is-taken {
  background: #14000a; border-color: var(--line); color: var(--cream-faint); opacity: 0.55;
  text-decoration: line-through; cursor: not-allowed; transform: none;
}
.time-option:disabled:hover { border-color: var(--line); transform: none; }
.dc-day.is-full { text-decoration: line-through; }
.time-field small { font: 400 12px/1.5 var(--sans); letter-spacing: 0; color: var(--cream-faint); }

/* ---------- Confirmação ---------- */

.details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.idea-field-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px; align-items: end; gap: 14px; margin-top: 16px; }
.message-field textarea { min-height: 96px; resize: vertical; }
.idea-mascot { --gl-size: 96px; align-self: end; animation: var(--drift-b); }

.bot-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.upload-box {
  position: relative; display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 16px;
  border-radius: 14px; border: 1px dashed var(--line-strong); background: transparent; cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
}
.upload-box:hover, .upload-box:focus-within { border-color: var(--hot); background: rgba(var(--hot-rgb), 0.06); }
.upload-box input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-icon { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--bg-3); color: var(--hot); font-size: 20px; }
.upload-copy { display: grid; gap: 3px; min-width: 0; }
.upload-copy strong { font-size: 14px; }
.upload-copy small, .file-names { font-size: 12px; color: var(--cream-faint); overflow-wrap: anywhere; }
.file-names:not(:empty) { color: var(--pink); }

.privacy-consent { display: flex; align-items: flex-start; gap: 12px; margin-top: 16px; font-size: 13px; line-height: 1.6; color: var(--cream-dim); cursor: pointer; }
.privacy-consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--hot-solid); cursor: pointer; }

.final-summary { display: grid; gap: 12px; margin-top: 20px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); }
.final-summary > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.final-summary > div > span { font: 500 10px var(--mono); letter-spacing: 0.12em; color: var(--pink); }
.final-summary strong { font-size: 14px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.final-summary .review-price { font: 700 20px var(--serif); color: var(--peach); }

.confirm-notice { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(var(--hot-rgb), 0.09); border: 1px solid rgba(var(--hot-rgb), 0.25); }
.confirm-notice span { color: var(--hot); font-size: 16px; line-height: 1.5; }
.confirm-notice p { font-size: 13px; line-height: 1.6; color: var(--cream); }

.form-status { min-height: 22px; margin-top: 14px; font-size: 14px; color: var(--warn); }
.form-whatsapp { display: inline-block; margin-top: 4px; font-size: 14px; color: var(--hot); text-underline-offset: 3px; }

/* ---------- Sucesso ---------- */

.booking-success { padding: 36px 0 12px; text-align: center; display: grid; justify-items: center; gap: 4px; animation: stepIn 0.6s var(--ease) both; }
.success-mascot .gaby-live { --gl-size: 170px; box-shadow: 0 14px 40px rgba(var(--hot-rgb), 0.3); animation: pop 0.7s var(--ease) both, var(--drift-a); }
.booking-success .eyebrow { margin-top: 18px; }
.booking-success h2 { font: 700 clamp(34px, 5vw, 48px) / 1.05 var(--serif); letter-spacing: -0.035em; }
.booking-success h2 em { color: var(--hot); font-weight: 600; }
.success-copy { max-width: 460px; margin: 14px 0 22px; font-size: 15px; line-height: 1.7; color: var(--cream-dim); }
.success-summary { margin-top: 16px; max-width: 460px; font-size: 13px; line-height: 1.6; color: var(--cream-faint); }
.success-social {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 9px; font-size: 14px; line-height: 1.4;
  justify-content: center; max-width: 100%; color: var(--cream-dim); text-decoration: none; text-align: center;
  transition: color 0.2s;
}
.success-social b { font-weight: 600; color: var(--hot); }
.success-social:hover { color: var(--cream); }
.success-new-request { margin-top: 14px; padding: 8px; border: 0; background: none; font-size: 14px; color: var(--cream-dim); text-decoration: underline; text-underline-offset: 3px; }
.success-new-request:hover { color: var(--cream); }

/* ---------- Rodapé ---------- */

.app-footer { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--cream-faint); }
.app-footer i { color: var(--hot); font-style: normal; margin-right: 6px; }
.app-footer a { color: var(--cream-dim); text-decoration: none; transition: color 0.2s; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 18px; }
.app-footer a:hover { color: var(--cream); }

/* ---------- Barra fixa (aparece ao rolar, só no celular) ---------- */

.mini-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40; height: 54px; padding: 0 16px;
  display: none; align-items: center; gap: 10px;
  background: rgba(43, 0, 11, 0.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-100%); transition: transform 0.45s var(--ease);
}
.mini-bar.is-visible { transform: none; }
.mini-bar img { width: 32px; height: 32px; object-fit: cover; border-radius: 50%; border: 2px solid var(--ring); background: var(--bg-1); }
.mini-brand { font: 500 11px var(--mono); letter-spacing: 0.1em; color: var(--cream); }
.mini-brand b { font-weight: 500; color: var(--pink); }
.mini-step { margin-left: auto; font: 500 10px var(--mono); letter-spacing: 0.1em; color: var(--pink); }

/* ---------- Tablet e celular ---------- */

@media (max-width: 1000px) {
  .mini-bar { display: flex; }
  .booking-app { grid-template-columns: minmax(0, 1fr); width: min(760px, 100%); margin: 0 auto; box-shadow: none; }

  /* O bloco da marca vira o topo da página, com tudo o que o desktop mostra na lateral. */
  .brand-panel {
    border: 0; border-radius: 0; padding: 22px 22px 52px;
    display: grid; grid-template-columns: 138px minmax(0, 1fr); gap: 16px 18px; align-items: center;
    grid-template-areas: "mark mark" "art copy" "social social" "meta meta";
  }
  .brand-panel > .wordmark { grid-area: mark; }
  .brand-art { grid-area: art; width: 138px; height: 138px; margin: 0; }
  .brand-art img { width: 110px; height: 110px; border-width: 3px; box-shadow: 0 10px 28px rgba(var(--hot-rgb), 0.3); --drift-amp: -7px; }
  .art-caption { right: -12px; bottom: 0; padding: 4px 7px; border-radius: 6px; font-size: 7.5px; }
  .art-spark { font-size: 15px; }
  .art-spark-one { left: 0; top: 10px; }
  .art-spark-two { right: -2px; top: 22px; }
  .brand-copy { grid-area: copy; }
  .brand-eyebrow { margin-bottom: 8px; font-size: 10px; }
  .brand-copy h1 { font-size: 27px; }
  .brand-copy > p:last-child { max-width: none; margin-top: 10px; font-size: 13px; line-height: 1.55; }
  .brand-social { grid-area: social; margin-top: 0; justify-self: start; }
  .brand-meta { grid-area: meta; margin-top: 0; padding-top: 14px; }

  .app-header { display: none; }
  .booking-panel {
    position: relative; z-index: 1; margin-top: -26px; padding: 0 24px 20px;
    border-radius: 26px 26px 0 0; border-width: 1px 0 0;
    box-shadow: 0 -14px 34px rgba(10, 0, 4, 0.28);
  }
  .progress-wrap { margin-top: 26px; }

  .services-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  /* Resumo vira uma barra fixa na base enquanto escolhe os serviços. */
  .booking-cart {
    top: auto; bottom: 12px; z-index: 20; margin-top: 16px; padding: 12px 14px; gap: 0 14px;
    grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "heading button" "totals button";
    align-items: center; border-radius: 18px; border-color: var(--line-hot);
    background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: var(--shadow-soft);
  }
  .cart-heading { grid-area: heading; justify-content: flex-start; gap: 8px; }
  .cart-heading > span { display: none; }
  .cart-items, .cart-footnote, .cart-totals p:first-child, .cart-total > span { display: none; }
  .cart-totals { grid-area: totals; padding: 0; border: 0; }
  .cart-totals .cart-total strong { font-size: 20px; white-space: nowrap; }
  .service-categories { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -2px; padding: 2px 2px 12px; }
  .service-categories::-webkit-scrollbar { display: none; }
  .booking-cart .next-step { grid-area: button; width: auto; padding: 0 18px; }
  .booking-cart { transition: transform 0.45s var(--ease), opacity 0.3s; }
  .booking-cart.is-empty { transform: translateY(160%); opacity: 0; pointer-events: none; }
}

@media (max-width: 650px) {
  body::before { background-position: center top; }
  .brand-panel { padding: 20px 18px 50px; grid-template-columns: 118px minmax(0, 1fr); gap: 14px 14px; }
  .brand-art { width: 118px; height: 118px; }
  .brand-art img { width: 94px; height: 94px; --drift-amp: -6.5px; }
  .art-caption { right: -10px; bottom: -2px; font-size: 7px; }
  .brand-copy h1 { font-size: 24px; }
  .brand-copy > p:last-child { font-size: 12.5px; }
  .brand-meta { font-size: 9.5px; }
  .booking-panel { min-height: 70vh; padding: 0 16px 18px; }

  .progress-wrap { margin: 24px 0 26px; }
  .progress-line { top: 14px; }
  .step span { width: 28px; height: 28px; font-size: 9px; }
  .step b { font-size: 10px; }

  .step-heading { margin-bottom: 18px; }
  .step-heading h2 { font-size: 34px; }
  .step-subtitle { font-size: 14px; }

  .service-toggle { grid-template-columns: 22px minmax(0, 1fr) 14px; gap: 10px; padding: 13px 6px 13px 12px; }
  .service-meta { grid-column: 2; grid-row: 2; display: flex; align-items: baseline; gap: 8px; justify-items: start; }
  .chevron { grid-column: 3; grid-row: 1 / 3; }
  .service-text strong { font-size: 16px; }
  .service-head { padding-right: 10px; }
  .service-preview { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; margin: 0 12px; }
  .service-copy p { font-size: 13px; line-height: 1.55; }

  .schedule-grid, .details-grid { grid-template-columns: 1fr; gap: 16px; }
  .time-options { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .idea-field-row { grid-template-columns: minmax(0, 1fr) 70px; }
  .idea-mascot { --gl-size: 70px; }
  .final-summary > div { grid-template-columns: 1fr; gap: 3px; }
  .step-footer { flex-direction: column-reverse; align-items: stretch; }
  .step-footer .button { width: 100%; }
  .app-footer { flex-direction: column; gap: 6px; }
  .footer-links { justify-content: flex-start; }
  .success-mascot .gaby-live { --gl-size: 140px; }
}

@media (max-width: 360px) {
  .brand-panel { grid-template-columns: 100px minmax(0, 1fr); }
  .brand-art { width: 100px; height: 100px; }
  .brand-art img { width: 80px; height: 80px; --drift-amp: -5px; }
  .brand-copy h1 { font-size: 21px; }
}
