﻿/* 隱藏原生 radio 按鈕 */
input[type="radio"] {
    display: none;
}

/* 自訂 Radio 樣式 (圓形) */
.custom-radio-circle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 18px;
    color: white;
    font-weight: 700;
    margin-left: 10px;
}

    /* 外框圓圈 */
    .custom-radio-circle .radio-circle {
        width: 30px; /* 放大圓圈 */
        height: 30px;
        background-color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        color: transparent; /* 預設不顯示打勾 */
        transition: all 0.2s;
        margin: 0;
    }

/* 選中時的效果 */
input[type="radio"]:checked + .circle-red {
    border: 3px solid #77F2A1;
    background-color: #1F2B37;
    color: #77F2A1; /* 顯示打勾 */
}

/* 自訂 Radio 樣式 (方形) */
.custom-radio-square {
    display: inline-block;
    padding: 10px 0;
    border: 2px solid #77F2A1;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    background-color: #1F2B37;
    color: white;
    width: 100%;
    text-align: center;
    font-weight: 700;
}

/* 選中時的效果 */
input[type="radio"]:checked + .custom-radio-square {
    background: linear-gradient(to bottom, #77F2A1, #4CB97D); /* 淺綠到深綠 */
    color: white;
    border: 2px solid #66D193;
    box-shadow: inset 0 0 4px #333, 0 0 8px rgba(119, 242, 161, 0.6);
}

/* 避免文字選取 */
.custom-radio-square:active {
    user-select: none;
}
