#fna-form-inscricao{
    max-width:1100px;
    margin:0 auto;
    font-family:Arial, Helvetica, sans-serif;
}

/* ===== TÍTULO DO EVENTO ===== */
.fna-evento-titulo{
    background:#0726a2;
    color:#ffffff;
    padding:18px 18px;
    border-radius:8px 8px 8px 8px;
    font-size:15px;
    font-weight:600;
    margin:0 0 16px 0;
}

/* ===== CARD DO ATLETA ===== */
.fna-atleta-card{
    background:#ffffff;
    border:1px solid #e0e0e0;
    border-radius:8px;
    padding:18px 20px;
    margin-bottom:20px;
    box-shadow:0 2px 6px rgba(0,0,0,0.05);

    display:grid;
    grid-template-columns:1fr 1fr;
    column-gap:20px;
    row-gap:10px;
}

/* Header Atleta 1, 2, 3 */
.fna-atleta-header{
    grid-column:span 2;
    font-size:15px;
    font-weight:600;
    color:#0726a2;
    margin-bottom:8px;
    padding-bottom:6px;
    border-bottom:1px solid #e0e0e0;
}

/* ===== CAMPOS ===== */
.fna-atleta-card p{
    margin:0;
    display:flex;
    flex-direction:column;
    font-size:13px;
    color:#333;
}

.fna-atleta-card p label{
    font-weight:600;
    margin-bottom:4px;
}

.fna-atleta-card input,
.fna-atleta-card select{
    width:100%;
    height:42px;
    padding:8px 10px;
    border:1px solid #ccc;
    border-radius:4px;
    font-size:14px;
    box-sizing:border-box;
}

.fna-atleta-card input:focus,
.fna-atleta-card select:focus{
    border-color:#0726a2;
    outline:none;
    box-shadow:0 0 0 2px rgba(7,38,162,0.15);
}

/* Campo data alinhado */
.fna-atleta-card input[type="date"]{
    padding-top:6px;
    padding-bottom:6px;
}

/* CBAt mais compacto */
.fna-atleta-card input[name="[cbat]"]{
    max-width:160px;
}

/* ===== FULL WIDTH ===== */
.fna-atleta-card .fna-full{
    grid-column:span 2;
}

/* ===== CORREÇÃO INPUT DATE NO MOBILE ===== */
.fna-atleta-card input[type="date"]{
    width:100% !important;
    max-width:100%;
    box-sizing:border-box;
    appearance:none;
    -webkit-appearance:none;
    -moz-appearance:none;
}

@media(max-width:768px){
    .fna-atleta-card input,
    .fna-atleta-card select{
        width:100%;
        max-width:100%;
    }
}


/* ===== PROVAS ===== */
.fna-provas-titulo{
    display:block;
    margin-top:4px;
    margin-bottom:4px;
    font-size:13px;
    color:#555;
    font-weight:600;
}

.fna-provas-box{
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap:16px 20px;
    margin-top:8px;
    padding:14px 16px;
    background:#f8f9ff;
    border:1px solid #e0e0e0;
    border-radius:6px;
    box-sizing:border-box;
}

.fna-provas-box select{
    width:100%;
    padding:9px 10px;
    border:1px solid #ccc;
    border-radius:4px;
    font-size:14px;
    background:#ffffff;
    box-sizing:border-box;
}

/* ===== BOTÃO ENVIAR INSCRIÇÃO (verde) ===== */
#fna-form-inscricao button[name="fna_enviar_inscricao"]{
    background:#ffffff;
    color:#61ce70;
    border:2px solid #61ce70;
    padding:10px 22px;
    font-size:14px;
    border-radius:6px;
    font-weight:600;
    cursor:pointer;
    transition:all 0.25s ease;
}

#fna-form-inscricao button[name="fna_enviar_inscricao"]:hover{
    background:#61ce70;
    color:#ffffff;
}

/* ===== BOTÃO ADICIONAR ATLETA (azul) ===== */
#fna-add-atleta{
    background:#0726a2;
    color:#ffffff;
    border:0;
    padding:10px 16px;
    font-size:14px;
    border-radius:4px;
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    gap:6px;
}

#fna-add-atleta:hover{
    background:#061f85;
}


.fna-atleta-header{
    display:flex;
    align-items:center;
    gap:6px;
}


.fna-atleta-card button{
    background:#ffffff;
    color:#b02a37;
    border:1px solid #b02a37;
    padding:6px 10px;
    border-radius:4px;
    cursor:pointer;
    font-size:13px;
    width:fit-content;
}

.fna-atleta-card button:hover{
    background:#b02a37;
    color:#ffffff;
}

/* ===== MENSAGEM SUCESSO ===== */
.fna-sucesso{
    background:#e6ffed;
    border:1px solid #2ecc71;
    color:#1e7e34;
    padding:12px 14px;
    border-radius:6px;
    margin-bottom:16px;
    font-weight:600;
}

/* ===== RESPONSIVO ===== */
@media(max-width:768px){
    .fna-atleta-card{
        grid-template-columns:1fr;
    }

    .fna-atleta-header,
    .fna-atleta-card .fna-full{
        grid-column:span 1;
    }
}

/* ===== MINHAS INSCRIÇÕES ===== */
.fna-minhas-inscricoes{
    width:100%;
    border-collapse:collapse;
    margin-top:16px;
    font-size:14px;
    background:#ffffff;
    border:1px solid #e0e0e0;
    border-radius:8px;
    overflow:hidden;
}

.fna-minhas-inscricoes th{
    background:#0726a2;
    color:#ffffff;
    font-weight:600;
    padding:10px 12px;
    text-align:left;
    font-size:13px;
    letter-spacing:0.3px;
}

.fna-minhas-inscricoes td{
    padding:10px 12px;
    border-bottom:1px solid #f0f0f0;
    color:#333;
    vertical-align:middle;
}

.fna-minhas-inscricoes tr:last-child td{
    border-bottom:none;
}

.fna-minhas-inscricoes tr:nth-child(even){
    background:#fafafa;
}

.fna-minhas-inscricoes tr:hover{
    background:#f2f4ff;
}

/* Destaques sutis */
.fna-minhas-inscricoes td:nth-child(1){
    font-weight:600; /* Evento */
}

.fna-minhas-inscricoes td:nth-child(2){
    color:#0726a2;
    font-weight:600; /* Atleta */
}

/* ===== MOBILE ===== */
@media(max-width:768px){
    .fna-minhas-inscricoes th{
        font-size:12px;
        padding:8px;
    }

    .fna-minhas-inscricoes td{
        font-size:13px;
        padding:8px;
    }
}

/* ===== DESTAQUE DE ATLETA ===== */
.fna-minhas-inscricoes td:nth-child(2){
    font-weight:500;
    color:#0726a2;
    font-size:14px;
}

/* Evento um pouco mais discreto */
.fna-minhas-inscricoes td:nth-child(1){
    color:#333;
    font-weight:500;
}

/* Categoria */
.fna-minhas-inscricoes td:nth-child(4){
    font-weight:600;
    color:#444;
    text-transform:uppercase;
    font-size:12px;
    letter-spacing:0.4px;
}

/* Prova */
.fna-minhas-inscricoes td:nth-child(5){
    color:#000;
}

.fna-minhas-inscricoes td:nth-child(3){
    font-weight:500;
    color:#333;
    text-align:center;
}

.fna-paginacao a{
    padding:6px 10px;
    border:1px solid #ccc;
    border-radius:4px;
    text-decoration:none;
    color:#0726a2;
    font-size:13px;
    font-weight:600;
}

.fna-paginacao a:hover{
    background:#0726a2;
    color:#fff;
}

/* Badge CBAt */
.fna-badge-cat{
    background:#0726a2;
    color:#fff;
    padding:4px 10px;
    border-radius:12px;
    font-size:12px;
    font-weight:600;
}

.fna-badge-prova{
    background:#f2f4ff;
    color:#0726a2;
    padding:4px 10px;
    border-radius:12px;
    font-size:12px;
    font-weight:600;
    border:1px solid #0726a2;
}

/* Validação CBAT */
.fna-status-box{
    margin-bottom:10px;
    padding:8px 12px;
    border-radius:6px;
    font-size:13px;
    font-weight:600;
}

.fna-status-ok{ color:#1e7e34; }
.fna-status-vencido{ color:#b02a37; }
.fna-status-inexistente{ color:#cc0000; }
.fna-status-erro{ color:#cc0000; }

/* Modal */
#fna-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#fna-modal-box {
  background: #fff;
  width: 520px;
  max-width: 95%;
  border-radius: 10px;
  overflow: hidden;
}

.fna-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
}

.fna-modal-title {
  font-size: 14px;
  font-weight: 500;
}

#fna-modal-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

.fna-modal-body {
  padding: 16px;
}

@media (max-width: 768px) {

  #fna-modal-overlay {
    display: flex;
    justify-content: center;
    align-items: center; /* 🔥 CENTRO VERTICAL */
    padding: 16px;
  }

  #fna-modal-box {
    width: 100%;
    max-width: 480px;
    max-height: 80vh;
    border-radius: 10px;
  }

}


  .fna-modal-header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 9999;
  }

  .fna-modal-body {
    overflow-y: auto;
    padding-bottom: 40px;
  }

.fna-remover-atleta {
  text-align: right;
  margin-top: 10px;
}

.fna-btn-remover {
  background: #fff;
  border: 1px solid #d63638;
  color: #d63638;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
}

.fna-btn-remover:hover {
  background: #d63638;
  color: #fff;
}

/* ===== FORÇA BLOCO DE PROVAS EM LINHA CHEIA ===== */
.fna-provas-wrap {
    width: 100%;
    grid-column: span 2; /* 🔥 ISSO É O QUE FALTAVA */
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
    padding: 12px;
    background: #f8f9ff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

/* selects das provas */
.fna-provas-wrap select {
    width: auto !important;
    min-width: 180px;
}

/* ===== RODAPÉ DO ATLETA ===== */
.fna-card-footer {
    grid-column: span 2;
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.fna-btn-remover {
    font-size: 12px;
    padding: 4px 10px;
}

/* =====================================================
   MODAL – CSS LIMPO E SEM SOBREPOSIÇÃO
   ===================================================== */

/* Overlay */
#fna-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Caixa do modal */
#fna-modal-box {
    background: #ffffff;
    width: 600px;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Cabeçalho */
.fna-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    border-bottom: 1px solid #e5e5e5;
}

/* Título do modal (discreto) */
.fna-modal-title {
    font-size: 12px;
    font-weight: 500;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Botão fechar */
#fna-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #d63638;
}

/* Corpo */
.fna-modal-body {
    padding: 18px 20px;
    overflow-y: auto;
}

/* ================= CONTEÚDO ================= */

/* Nome do atleta – destaque principal */
/* Nome do atleta em destaque */
#fna-modal-conteudo p:first-of-type {
    font-size: 18px;
    font-weight: 700;
    color: #0726a2;
}

/* Label "Atleta:" menos chamativo */
#fna-modal-conteudo p:first-of-type strong {
    font-weight: 600;
    color: #555;
}

/* Texto padrão */
#fna-modal-conteudo p {
    margin: 6px 0;
    font-size: 14px;
    color: #333;
}

/* Labels */
#fna-modal-conteudo p strong {
    font-weight: 600;
    color: #444;
}

/* Provas – chips */
#fna-modal-conteudo ul {
    list-style: none;
    padding: 0;
    margin: 8px 0 14px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#fna-modal-conteudo ul li {
    background: #f2f4ff;
    color: #0726a2;
    padding: 6px 14px;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #0726a2;
}

/* Data da inscrição – sempre o último <p> */
#fna-modal-conteudo p:last-of-type {
    margin-top: 16px;
    font-size: 12px;
    color: #777;
    border-top: 1px dashed #ddd;
    padding-top: 8px;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

    #fna-modal-box {
        width: 90%;
        height: 60%;
        border-radius: 10px;
    }

    .fna-modal-header {
        position: sticky;
        top: 0;
        background: #ffffff;
        z-index: 10;
    }
}

/* ===============================
   ERRO DESTAQUE
   =============================== */

.fna-alerta {
    white-space: normal;
    word-break: break-word;
    line-height: 1.4;
}

.fna-alerta strong {
    font-weight: 600;
}

.fna-alerta-erro {
    display: block;
    padding: 16px 18px;
    border-radius: 8px;
    background: #fdecea;
    border-left: 5px solid #d93025;
    color: #8a1c1c;
}

/* Texto do alerta */
.fna-alerta-erro {
    line-height: 1.5;
    font-size: 14px;
}

/* título */
.fna-alerta-erro > strong,
.fna-alerta-erro b {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}

/* Cada conflito separado */
.fna-conflito {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #e3bcbc;
}

/* Nome do atleta */
.fna-conflito .fna-atleta {
    font-weight: 600;
    color: #0726a2;
}

/* Nome da prova */
.fna-conflito .fna-prova {
    font-weight: 700;
    color: #b3261e;
}

/* Texto auxiliar */
.fna-conflito small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #6b1a1a;
}


/* =====================================================
   ALERTAS PADRONIZADOS – ERRO / SUCESSO / INFO
   (sem ícones – texto já contém o aviso)
   ===================================================== */

.fna-alerta {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 18px;
    margin-bottom: 18px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    word-break: break-word;
    white-space: normal;
}

/* título ou destaque dentro da mensagem */
.fna-alerta strong {
    font-weight: 600;
}

/* ===== ERRO ===== */
.fna-alerta-erro {
    background: #fdecea;
    border-left: 5px solid #d63638;
    color: #842029;
}

/* espaçamento interno entre linhas de erro (caso tenha várias) */
.fna-alerta-erro br + br {
    display: block;
    content: "";
    margin-top: 6px;
}

/* ===== SUCESSO ===== */
.fna-alerta-sucesso,
.fna-sucesso { /* mantém compatibilidade com o existente */
    background: #e6ffed;
    border-left: 5px solid #2ecc71;
    color: #1e7e34;
}

/* ===== INFO ===== */
.fna-alerta-info {
    background: #eef3ff;
    border-left: 5px solid #0726a2;
    color: #0726a2;
}

/* ===== ALERTAS DENTRO DO FORM ===== */
#fna-form-inscricao .fna-alerta {
    margin-top: 0;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .fna-alerta {
        font-size: 13px;
        padding: 12px 14px;
    }
}