/* Remove outline (borda preta) de todos os elementos de formulário no modal */
.modal-inscricoes-container input,
.modal-inscricoes-container textarea,
.modal-inscricoes-container select,
.modal-inscricoes-container button {
  outline: none !important;
}

/* Modal de Outras Inscrições */
@media (max-width: 840px) {
  .modal-inscricoes-container {
    max-width: 370px;
    width: 96vw;
    padding: 18px 12px 14px 12px;
    margin: 12px auto;
    max-height: 95vh;
    box-sizing: border-box;
  }
  .modal-inscricoes-scroll {
    max-height: 85vh;
  }
}

.modal-inscricoes-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.3s;
}

.modal-inscricoes-overlay.active {
  display: flex;
}

.modal-inscricoes-container {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  max-width: 480px;
  width: 90vw;
  max-height: 85vh;
  padding: 0;
  margin: 20px auto;
  position: relative;
  animation: slideUp 0.3s;
  display: flex;
  flex-direction: column;
}

/* Container com scroll simplificado */
.inscricoes-scroll-container {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  max-height: 300px;
}

/* Header do modal */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e1e8ed;
}

.modal-header h2 {
  color: #2b2862;
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0;
}

.modal-close {
  background: transparent;
  border: none;
  border-radius: 0;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  color: #2c3e50;
  cursor: pointer;
  transition: color 0.2s;
  flex-shrink: 0;
  padding: 0;
}

.modal-close:hover {
  color: #e74c3c;
  background: transparent;
  border: none;
}

/* Instruções */
.instrucoes-container {
  padding: 15px 24px;
  background: #e3f2fd;
  border-left: 4px solid #ea560e;
  margin-bottom: 0;
}

.instrucoes-texto {
  margin: 0;
  color: #2b2862;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.instrucoes-texto i {
  color: #ea560e;
  font-size: 1rem;
}

/* Conteúdo do modal */
.modal-content {
  padding: 0;
}

.modal-description {
  color: #5a6c7d;
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.4;
}

/* Container das inscrições */
.inscricoes-container {
  margin-bottom: 20px;
}

.inscricao-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.inscricao-input {
  flex: 1;
  padding: 12px;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  background: #fff;
}

.inscricao-input:focus {
  outline: none;
  border-color: #2b2862;
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.btn-remover-inscricao {
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(0);
}

.btn-remover-inscricao:hover {
  background: #c0392b;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

.btn-remover-inscricao i {
  font-size: 14px;
}

/* Botão adicionar inscrição */
.btn-adicionar-inscricao {
  background: #f8f9fa;
  color: #2b2862;
  border: 2px dashed #2b2862;
  border-radius: 8px;
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  width: 100%;
  justify-content: center;
  transform: translateY(0);
}

.btn-adicionar-inscricao:hover {
  background: #ea560e;
  border-color: #ea560e;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(234, 86, 14, 0.3);
}

.btn-adicionar-inscricao i {
  font-size: 14px;
}

/* Botão adicionar minimalista e grande */
.btn-adicionar {
  background: transparent;
  border: none;
  color: #2c3e50;
  font-size: 2.3rem;
  width: auto;
  height: auto;
  padding: 0;
  border-radius: 0;
  cursor: pointer;
  margin: 0 0 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  transform: translateY(0);
}
.btn-adicionar:hover {
  color: #ea560e;
  background: transparent;
  transform: translateY(-2px) scale(1.1);
}

/* Ações do modal */
.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e1e8ed;
}

.btn-cancelar {
  /* background: #f8f9fa; */
  color: #6c757d;
  /* border: 2px solid #dee2e6; */
  border-radius: 8px;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  font-weight: 500;
  transform: translateY(0);
}

.btn-cancelar:hover {
  background: #433f87;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(67, 63, 135, 0.3);
}

.btn-confirmar {
  background: #2b2862;
  color: white;
  border: 2px solid #2b2862;
  border-radius: 8px;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  font-weight: 500;
  transform: translateY(0);
}

.btn-confirmar:hover {
  background: #ea560e;
  border-color: #ea560e;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(234, 86, 14, 0.3);
}

.modal-inscricoes-container h3 {
  color: #2c3e50;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 8px;
  text-align: center;
}

.modal-inscricoes-container p {
  color: #5a6c7d;
  font-size: 0.95rem;
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.4;
}

.inscricoes-campos {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.inscricao-item {
  display: flex;
  flex-direction: column;
}

.inscricao-item label {
  font-weight: 500;
  color: #2c3e50;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.inscricao-item input {
  padding: 12px;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  background: #fff;
}

.inscricao-item input:focus {
  outline: none;
  border-color: #2b2862;
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.inscricao-item input::placeholder {
  color: #9aa5b1;
}

/* Campos extras com scroll */
.inscricao-extra {
  display: none;
}

.inscricoes-campos.mostrar-extras .inscricao-extra {
  display: flex;
}

.modal-inscricoes-botoes {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

.btn-salvar,
.btn-cancelar {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  min-width: 100px;
}

.btn-salvar {
  background: #2b2862;
  color: #fff;
  transition: all 0.3s ease;
  transform: translateY(0);
}

.btn-salvar:hover {
  background: #ea560e;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(234, 86, 14, 0.3);
}

.btn-cancelar {
  background: #6c757d;
  color: #fff;
  transition: all 0.3s ease;
  transform: translateY(0);
}

.btn-cancelar:hover {
  background: #433f87;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(67, 63, 135, 0.3);
}

.fechar-modal:hover {
  background: transparent;
  color: #c82333;
  transform: translateY(-2px) scale(1.1);
}

/* Scroll personalizado */
.modal-inscricoes-scroll::-webkit-scrollbar {
  width: 6px;
}

.modal-inscricoes-scroll::-webkit-scrollbar-track {
  background: #f1f3f4;
  border-radius: 10px;
}

.modal-inscricoes-scroll::-webkit-scrollbar-thumb {
  background: #c1c8cd;
  border-radius: 10px;
}

.modal-inscricoes-scroll::-webkit-scrollbar-thumb:hover {
  background: #a8b3ba;
}

/* Animações */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsividade */
@media (max-width: 600px) {
  .modal-inscricoes-container {
    margin: 10px;
    padding: 20px 16px;
    width: calc(100vw - 20px);
  }

  .modal-inscricoes-botoes {
    flex-direction: column;
    gap: 8px;
  }

  .btn-salvar,
  .btn-cancelar {
    width: 100%;
  }
}

/* ========== ESTILOS PERSONALIZADOS PARA O NOVO LAYOUT ========== */

/* Redefinindo o container principal */
.modal-inscricoes-container {
  display: flex;
  flex-direction: column;
  padding: 0 !important;
}

/* Header fixo */
.modal-header {
  flex-shrink: 0;
  padding: 20px 24px 15px 24px !important;
  margin-bottom: 0 !important;
}

/* Conteúdo principal com flex */
.modal-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* Container com scroll para as inscrições */
.inscricoes-scroll-container {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px 10px 24px;
  max-height: 300px;
  min-height: 200px;
}

/* Container das inscrições reorganizado */
.inscricoes-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 0 !important;
}

/* Items de inscrição simplificados */
.inscricao-item {
  margin-bottom: 16px;
}

.inscricao-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.2s;
  outline: none;
}

.inscricao-input:focus {
  border-color: #2b2862;
  box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.1);
}

.inscricao-input:not(:placeholder-shown) {
  border-color: #28a745;
}

/* Container das ações fixo na parte inferior */
.modal-actions-container {
  flex-shrink: 0;
  padding: 15px 24px 20px 24px;
  border-top: 1px solid #e1e8ed;
  background: #fff;
}

/* Botão adicionar mais */
.btn-adicionar-mais {
  background: #f8f9fa;
  color: #2b2862;
  border: 2px dashed #2b2862;
  border-radius: 8px;
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  width: 100%;
  justify-content: center;
}

.btn-adicionar-mais:hover {
  background: #e3f2fd;
  border-color: #433f87;
}

.btn-adicionar-mais i {
  font-size: 14px;
}

/* Ações do modal reorganizadas */
.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: none !important;
}

/* Responsividade atualizada */
@media (max-width: 600px) {
  .inscricoes-scroll-container {
    padding: 15px 16px 10px 16px;
    max-height: 250px;
  }

  .modal-actions-container {
    padding: 15px 16px 16px 16px;
  }

  .modal-header {
    padding: 16px !important;
  }
}
