/* Language Switcher */
.language-switcher {
    position: relative;
    display: inline-block;
}

.language-switcher-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 4rem;
}

.language-switcher-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.language-switcher-btn .flag-icon {
    font-size: 1.125rem;
    line-height: 1;
}

.language-switcher-btn .chevron-icon {
    width: 0.75rem;
    height: 0.75rem;
    transition: transform 0.2s;
    opacity: 0.7;
}

.language-switcher-btn.open .chevron-icon {
    transform: rotate(180deg);
}

.language-switcher-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 8rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    overflow: hidden;
}

.language-switcher-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-switcher-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.language-switcher-item:first-child {
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
}

.language-switcher-item:last-child {
    border-bottom-left-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
}

.language-switcher-item:hover {
    background: #f3f4f6;
}

.language-switcher-item.active {
    background: rgba(0, 74, 173, 0.1);
    color: #004aad;
}

.language-switcher-item .flag-icon {
    font-size: 1.125rem;
    line-height: 1;
    flex-shrink: 0;
}

.language-switcher-item .language-name {
    flex: 1;
}

/* For form section (left side) */
.form-section .language-switcher-btn {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #374151;
}

.form-section .language-switcher-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 1024px) {
    .language-switcher-dropdown {
        right: auto;
        left: 0;
    }
}
