/* ============================================================
   PÁGINA PÚBLICA DE AGENDAMENTO
   ============================================================ */

.booking-screen {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--bg-primary);
  padding: 24px 16px;
  overflow-y: auto;
}

.booking-card {
  width: min(420px, 100%);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  padding: 32px 28px;
  box-shadow: 0 24px 80px var(--shadow-modal);
  margin: auto;
}

.booking-card .login-brand {
  justify-content: center;
}

.booking-card .login-brand .studio-logo-badge {
  width: 68px;
  height: 68px;
  border-radius: 14px;
}

.booking-card .login-brand .brand {
  font-size: 1.15rem;
}

.booking-app-brand {
  justify-content: center;
  margin: 22px 0 0;
  padding: 0;
  gap: 6px;
}

.booking-app-brand .app-brand-logo {
  width: 18px;
  height: 18px;
}

.booking-app-brand .app-brand-name {
  font-size: 0.65rem;
}

.booking-card select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  color: var(--text-primary);
  outline: none;
  font-size: 0.9rem;
}

.booking-times {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.booking-times-hint {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.booking-time-option {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.booking-time-option:hover {
  border-color: var(--color-accent);
}

.booking-time-option.selected {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.login-form .booking-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--text-secondary);
}

.login-form .booking-consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--color-accent);
}

.booking-consent a {
  color: var(--color-accent);
  font-weight: 600;
}

.booking-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.hidden {
  display: none !important;
}

/* ===== CALENDÁRIO CUSTOMIZADO (Data) =====
   O <input type="date"> nativo não dá pra estilizar por dentro (o navegador
   não expõe nada do calendário que abre) -- então pra destacar os dias com
   horário livre, a Data virou um botão que abre esse calendário construído
   na mão, com o valor real guardado num input hidden (#booking-date). */
.booking-date-wrap {
  position: relative;
}

.booking-date-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

.booking-date-trigger:hover {
  border-color: var(--color-accent);
}

#booking-date-trigger-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-date-trigger-icon {
  flex-shrink: 0;
  margin-left: 8px;
}

.booking-date-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 240px;
  z-index: 30;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 20px 50px var(--shadow-modal);
}

.booking-date-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.booking-date-nav {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0;
}

.booking-date-nav:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.booking-date-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.booking-date-month-label {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.76rem;
}

.booking-date-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.6rem;
  margin-bottom: 2px;
}

.booking-date-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
}

.booking-date-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: none;
  background: none;
  color: var(--text-primary);
  font-size: 0.7rem;
  cursor: pointer;
  position: relative;
}

.booking-date-day:hover:not(:disabled) {
  background: var(--bg-hover);
}

.booking-date-day:disabled {
  color: var(--text-secondary);
  opacity: 0.35;
  cursor: not-allowed;
}

.booking-date-day.has-availability {
  color: var(--color-accent);
  font-weight: 700;
}

.booking-date-day.has-availability::after {
  content: '';
  position: absolute;
  bottom: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-accent);
}

.booking-date-day.selected {
  background: var(--color-accent);
  color: #fff;
}

.booking-date-day.selected::after {
  background: #fff;
}

.booking-date-day-empty {
  visibility: hidden;
}

.booking-date-legend {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.64rem;
}

.booking-date-legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

#booking-success h1 {
  margin: 0 0 6px;
  color: var(--text-primary);
  font-size: 1.4rem;
}

.booking-whatsapp-fallback {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.booking-whatsapp-fallback a {
  color: #25d366;
  font-weight: 700;
  text-decoration: none;
}

.booking-whatsapp-fallback a:hover {
  text-decoration: underline;
}

/* Banner de manutenção do agendamento (temporário — migração set/2026) */
.booking-maintenance {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(240, 180, 0, 0.14);
  border: 1px solid rgba(240, 180, 0, 0.4);
  color: var(--text-primary);
  font-size: 0.86rem;
  line-height: 1.4;
}

.booking-maintenance a {
  color: #25d366;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.booking-maintenance a:hover {
  text-decoration: underline;
}
