/* ============================================
   MAJORS SEARCH FILTER - STYLES
   ============================================ */

.majors-search-filter-wrapper {
    width: 100%;
    margin-bottom: 2rem;
}

.majors-search-filter-container {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
}

/* Search Box */
.majors-search-filter-search-box {
    margin-bottom: 1.25rem;
}

.majors-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.majors-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.majors-search-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    opacity: 0.6;
}

.majors-search-filter-input {
    width: 100%;
    padding: 16px 60px;
    border: 2px solid transparent;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    background: transparent;
    transition: all 0.3s ease;
}

.majors-search-filter-input:focus {
    outline: none;
    border-color: #006a5b;
}

.majors-search-filter-input::placeholder {
    color: #9CA3AF;
}

/* Filter Group */
.majors-search-filter-group {
    display: grid;
    margin-bottom: 1.25rem;
}

.majors-search-filter-item {
    display: flex;
    flex-direction: column;
}

.majors-search-filter-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

/* Custom Dropdown */
.majors-taxonomy-select.majors-custom-dropdown-converted {
    display: none;
}

.majors-custom-dropdown {
    position: relative;
    z-index: 10;
}

.majors-custom-dropdown.open {
    z-index: 9999;
}

.majors-custom-dropdown-selected {
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    padding: 12px 40px 12px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.majors-custom-dropdown-selected:hover {
    border-color: #006a5b;
    background: #F9FAFB;
}

.majors-custom-dropdown.open .majors-custom-dropdown-selected {
    border-color: #006a5b;
    box-shadow: 0 0 0 4px rgba(0, 106, 91, 0.1);
}

.majors-custom-dropdown-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #6B7280;
    transition: all 0.3s ease;
}

.majors-custom-dropdown.open .majors-custom-dropdown-arrow {
    transform: translateY(-50%) rotate(180deg);
    color: #006a5b;
}

.majors-custom-dropdown-list {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    overflow: hidden;
    z-index: 99999;
    display: none;
}

.majors-custom-dropdown.open .majors-custom-dropdown-list {
    display: block;
}

.majors-custom-dropdown-search {
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-bottom: 2px solid #E5E7EB;
    font-size: 14px;
    color: #374151;
}

.majors-custom-dropdown-search:focus {
    outline: none;
    border-bottom-color: #006a5b;
}

.majors-custom-dropdown-options {
    max-height: 220px;
    overflow-y: auto;
    padding: 4px;
}

.majors-custom-dropdown-option {
    padding: 12px 14px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.majors-custom-dropdown-option:hover {
    background: linear-gradient(to right, rgba(0, 106, 91, 0.08), rgba(0, 133, 122, 0.04));
    color: #006a5b;
    padding-left: 20px;
}

.majors-custom-dropdown-option.active {
    background: linear-gradient(to right, #006a5b, #00857a);
    color: white;
    font-weight: 600;
}

/* Actions */
.majors-search-filter-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid #E5E7EB;
}

.majors-search-filter-button {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.majors-search-button-primary {
    background: linear-gradient(to right, #006a5b, #00857a);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 106, 91, 0.2);
}

.majors-search-button-primary:hover {
    background: linear-gradient(to right, #005548, #006a5b);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 106, 91, 0.3);
}

.majors-reset-button-secondary {
    background: linear-gradient(135deg, #FF3F33, #ff6b61);
    color: white;
    box-shadow: 0 2px 4px rgba(255, 63, 51, 0.2);
}

.majors-reset-button-secondary:hover {
    background: linear-gradient(135deg, #e63629, #ff3f33);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 63, 51, 0.35);
}

/* Responsive */
@media (max-width: 767px) {
    .majors-search-filter-container {
        padding: 1rem;
        border-radius: 16px;
    }
    
    .majors-search-filter-input {
        padding: 14px 55px;
        font-size: 14px;
    }
    
    .majors-search-icon {
        left: 16px;
    }
    
    .majors-search-icon img {
        width: 18px;
        height: 18px;
    }
    
    .majors-search-filter-label {
        font-size: 12px;
    }
    
    .majors-custom-dropdown-selected {
        padding: 10px 36px 10px 12px;
        font-size: 13px;
    }
    
    .majors-search-filter-actions {
        flex-direction: column;
    }
    
    .majors-search-filter-button {
        width: 100%;
        padding: 11px 20px;
        font-size: 13px;
    }
}
