/**
 * RHSS Searchable Select Component
 * Rastriya Hindu Shakthi Sangathan
 */
.rhss-searchable-wrapper {
    position: relative;
    width: 100%;
}

.rhss-searchable-trigger {
    width: 100%;
    min-height: 48px;
    padding: 11px 40px 11px 14px;
    background-color: #ffffff;
    border: 1px solid var(--line, #ECE0CB);
    border-radius: 11px;
    font-size: 14px;
    font-family: inherit;
    color: var(--ink, #2B2420);
    text-align: left;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    transition: border-color .18s, box-shadow .18s, background-color .18s;
}

.rhss-searchable-trigger:hover {
    border-color: var(--orange, #F77841);
}

.rhss-searchable-trigger:focus,
.rhss-searchable-wrapper.is-open .rhss-searchable-trigger {
    border-color: var(--orange, #F77841);
    box-shadow: 0 0 0 3px rgba(247, 120, 65, 0.16);
    outline: none;
}

.rhss-searchable-trigger.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.18) !important;
}

.rhss-searchable-trigger .trigger-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 8px;
    font-weight: 500;
}

.rhss-searchable-trigger .trigger-label.placeholder {
    color: #9C948B;
    font-weight: 400;
}

.rhss-searchable-trigger .trigger-icons {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
}

.rhss-searchable-trigger .trigger-clear {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #EFE7DC;
    color: #6B625B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    line-height: 1;
    transition: all .15s;
}

.rhss-searchable-trigger .trigger-clear:hover {
    background: #E6612A;
    color: #ffffff;
}

.rhss-searchable-trigger .trigger-arrow {
    pointer-events: none;
    color: #6B625B;
    font-size: 11px;
    transition: transform .2s ease;
}

.rhss-searchable-wrapper.is-open .trigger-arrow {
    transform: rotate(180deg);
    color: var(--orange, #F77841);
}

.rhss-searchable-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1.5px solid var(--orange, #F77841);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(43, 36, 32, 0.16);
    z-index: 1050;
    display: none;
    overflow: hidden;
    animation: rhssSelectFadeIn 0.15s ease-out;
}

@keyframes rhssSelectFadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.rhss-searchable-wrapper.is-open .rhss-searchable-menu {
    display: block;
}

.rhss-search-input-wrap {
    padding: 10px 12px;
    background: #FFF7EC;
    border-bottom: 1px solid var(--line, #ECE0CB);
    position: relative;
}

.rhss-search-input {
    width: 100%;
    height: 38px;
    padding: 6px 12px 6px 36px;
    font-size: 13.5px;
    border: 1px solid #ECE0CB;
    border-radius: 8px;
    background: #ffffff;
    color: #2B2420;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
}

.rhss-search-input:focus {
    border-color: var(--orange, #F77841);
    box-shadow: 0 0 0 2px rgba(247, 120, 65, 0.15);
}

.rhss-search-icon {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--orange, #F77841);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rhss-options-list {
    max-height: 240px;
    overflow-y: auto;
    margin: 0;
    padding: 6px 0;
    list-style: none;
}

.rhss-options-list::-webkit-scrollbar {
    width: 6px;
}

.rhss-options-list::-webkit-scrollbar-thumb {
    background: #E0D3C1;
    border-radius: 4px;
}

.rhss-option-item {
    padding: 9px 14px;
    font-size: 13.5px;
    color: #2B2420;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background .12s, color .12s;
}

.rhss-option-item:hover,
.rhss-option-item.is-focused {
    background-color: #FFF2EB;
    color: #E6612A;
}

.rhss-option-item.is-selected {
    background-color: #FFEDE0;
    color: #E6612A;
    font-weight: 600;
}

.rhss-option-item .option-check {
    font-size: 12px;
    color: #E6612A;
    display: none;
}

.rhss-option-item.is-selected .option-check {
    display: inline-block;
}

.rhss-option-item.is-hidden {
    display: none !important;
}

.rhss-no-results {
    padding: 16px 14px;
    text-align: center;
    font-size: 13px;
    color: #8C827A;
    display: none;
}

.rhss-no-results.is-visible {
    display: block;
}

.rhss-select-error-msg {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: none;
    font-weight: 500;
}

.rhss-select-error-msg.is-visible {
    display: block;
}
