.gfml-language-switcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ffffff;
    border-radius: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 5px;
    display: flex;
    gap: 5px;
    z-index: 9999;
    transition: all 0.3s ease;
}

.gfml-language-switcher:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.gfml-lang-btn {
    background: transparent;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s ease;
    outline: none;
}

.gfml-lang-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.gfml-lang-btn.active {
    background: #0073aa;
    color: #ffffff;
}

.gfml-lang-btn.active:hover {
    background: #005a87;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .gfml-language-switcher {
        bottom: 10px;
        right: 10px;
        padding: 3px;
    }
    
    .gfml-lang-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
}

/* Animation for language switch */
.gfml-switching {
    opacity: 0.5;
    pointer-events: none;
}

/* Gravity Forms specific styling when switching languages */
.gform_wrapper.gfml-switching * {
    transition: opacity 0.3s ease;
}

/* Loading indicator */
.gfml-loading {
    position: relative;
}

.gfml-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: gfml-spin 0.8s linear infinite;
}

@keyframes gfml-spin {
    to {
        transform: rotate(360deg);
    }
}