/* Donation Form Styles */
.donation-form-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.donation-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.donation-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 600;
    text-align: center;
}

.donation-header p {
    margin: 0;
    opacity: 0.95;
    font-size: 16px;
    text-align: center;
}

.donation-form {
    padding: 30px;
}

.form-step {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #000;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e4e8;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Amount Options */
.amount-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.amount-btn {
    padding: 12px;
    border: 2px solid #e1e4e8;
    background: white;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.amount-btn:hover {
    border-color: #667eea;
    background: #f7f9fc;
}

.amount-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Buttons */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #f1f3f5;
    color: #495057;
    margin-top: 15px;
}

.btn-secondary:hover {
    background: #e9ecef;
}

.btn-block {
    width: 100%;
    display: block;
}

/* Payment Summary */
.payment-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.payment-summary h3 {
    margin: 0 0 15px 0;
    color: #000;
    font-size: 18px;
    text-align: center;
    font-weight: 600;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.summary-row:last-child {
    border-bottom: none;
    font-weight: 600;
}

/* Payment Methods */
.payment-methods h4 {
    margin: 0 0 20px 0;
    color: #000;
    font-size: 20px;
    text-align: center;
    font-weight: 600;
}

#payment-request-button {
    margin-bottom: 20px;
}

.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e1e4e8;
}

.divider span {
    background: white;
    padding: 0 15px;
    position: relative;
    color: #6c757d;
}

.card-payment-section h5 {
    margin: 0 0 15px 0;
    color: #000;
    font-size: 16px;
    text-align: center;
    font-weight: 600;
}

/* Stripe Elements */
#card-element {
    padding: 15px;
    border: 2px solid #e1e4e8;
    border-radius: 8px;
    background: white;
    transition: all 0.3s ease;
}

#card-element.StripeElement--focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#card-errors {
    color: #dc3545;
    margin-top: 10px;
    font-size: 14px;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-left: 10px;
}

.spinner-svg {
    animation: rotate 1s linear infinite;
    width: 100%;
    height: 100%;
}

.spinner-svg circle {
    stroke: white;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Success & Error Messages */
.success-message,
.error-message {
    text-align: center;
    padding: 40px 20px;
}

.success-icon,
.error-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: bold;
}

.success-icon {
    background: #d4edda;
    color: #28a745;
}

.error-icon {
    background: #f8d7da;
    color: #dc3545;
}

.success-message h3,
.error-message h3 {
    margin: 0 0 10px 0;
    color: #000;
    font-size: 24px;
    text-align: center;
    font-weight: 600;
}

.success-message p,
.error-message p {
    margin: 0 0 10px 0;
    color: #6c757d;
    font-size: 16px;
}

.receipt-info {
    font-size: 14px;
    color: #6c757d;
    margin-top: 15px;
}

/* Additional Styles */
.form-text {
    display: block;
    margin-top: 5px;
    color: #6c757d;
    font-size: 13px;
    text-align: center;
}

.summary-note {
    text-align: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
    color: #495057;
    font-size: 14px;
    font-weight: 500;
}

/* Payment Method Selection */
.payment-method-selection {
    margin: 30px 0;
}

.payment-method-selection h4 {
    margin: 0 0 25px 0;
    color: #000;
    font-size: 20px;
    text-align: center;
    font-weight: 600;
}

.payment-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.btn-payment-method {
    background: #fff;
    border: 2px solid #e1e4e8;
    border-radius: 12px;
    padding: 25px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-payment-method:hover {
    border-color: #667eea;
    background: #f7f9fc;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.15);
}

.payment-method-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.payment-method-title {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin-bottom: 5px;
}

.payment-method-desc {
    font-size: 13px;
    color: #6c757d;
}

/* Payment Header */
.payment-header {
    text-align: center;
    margin-bottom: 30px;
}

.payment-header h3 {
    margin: 0 0 10px 0;
    color: #000;
    font-size: 22px;
    font-weight: 600;
}

.payment-header p {
    margin: 0;
    color: #6c757d;
    font-size: 15px;
}

/* Payment Note */
.payment-note {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.payment-note p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .donation-form-container {
        margin: 20px;
        border-radius: 8px;
    }
    
    .donation-header {
        padding: 25px 20px;
    }
    
    .donation-header h2 {
        font-size: 24px;
    }
    
    .donation-form {
        padding: 20px;
    }
    
    .amount-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .payment-buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .amount-options {
        grid-template-columns: 1fr;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 15px;
    }
}