/* css/language.css */
.lang-page {
    background-color: #f7f9fc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    width: 100%;
    padding-top: 130px; /* Jarak dari header merah */
}

.lang-container {
    width: fit-content;
    max-width: 95vw;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lang-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    width: 100%;
}

.lang-card {
    background: var(--text-light);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    width: 320px;
    height: 240px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: var(--transition-smooth);
}

.lang-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}

.lang-card.selected {
    border-color: var(--ariston-red);
    background-color: #ffffff;
    box-shadow: 0 15px 35px rgba(211, 18, 42, 0.08);
}

.lang-radio {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.lang-card.selected .lang-radio {
    border-color: var(--ariston-red);
}

.lang-card.selected .lang-radio::after {
    content: '';
    width: 14px;
    height: 14px;
    background-color: var(--ariston-red);
    border-radius: 50%;
    display: block;
}

.lang-flag {
    width: 100px;
    height: 60px;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    object-fit: cover;
}

.lang-name {
    font-size: 22px;
    font-weight: 700;
    color: #333333;
}

.sales-action-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

#lang-submit-btn {
    width: 620px;
    height: 70px; /* Tinggi tegas premium */
    font-size: 22px;
    font-weight: 700;
    border-radius: 35px; /* Gaya tombol kapsul modern */
    border: none;
    background: var(--ariston-red);
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 25px rgba(200, 16, 46, 0.2);
    transition: var(--transition-smooth);
    text-align: center;
}

#lang-submit-btn:hover, #lang-submit-btn.focused {
    background: var(--ariston-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(200, 16, 46, 0.3);
}

/* Override gaya fokus remote untuk kartu bahasa agar tidak membingungkan dengan status terpilih */
.lang-card.focusable.focused {
    transform: scale(1.04);
}

.lang-card.focusable.focused:not(.selected) {
    border-color: #888888 !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.lang-card.focusable.focused.selected {
    border-color: var(--ariston-red) !important;
    box-shadow: 0 0 0 4px var(--ariston-red), 0 15px 35px rgba(200, 16, 46, 0.2) !important;
}

