/* 후원 및 자원봉사 신청 CSS */

/* 공통 스타일 */
.donation-form-wrap,
.my-donation-wrap {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
}

.donation-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.donation-title {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

/* 폼 스타일 */
.donation-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.donation-table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    border: 1px solid #ddd;
    vertical-align: middle;
}

.donation-table td {
    padding: 15px;
    border: 1px solid #ddd;
}

.required {
    color: #dc3545;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: #ffd246;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(255, 210, 70, 0.25);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* 라디오/체크박스 */
.radio-label {
    display: inline-block;
    margin-right: 20px;
    cursor: pointer;
}

.radio-label input[type="radio"],
.radio-label input[type="checkbox"] {
    margin-right: 5px;
}

/* 주소 입력 */
.address-group {
    display: flex;
    gap: 10px;
}

.address-input {
    flex: 1;
}

.mt-2 {
    margin-top: 10px;
}

/* 후원 방법 그룹 */
.donation-method-group {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.method-item {
    margin-bottom: 8px;
}

.method-item strong {
    display: inline-block;
    width: 80px;
    color: #495057;
}

.method-item span {
    color: #6c757d;
}

/* 도움말 텍스트 */
.help-text {
    margin: 5px 0 0 0;
    font-size: 12px;
    color: #6c757d;
}

/* 버튼 */
.btn-group {
    text-align: center;
    margin-top: 20px;
}

.btn {
    padding: 0;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin: 0 5px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    min-height: 48px;
    padding: 0 30px;
    line-height: 1;
}

.btn-lg {
    min-height: 56px;
    padding: 0 40px;
    font-size: 18px;
}

.btn-sm {
    min-height: 32px;
    padding: 0 10px;
    font-size: 13px;
    margin: 2px;
}

.btn-primary {
    background: linear-gradient(135deg, #ffd246 0%, #ffb800 100%);
    color: #333;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ffe066 0%, #ffd246 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 210, 70, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-info {
    background: #17a2b8;
    color: #fff;
}

.btn-info:hover {
    background: #138496;
}

.btn-warning {
    background: #ffc107;
    color: #333;
}

.btn-warning:hover {
    background: #e0a800;
}

.btn-success {
    background: #28a745;
    color: #fff;
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background: #c82333;
}

/* 내 신청내역 테이블 */
.my-donation-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.my-donation-table thead {
    background: #f8f9fa;
}

.my-donation-table th,
.my-donation-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: center;
}

.my-donation-table td.text-left {
    text-align: left;
}

/* 배지 */
.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.type-donation {
    background: #ffd246;
    color: #333;
}

.type-volunteer {
    background: #5ddedf;
    color: #333;
}

.status-pending {
    background: #ffc107;
    color: #333;
}

.status-confirmed {
    background: #28a745;
    color: #fff;
}

.status-completed {
    background: #17a2b8;
    color: #fff;
}

.status-cancelled {
    background: #dc3545;
    color: #fff;
}

/* 모달 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-content h2 {
    margin: 0 0 20px 0;
    font-size: 24px;
    color: #333;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover,
.close:focus {
    color: #000;
}

.detail-table,
.edit-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.detail-table th,
.detail-table td,
.edit-table th,
.edit-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.detail-table th,
.edit-table th {
    background: #f8f9fa;
    width: 30%;
    font-weight: 600;
}

.mb-3 {
    margin-bottom: 15px;
}

.mt-3 {
    margin-top: 15px;
}

.text-muted {
    color: #6c757d;
}

.text-center {
    text-align: center;
}

/* 반응형 */
@media screen and (max-width: 768px) {
    .donation-container {
        padding: 20px;
    }
    
    .donation-table th,
    .donation-table td {
        display: block;
        width: 100%;
    }
    
    .donation-table th {
        border-bottom: none;
    }
    
    .donation-table td {
        border-top: none;
        margin-bottom: 15px;
    }
    
    .address-group {
        flex-direction: column;
    }
    
    .btn {
        display: flex;
        width: 100%;
        margin: 5px 0;
        align-items: center;
        justify-content: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
    
    .my-donation-table {
        font-size: 12px;
    }
    
    .my-donation-table th,
    .my-donation-table td {
        padding: 8px;
    }
    
    .btn-sm {
        display: inline-block;
        width: auto;
    }
}

