/* =====================================================
   CUSTOM SEARCH FILTER – CSS FINAL
   Mobile First • Responsivo • UX otimizado
   ===================================================== */

/* -------------------------
   CONTAINER
-------------------------- */
.csf-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px 50px;
}

/* -------------------------
   HEADER
-------------------------- */
.csf-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.csf-header h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.2;
    margin: 0;
}

.csf-header h2 svg {
    font-size: 24px;
}

.csf-header h2 span {
    font-size: 18px;
}

.csf-header p {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #777;
    line-height: 1.4;
    margin: 0;
}

/* -------------------------
   FORM / GRID
-------------------------- */
.csf-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
}

/* Tablet */
@media (min-width: 768px) {
    .csf-form {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .csf-form {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* -------------------------
   SELECTS
-------------------------- */
.csf-select {
    width: 100%;
    height: 56px;
    padding: 0 20px !important;

    font-size: 14px !important;
    font-weight: 600;

    border-radius: 30px;
    border: 1px solid #d1d5db;
    background-color: #ffffff;

    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.csf-select:focus {
    outline: none;
    border-color: #0463ef;
    box-shadow: 0 0 0 3px rgba(4, 99, 239, 0.15);
}

.csf-select:disabled {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

/* -------------------------
   ACTIONS (BOTÕES)
-------------------------- */
.csf-actions {
    display: flex;
    gap: 12px;
    width: 100%;
}

/* Botão base */
.csf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    height: 56px;
    padding: 0 36px;

    border-radius: 30px;
    border: none;

    font-size: 14px;
    font-weight: 900;
    line-height: 1;

    cursor: pointer;
    white-space: nowrap;

    transition: background-color .2s ease,
                transform .15s ease,
                box-shadow .15s ease;
}

/* Hover / Active (desktop) */
@media (hover: hover) {
    .csf-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 14px rgba(0,0,0,.15);
    }
}

.csf-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(0,0,0,.18);
}

/* Botão principal */
.csf-btn-primary {
    background-color: #0463ef;
    color: #ffffff;
}

.csf-btn-primary:hover {
    background-color: #0245a7;
}

/* Botão secundário */
.csf-btn-secondary {
    background-color: #e5e7eb;
    color: #374151;
}

.csf-btn-secondary:hover {
    background-color: #d1d5db;
}

/* -------------------------
   MOBILE REFINADO
-------------------------- */
@media (max-width: 767px) {

    .csf-container {
        gap: 24px;
        padding-bottom: 40px;
    }

    .csf-header h2 {
        font-size: 22px;
    }

    .csf-header h2 span {
        font-size: 16px;
    }

    .csf-header p {
        font-size: 13px;
    }

    .csf-select {
        height: 54px;
        font-size: 15px !important;
    }

    .csf-actions {
        flex-direction: column;
        gap: 14px;
    }

    .csf-btn {
        width: 100%;
        height: 54px;
        font-size: 15px;
    }

    /* Remove efeitos desnecessários no toque */
    .csf-btn:hover {
        transform: none;
        box-shadow: none;
    }
}

/* =========================
   AÇÕES / BOTÕES
   ========================= */

.csf-actions {
    grid-column: 1 / -1; /* FAZ OCUPAR TODAS AS COLUNAS DO GRID */
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

/* Base dos botões */
.csf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    height: 56px;
    padding: 0 36px;

    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;

    cursor: pointer;
    border: none;
    white-space: nowrap;

    transition: background-color .2s ease,
                transform .15s ease,
                box-shadow .15s ease;
}

/* Hover geral */
.csf-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0,0,0,.15);
}

/* Active */
.csf-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(0,0,0,.18);
}

/* Botão Pesquisar */
.csf-btn-primary {
    background-color: #0463ef;
    color: #ffffff;
}

.csf-btn-primary:hover {
    background-color: #0245a7;
}

/* Botão Limpar */
.csf-btn-secondary {
    background-color: #e5e7eb;
    color: #374151;
}

.csf-btn-secondary:hover {
    background-color: #d1d5db;
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 768px) {
    .csf-actions {
        flex-direction: column;
        gap: 10px;
    }

    .csf-btn {
        width: 100%;
    }
}

