/* Estilos específicos para Posto - Aproveitando Bootstrap e estilos do fornecedor */

/* Classes Bootstrap customizadas para manter consistência */
.d-flex {
    display: flex;
}

.align-items-end {
    align-items: flex-end;
}

.gap-3 {
    gap: 12px;
}

.flex-grow-1 {
    flex-grow: 1;
}

.mt-3 {
    margin-top: 16px;
}

/* Layout Sobre o Posto - Lado a lado */
.sobre-posto-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.sobre-posto-left {
    width: 100%;
}

.sobre-posto-right {
    width: 100%;
}

/* Grid de Estrutura do Posto - 2 colunas */
.estrutura-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.estrutura-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Outro? Adicione - Mesma largura das colunas */
.sobre-posto-outro {
    width: 100%;
    max-width: calc(50% - 24px);
    margin-top: 32px;
}

/* Botão Adicionar Outro */
.btn-add-outro {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 120%;
    color: #ffffff;
    background-color: #084D2B;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-add-outro:hover {
    background-color: #0B4626;
}

/* Lista de Outros Itens */
#outros-list,
#outros-beneficios-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.outro-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background-color: #F4F9F7;
    border: 1px solid #084D2B;
    border-radius: 8px;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #414341;
}

.outro-item-text {
    flex: 1;
}

.btn-remove-outro {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    color: #E74A3B;
    transition: all 0.2s ease;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-outro:hover {
    background-color: rgba(231, 74, 59, 0.1);
}

/* Seção de Horários - Grid 2 linhas (4 colunas na primeira, 3 na segunda) */
.horarios-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px 33px;
    margin-bottom: 24px;
}

.horario-item {
    display: flex;
    flex-direction: column;
    gap: 11px;
    min-width: 230px;
    flex: 0 0 auto;
}

.horario-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.horario-checkbox-label {
    margin: 0;
    padding: 0;
}

.horario-checkbox-label .form-checkbox {
    width: 20px;
    height: 20px;
}

.horario-dia {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #414341;
    margin: 0;
    line-height: 1.5;
}

.horario-time-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.horario-inputs {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.horario-time-input {
    width: 60px;
    height: 30px;
    font-size: 14px;
    font-family: 'Source Sans Pro', sans-serif;
    padding: 0 8px;
    border: 1px solid #d1d7d1;
    border-radius: 6px;
    color: #414341;
    background-color: white;
    flex-shrink: 0;
    text-align: center;
    box-sizing: border-box;
}

.horario-time-input::placeholder {
    color: #aaafaa;
}

.horario-separator {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #414341;
    white-space: nowrap;
    flex-shrink: 0;
}

.horario-24h {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
}

.horario-24h .form-checkbox-label {
    margin: 0;
    padding: 0;
    font-size: 14px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Source Sans Pro', sans-serif;
    color: #414341;
}

.horario-24h .form-checkbox-label span {
    line-height: 1.5;
}

.horario-24h .form-checkbox {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Responsividade para horários */
@media (max-width: 992px) {
    .horarios-grid {
        gap: 20px;
    }
    
    .horario-item {
        min-width: 220px;
    }
}

@media (max-width: 768px) {
    .horario-item {
        min-width: 100%;
        width: 100%;
    }
}

/* Subseção */
.form-section-subtitle {
    margin-bottom: 32px;
}

.form-subsection-title {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 120%;
    color: #414341;
    margin-bottom: 24px;
}

/* Ajustes para checkboxes em grid */
.form-grid .form-group .form-checkbox-label {
    margin: 0;
    padding: 8px 0;
}

/* Grid de Benefícios - 3 colunas */
.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Outro? Adicione - Mesma largura de uma coluna do grid de benefícios (3 colunas) */
.beneficios-outro-wrapper {
    margin-top: 32px;
    width: 100%;
    max-width: calc(33.333% - 16px);
}

/* Responsividade para grid de benefícios */
@media (max-width: 992px) {
    .beneficios-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .beneficios-outro-wrapper {
        max-width: calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    .beneficios-grid {
        grid-template-columns: 1fr;
    }

    .beneficios-outro-wrapper {
        max-width: 100%;
    }
}

/* Garantir que os checkboxes de benefícios tenham altura consistente e mesmo tamanho */
.beneficios-grid .form-group {
    display: flex;
    align-items: flex-start;
    min-height: 48px;
}

.beneficios-grid .form-group .form-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 0;
}

.beneficios-grid .form-group .form-checkbox-label .form-checkbox {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.beneficios-grid .form-group .form-checkbox-label span {
    flex: 1;
    line-height: 1.5;
}

/* Responsividade geral - usando media queries do fornecedor como base */
@media (max-width: 1200px) {
    .form-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }

    .sobre-posto-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .estrutura-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .d-flex {
        flex-direction: column;
    }

    .btn-add-outro {
        width: 100%;
    }
}

