/* ─── Sadaqah Payment Form Styles ────────────────────────────────── */

.sadaqah-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}

.sadaqah-card {
    background-color: #ffffff;
    width: 100%;
    max-width: 440px;
    border-radius: 20px;
    padding: 32px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
    direction: rtl;
}

/* ─── Inputs ─────────────────────────────────────────────────────── */

.sadaqah-input-group {
    position: relative;
    margin-bottom: 16px;
}

.sadaqah-input-group input {
    width: 100%;
    padding: 14px 44px 14px 14px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    color: #374151 !important;
    outline: none;
    transition: border-color 0.3s !important;
    font-family: inherit;
    box-sizing: border-box;
    background: #fff;
}

.sadaqah-input-group input::placeholder {
    color: #9ca3af !important;
}

.sadaqah-input-group input:focus {
    border-color: #3b82f6  !important;
}

.sadaqah-input-icon {
    position: absolute !important;
    right: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 20px !important;
    height: 20px !important;
    color: #9ca3af !important;
    pointer-events: none;
}

.sadaqah-hidden {
    display: none !important;
}

/* ─── Section Title ──────────────────────────────────────────────── */

.sadaqah-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    margin: 24px 0 12px 0;
}

/* ─── Amount Presets ─────────────────────────────────────────────── */

.sadaqah-amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.sadaqah-amount-grid.sadaqah-row-2 {
    grid-template-columns: repeat(2, 1fr);
}

.sadaqah-preset-btn {
    background-color: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    padding: 12px 0 !important;
    font-size: 13px !important;
    font-weight: 500;
    color: #374151 !important;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-family: inherit;
}

.sadaqah-preset-btn:hover {
    border-color: #9ca3af !important;
}

.sadaqah-preset-btn.active {
    border-color: #3b82f6 !important;
    background-color: #eff6ff !important;
    color: #3b82f6 !important;
    font-weight: 700;
}

/* ─── Destination Buttons ────────────────────────────────────────── */

.sadaqah-destination-grid {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 8px;
}

.sadaqah-dest-btn {
    background-color: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    padding: 10px 12px !important;
    font-size: 12px !important;
    color: #6b7280 !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
}

.sadaqah-dest-btn.active {
    border-color: #3b82f6 !important;
    color: #3b82f6 !important;
    background-color: #f0f6ff !important;
    justify-content: space-between;
}

.sadaqah-check-icon {
    width: 16px !important;
    height: 16px !important;
    background-color: #3b82f6 !important;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sadaqah-dest-btn.active .sadaqah-check-icon {
    display: flex;
}

.sadaqah-check-icon svg {
    width: 10px;
    height: 10px;
}

/* ─── Submit Button ──────────────────────────────────────────────── */

.sadaqah-submit-btn {
    width: 100%;
    background-color: #14b84b !important;
    color: white !important;
    border: none;
    border-radius: 14px;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    margin-top: 24px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(20, 184, 75, 0.25);
    transition: background-color 0.2s;
    font-family: inherit;
}

.sadaqah-submit-btn:hover {
    background-color: #12a142;
}

.sadaqah-submit-btn svg {
    width: 20px;
    height: 20px;
}

/* ─── Security Notice ────────────────────────────────────────────── */

.sadaqah-security-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 12px;
    color: #6b7280;
}

.sadaqah-security-notice svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ─── Features Footer ────────────────────────────────────────────── */

.sadaqah-features-footer {
    display: flex;
    justify-content: space-around;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.sadaqah-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.sadaqah-feature-icon {
    width: 28px;
    height: 28px;
    color: #3b82f6;
}

.sadaqah-feature-text {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
}

/* ─── Error Box ──────────────────────────────────────────────────── */

.sadaqah-error-box {
    width: 100%;
    max-width: 440px;
    margin-top: 12px;
    padding: 0;
    font-size: 14px;
    color: #dc2626;
    font-weight: 600;
    text-align: center;
    min-height: 0;
}

.sadaqah-error-box:not(:empty) {
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 10px;
}

/* ─── Callback Result ────────────────────────────────────────────── */

.sadaqah-callback-result {
    max-width: 480px;
    margin: 40px auto;
    padding: 32px 24px;
    border-radius: 16px;
    text-align: right;
    direction: rtl;
    font-family: Tahoma, Arial, sans-serif;
}

.sadaqah-callback-result h2 {
    margin-top: 0;
    font-size: 20px;
}

.sadaqah-success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #15803d;
}

.sadaqah-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #dc2626;
}

.sadaqah-success-msg {
    font-size: 15px;
    margin-bottom: 20px;
    color: #166534;
}

.sadaqah-payment-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    font-size: 14px;
}

.sadaqah-payment-table th,
.sadaqah-payment-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #bbf7d0;
    text-align: right;
}

.sadaqah-payment-table th {
    width: 120px;
    font-weight: 700;
    color: #166534;
    background: #dcfce7;
}

.sadaqah-payment-table td {
    color: #1a2e1a;
}

/* ─── Responsive ─────────────────────────────────────────────────── */

@media (max-width: 480px) {
    .sadaqah-card {
        border-radius: 14px;
        padding: 24px 16px;
    }

    .sadaqah-amount-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
