
a {
    color: unset;
}

.donation-image{
    position: absolute;
/*
    width: 64%;
    background-position: 62%;
*/
    background-position: 10%;

    height: 80%;
    top: 48px;
    left: 0px;
    background-size: cover;
    z-index: 0;
    border-radius: 30px 0 0 30px;
    max-height: 680px;
}

.custom-input-group {
    border-radius: 8px !important;
}

.custom-input-group img {
    position: absolute;
    right: 15px;
    top: 30%;
}


.donation-sub-title{
    font-size:26px;
    font-weight:500;
}

.donation-sub-description {
    font-size: 16px;
    font-weight: 400;
    margin-top: 32px;
    margin-bottom: 32px;
}

.button-container {
    display: flex;
    position: relative;
    width: 100%;
    border-radius: 60px;
    justify-content: center;
    align-items: center;
    background-color: #F2F2F2;
}

.nav-button {
    padding: 12px 0px;
    width: 50%;
    border-radius: 60px;
    color: #FFFFFF;
    border: 0px solid #F2F2F2;
    background: none;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;

    /*
    height: 50px;
    line-height: 100%;
    */
    line-height: 120%;

    font-weight: 400;
    font-size: 20px;
    letter-spacing: 0%;
    color: #555555;
    background-color: #F2F2F2;
}

/* 當前按鈕的背景色 */
.nav-button.active {
    background: #449342;
    color: #FFFFFF;
}

.donate_method-title {
    font-weight: 500;
    font-size: 28px;
    line-height: 110%;
    letter-spacing: 0%;
    color: #555555;
    margin-bottom: 32px;
}

.radio-btn {
    display: flex;
    align-items: center;
    padding: 24px 16px;
    font-weight: 500;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #555555;
    background-color: #FFFFFF;
    cursor: pointer;
    border-radius: 16px;
    border-width: 1px;
    border: 1px solid #55555566;
}

.radio-btn input {
    display: none; /* 隱藏原始 radio button */
}

.radio-circle {
    width: 22px;
    height: 22px;
    border: 1px solid #55555566;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 當 radio 未選中時 */
.radio-btn input:not(:checked) + .radio-circle {
    background-color: #FFFFFF;
}

/* 當 radio 選中時，顯示綠色小圓形 */
.radio-btn input:checked + .radio-circle {
    background-color: #fff; /* 白色背景 */
}

/* 綠色小圓形 */
.radio-btn input:checked + .radio-circle::after {
    content: '';
    width: 14px;
    height: 14px;
    background-color: #4CAF50;
    border-radius: 50%;
    position: absolute;
}

/* 模擬按鈕背景 */
.radio-btn:has(input:not(:checked)) {
    background-color: #FFFFFF;
    color: #555555;
}

.radio-btn:has(input:checked) {
    background-color: #4CAF50;
    color: white;
}

.radio-btn:hover {
    opacity: 0.9;
}

.dl-btn img {
    margin-left: auto;
    background-image: url('../images/icon/ico_download.svg');
    width: 18px;
    height: 18px;
    border: none;
    outline: none;
}

.dl-btn:has(input:checked) img {
    background-image: url('../images/icon/ico_download_white.svg');
}

.donate_method_margin {
    /*margin-bottom: 180px;*/
    margin-bottom: 0px;
}

.single_donate_method {
    display: none;
}

.donate-divider {
    border: 1px solid #55555566;
    margin: 32px 0;
}

.donate-section-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

.amount-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.amount-option {
    flex: 1 1 45%;
    min-width: 160px;
    display: flex;
    align-items: center;
    padding: 26px 16px;
    border: 1px solid #55555566;
    border-radius: 16px;
    background: #FFFFFF;
    position: relative;
    transition: border-color 0.2s;
    font-size: 1.1rem;
    cursor: pointer;
    box-sizing: border-box;
}

.amount-option-full {
    flex: 0 0 100%;
}

/* 隱藏原生 radio */
.amount-option input[type="radio"] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

/* 選中時外圈變深 */
.amount-option.selected .custom-radio {
    border-color: #4aa146;
}

/* 選中時出現綠色內圈 */
.amount-option.selected .custom-radio::after {
    opacity: 1;
}

.amount-option.selected {
    border-color: #bdbdbd;
}

.custom-input {
    color: #555555;
    border: none;
    background: transparent;
    outline: none;
    margin-left: 8px;
    font-size: 22px;
    font-weight: 700;
    color: #555555;
    width: 110px;
}

.form-group {
    margin-bottom: 32px;
}

form label {
    margin-bottom: 5px;
    display: block;
    color: #555555;
}

form label .required {
    color: #e94444;
    font-size: 1.08rem;
    margin-left: 2px;
}

.amount-option-text {
    display: flex;
    align-items: flex-start;
    font-weight: 700;
    font-size: 22px;
    line-height: 79%;
    letter-spacing: 0%;
    gap: 4px;
    color: #555555;
    flex-wrap: wrap;
}

.amount-option-sub_text {
    font-family: "inter";
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #449342;
    margin-top: 2px;
    width: 100%;
    /*
    max-width: 230px;
    */
}

.amount-option-text span {
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0%;
}

.other-option-text {
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #555555;
}

/* 主下拉選單容器 */
.custom-dropdown {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* 顯示選定值的區域 */
.dropdown-selected {
    background-color: #fff;
    border: 1px solid #ccc; /* 淺灰色邊框 */
    border-radius: 5px; /* 圓角 */
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: #888; /* 預設文字顏色 */
    user-select: none; /* 防止文字被選取 */
    font-size: 16px;
}

/* 選定文字的樣式 */
.selected-text {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 下拉箭頭的樣式 */
.dropdown-arrow {
    width: 8px;
    height: 8px;
    border-right: 2px solid #888; /* 箭頭顏色 */
    border-bottom: 2px solid #888;
    transform: rotate(45deg); /* 旋轉以形成V形 */
    margin-left: 10px;
    transition: transform 0.3s ease; /* 平滑旋轉動畫 */
}

/* 當下拉選單打開時，箭頭向上旋轉 */
.custom-dropdown.open .dropdown-arrow {
    transform: rotate(-135deg);
}

/* 選項列表 */
.dropdown-options {
    list-style: none; /* 移除列表點 */
    padding: 0;
    margin: 5px 0 0 0; /* 列表與選定區域之間的間距 */
    position: absolute;
    top: 100%; /* 定位在選定區域下方 */
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* 輕微陰影效果 */
    z-index: 10; /* 確保列表在其他內容之上 */
    display: none; /* 預設隱藏 */
    max-height: 200px; /* 設定最大高度，超出時滾動 */
    overflow-y: auto; /* 啟用垂直滾動 */
}

/* 當下拉選單打開時，顯示選項列表 */
.custom-dropdown.open .dropdown-options {
    display: block;
}

/* 選項列表中的每個項目 */
.dropdown-options li {
    padding: 10px 15px;
    cursor: pointer;
    color: #333; /* 選項文字顏色 */
    font-size: 16px;
}

/* 選項懸停效果 */
.dropdown-options li:hover {
    background-color: #f0f0f0; /* 懸停時的背景色 */
}

/* now modify */
.form-group input[type="text"], .form-group input[type="email"] {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #55555566;
    border-radius: 8px;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #555555;
    background-color: #FFFFFF;
    margin-top: 3px;
    box-sizing: border-box;
    transition: border-color 0.18s;
}

.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #55555566;
    border-radius: 8px;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #555555;
    background-color: #FFFFFF;
    margin-top: 3px;
    box-sizing: border-box;
    transition: border-color 0.18s;
    min-height: 130px;
    max-height: 330px;
}

.form-group input[type="text"]:focus, 
.form-group input[type="email"]:focus, 
.form-group textarea:focus {
    border-color: #bbbbbb;
    outline: none;
}

form ::placeholder {
    color: #c5c5c5;
    opacity: 1;
}

.submit-btn {
    width: 100%;
    padding: 12px 0;
    background: #449342;
    color: #fff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    margin-top: 32px;
    transition: background 0.2s;
    font-family: "Noto Sans HK";
    font-weight: 400;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: 0%;
}

.submit-btn:hover {
background: #377936;
}

.error-msg {
color: #e94444;
margin-bottom: 12px;
font-size: 1rem;
display: none;
}


.lang-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.lang-option {
    flex: 1 1 45%;
    min-width: 160px;
    display: flex;
    align-items: center;
    border-radius: 16px;
    background: #FFFFFF;
    position: relative;
    transition: border-color 0.2s;
    font-size: 1.1rem;
    cursor: pointer;
    box-sizing: border-box;
}

/* 隱藏原生 radio */
.lang-option input[type="radio"] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
/* 自訂 radio 外圈 */
.custom-radio {
    min-width: 22px;
    width: 22px;
    height: 22px;
    border: 2px solid #bdbdbd;
    border-radius: 50%;
    display: inline-block;
    margin-right: 14px;
    position: relative;
    background: #fff;
    box-sizing: border-box;
    vertical-align: middle;
    transition: border-color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* 選中時外圈變深 */
.lang-option.selected .custom-radio {
    border-color: #4aa146;
}
/* 自訂 radio 內圈（預設隱藏） */
.custom-radio::after {
    content: "";
    display: block;
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #4aa146;
    opacity: 0;
    transition: opacity 0.2s;
}
/* 選中時出現綠色內圈 */
.lang-option.selected .custom-radio::after {
    opacity: 1;
}

.lang-option.selected {
    border-color: #bdbdbd;
}

.collec-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.collec-option {
    flex: 1 1 45%;
    min-width: 160px;
    display: flex;
    align-items: center;
    border-radius: 16px;
    background: #FFFFFF;
    position: relative;
    transition: border-color 0.2s;
    font-size: 1.1rem;
    cursor: pointer;
    box-sizing: border-box;
}

/* 隱藏原生 radio */
.collec-option input[type="radio"] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

/* 選中時外圈變深 */
.collec-option.selected .custom-radio {
    border-color: #4aa146;
}

/* 選中時出現綠色內圈 */
.collec-option.selected .custom-radio::after {
    opacity: 1;
}


.payment-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.payment-option {
    flex: 1 1 95%;
    min-width: 160px;
    display: flex;
    align-items: center;
    border-radius: 16px;
    background: #FFFFFF;
    position: relative;
    transition: border-color 0.2s;
    font-size: 1.1rem;
    cursor: pointer;
    box-sizing: border-box;
}

.payment-option img {
    width: 85%;
}

/* 隱藏原生 radio */
.payment-option input[type="radio"] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

/* 選中時外圈變深 */
.payment-option.selected .custom-radio {
    border-color: #4aa146;
}

/* 選中時出現綠色內圈 */
.payment-option.selected .custom-radio::after {
    opacity: 1;
}


.donation-sub-description span {
    color: #4aa146;
    text-decoration: underline;
    cursor: pointer;
}


.agreement-wrapper {
    max-width: 600px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    position: relative;
    cursor: pointer;
    font-size: 16px;
    line-height: 150%;
    font-weight: 400;
    color: #555555;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    cursor: pointer;
}

.custom-checkbox-indicator {
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin-right: 10px;
    flex-shrink: 0;
    position: relative;
    box-sizing: border-box;
    transition: background-color 0.2s, border-color 0.2s;
}

.custom-checkbox-indicator::after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}


.checkbox-container input[type="checkbox"]:checked ~ .custom-checkbox-indicator {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

.checkbox-container input[type="checkbox"]:checked ~ .custom-checkbox-indicator::after {
    display: block;
}

.month_donationForm,.single_donationForm,.other_donate_method {
    display: none;
    font-family: "Noto Sans HK";
}

.qr_payment-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.qr_payment-option {
    flex: 1 1 45%;
    min-width: 200px;
    display: flex;
    align-items: center;
    padding: 16px 16px;
    border: 1px solid #55555566;
    border-radius: 16px;
    background: #FFFFFF;
    position: relative;
    transition: border-color 0.2s;
    cursor: pointer;
    box-sizing: border-box;
    font-family: "Noto Sans HK";
    font-weight: 500;
    font-size: 28px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #449342;
    display: flex;
    justify-items: center;
    flex-direction: column;
}
.qr_payment-option img {
    margin-top: 24px;
}

.qr_payment-option span {
    font-family: "Noto Sans HK";
    font-weight: 400;
    font-size: 16;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    margin-top: 4px;
    color: #555555;
}

.intro-paragraph, .donation-methods {
    font-family: "Noto Sans HK";
    font-weight: 400;
    font-size: 16px;
    line-height: 120%;
    letter-spacing: 0%;
    margin-bottom: 32px;
}

.green-underline-link {
    color: #449342;
    text-decoration: underline;
    cursor: pointer;
}

.donation-methods ol {
    list-style: none;
    padding-left: 0;
}

.donation-methods li {
    font-size: 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: baseline;
}

.method-green-part {
    color: #449342;
    flex-shrink: 0;
}

.method-detail {
    color: #555555;
    flex-grow: 1;
    word-break: break-word;
}

.recaptcha_dummy {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 259px;
    padding: 1px 10px;
    font-family: "Noto Sans HK";
    font-weight: 500;
    font-size: font-size;
    line-height: 100%;
    letter-spacing: 0%;
    margin-left: auto;
    margin-right: auto;
}

.recaptcha_dummy span {
    cursor: pointer;
    text-decoration: underline;
    color: #6e4699;
}

.recaptcha_dummy input {
    width: 100%;
    height: 30px;
}

.donate_msg_box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.msg-title {
    font-family: "Noto Sans HK";
    font-weight: 500;
    font-size: 35px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    color: #555555;
}

.msg-content {
    font-family: "Noto Sans HK";
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0%;
    color: #555555;
}

.donate-msg-btn {
    width: 200px;
    padding: 12px 0;
    background: #449342;
    color: #fff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.2s;
    font-family: "Noto Sans HK";
    font-weight: 400;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: 0%;
}

.donate-msg-section {
    padding: 48px 32px;
}

.donate_mt4 {
    margin-top: 24px;
}

.datepicker-days {
    width: 250px;
}
.datepicker td, .datepicker th {
    width: 40px;
    height: 35px;
}


.error-message {
    color: #e93e74;
    font-size: 16px;
    margin-top: 6px;
    margin-left: 6px;
    display: none;
}
.has-error input {
    border-color: #e93e74 !important;
}
.has-error .dropdown-selected {
    border-color: #e93e74 !important;
}
.has-error .error-message {
    display: block;
}
.error-w100 {
    width: 100%;
}

/* 用於定位圖示的容器 */
.datepicker-container {
    position: relative;
    width: 100%;
}

/* 主要的 input text 樣式 */
#birthdate {
    width: 100%;
    padding: 10px 40px 10px 12px; /* 右邊留出空間給圖示 */
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box; /* 確保 padding 不會撐大寬度 */
    transition: border-color 0.2s;
}

#birthdate:focus {
    outline: none;
    border-color: #007bff;
}

/* 日曆圖示的樣式 */
.calendar-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    cursor: pointer;
    background-image: url('../images/icon/ico_date.svg');
    background-repeat: no-repeat;
    background-size: contain;
}

/* 驗證錯誤時的 input 樣式 */
.input-error {
    border-color: #e93e74 !important;
}

/* 錯誤訊息樣式 */
.b-error-message {
    color: #dc3545; /* 紅色文字 */
    font-size: 14px;
    margin-top: 5px;
    height: 1em; /* 佔據空間，避免畫面跳動 */
}

.s-img,.single-sub-desc {
    display: none;
}
@media only screen and (max-width: 991px) {
    .nav-button {
        font-size: 18px;
    }
    .donate_method_margin {
        margin-bottom: 0px;
    }
    .section-item-content-donate {
        padding: 16px;
        border-radius: 0 0 30px 30px;
    }
    .donation-image {
        position: relative;
        width: 100%;
        height: 240px;
        top: 0px;
        background-size: cover;
        border-radius: 30px 30px 0 0;
        background-position: 50%;
    }
    .msg-title {
        font-size: 24px;
    }
}


