/*
|--------------------------------------------------------------------------
| V Future Step - Global Control Size v3
|--------------------------------------------------------------------------
| Load LAST after Bootstrap, bootstrap-select and project CSS.
*/

:root {
    --vfs-control-height: 35px;
    --vfs-control-font-size: 14px;
    --vfs-control-line-height: 21px;
    --vfs-control-radius: 4px;
    --vfs-control-border: #cccccc;
    --vfs-textarea-height: 55px;
    --vfs-mobile-control-height: 44px;
}

/* Native controls */
input.form-control, select.form-control, textarea.form-control {
    box-sizing: border-box;
    border: 1px solid var(--vfs-control-border);
    border-radius: var(--vfs-control-radius);
    box-shadow: none;
    font-size: var(--vfs-control-font-size) !important;
}

input.form-control, select.form-control {
    height: var(--vfs-control-height) !important;
    min-height: var(--vfs-control-height) !important;
    padding: 6px 12px !important;
    line-height: var(--vfs-control-line-height) !important;
}

textarea.form-control {
    height: var(--vfs-textarea-height) !important;
    min-height: var(--vfs-textarea-height) !important;
    padding: 8px 12px !important;
    line-height: 20px !important;
    resize: vertical;
}

/* Bootstrap Select */
.bootstrap-select {
    height: var(--vfs-control-height) !important;
    min-height: var(--vfs-control-height) !important;
    margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; vertical-align: middle;
}

.bootstrap-select > .dropdown-toggle {
    height: var(--vfs-control-height) !important;
    min-height: var(--vfs-control-height) !important;
    padding: 6px 30px 6px 12px !important;
    border: 1px solid var(--vfs-control-border) !important;
    border-radius: var(--vfs-control-radius) !important;
    background: #ffffff !important;
    color: #333333 !important;
}

/* 
|--------------------------------------------------------------------------
| Search Box Custom Styles (Fixed Conflict)
|--------------------------------------------------------------------------
*/
/* 
|--------------------------------------------------------------------------
| Search Box Custom Styles (Fixed Alignment & Non-Clipping)
|--------------------------------------------------------------------------
*/
.vfs-custom-search-section .custom-search-box {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 925px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: 7px solid rgba(255, 255, 255, 0.65) !important;
    border-radius: 35px !important;
    background: #ffffff !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    position: relative !important;
    overflow: visible !important;
    height: 56px !important;
}

.vfs-custom-search-section .custom-search-box > #searcharea {
    flex: 1 1 auto !important;
    height: 42px !important;
    min-height: 42px !important;
    line-height: 42px !important;
    border: none !important;
    background: transparent !important;
    border-radius: 28px 0 0 28px !important;
    padding: 0 20px !important;
    font-size: 14px !important;
    color: #333333 !important;
    box-shadow: none !important;
    outline: none !important;
    margin: 0 !important;
}

.vfs-custom-search-section .custom-search-box > .super-select {
    flex: 0 0 220px !important;
    width: 220px !important;
    border-left: 1px solid #e2e8f0 !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
}

.vfs-custom-search-section .custom-search-box .bootstrap-select {
    width: 100% !important;
    margin: 0 !important;
    background: transparent !important;
}

.vfs-custom-search-section .custom-search-box .bootstrap-select > .dropdown-toggle,
.vfs-custom-search-section .custom-search-box .bootstrap-select > button {
    height: 42px !important;
    min-height: 42px !important;
    line-height: 42px !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 30px 0 15px !important;
    font-size: 14px !important;
    color: #555555 !important;
    border-radius: 0 !important;
}

.vfs-custom-search-section .custom-search-box .btn-left-fix {
    position: static !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

.vfs-custom-search-section .custom-search-box #callbackModalforsearch {
    height: 42px !important;
    line-height: 42px !important;
    padding: 0 30px !important;
    border: none !important;
    border-radius: 0 28px 28px 0 !important;
    background-color: #2d4b94 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.2s ease !important;
    margin: 0 !important;
}

.vfs-custom-search-section .custom-search-box #callbackModalforsearch:hover {
    background-color: #1a3068 !important;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .vfs-custom-search-section .custom-search-box {
        display: flex !important;
        flex-direction: column !important;
        border-radius: 16px !important;
        height: auto !important;
        padding: 8px !important;
        border: 4px solid rgba(255, 255, 255, 0.65) !important;
    }
    .vfs-custom-search-section .custom-search-box > #searcharea {
        width: 100% !important;
        height: 42px !important;
        border-radius: 10px !important;
        text-align: center !important;
        margin-bottom: 6px !important;
    }
    .vfs-custom-search-section .custom-search-box > .super-select {
        width: 100% !important;
        flex: 1 1 100% !important;
        border-left: none !important;
        margin-bottom: 6px !important;
    }
    .vfs-custom-search-section .custom-search-box .btn-left-fix {
        width: 100% !important;
    }
    .vfs-custom-search-section .custom-search-box #callbackModalforsearch {
        width: 100% !important;
        border-radius: 10px !important;
        height: 42px !important;
    }
}

/* Dropdown Menu Visibility Fixes */
.vfs-custom-search-section .custom-search-box .bootstrap-select .dropdown-menu {
    top: 100% !important;
    min-width: 220px !important;
    margin: 5px 0 0 !important;
    padding: 5px 0 !important;
    border-radius: 6px !important;
    z-index: 999999 !important;
    background-color: #ffffff !important;
}

.vfs-custom-search-section .custom-search-box .bootstrap-select .dropdown-menu.inner {
    max-height: 250px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

.vfs-custom-search-section .custom-search-box .bootstrap-select .dropdown-menu li a {
    padding: 8px 15px !important;
    font-size: 14px !important;
    line-height: 20px !important;
    color: #333333 !important;
}

.vfs-custom-search-section .custom-search-box .bootstrap-select .dropdown-menu li a:hover {
    background-color: #f5f5f5 !important;
}