/* Donation Form Styles */
.donation-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.donation-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.donation-tab {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.donation-tab.active {
    color: #ff6b35;
    border-bottom-color: #ff6b35;
}

.donation-tab:hover {
    color: #ff6b35;
}

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

.donation-form h3 {
    margin: 0 0 25px 0;
    color: #333;
    font-size: 20px;
    text-align: right;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    text-align: right;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #999;
    font-size: 12px;
    text-align: right;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="month"],
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.amount-input-wrapper {
    position: relative;
}

.amount-input-wrapper input {
    padding-right: 40px;
}

.amount-input-wrapper .currency {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-weight: 600;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    direction: rtl;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-group a {
    color: #ff6b35;
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.donation-submit-btn {
    width: 100%;
    padding: 15px 20px;
    background: #ff6b35;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    direction: rtl;
}

.donation-submit-btn:hover {
    background: #e55a28;
}

.donation-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.form-message {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 4px;
    text-align: center;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

#payment-iframe-container {
    margin-top: 30px;
}

#payment-iframe-container h3 {
    margin-bottom: 15px;
    color: #333;
    text-align: right;
}

#payment-iframe {
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

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

/* Responsive */
@media (max-width: 768px) {
    .donation-form-wrapper {
        padding: 10px;
    }
    
    .donation-form-container {
        padding: 20px;
    }
    
    .donation-tab {
        font-size: 14px;
        padding: 12px 15px;
    }
}
