/* Compact Donation Section Styles */
.compact-donation-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.compact-donation-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top, rgba(44, 90, 160, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Section Header Consistent Styling */
.compact-donation-section .section-header {
    text-align: center;
    margin-bottom: 48px;
}

.compact-donation-section .section-header h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #2c5aa0;
    margin-bottom: 15px;
    position: relative;
}

.compact-donation-section .section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #2c5aa0, #28a745);
    border-radius: 2px;
}

.compact-donation-section .section-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Progress Bar Compact */
.donation-progress-compact {
    background: white;
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(44, 90, 160, 0.08);
    border: 1px solid rgba(44, 90, 160, 0.06);
}

.progress-header {
    text-align: center;
    margin-bottom: 20px;
}

.progress-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.progress-stats .raised {
    color: #28a745;
    font-size: 1.25rem;
}

.progress-stats .separator {
    color: #6c757d;
}

.progress-stats .goal {
    color: #2c5aa0;
}

.progress-bar-container {
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 6px;
    transition: width 0.8s ease;
}

.donation-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #6c757d;
}

/* Quick Donation Form */
.quick-donation-form {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(44, 90, 160, 0.08);
    border: 1px solid rgba(44, 90, 160, 0.06);
    position: relative;
}

.quick-donation-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2c5aa0, #28a745);
    border-radius: 20px 20px 0 0;
}

/* Amount Selection */
.amount-selection {
    margin-bottom: 32px;
}

.amount-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) 1.5fr;
    gap: 12px;
}

.amount-btn {
    position: relative;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 16px 8px;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.amount-btn:hover {
    border-color: #2c5aa0;
    color: #2c5aa0;
    transform: translateY(-2px);
}

.amount-btn.selected {
    background: linear-gradient(135deg, #2c5aa0, #28a745);
    color: white;
    border-color: transparent;
}

.amount-btn.popular {
    border-color: #ffc107;
    background: linear-gradient(135deg, #fff3cd, #ffffff);
}

.popular-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ffc107;
    color: #212529;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 700;
}

.custom-amount {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 8px 12px;
    transition: border-color 0.3s ease;
}

.custom-amount:focus-within {
    border-color: #2c5aa0;
}

.custom-amount span {
    color: #6c757d;
    font-weight: 600;
    margin-right: 8px;
}

.custom-amount input {
    border: none;
    outline: none;
    flex: 1;
    font-weight: 600;
    color: #495057;
}

/* Impact Statements */
.impact-statements {
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border-left: 3px solid #2c5aa0;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.impact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
}

.impact-item i {
    color: #2c5aa0;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Donor Info Toggle */
.donor-info-toggle {
    margin-bottom: 16px;
}

.info-toggle-btn {
    background: transparent;
    border: 1px dashed #6c757d;
    border-radius: 8px;
    padding: 12px 16px;
    color: #6c757d;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.info-toggle-btn:hover {
    border-color: #2c5aa0;
    color: #2c5aa0;
    background: #f8f9fa;
}

.info-toggle-btn.active {
    border-color: #2c5aa0;
    color: #2c5aa0;
    background: #e3f2fd;
}

/* Collapsible Donor Info */
.donor-info-collapsed {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.donor-info-collapsed.expanded {
    max-height: 300px;
}

.donor-fields-compact {
    display: grid;
    gap: 12px;
    padding: 16px 0;
}

.donor-fields-compact input,
.donor-fields-compact textarea {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.donor-fields-compact input:focus,
.donor-fields-compact textarea:focus {
    outline: none;
    border-color: #2c5aa0;
}

.checkbox-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #6c757d;
    cursor: pointer;
}

/* Payment Selection */
.payment-selection {
    margin-bottom: 24px;
}

.payment-methods-compact {
    display: flex;
    gap: 12px;
}

.payment-option {
    flex: 1;
    cursor: pointer;
}

.payment-option input {
    display: none;
}

.payment-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-align: center;
}

.payment-content i {
    font-size: 1.5rem;
    color: #6c757d;
}

.payment-content span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
}

.payment-option.active .payment-content {
    border-color: #2c5aa0;
    background: #e3f2fd;
}

.payment-option.active .payment-content i {
    color: #2c5aa0;
}

.payment-option.active .payment-content span {
    color: #2c5aa0;
}

/* Donate Button */
.donate-btn-compact {
    width: 100%;
    background: linear-gradient(135deg, #2c5aa0, #28a745);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    margin-bottom: 16px;
}

.donate-btn-compact:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.3);
}

.donate-btn-compact:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Donation Confirmation */
.donation-confirmation-compact {
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border-radius: 12px;
    border-left: 4px solid #28a745;
    animation: slideIn 0.3s ease-out;
}

.donation-confirmation-compact.show {
    display: block;
}

.donation-confirmation-compact.typing {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-left-color: #ffc107;
}

.confirmation-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.confirmation-content i {
    font-size: 2rem;
    color: #28a745;
    flex-shrink: 0;
}

.confirmation-text p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #155724;
}

.confirmation-text .amount-display {
    color: #28a745;
    font-weight: 700;
    font-size: 1.3rem;
}

.confirmation-text .impact-message {
    font-size: 0.95rem;
    color: #155724;
    opacity: 0.9;
    margin-top: 4px;
    font-weight: 500;
}

.typing .confirmation-content i {
    color: #ffc107;
}

.typing .confirmation-text p,
.typing .confirmation-text .impact-message {
    color: #856404;
}

/* Payment Element */
.payment-element-compact {
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    box-shadow: 0 4px 16px rgba(44, 90, 160, 0.08);
    animation: slideIn 0.3s ease-out;
}

.payment-element-compact.show {
    display: block;
}

/* Payment Instructions */
.payment-instructions-compact {
    margin-top: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    animation: slideIn 0.3s ease-out;
}

.instruction-card-compact {
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.instruction-card-compact h4 {
    color: #2c5aa0;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.instruction-card-compact .paypal-icon {
    color: #0070ba;
    font-size: 2rem;
    margin-bottom: 10px;
}

.instruction-card-compact .bank-icon {
    color: #6c757d;
    font-size: 2rem;
    margin-bottom: 10px;
}

.bank-details-compact {
    text-align: left;
    margin: 15px 0;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
}

.detail-item strong {
    color: #2c5aa0;
    font-weight: 600;
}

.iban-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bank-note {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 15px;
    padding: 10px;
    background: #e3f2fd;
    border-radius: 6px;
    border-left: 3px solid #2196f3;
}

#stripe-element-compact {
    /* Stripe elements will inherit the container styles */
}

.btn-paypal-compact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0070ba;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-paypal-compact:hover {
    background: #005ea6;
    color: white;
}

.bank-details-compact p {
    margin: 8px 0;
    font-size: 0.9rem;
}

.iban-code {
    font-family: 'Courier New', monospace;
    background: white;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.copy-btn-compact {
    background: transparent;
    border: none;
    color: #2c5aa0;
    cursor: pointer;
    margin-left: 8px;
    padding: 4px;
}

/* Recent Donors */
.recent-donors-compact {
    margin-top: 24px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(44, 90, 160, 0.08);
}

.recent-donors-compact h4 {
    margin: 0 0 12px 0;
    font-size: 1rem;
    color: #2c5aa0;
    font-weight: 600;
}

.donors-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.donor-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #28a745;
}

.donor-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: #495057;
}

.donor-amount {
    font-size: 0.85rem;
    color: #28a745;
    font-weight: 600;
    margin-left: auto;
}

/* Error Messages */
.error-message-compact {
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 12px;
    margin-top: 16px;
    font-size: 0.9rem;
}

/* Spinner */
.spinner-compact {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Utility */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .compact-donation-section {
        padding: 60px 0;
    }
    
    .compact-donation-section .section-header {
        margin-bottom: 32px;
    }
    
    .compact-donation-section .section-subtitle {
        font-size: 1.1rem;
    }
    
    .donation-progress-compact,
    .quick-donation-form,
    .recent-donors-compact {
        padding: 24px;
        margin-left: 16px;
        margin-right: 16px;
    }
    
    .amount-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .amount-grid .custom-amount {
        grid-column: 1 / -1;
        margin-top: 8px;
    }
    
    .impact-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .impact-item {
        padding: 12px;
    }
    
    .payment-methods-compact {
        flex-direction: column;
        gap: 8px;
    }
    
    .progress-stats {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
    
    .progress-stats .separator {
        display: none;
    }
    
    .donors-scroll {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .donor-fields-compact {
        gap: 16px;
    }
    
    /* Mobile styles for new elements */
    .donation-confirmation-compact {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .confirmation-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .confirmation-content i {
        font-size: 1.5rem;
    }
    
    .confirmation-text .amount-display {
        font-size: 1.2rem;
    }
    
    .payment-element-compact {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .instruction-card-compact {
        padding: 16px;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .iban-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
    }
    
    .iban-code {
        word-break: break-all;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .compact-donation-section {
        padding: 40px 0;
    }
    
    .donation-progress-compact,
    .quick-donation-form {
        padding: 20px;
        margin-left: 12px;
        margin-right: 12px;
        border-radius: 16px;
    }
    
    .amount-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .amount-btn {
        padding: 12px 8px;
        font-size: 0.9rem;
    }
    
    .impact-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .impact-content {
        align-items: center;
    }
}