/* === Global === */
body {
    font-family: "Microsoft JhengHei", sans-serif;
    margin: 0;
    padding: 0;
    background: #f7f7f7;
    color: #333;
}

img {
    max-width: 100%;
    display: block;
}

/* === Layout === */
.container {
    padding: 20px 15px;
    display: flex;
    justify-content: center;
}

.donation-form {
    background: #fff;
    padding: 25px;
    width: 100%;
    max-width: 900px;
    border-radius: 12px;
    box-shadow: 0px 2px 10px rgba(0,0,0,0.06);
    box-sizing: border-box;
}

/* === Section Style === */
.section-title {
    background: #dc8f36;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    padding: 12px 15px;
    border-radius: 6px 6px 0 0;
    margin-top: 30px;
}

.section-content {
    background: #fff;
    padding: 18px 15px 22px;
    border: 1px solid #dc8f36;
    border-top: none;
    border-radius: 0 0 6px 6px;
    margin-bottom: 20px;
}

/* === Form Layout === */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.form-group {
    flex: 1;
    min-width: 180px;
    margin-top: 12px; /* ✅ 原本是 12px，改成 20px */
}

.form-group.half { flex: 0 0 calc(50% - 9px); }
.form-group.full { flex: 0 0 100%; }

.form-group label {
    font-weight: bold;
    margin-bottom: 6px;
    display: block;
}

/* === Inputs & Select Style === */
.donation-form input,
.donation-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    background-color: #fff;
    box-sizing: border-box;
}

/* === Button === */
button {
    width: 100%;
    padding: 14px;
    margin-top: 30px;
    background: #dc8f36;
    color: #fff;
    font-size: 17px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background .25s, box-shadow .25s;
}

button:hover {
    background: #ca8332;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.12);
}

/* === Radio / Checkbox === */
.radio-inline,
.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 15px;
}

input[type="radio"],
input[type="checkbox"] {
    width: auto;
}

/* === Modal === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 650px;
    max-height: 80vh;
    padding: 22px;
    border-radius: 10px;
    overflow-y: auto;
    position: relative;
    box-shadow: 0px 6px 16px rgba(0,0,0,0.2);
}

.modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    cursor: pointer;
    font-size: 22px;
    font-weight: bold;
}

/* Scrollbar for modal */
.modal-content::-webkit-scrollbar {
    width: 6px;
}
.modal-content::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 4px;
}

/* === Footer === */
footer {
    margin-top: 40px;
    padding: 18px 10px;
    text-align: center;
    background: #fff;
    border-top: 3px solid #ddd;
}

/* === Mobile RWD === */
@media (max-width: 768px) {
    .donation-form {
        padding: 20px 15px;
    }

    .form-group.half {
        flex: 0 0 100%;
    }

    .form-row {
        gap: 12px;
    }

    .section-title {
        font-size: 16px;
        padding: 10px 12px;
        margin-top: 22px;
    }

    .section-content {
        padding: 15px 12px 18px;
        margin-bottom: 15px;
    }

    .donation-form input,
    .donation-form select {
        padding: 10px;
        font-size: 14px;
    }

    button {
        padding: 13px;
        font-size: 16px;
        margin-top: 20px;
    }
}

/* === Concent Section Style === */
.consent-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 4px;
}

.radio-inline,
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    padding: 6px 6px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

/* Radio hover feedback */
.radio-inline:hover,
.checkbox-label:hover {
    background: #fff4e6;
}

input[type="radio"] {
    transform: scale(1.18);
    accent-color: #dc8f36;
}

input[type="checkbox"] {
    transform: scale(1.15);
    accent-color: #dc8f36;
}

.checkbox-label a {
    color: #0058c9;
    font-weight: bold;
    text-decoration: underline;
}

/* 將整段「個資提供同意書」靠左並更整齊 */
.checkbox-label {
    margin-top: 8px;
}

/* 手機排版調整 */
@media (max-width:768px) {
    .radio-inline,
    .checkbox-label {
        font-size: 14px;
        padding: 4px 4px;
    }
}

/* === Footer Beautiful Style === */
.footer-area {
    background: #dc8f36;
    color: #fff;
    padding: 35px 20px 20px;
    margin-top: 60px;
    font-size: 15px;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.footer-logo {
    max-width: 250px;
    display: block;
}

.footer-info p {
    margin: 4px 0;
    line-height: 1.6;
}

.footer-info a {
    color: #fff;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.35);
    font-size: 14px;
    opacity: 0.9;
}

/* Mobile Adjust */
@media(max-width:768px){
    .footer-container {
        text-align: center;
        justify-content: center;
    }

    .footer-logo-box {
        align-items: center;
    }
}


/* === System Title === */
.system-title {
    text-align: left;
    margin: 10px auto 18px;
    max-width: 1200px;
}

.system-title-main {
    font-size: 22px;
    font-weight: 700;
    color: #931f1f;
    letter-spacing: 1px;
}

.system-title-sub {
    font-size: 27px;
    font-weight: 800;
    margin-top: 6px;
    color: #dc8f36;
    letter-spacing: 2px;
}

.honour-link-box {
    display: flex;
    justify-content: center; /* ✅ 完全置中 */
    margin-top: 20px;
}

.honour-btn {
    font-size: 16px;
    font-weight: 600;
    padding: 10px 28px;
    border-radius: 10px;
    border: 2px solid #cc7a00;
    color: #cc7a00;
    background: #fff8e8; /* ✅ 按鈕本身柔和淺橘 */
    text-decoration: none !important; /* ✅ 移除底線 */
}

.honour-btn:hover {
    background: #cc7a00;
    color: #fff !important;
}

