/* 申請身份選項樣式 - 空心圓圈設計 */

.identity-list {
    display: flex;
    flex-direction: row;
    gap: 16px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.identity-option {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
}

.identity-option:hover {
    border-color: #5BB5A2;
    background-color: #f8fffe;
}

.identity-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* 自訂圓圈樣式 */
.identity-radio {
    position: relative;
    width: 24px;
    height: 24px;
    border: 2px solid #d0d0d0;
    border-radius: 50%;
    margin-right: 16px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.identity-option:hover .identity-radio {
    border-color: #5BB5A2;
}

/* 選中狀態 - 實心+打勾 */
.identity-option input[type="radio"]:checked ~ .identity-radio {
    background-color: #5BB5A2;
    border-color: #5BB5A2;
}

.identity-option input[type="radio"]:checked ~ .identity-radio::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

/* 選中整個選項卡片的樣式 */
.identity-option input[type="radio"]:checked ~ .identity-text {
    color: #333;
    font-weight: 600;
}

.identity-option input[type="radio"]:checked {
    border-color: #5BB5A2;
    background-color: #f0faf8;
}

.identity-option:has(input[type="radio"]:checked) {
    border-color: #5BB5A2;
    background-color: #f0faf8;
}

/* 文字區域 */
.identity-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
}

.identity-name {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    display: inline-block;
    max-width: 8em;
    word-break: break-all;
    white-space: normal;
}

.identity-limit {
    font-size: 14px;
    color: #666;
    background-color: #f5f5f5;
    padding: 4px 12px;
    border-radius: 12px;
}

.identity-option input[type="radio"]:checked ~ .identity-text .identity-limit {
    background-color: #E8F5F2;
    color: #5BB5A2;
    font-weight: 600;
}

/* RWD 響應式設計 */
@media (max-width: 768px) {
    .identity-list {
        flex-direction: column;
    }

    .identity-option {
        padding: 14px 16px;
    }

    .identity-radio {
        width: 20px;
        height: 20px;
        margin-right: 12px;
    }

    .identity-name {
        font-size: 15px;
    }

    .identity-limit {
        font-size: 13px;
        padding: 3px 10px;
    }
}
