/* ===== 고도화: 스플릿 레이아웃 ===== */
.donate-section {
    min-height: calc(100vh - 80px);
    display: flex;
    background: #f8fafc;
    align-items: center;
    padding: 40px 20px;
}

/* --- 1500px 래퍼 컨테이너 --- */
.donate-container {
    display: flex;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    overflow: hidden;
    min-height: 800px;
}

/* 좌측 사이드 패널 */
.donate-side {
    flex: 0 0 450px;
    /* 바탕은 눈을 끌지 않아야 한다 — 봐야 할 것은 오른쪽 후원 폼이다.
       진한 주황은 450px 폭이 통째로 쨍했고, 짙은 갈색은 오른쪽 흰 폼과
       갈려 화면이 두 쪽으로 나뉘어 보였다. 아주 옅게 두어 이어지게 한다.
       따뜻한 느낌은 아래 로고·아이콘의 주황이 낸다. */
    background: linear-gradient(165deg, #fffbf7 0%, #fff4ea 100%);
    border-right: 1px solid #fde8d4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
    position: relative;
    overflow: hidden;
}
.donate-side::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 320px; height: 320px;
    background: rgba(249,115,22,0.07);
    border-radius: 50%;
}
.donate-side::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -60px;
    width: 240px; height: 240px;
    background: rgba(249,115,22,0.05);
    border-radius: 50%;
}
.donate-side-inner { position: relative; z-index: 1; width: 100%; }
.donate-side-logo {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 32px;
    box-shadow: 0 6px 16px rgba(234,88,12,0.25);
}
.donate-side h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 14px 0;
    line-height: 1.3;
}
.donate-side p {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.7;
    margin: 0 0 36px 0;
}

/* 사이드 혜택 리스트 */
.donate-benefit-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.donate-benefit-item {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #334155;
    font-size: 1.05rem;
    font-weight: 500;
}
.donate-benefit-icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: #f97316;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
    color: #fff;
}

/* --- 우측 폼 영역 --- */
.donate-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    background: #fff;
}
.donate-form-wrap {
    width: 100%;
    max-width: 850px;
}

/* --- 폼 헤더 (모바일에서만 보임) --- */
.donate-mobile-header {
    display: none;
    text-align: center;
    margin-bottom: 32px;
}
.donate-mobile-header h2 {
    font-size: 1.9rem; font-weight: 800;
    color: #0f172a; margin: 0 0 6px 0;
}
.donate-mobile-header p { color: #64748b; font-size: 1rem; margin: 0; }

/* 폼 스타일 */
.donate-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 48px 55px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.donate-tabs { display:flex; gap:12px; margin-bottom:36px; }
.donate-tab { flex:1; text-align:center; padding:14px 8px; font-size:1.05rem; font-weight:700; background:#f1f5f9; color:#64748b; border-radius:14px; cursor:pointer; transition:all 0.3s; border:2px solid transparent; }
.donate-tab.active { background:#fffaf5; color:#ff6b00; border-color:#ff6b00; }

.form-section { margin-bottom:48px; }
.form-section h4 { font-size:1.1rem; font-weight:800; color:#1e293b; margin-bottom:18px; border-bottom:2px solid #e2e8f0; padding-bottom:12px; }
.form-group { margin-bottom:24px; }
.form-label { display:block; font-weight:700; color:#475569; margin-bottom:10px; font-size: 1rem; }
.form-control { width:100%; padding:14px 16px; border:1px solid #cbd5e1; border-radius:12px; font-size:1.05rem; outline:none; transition:border-color 0.3s; background: #f8fafc; }
.form-control:focus { border-color:#ff6b00; background: #fff; box-shadow: 0 0 0 3px rgba(255,107,0,0.1); }

.pay-methods { display:flex; gap:12px; flex-wrap:wrap; }
.pay-method-label { flex:1; min-width:140px; text-align:center; border:1px solid #cbd5e1; padding:16px 8px; border-radius:12px; cursor:pointer; background:#fff; font-weight:600; font-size: 1rem; color:#475569; transition:all 0.2s; }
.pay-method-label input { display:none; }
.pay-method-label:hover { background:#f8fafc; border-color:#94a3b8; }
.pay-method-label.selected { border-color:#ff6b00; background:#fffaf5; color:#ff6b00; }

.receipt-box { background:#f8fafc; padding:24px 28px; border-radius:16px; border:1px solid #e2e8f0; margin-top:20px; display:none; }
.btn-submit { width:100%; padding:16px; font-size:1.15rem; font-weight:800; background:linear-gradient(135deg, #ff6b00 0%, #ff8a00 100%); color:#fff; border:none; border-radius:14px; cursor:pointer; transition:transform 0.2s, box-shadow 0.2s; margin-top: 10px; }
.btn-submit:hover { transform:translateY(-3px); box-shadow:0 12px 24px rgba(255,107,0,0.25); }

/* 모바일 전용 프리미엄 반응형 최적화 */
@media (max-width: 1024px) {
    .donate-form-wrap { max-width: 600px; }
}

@media (max-width: 768px) {
    .donate-side { display: none; }
    .donate-section { min-height: auto; padding: 15px 4px; background: #f8fafc; }
    .donate-container { border-radius: 0; box-shadow: none; background: transparent; display: block; min-height: auto; }
    .donate-main { padding: 15px 4px 30px; background: transparent; }
    .donate-mobile-header { display: block; margin-bottom: 20px; }
    
    .donate-card { padding: 24px 12px; border: none; box-shadow: none; border-radius: 0; }
    
    .donate-tabs { gap: 6px; margin-bottom: 20px; }
    .donate-tab { padding: 10px 4px; font-size: 0.9rem; border-radius: 8px; }
    
    .form-section { margin-bottom: 30px; }
    .form-section h4 { font-size: 1rem; margin-bottom: 12px; }
    .form-group { margin-bottom: 15px; }
    .form-control { padding: 10px 12px; font-size: 0.95rem; }
    
    .pay-methods { gap: 6px; }
    .pay-method-label { min-width: 100px; padding: 10px 4px; font-size: 0.85rem; border-radius: 8px; }
    .pay-method-label i { font-size: 1.15rem !important; }
    
    #bankInfo { padding: 14px; border-radius: 8px; margin-top: 14px; }
    #bankInfo div:last-child { font-size: 1rem !important; word-break: keep-all; }
    
    .receipt-box { padding: 16px 12px; border-radius: 10px; }
    .btn-submit { padding: 12px; font-size: 1rem; border-radius: 10px; }
}

/* ── 고유식별정보 동의 — 근거가 달라 일반 동의와 나눠 받는다 ── */
.dn-id-agree { margin-top: 16px; }
.dn-id-agree-label {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 14px 16px; border: 1px solid #fed7aa; border-radius: 12px; background: #fff7ed;
    cursor: pointer; transition: border-color .15s, background .15s;
}
.dn-id-agree-label:hover { border-color: #fdba74; background: #ffedd5; }
.dn-id-agree-label:has(input:checked) { border-color: #fb923c; background: #fff7ed; }
.dn-id-agree-label input[type="checkbox"] {
    flex: 0 0 auto; width: 17px; height: 17px; margin-top: 2px; accent-color: #ea580c; cursor: pointer;
}
/* 텍스트를 한 덩어리로 묶어야 문장이 쪼개지지 않는다 */
.dn-id-agree-text { flex: 1 1 auto; min-width: 0; font-size: 0.86rem; color: #7c2d12; line-height: 1.65; }
.dn-id-agree-text b { font-weight: 600; }
.dn-id-agree-head { display: block; margin-bottom: 4px; font-size: 0.88rem; color: #9a3412; }
.dn-id-agree-sub { display: block; margin-top: 6px; font-size: 0.79rem; color: #b45309; line-height: 1.6; }
@media (max-width: 768px) { .dn-id-agree-label { padding: 12px 13px; } .dn-id-agree-text { font-size: 0.82rem; } }

/* ── 개인정보 수집·이용 동의 ── */
.dn-privacy-box { margin: 22px 0 18px; padding: 18px 20px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; }
.dn-privacy-title { font-size: 0.95rem; font-weight: 600; color: #334155; padding-bottom: 9px; margin-bottom: 12px; border-bottom: 1px solid #e2e8f0; }
.dn-privacy-q { margin: 0 0 10px; font-size: 0.88rem; color: #475569; line-height: 1.6; }
.dn-privacy-required { color: #b91c1c; font-weight: 600; margin-right: 4px; }
.dn-privacy-radios { display: flex; gap: 18px; margin-bottom: 14px; flex-wrap: wrap; }
.dn-privacy-lbl { display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; color: #334155; cursor: pointer; }
.dn-privacy-lbl input[type="radio"] { width: 16px; height: 16px; accent-color: #ff6b00; cursor: pointer; }
.dn-privacy-table-wrap { overflow-x: auto; }
.dn-privacy-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; font-size: 0.82rem; }
.dn-privacy-table th { padding: 9px 12px; background: #f1f5f9; border-bottom: 1px solid #e2e8f0; font-weight: 500; color: #64748b; white-space: nowrap; }
.dn-privacy-table td { padding: 11px 12px; color: #475569; line-height: 1.6; text-align: center; vertical-align: middle; }
.dn-privacy-table td + td { border-left: 1px solid #f1f5f9; }
.dn-privacy-notice { margin: 12px 0 0; padding-left: 2px; list-style: none; font-size: 0.78rem; color: #94a3b8; line-height: 1.7; }
.dn-privacy-notice b { color: #64748b; font-weight: 600; }
@media (max-width: 768px) { .dn-privacy-box { padding: 14px 15px; } .dn-privacy-table { font-size: 0.76rem; } }

/* ── 뼈대에서 옮겨 온 인라인 꾸밈 (커서룰 §10) ──────────────────
 *  이름을 세 번 겹쳐 (0,3,0) 으로 올린다 — 인라인은 (1,0,0) 이었으므로
 *  클래스 하나로는 다른 규칙에 진다. `!important` 는 쓰지 않는다.
 *  옮긴 자리: application/view/skin/default/support/donate.tpl.php
 * ────────────────────────────────────────────────────────────── */
.dn-mg-01.dn-mg-01.dn-mg-01 { font-size:1.5rem;display:block;margin-bottom:5px; }   /* 5곳 */
.dn-d-02.dn-d-02.dn-d-02 { display:none; }   /* 2곳 */
.dn-mg-03.dn-mg-03.dn-mg-03 { margin-top:20px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:20px;text-align:center; }
.dn-clr-04.dn-clr-04.dn-clr-04 { color:#64748b;font-weight:600;margin-bottom:10px; }
.dn-clr-05.dn-clr-05.dn-clr-05 { font-size:1.4rem;font-weight:800;color:#0f172a;letter-spacing:1px; }
.dn-clr-06.dn-clr-06.dn-clr-06 { display:flex;align-items:center;gap:10px;cursor:pointer;font-size:1.05rem;font-weight:600;color:#1e293b; }
.dn-sz-07.dn-sz-07.dn-sz-07 { width:20px;height:20px; }
.dn-d-08.dn-d-08.dn-d-08 { display:flex;gap:20px; }
.dn-clr-09.dn-clr-09.dn-clr-09 { font-size:0.85rem;color:#64748b;margin-top:5px; }
.dn-mg-10.dn-mg-10.dn-mg-10 { display:flex;gap:10px;margin-bottom:10px; }
.dn-clr-11.dn-clr-11.dn-clr-11 { background:#ff6b00;color:#fff;border:none;padding:10px 18px;border-radius:8px;font-weight:600;cursor:pointer; }
.dn-mg-12.dn-mg-12.dn-mg-12 { margin-bottom:0; }
.dn-bg-13.dn-bg-13.dn-bg-13 { display:none;position:fixed;overflow:hidden;z-index:999999;-webkit-overflow-scrolling:touch;border:1px solid #cbd5e1;background:#fff;border-radius:12px;box-shadow:0 10px 25px rgba(0,0,0,0.15); }
.dn-mg-14.dn-mg-14.dn-mg-14 { padding:10px 15px;background:#f8fafc;border-bottom:1px solid #e2e8f0;display:flex;justify-content:space-between;align-items:center;border-top-left-radius:12px;border-top-right-radius:12px; }
.dn-clr-15.dn-clr-15.dn-clr-15 { font-size:0.95rem;color:#1e293b; }
.dn-clr-16.dn-clr-16.dn-clr-16 { cursor:pointer;font-size:1.5rem;font-weight:700;color:#94a3b8;line-height:1; }
.dn-sz-17.dn-sz-17.dn-sz-17 { width:100%;height:400px;position:relative; }

/* ── 뼈대에서 옮겨 온 인라인 꾸밈 — 두 번째 훑기 (커서룰 §10) ────
 *  태그 안 다른 속성에 PHP 가 있어 첫 훑기가 건너뛴 자리들이다.
 *  값은 굳어 있으므로 옮길 수 있다. 이름을 세 번 겹쳐 (0,3,0) 으로 올린다.
 *  옮긴 자리: application/view/skin/default/support/donate.tpl.php
 * ────────────────────────────────────────────────────────────── */
.dnt-clr-01.dnt-clr-01.dnt-clr-01 { width:150px;background:#f1f5f9;color:#475569;cursor:not-allowed; }
.dnt-clr-02.dnt-clr-02.dnt-clr-02 { background:#f1f5f9;color:#475569;cursor:not-allowed;margin-bottom:10px; }
