pre, code {
    font-family: inherit !important;
}

.formation-filter-wrapper {
    width: 100%;
    background: linear-gradient(135deg, #0a3d62 0%, #164a6b 100%);
    padding: 40px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: visible;
}
.formation-filter-container {
    margin: 0 auto;
    overflow: visible;
}
.filter-title-wrapper {
    width: 20%;
    flex: 0 0 20%;
    display: flex;
    align-items: center;
}
.formation-filter-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    text-align: left;
    white-space: break-spaces;
}
.formation-filter-form {
    width: 100%;
    overflow: visible;
}
.filter-fields-wrapper {
    display: flex;
    gap: 10px;
    align-items: stretch;
    flex-wrap: nowrap;
    overflow: visible;
    width: 100%;
}
.filter-title-wrapper {
    width: calc(20% - 8px);
    flex: 0 0 calc(20% - 8px);
    display: flex;
    align-items: center;
}
.filter-field {
    width: calc(20% - 8px);
    flex: 0 0 calc(20% - 8px);
    position: relative;
    overflow: visible;
    z-index: 1;
}
.filter-field.active {
    z-index: 10000;
}
.filter-submit {
    width: calc(20% - 8px);
    flex: 0 0 calc(20% - 8px);
}
.custom-select-wrapper {
    position: relative;
    width: 100%;
    overflow: visible;
    z-index: 1;
}
.custom-select-wrapper.active {
    z-index: 10001;
}
.custom-select-trigger {
    border: 2px solid rgba(255,255,255,0.6);
    width: 100%;
    background: transparent;
    border-radius: 8px;
    padding: 10px 35px 10px 12px;
    font-size: 15px;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
    min-height: 46px;
}
.custom-select-trigger:hover {
    border-color: #9dd962;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.custom-select-wrapper.active .custom-select-trigger {
    border-color: #9dd962;
    box-shadow: 0 2px 12px rgba(157, 217, 98, 0.3);
}
.filter-icon {
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.filter-icon img {
    width: 30px;
    height: 30px;
    display: block;
}
.filter-icon svg {
    width: 30px;
    height: 30px;
}
.selected-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ffffff;
    font-weight: 400;
    font-size: 14px
}
.custom-select-wrapper.has-selection .selected-text {
    color: #ffffff;
    font-weight: 500;
}
.arrow-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.arrow-icon svg {
    width: 10px;
    height: 10px;
}
.custom-select-wrapper.active .arrow-icon {
    transform: translateY(-50%) rotate(180deg);
}
.custom-select-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: none;
    max-height: 350px;
    overflow: hidden;
}
.custom-select-wrapper.active .custom-select-dropdown {
    display: block;
    animation: slideDown 0.2s ease;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.dropdown-options {
    padding: 8px 0;
    max-height: 350px;
    overflow-y: auto;
}
.dropdown-options::-webkit-scrollbar {
    width: 6px;
}
.dropdown-options::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.dropdown-options::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}
.dropdown-options::-webkit-scrollbar-thumb:hover {
    background: #999;
}
.checkbox-option {
    display: flex;
    align-items: center;
    padding: 8px 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    gap: 8px;
}
.checkbox-option:hover {
    background-color: #f8f9fa;
}
.checkbox-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 3px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.checkbox-option input[type="checkbox"]:checked + .checkbox-custom {
    background-color: #9dd962;
    border-color: #9dd962;
}
.checkbox-option input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.option-label {
    flex: 1;
    color: #333;
    font-size: 14px;
}
.btn-search {
    background: #B4D346;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 5px 15px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    height: 54px;
    width: 100%
}
.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(157, 217, 98, 0.4);
    background: linear-gradient(135deg, #c5f451 0%, #aae66f 100%);
}
.btn-search:active {
    transform: translateY(0);
}
.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.search-icon img {
    width: 30px;
    height: 30px;
    display: block;
}
.search-icon svg {
    width: 30px;
    height: 30px;
}
@media (max-width: 1024px) {
    .filter-fields-wrapper {
        flex-wrap: wrap;
    }
    .filter-title-wrapper {
        flex: 0 0 100%;
        width: 100%;
        margin-bottom: 15px;
        order: -1;
    }
    .filter-field {
        flex: 0 0 calc(50% - 7.5px);
        min-width: 0;
    }
    .filter-submit {
        flex: 0 0 100%;
    }
    .btn-search {
        width: 100%;
        justify-content: center;
    }
}
@media (max-width: 640px) {
    .formation-filter-wrapper {
        padding: 30px 15px;
    }
    .filter-title-wrapper {
        flex: 0 0 100%;
        width: 100%;
        margin-bottom: 15px;
        order: -1;
    }
    .formation-filter-title {
        font-size: 20px;
        white-space: break-spaces;
    }
    .filter-field {
        flex: 0 0 100%;
    }
    .custom-select-trigger {
        padding: 10px 35px 10px 12px;
        font-size: 14px;
        min-height: 44px;
    }
    .btn-search {
        padding: 10px 20px;
        min-height: 44px;
        font-size: 14px;
    }
}
.custom-select-trigger:focus,
.btn-search:focus {
    outline: 2px solid #9dd962;
    outline-offset: 2px;
}
.checkbox-option input[type="checkbox"]:focus + .checkbox-custom {
    outline: 2px solid #9dd962;
    outline-offset: 2px;
}