/* =========================================================
   KNOWLEDGEBASE SEARCH INPUT STYLING
   ========================================================= */

.knowledgebase-search-container {
    font-family: 'Segoe UI', Roboto, sans-serif;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 25px;
}

/* BASIS ZOEKBALK (Desktop: 1 rij) */
.knowledgebase-search-search-bar {
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 50px;
    padding: 2px 3px 2px 15px;
    background: #fff;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    gap: 6px;
}

/* Input Wrapper */
.knowledgebase-search-input-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 0;
    min-width: 0;
    position: relative;
}

/* Icoontje in de input (links) - Pixel-accuraat gecentreerd */
.knowledgebase-search-icon {
    color: #94a3b8;
    font-size: 16px;
    margin-right: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    line-height: 1;
}

/* Inputveld */
.knowledgebase-search-input-field {
    flex: 1;
    padding: 12px 5px;
    border: none;
    outline: none;
    font-size: 15px;
    background: transparent;
    min-width: 60px;
    box-sizing: border-box;
}

/* Knoppen basis */
.knowledgebase-search-submit-btn { 
    background: #0f172a;
    color: white;
    border: none;
    padding: 0 25px;
    font-weight: 600;
    border-radius: 40px;
    cursor: pointer;
    min-width: 130px;
    height: 43px;
    font-size: 13px;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.knowledgebase-search-mobile-submit-btn {
    display: none;
}

.knowledgebase-search-btn-text { display: inline-block; position: relative; z-index: 2; }
.knowledgebase-search-btn-loading { display: none !important; }

.knowledgebase-search-mobile-btn-text { display: inline-block; }
.knowledgebase-search-mobile-btn-loading { display: none !important; }

.knowledgebase-search-submit-btn.knowledgebase-search-is-loading .knowledgebase-search-btn-text,
.knowledgebase-search-mobile-submit-btn.knowledgebase-search-is-loading .knowledgebase-search-mobile-btn-text { display: none !important; }

.knowledgebase-search-submit-btn.knowledgebase-search-is-loading .knowledgebase-search-btn-loading,
.knowledgebase-search-mobile-submit-btn.knowledgebase-search-is-loading .knowledgebase-search-mobile-btn-loading { display: inline-block !important; }

.knowledgebase-search-submit-btn:hover { background: #1e293b; }

/* =========================================================
   RESPONSIEVE MEDIA QUERY (< 768px)
   ========================================================= */
@media (max-width: 768px) {
    .knowledgebase-search-main-container { padding: 0; }
    
    .knowledgebase-search-container { overflow: hidden; }

    .knowledgebase-search-search-bar {
        flex-direction: column;
        align-items: stretch;
        border: none;
        border-radius: 0;
        padding: 0;
        background: transparent;
        box-shadow: none !important;
        gap: 12px;
        width: 100%;
        box-sizing: border-box;
    }

    .knowledgebase-search-input-wrapper {
        width: 100%;
        border: 1px solid #cbd5e1;
        border-radius: 30px;
        background: #fff;
        padding: 0 4px 0 12px;
        box-sizing: border-box;
    }

    .knowledgebase-search-input-field {
        font-size: 14px;
        width: 100%;
    }

    .knowledgebase-search-submit-btn { display: none !important; }

    .knowledgebase-search-mobile-submit-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        background: #0f172a;
        color: #fff;
        border: none;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        cursor: pointer;
        flex-shrink: 0;
        margin-left: 3px;
        font-size: 13px;
        transition: background 0.2s;
        min-width: unset;
        padding: 0;
    }
    
    .knowledgebase-search-mobile-submit-btn:hover { background: #1e293b; }
}