/* Estilos para a barra de busca integrada ao header */
.header-search-container {
    flex-grow: 1;
    max-width: 600px;
    margin: 0 30px;
    order: 2; /* Fica entre o logo (1) e o menu/CTA (3) */
}

.search-input-wrapper-header {
    display: flex;
    background: #000;
    border: 1px solid #007bff;
    border-radius: 4px;
    padding: 2px;
}

.search-field-header {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 8px 15px;
    font-size: 14px;
    outline: none;
    width: 100%;
}

.search-field-header::placeholder {
    color: #888;
}

.search-submit-header {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 13px;
}

.search-submit-header:hover {
    background: #0056b3;
}

/* Ajustes no layout original para acomodar a busca */
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap !important;
}

.logo { order: 1; }
.main-navigation { order: 3; margin-right: 15px; }
.header-cta { order: 4; }

/* Ajuste responsivo */
@media (max-width: 1100px) {
    .main-navigation { display: none; } /* Esconde o menu se não houver espaço */
}

@media (max-width: 768px) {
    .header-flex {
        flex-direction: column;
        gap: 15px;
    }
    .header-search-container {
        width: 100%;
        margin: 0;
        order: 2;
    }
    .logo { order: 1; }
    .header-cta { order: 3; }
}
