/* ==========================================================================
   Lightbox de confirmação — padrão reutilizável (agendamento, cadastro MEG, etc.)
   ========================================================================== */

.confirmation-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 51, 102, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  padding: 1rem;
  animation: confLbOverlayIn 0.25s ease-out;
}
.confirmation-lightbox:not([hidden]) {
  display: flex;
}

.confirmation-lightbox__card {
  background: #fff;
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
  max-width: 24rem;
  width: 100%;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
  text-align: center;
  animation: confLbCardIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Avatar Meg — comunicação personalizada */
.confirmation-lightbox__meg-avatar-wrap {
  margin-bottom: 1rem;
}
.confirmation-lightbox__meg-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(126, 211, 33, 0.2);
  border: 3px solid rgba(126, 211, 33, 0.4);
}

/* Barra de progresso (opcional — estado concluído) */
.confirmation-lightbox__progress-wrap {
  margin-bottom: 1rem;
}
.confirmation-lightbox__progress {
  height: 6px;
  background: #f1f3f5;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.confirmation-lightbox__progress-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #7ed321, #2d70cb);
  border-radius: 3px;
  transition: width 0.25s ease;
}
.confirmation-lightbox__progress-label {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0.5rem 0 0;
}

/* Título principal (ex: "Horário reservado com sucesso! ✓") */
.confirmation-lightbox__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #10b981;
  margin: 0 0 0.75rem;
  line-height: 1.3;
}
.confirmation-lightbox__subtitle {
  font-size: 1rem;
  color: #1a1a2e;
  line-height: 1.5;
  margin: 0 0 1.5rem;
}
.confirmation-lightbox__subtitle strong {
  font-weight: 600;
}

/* Botão de fechar */
.confirmation-lightbox__btn {
  width: 100%;
  min-height: 52px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  background: #2d70cb;
  color: #fff;
  transition: background 0.2s ease, transform 0.1s ease;
}
.confirmation-lightbox__btn:hover {
  background: #1a5bb0;
}
.confirmation-lightbox__btn:active {
  transform: scale(0.98);
}

@keyframes confLbOverlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes confLbCardIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .confirmation-lightbox,
  .confirmation-lightbox__card { animation: none; }
}
