img{
    height: auto;
}

/* Language Selection Popup Styles */
.popup-language-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000; /* Higher z-index to ensure it's always on top */
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: rgba(0, 0, 0, 0.8); /* Darker background for mandatory selection */
}

.popup-language-container .popup-form {
    max-width: 500px;
    width: 90%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.popup-language-content {
    padding: 24px;
}

.popup-language-description {
    margin-bottom: 24px;
    text-align: center;
}

.popup-language-description p {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

.popup-language-options {
    margin-bottom: 24px;
}

.language-option {
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-option:hover {
    border-color: #a18bee;
    background-color: #f8f7ff;
}

.language-option.selected {
    border-color: #a18bee;
    background-color: #f0edff;
}

.language-option-content {
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 16px;
}

.language-flag {
    flex-shrink: 0;
}

.language-flag-icon {
    font-size: 32px;
}

.language-details {
    flex: 1;
}

.language-name {
    font-size: 18px;
    color: #1a1d36;
    margin-bottom: 4px;
}

.language-description {
    font-size: 14px;
    color: #666;
}

.language-radio {
    flex-shrink: 0;
}

.language-radio-btn {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d1d1;
    border-radius: 50%;
    background: white;
    transition: all 0.3s ease;
}

.language-option.selected .language-radio-btn {
    background: #a18bee;
    border-color: #a18bee;
}

.language-option.selected .language-radio-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.popup-language-note {
    margin-bottom: 24px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
}

.popup-language-note .small-txt {
    font-size: 12px;
    line-height: 1.4;
}

/* Required indicator styling */
.required-indicator {
    color: #ff6b6b;
    font-weight: bold;
    margin-left: 4px;
}

.required-text {
    color: #ff6b6b;
    font-weight: 500;
    display: block;
    margin-top: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .popup-language-container .popup-form {
        width: 95%;
        margin: 20px;
    }

    .popup-language-content {
        padding: 20px;
    }

    .language-option-content {
        padding: 12px;
        gap: 12px;
    }

    .language-flag-icon {
        font-size: 28px;
    }

    .language-name {
        font-size: 16px;
    }
}