/* Plugin RSVP - ajustes visuais e correção de rolagem do modal */

/* Mantém sua estética do tema (card semi-transparente) */
.novo-rsvp-card {
  background: rgba(255, 255, 255, 0.85);
}

/* Sugestões */
#novo-rsvp-suggest .list-group-item {
  cursor: pointer;
}
#novo-rsvp-suggest .list-group-item:active {
  transform: translateY(1px);
}

/* Subcards (Acompanhantes / Crianças) */
.novo-rsvp-subcard {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.65);
}

/* ============================
   MODAL - largura + z-index + scroll
   ============================ */

/* Fica acima do header do tema (header z-index ~2000) */
#novoRsvpModal.modal {
  z-index: 5000 !important;
}
.modal-backdrop {
  z-index: 4900 !important;
}

/* Modal mais largo no desktop e confortável no mobile */
#novoRsvpModal .modal-dialog {
  width: min(92vw, 860px);
  max-width: 860px;
  margin: 1.25rem auto;
  max-height: calc(100vh - 3rem);
}

@media (max-width: 576px) {
  #novoRsvpModal .modal-dialog {
    width: 95vw;
    margin: 0.75rem auto;
  }
}

/* Mantém rolagem interna (modal-body scroll) */
#novoRsvpModal .modal-content {
  max-height: calc(100vh - 3rem);
  overflow: hidden;
  border-radius: 1.25rem;
}

#novoRsvpModal .modal-body {
  overflow-y: auto;
  max-height: calc(100vh - 11rem);
  -webkit-overflow-scrolling: touch;
}

/* Botão confirmar proporcional */
#novoRsvpModal button[type="submit"].btn {
  width: 100%;
  padding: 0.85rem 1.25rem;
  font-size: 1.05rem;
  line-height: 1.2;
  border-radius: 999px;
}

/* No desktop, evita botão "gigante": centraliza e limita largura */
@media (min-width: 992px) {
  #novoRsvpModal button[type="submit"].btn {
    max-width: 520px;
    margin: 0 auto;
    display: block;
  }
}

/* Marca do asterisco do email (toggle via JS) */
.novo-email-required {
  color: inherit;
}


/* Botão "Continuar" alinhado à paleta do tema */
.novo-rsvp-btn{
  background: var(--cas-accent-dark, #5b6b46);
  border-color: var(--cas-accent-dark, #5b6b46);
  color: #fff;
}
.novo-rsvp-btn:hover{
  filter: brightness(0.95);
  color:#fff;
}
.novo-rsvp-btn:disabled,
.novo-rsvp-btn.disabled{
  background: rgba(91,107,70,.35);
  border-color: rgba(91,107,70,.25);
  color: rgba(255,255,255,.85);
  cursor: not-allowed;
  opacity: 1;
}
