.donation-form-container {
    max-width: 600px;
    margin: 30px auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    direction: rtl;
}

.form-header {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
}

.preview-header {
    text-align: center;
    color: #333;
    margin-bottom: 15px;
    font-size: 20px;
}

.form-section {
    margin-bottom: 20px;
}

.form-section.personal-info,
.form-section.donation-details {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group select {
    padding: 12px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.3);
}

/* Phone and Country Group */
.phone-country-group {
    display: flex;
    gap: 15px;
    flex-wrap: nowrap;
}

.phone-field,
.country-field {
    flex: 1;
}

/* Amount and Currency Group */
.amount-currency-group {
    display: flex;
    gap: 15px;
    flex-wrap: nowrap;
}

.amount-field,
.currency-field {
    flex: 1;
}

/* Ensure other fields are full-width */
.form-group:not(.phone-country-group):not(.amount-currency-group) input,
.form-group:not(.phone-country-group):not(.amount-currency-group) select {
    width: 100%;
}

.donation-caption,
#converted-amount {
    display: block;
    font-size: 13px;
    color: #777;
    margin-top: 5px;
}

.donation-submit {
    padding: 12px 20px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    transition: background-color 0.3s ease;
}

.donation-submit:hover {
    background-color: #005d87;
}

.error-box {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-top: 10px;
}

.success-box {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-top: 10px;
}

#donation-preview {
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

#payment-widget {
    direction: ltr;
    text-align: left;
}

#payment-widget .paymentWidgets {
    margin: 10px 0;
}

/* Loading Spinner Styles */
.loading-spinner {
    text-align: center;
    padding: 20px;
}

.spinner {
    border: 4px solid rgba(0, 115, 170, 0.2);
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    font-size: 14px;
    color: #555;
    margin: 0;
}