/* Estilos gerais */
body { background-color: #FCEAD8; }

/* Estilos para o mapa */
#leaflet-map { height: 500px; width: 100%; }

#novo_logo_container {
    display: none; /* Começa oculto por padrão */
}   

/* Estilos para seções */
.section {
    margin: 20px 0px;
    padding: 20px;
    background: #FCF5EE;
    border-radius: 20px;
}

.toggle-section {
    cursor: pointer;
    margin: 10px 0;
    position: relative;
    padding-left: 25px;
}

.toggle-section::before {
    content: '▼';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    font-size: 0.8em;
}

.toggle-section.collapsed::before {
    transform: translateY(-50%) rotate(-90deg);
}

/* Seções principais iniciam fechadas */
.main-section-content {
    display: none;
}

/* Estilos para erros */
.invalid-feedback {
    color: #dc3545;
    font-size: 0.875em;
}

.is-invalid {
    border-color: #dc3545 !important;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    border-radius: 4px;
    padding: 0.5rem;
    margin-top: 0.25rem;
}

/* Estilos para campos */
.form-field {
    margin-bottom: 1.5rem;
}

.field-help {
    color: #264263;
    font-size: 0.875rem;
}

.field-label {
    color: #A32C00;
    font-family: Barlow, sans-serif;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

/* Estilos para as tags */
.tag-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-options .form-check {
    background: #e9ecef;
    padding: 5px 10px;
    border-radius: 20px;
    margin-right: 5px;
}

.tag-options .form-check-label {
    margin-left: 5px;
}

.form-select {
    max-width: 20%;
    width: 20%;
}

/* Container específico para o logo existente */
#logo_existente_container {
    max-width: 100%;
    overflow: hidden;
}

/* Estilos para os selects de data */
.mes-ano-container .form-select {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
}

/* Garantir que os selects se ajustem em mobile */
@media (max-width: 768px) {
    .mes-ano-container .row {
        margin-left: -5px;
        margin-right: -5px;
    }

    .mes-ano-container .col-md-6 {
        padding-left: 5px;
        padding-right: 5px;
    }

    .form-select {
        font-size: 16px; /* Prevenir zoom em iOS */
    }
}

.mes-ano-container .form-label {
    font-size: 0.875rem;
    color: #A32C00;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

/**/
/* Estilos para o contador de caracteres */
.char-counter-container {
    text-align: right;
}

.char-counter-warning {
    color: #dc3545 !important;
    font-weight: bold;
}

.char-counter-normal {
    color: #6c757d !important;
}

/* Estilo para o textarea do resumo */
#id_resumo {
    resize: vertical;
    min-height: 100px;
    max-height: 300px;
}

.participe-image {
    max-width: 100%;
    height: auto;
    max-height: 480px;
}

/* Mobile */
@media (max-width: 768px) {
    .participe-image {
        position: static;
        max-height: 260px;
        width: auto;
        margin: 0 auto 20px auto;
        display: block;
    }

    .ps-md-5 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

@media (max-width: 576px) {
    .participe-image {
        display: none;
    }
}

/**/
.select2-container--default .select2-selection--single {
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.5;
    padding-left: 0;
    color: #212529;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    top: 0;
    right: 0.5rem;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #6c757d;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    margin-right: 1.5rem;
    font-size: 1.2rem;
    line-height: 1;
    color: #6c757d;
}
