/* Donate Page Payment Interface Styles */

/* Payment Section */
.payment-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.payment-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.payment-btn {
    min-width: 150px;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
}

.payment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.payment-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.payment-btn.btn-hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Modal Customizations */
.modal-content {
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.modal-body {
    padding: 30px;
}

/* Crypto Widget Container */
#cryptoForm {
    width: 300px;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #f8f9fa;
    border-radius: 8px;
}

#cryptoForm iframe {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Check Donation Content */
#check-donation-content {
    line-height: 1.6;
    color: #555;
}

#check-donation-content h4 {
    color: #333;
    margin-bottom: 15px;
}

#check-donation-content p {
    margin-bottom: 15px;
}

#check-donation-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

#check-donation-content li {
    margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .payment-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .payment-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .modal-dialog {
        margin: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    #cryptoForm {
        width: 280px;
        height: 500px;
    }
}

@media (max-width: 480px) {
    .payment-section {
        padding: 60px 0;
    }
    
    .modal-dialog {
        margin: 10px;
    }
    
    #cryptoForm {
        width: 250px;
        height: 450px;
    }
}

/* Loading State */
#cryptoForm.loading {
    position: relative;
}

#cryptoForm.loading::after {
    content: 'Loading crypto widget...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 16px;
}

/* Crypto Modal Specific Styles */
#cryptoModal .modal-content {
    border-radius: 12px;
}

#cryptoModal .modal-body {
    padding: 20px;
}

/* Crypto Loader */
.crypto-loader {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 400px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    opacity: 1 !important;
    visibility: visible !important;
}

.crypto-loader .spinner-border {
    width: 4rem;
    height: 4rem;
    border-width: 0.4em;
    color: #007bff;
    opacity: 1 !important;
}

.crypto-loader p {
    margin-top: 1.5rem;
    font-size: 18px;
    color: #333;
    font-weight: 600;
    opacity: 1 !important;
}

/* Crypto Error */
.crypto-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    min-height: 300px;
}

.crypto-error i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #dc3545;
}

.crypto-error p {
    font-size: 16px;
    margin-bottom: 15px;
    color: #721c24;
}

.crypto-error button {
    margin-top: 10px;
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.crypto-loader,
.crypto-error {
    animation: fadeIn 0.3s ease-in-out;
}

/* Widget iframe appearance animation */
#cryptoForm iframe {
    animation: fadeIn 0.5s ease-in-out;
}
