/* ===================================================
   Garuda Desktop Language Preference Page Styles
   =================================================== */

.language-desktop-wrapper {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px;
}

.language-card {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 48px 44px 36px 44px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
}

/* Header */
.language-header {
    margin-bottom: 36px;
}

.language-brand-logo-link {
    display: inline-block;
    margin-bottom: 16px;
    transition: transform 0.2s ease;
}

.language-brand-logo-link:hover {
    transform: scale(1.05);
}

.language-brand-logo {
    width: 68px;
    height: 68px;
    object-fit: contain;
}

.language-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #c0392b;
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.language-title {
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.language-subtext {
    font-size: 15px;
    color: #64748b;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Grid of Language Options */
.language-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 36px;
}

@media (max-width: 900px) {
    .language-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .language-desktop-wrapper {
        padding: 0 10px;
    }
    .language-card {
        padding: 24px 16px 20px 16px;
        border-radius: 16px;
    }
    .language-title {
        font-size: 22px;
    }
    .language-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin-bottom: 24px;
    }
    .language-option {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 10px;
        min-height: 84px;
        justify-content: space-between;
    }
    .language-option .lang-tag-badge {
        position: absolute;
        top: 8px;
        right: 8px;
        font-size: 10px;
        padding: 2px 6px;
    }
    .language-option .lang-radio-wrap {
        position: absolute;
        bottom: 10px;
        right: 10px;
        margin-right: 0;
    }
    .language-option .lang-text-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding-right: 16px;
    }
    .language-option .lang-native-name {
        font-size: 15px;
        font-weight: 700;
        margin-bottom: 2px;
    }
    .language-option .lang-english-name {
        font-size: 11.5px;
        color: #64748b;
    }
}

/* Language Option Tile */
.language-option {
    position: relative;
    display: flex;
    align-items: center;
    padding: 16px 18px;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    cursor: pointer;
    background-color: #ffffff;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}

.language-option:hover {
    border-color: #cbd5e1;
    background-color: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.language-option.selected {
    border-color: #c0392b;
    background-color: #fef2f2;
    box-shadow: 0 4px 16px rgba(192, 57, 43, 0.12);
}

.lang-radio-wrap {
    margin-right: 14px;
    display: flex;
    align-items: center;
}

.language-option input[type="radio"] {
    display: none;
}

.lang-custom-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.language-option.selected .lang-custom-radio {
    border-color: #c0392b;
    background-color: #c0392b;
}

.language-option.selected .lang-custom-radio::after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #ffffff;
}

.lang-text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lang-native-name {
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.language-option.selected .lang-native-name {
    color: #c0392b;
}

.lang-english-name {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.lang-tag-badge {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    background-color: #f1f5f9;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.language-option.selected .lang-tag-badge {
    color: #c0392b;
    background-color: #fee2e2;
}

/* Proceed Actions */
.language-actions {
    margin-top: 10px;
    padding-top: 24px;
    border-top: 1px solid #f1f5f9;
}

.language-proceed-btn {
    background-color: #c0392b;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 44px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(192, 57, 43, 0.25);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.language-proceed-btn:hover:not(:disabled) {
    background-color: #a93226;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(192, 57, 43, 0.35);
}

.language-proceed-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.language-skip-link {
    font-size: 14px;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.language-skip-link:hover {
    color: #c0392b;
    text-decoration: underline;
}

/* Trust Bar */
.language-trust-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid #f8fafc;
    flex-wrap: wrap;
}

.lang-trust-item {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}
