/* ============================================
   donate.css
   As-Sunnah Foundation - Donation Page Styles
   ============================================ */

/* ============================================
   DONATION PAGE LAYOUT
   ============================================ */
.donation-page {
    padding: 60px 0 80px;
    background: linear-gradient(135deg, #f5f9f5 0%, #e8f0e8 100%);
}

.donation-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

/* ============================================
   DONATION HEADER
   ============================================ */
.donation-header {
    text-align: center;
    margin-bottom: 40px;
    grid-column: 1 / -1;
}

.donation-header h1 {
    font-size: 42px;
    color: #1B5E20;
    font-weight: 800;
    margin-bottom: 10px;
}

.donation-header h1 i {
    color: #F9A825;
    margin-right: 12px;
}

.donation-header p {
    font-size: 18px;
    color: #666;
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================
   DONATION FORM
   ============================================ */
.donation-form-wrapper {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    padding: 40px;
    transition: all 0.3s;
}

.donation-form-wrapper:hover {
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.12);
}

/* Form Sections */
.form-section {
    margin-bottom: 35px;
    padding-bottom: 35px;
    border-bottom: 2px solid #f0f7f0;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h3 {
    font-size: 22px;
    color: #1B5E20;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section h3::before {
    content: '';
    width: 4px;
    height: 28px;
    background: #F9A825;
    border-radius: 2px;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 15px;
}

.form-group .required {
    color: #e53935;
    margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e7e0;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s;
    background: #fafafa;
    color: #333;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1B5E20;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(27, 94, 32, 0.08);
}

.form-group input.error,
.form-group select.error {
    border-color: #e53935;
    box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Form Row (2 columns) */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Logged In Info */
.logged-in-info {
    background: #f0f7f0;
    padding: 20px 24px;
    border-radius: 12px;
    border-left: 4px solid #1B5E20;
}

.logged-in-info p {
    margin-bottom: 4px;
    font-size: 15px;
}

.logged-in-info p i {
    color: #1B5E20;
    width: 24px;
}

/* ============================================
   AMOUNT PRESETS
   ============================================ */
.amount-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.amount-preset {
    padding: 10px 20px;
    background: #f5f9f5;
    border: 2px solid #e0e7e0;
    border-radius: 50px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    transition: all 0.3s;
    font-family: inherit;
}

.amount-preset:hover {
    border-color: #1B5E20;
    background: #e8f0e8;
    transform: translateY(-2px);
}

.amount-preset.active {
    background: #1B5E20;
    border-color: #1B5E20;
    color: #fff;
    box-shadow: 0 4px 15px rgba(27, 94, 32, 0.3);
}

/* ============================================
   CHECKBOX STYLES
   ============================================ */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: normal;
    color: #555;
    padding: 8px 0;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #1B5E20;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label span {
    font-size: 15px;
}

/* ============================================
   PAYMENT METHODS
   ============================================ */
.payment-methods {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.payment-method {
    flex: 1;
    min-width: 140px;
    position: relative;
}

.payment-method input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-method label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 20px;
    border: 2px solid #e0e7e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
    font-weight: 600;
    font-size: 16px;
    color: #666;
}

.payment-method label:hover {
    border-color: #1B5E20;
    background: #f5f9f5;
}

.payment-method input[type="radio"]:checked + label {
    border-color: #1B5E20;
    background: #f0f7f0;
    color: #1B5E20;
    box-shadow: 0 0 0 4px rgba(27, 94, 32, 0.08);
}

.payment-method label img {
    height: 30px;
    width: auto;
    object-fit: contain;
}

/* Payment Info */
.payment-info {
    background: #fff8e1;
    padding: 14px 18px;
    border-radius: 10px;
    border-left: 4px solid #F9A825;
    font-size: 14px;
    color: #795548;
}

.payment-info i {
    color: #F9A825;
    margin-right: 8px;
}

/* ============================================
   FORM ACTIONS (Submit Button)
   ============================================ */
.form-actions {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #f0f7f0;
}

.btn-block {
    width: 100%;
    justify-content: center;
    padding: 18px 40px;
    font-size: 20px;
    border-radius: 14px;
}

.btn-primary {
    background: #1B5E20;
    color: #fff;
}

.btn-primary:hover {
    background: #2E7D32;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(27, 94, 32, 0.35);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================
   DONATION SIDEBAR
   ============================================ */
.donation-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Impact Card */
.impact-card {
    background: linear-gradient(135deg, #1B5E20, #2E7D32);
    padding: 30px;
    border-radius: 20px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(27, 94, 32, 0.2);
}

.impact-card h3 {
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.impact-card h3 i {
    color: #F9A825;
}

.impact-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.impact-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.impact-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: #F9A825;
    margin-bottom: 4px;
}

.impact-label {
    font-size: 13px;
    opacity: 0.8;
}

/* Recent Donors Card */
.recent-donors-card {
    background: #fff;
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.recent-donors-card h3 {
    font-size: 18px;
    color: #1B5E20;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.recent-donors-card h3 i {
    color: #F9A825;
}

.recent-donors-list {
    list-style: none;
    padding: 0;
}

.recent-donors-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.recent-donors-list li:last-child {
    border-bottom: none;
}

.donor-name {
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.donor-name::before {
    content: '👤';
    font-size: 14px;
}

.donor-amount {
    font-weight: 700;
    color: #1B5E20;
    background: #f0f7f0;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 14px;
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   SUCCESS/ERROR MESSAGES
   ============================================ */
.donation-message {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: none;
    font-weight: 500;
}

.donation-message.success {
    display: block;
    background: #e8f5e9;
    color: #1B5E20;
    border-left: 4px solid #4CAF50;
}

.donation-message.error {
    display: block;
    background: #fbe9e7;
    color: #c62828;
    border-left: 4px solid #e53935;
}

.donation-message i {
    margin-right: 10px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablets */
@media (max-width: 1024px) {
    .donation-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .donation-header {
        grid-column: 1;
    }
    
    .donation-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .donation-page {
        padding: 30px 0 50px;
    }
    
    .donation-header h1 {
        font-size: 32px;
    }
    
    .donation-form-wrapper {
        padding: 24px 20px;
        border-radius: 16px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-section h3 {
        font-size: 20px;
    }
    
    .amount-presets {
        gap: 8px;
    }
    
    .amount-preset {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .donation-sidebar {
        grid-template-columns: 1fr;
    }
    
    .impact-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .payment-methods {
        flex-direction: column;
    }
    
    .payment-method {
        min-width: auto;
    }
    
    .btn-block {
        font-size: 17px;
        padding: 16px 24px;
    }
    
    .logged-in-info {
        padding: 16px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .donation-header h1 {
        font-size: 26px;
    }
    
    .donation-form-wrapper {
        padding: 20px 16px;
    }
    
    .impact-number {
        font-size: 22px;
    }
    
    .amount-preset {
        padding: 6px 14px;
        font-size: 13px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 15px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.donation-form-wrapper {
    animation: fadeInUp 0.6s ease;
}

.donation-sidebar > * {
    animation: fadeInUp 0.6s ease 0.2s both;
}

.recent-donors-list li {
    animation: fadeInUp 0.4s ease both;
}

.recent-donors-list li:nth-child(1) { animation-delay: 0.1s; }
.recent-donors-list li:nth-child(2) { animation-delay: 0.2s; }
.recent-donors-list li:nth-child(3) { animation-delay: 0.3s; }
.recent-donors-list li:nth-child(4) { animation-delay: 0.4s; }
.recent-donors-list li:nth-child(5) { animation-delay: 0.5s; }