.role-card-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.role-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
    margin: 0;
    min-width: 0;
    height: 100%;
}

.role-card:hover {
    border-color: #c7d2fe;
}

.role-card.selected,
.role-card:has(input:checked) {
    border-color: #6366f1;
    background: #f8faff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.role-card.has-error {
    border-color: #ef4444;
}

.role-card-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.role-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.role-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.role-card-name {
    font-weight: 600;
    font-size: 12px;
    color: #0f172a;
    line-height: 1.25;
    word-break: break-word;
}

.role-card-price {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.role-card-check {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.role-card:has(input:checked) .role-card-check,
.role-card.selected .role-card-check {
    border-color: #6366f1;
    background: #6366f1;
}

.role-card:has(input:checked) .role-card-check::after,
.role-card.selected .role-card-check::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
}

@media (max-width: 520px) {
    .role-card-list {
        grid-template-columns: 1fr;
    }

    .role-card {
        padding: 12px 14px;
    }

    .role-card-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .role-card-name {
        font-size: 14px;
    }
}
