/* Custom Language Select */
.custom-select-wrapper {
    position: relative;
    width: 6rem;
    user-select: none;
    line-height: 1rem;
}

.custom-select {
    position: relative;
    background: white;
    border: 2px solid #226473;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-select:hover {
    border-color: #FAA01C;
}

.custom-select.open {
    border-color: #FAA01C;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.select-trigger {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem .6rem;
    background: #FAA01C25;
    border-radius: 8px;
}

.select-trigger::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #226473;
    transition: transform 0.3s ease;
}

.custom-select.open .select-trigger::after {
    transform: translateY(-50%) rotate(180deg);
}

.flag-img {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.lang-code {
    font-weight: 600;
    color: #333;
    font-size: 0.75rem;
}

/* Dropdown Options */
.custom-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #FAA01C;
    border-top: none;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.custom-select.open .custom-options {
    max-height: 300px;
    opacity: 1;
}

.custom-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.custom-option:hover {
    background: #FAA01C50;
}

.custom-option.selected {
    background: #FAA01C80;
}

.custom-option:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}