/* Estilos para selects personalizados en formulario de solicitud */
.select-wrapper {
    position: relative;
}

select option:hover,
select option:focus,
select option:checked,
select option:active,
select option:selected {
    background-color: #6BC2C3;
    color: #ffffff;
}

.select-wrapper select:focus {
    outline: none;
    border-color: #6BC2C3;
    box-shadow: 0 0 0 1px #6BC2C3;
}

.select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 40px;
    cursor: pointer;
    width: 100%;
}

.select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-slate-light, #94a3b8);
    display: flex;
    align-items: center;
}

/* Custom Select Dropdown */
.custom-select {
    position: relative;
}

.custom-select.is-open {
    z-index: 10000;
}

.custom-select-trigger {
    width: 100%;
    background-color: rgba(249, 250, 251, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.3);
    border-radius: 0.5rem;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: border-color 0.2s, box-shadow 0.2s;
    opacity: 0.9;
}

.custom-select-trigger:hover,
.custom-select-trigger:focus-visible,
.custom-select-trigger.open {
    border-color: #6BC2C3;
    box-shadow: 0 0 0 1px #6BC2C3;
}

.custom-select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #94a3b8;
    display: flex;
    align-items: center;
}

.custom-select-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background-color: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.5);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 9999;
    max-height: 240px;
    overflow-y: auto;
    display: none;
}

.custom-select-options.open {
    display: block;
}

.custom-select-options.open-up {
    top: auto;
    bottom: calc(100% + 4px);
}

.custom-select-option {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}

.custom-select-option:hover,
.custom-select.keyboard-nav .custom-select-option.active {
    background-color: #6BC2C3;
    color: #ffffff;
}

.custom-select.keyboard-nav .custom-select-option:hover:not(.active) {
    background-color: transparent;
    color: #374151;
}

.custom-select-option.selected {
    font-weight: 500;
}

.custom-select-hidden {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    height: 0;
    width: 0;
}

.custom-select[data-disabled="true"] .custom-select-trigger {
    cursor: not-allowed;
    background-color: rgba(243, 244, 246, 0.6);
}

.custom-select[data-disabled="true"] .custom-select-arrow {
    opacity: 0.5;
}

input::placeholder,
textarea::placeholder {
    font-size: 0.75rem;
}

.custom-select-trigger.is-placeholder {
    font-size: 0.875rem;
}

/* Custom Select Search */
.custom-select-search-wrap {
    position: sticky;
    top: 0;
    background-color: #ffffff;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    padding: 0.5rem;
    z-index: 1;
}

.custom-select-search {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    color: #374151;
    background-color: #f9fafb;
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 0.375rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.custom-select-search::placeholder {
    font-size: 0.75rem;
    color: #94a3b8;
}

.custom-select-search:focus {
    border-color: #6BC2C3;
    box-shadow: 0 0 0 1px #6BC2C3;
    background-color: #ffffff;
}

.custom-select-no-results {
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    color: #94a3b8;
    text-align: center;
    font-style: italic;
}
