/* Start custom CSS */@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');
 

@media (max-width: 767px) {
    .step-labels {
        display: block; /* Ou você pode usar 'grid' */
        margin-bottom: 20px;
    }

    /* Se estiver usando grid e quiser alinhar os itens, adicione regras para grid */
    /* 
    .step-labels {
        display: grid;
        grid-template-columns: 1fr; 
        gap: 10px; 
    }
    */
}
/* Estilos para o modal */

/* Estilo base para dispositivos móveis (mobile first) */
.checkbox-container {
    display: flex;
    flex-direction: column; /* Empilha os itens verticalmente */
    gap: 10px; /* Espaçamento entre os itens */
}

.checkbox-item {
    background-color: #f9f9f9; /* Cor de fundo para o item */
    border: 1px solid #ddd; /* Borda ao redor do item */
    border-radius: 5px; /* Cantos arredondados */
    padding: 10px; /* Espaçamento interno */
    display: flex;
    align-items: center;
    justify-content: space-between; /* Distribui espaço entre o texto e o checkbox */
    width: 100%; /* Largura total no mobile */
}

.checkbox-item input[type="checkbox"] {
    margin-right: 10px; /* Margem direita do checkbox */
    position: relative;
    top: 0;
    border-radius: 50%; /* Torna o checkbox redondo */
    width: 20px; /* Largura do checkbox */
    height: 20px; /* Altura do checkbox */
}

/* Estilos para tablets (768px ou maior) */
@media (min-width: 768px) {
    .checkbox-container {
        flex-direction: row; /* Coloca os itens em uma linha para telas maiores */
        flex-wrap: wrap; /* Permite que os itens quebrem linha se necessário */
        gap: 15px; /* Espaçamento maior entre os itens */
    }
    
   

    .checkbox-item {
        width: calc(50% - 15px); /* Define a largura dos itens em telas maiores */
        border-radius: 12px;
    }
}

/* Estilos para desktops (1024px ou maior) */
@media (min-width: 1024px) {
    
   
    .checkbox-item {
        width: calc(33.33% - 15px); /* Define a largura dos itens em telas ainda maiores */
        border-radius: 12px;
    }
}

.image-container {
    position: relative;
    display: inline-block;
    margin: 5px;
    width: 100px; /* Tamanho da miniatura */
    height: 100px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    background-color: #f9f9f9;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.delete-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(255, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-image:hover {
    background-color: rgba(255, 0, 0, 1);
}


#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

#loading-spinner {
    border: 16px solid #f3f3f3;
    border-top: 16px solid #3498db;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    border-radius: 22px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.step-labels {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    width: 100%;
}

.step-label {
    padding: 10px;
    width: 100%;
    cursor: pointer;
}

.step-label.active {
    font-weight: bold;
    text-decoration: underline;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

/* Media query para tablets (telas entre 768px e 1023px) */
@media (max-width: 1023px) {
    .modal-content {
        width: 70%; /* Aumenta a largura no tablet */
        margin: 10% auto; /* Ajusta a margem superior */
    }
}

/* Media query para dispositivos móveis (telas menores que 768px) */
@media (max-width: 767px) {
    .modal-content {
        width: 90%; /* Quase a largura total para mobile */
        margin: 20% auto; /* Ajusta a margem superior */
        padding: 15px; /* Reduz o padding para mobile */
    }

    .close {
        font-size: 24px; /* Reduz o tamanho do botão de fechar no mobile */
    }

    .step-labels {
        flex-direction: column; /* Empilha as labels em dispositivos móveis */
        gap: 10px; /* Espaçamento entre as labels */
        width: 100%;
    }

    .form-navigation {
        flex-direction: column; /* Empilha os botões de navegação em dispositivos móveis */
        gap: 10px; /* Espaçamento entre os botões */
    }
}
 
   .select2-container .select2-selection--single {
        height: 50px !important;
        border: 1px solid #d3d3d3 !important;
        border-radius: 15px !important;
        padding: 10px !important;
    }

  .required::after {
            content: " *";
            color: red !important;
        }
        
        .required::before {
            content: " *";
            color: red !important;
        }

   

     .select2-container--default .select2-results__option--highlighted[aria-selected] {
        background-color: #000000 !important; /* Altere a cor de fundo para preto */
        color: white !important; /* Altere a cor do texto para branco */
    }
    
    .select-container{
        margin-top: 10px;
        margin-bottom: 10px;
    }
 
 

 
 
  .swal2-radius {
        border-radius: 25px !important;
    }

    .swal2-confirm-button {
        background-color: #3498db !important;
        color: white !important;
        border: none !important;
        border-radius: 5px !important;
        padding: 10px 20px !important;
        font-size: 16px !important;
        cursor: pointer !important;
    }

    .swal2-confirm-button:hover {
        background-color: #2980b9 !important;
    }
 
 .loading-spinner {
        border: 8px solid #f3f3f3;
        border-top: 8px solid #3498db;
        border-radius: 50%;
        width: 60px;
        height: 60px;
        animation: spin 2s linear infinite;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 1000;
        display: none;
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }
    
   



       .upload-container {
        border: 2px dashed #ddd;
        border-radius: 10px;
        padding: 20px;
        text-align: center;
        margin-bottom: 20px;
        position: relative;
    }

    .upload-container input[type="file"] {
        display: none;
    }

    .upload-placeholder {
        cursor: pointer;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 200px;
    }

    .upload-placeholder img {
        max-width: 50px;
        margin-bottom: 10px;
    }

    .upload-placeholder p {
        font-weight: bold;
        margin-bottom: 5px;
    }

    .upload-placeholder small {
        color: #888;
        margin-bottom: 10px;
    }

    .upload-placeholder button {
        background-color: #000;
        color: white;
        border: 2px solid #000;
        padding: 10px 20px;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s, border-color 0.3s;
    }

    .upload-placeholder button:hover {
        background-color: white;
        color: black;
        border-color: #000;
    }

    .preview-container {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
        margin-top: 20px;
    }

    .img-preview {
        width: 100px;
        height: 100px;
        object-fit: cover;
        border: 1px solid #ddd;
        border-radius: 5px;
    }
    
    
    body {
        font-family: 'Poppins', sans-serif;
    }

    .form-step label {
        display: block;
        margin-bottom: 5px;
        font-weight: bold;
        font-size: 13px;
       
    }

    .form-step input, .form-step select, .form-step textarea {
        width: 100%;
        padding: 10px;
        margin-bottom: 20px;
        border: 1px solid #EBEBEB;
        padding: 18px;
        border-radius: 20px;
    }

    .form-navigation button {
        background-color: #000;
        border: none;
        color: white;
        padding: 10px 20px;
        cursor: pointer;
        border-radius: 5px;
        transition: background-color 0.3s;
    }

    .form-navigation button:hover {
        background-color: #333;
    }

    .step-labels {
        display: flex;
        justify-content: space-around;
        margin-bottom: 20px;
        width: 100%;
    }

    .step-label {
        flex: 1;
        text-align: center;
        padding: 10px 0;
        border-bottom: 2px solid #ddd;
        cursor: pointer;
        transition: border-color 0.3s;
        font-size: 14px;
        width: 100%;
    }

    .step-label.active {
        border-bottom: 2px solid #000;
        font-weight: bold;
    }

    .step-label:hover {
        border-bottom: 2px solid #000;
    }

    .form-step h2 {
        font-size: 16px;
        color: #000;
    }

    .form-navigation {
        display: flex;
        justify-content: space-between;
        margin-top: 20px;
    }
    
    
    .required-asterisk {
    color: red;
    margin-left: 5px;
}

.invalid {
    border-color: red;
}

/* Adiciona o asterisco vermelho aos campos obrigatórios */
label.required::after {
    content: " *";
    color: red;
}

/* Estilo para campos com erro */
input:invalid,
textarea:invalid,
select:invalid {
    border-color: red;
}






@media only screen and (max-width: 768px) {
    /* Estilos para dispositivos móveis */
   
.custom-search-filter{
    background: white;
    padding: 14px;
    border-radius: 14px;
    display: block !important;
   
}

select, input[type="text"]{
    border-radius: 12px;
    margin-bottom: 10px;
    padding: 15px;
    border: 1px solid #e7e7e7;
    font-family: 'Poppins';
    font-size: 13px;
}

#botaoo {
    padding: 14px;
    margin-top: 0px;
    flex: 1;
    background: black;
    border: none;
    color: white;
    font-family: 'Poppins';
    border-radius: 12px;
    width: 100%;
}

}


.custom-search-filter{
    background: white;
    padding: 14px;
    border-radius: 14px
}

select, input[type="text"]{
    border-radius: 12px;
    padding: 15px;
    border: 1px solid #e7e7e7;
    font-family: 'Poppins';
    font-size: 13px;
}

#botaoo {
    flex: 1;
    background: black;
    border: none;
    color: white;
    font-family: 'Poppins';
    border-radius: 12px;
}


.custom-search-filter select:focus {
    border-color: #e7e7e7;
    background-color: #fff;
    
}

.custom-search-filter option {
    background-color: #fff;
    color: #333;
}

/* Animation for select */
.custom-select-wrapper {
    position: relative;
}

.custom-select-wrapper::after {
    content: '25BC'; /* Down arrow */
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    pointer-events: none;
}

.custom-select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}/* End custom CSS */