"use client" import { Building2, CreditCard, Landmark, Shield, CheckCircle2 } from "lucide-react" interface Props { onSelect: (rail: "bank" | "gocardless" | "card") => void amount: number } export function PaymentStep({ onSelect, amount }: Props) { const pounds = (amount / 100).toFixed(0) const giftAidTotal = ((amount + amount * 0.25) / 100).toFixed(0) const options = [ { id: "bank" as const, icon: Building2, title: "Bank Transfer", subtitle: "100% goes to charity — zero fees", tag: "Recommended", tagClass: "bg-success-green text-white", detail: "We'll give you the bank details. Transfer in your own time.", fee: "Free", feeClass: "text-success-green font-bold", iconBg: "from-emerald-500 to-green-600", highlight: true, benefits: ["Zero fees", "Most charities prefer this"], }, { id: "gocardless" as const, icon: Landmark, title: "Direct Debit", subtitle: "Automatic collection — set and forget", tag: "Hassle-free", tagClass: "bg-trust-blue/10 text-trust-blue", detail: "GoCardless collects it for you. Protected by the DD Guarantee.", fee: "1% + 20p", feeClass: "text-muted-foreground", iconBg: "from-trust-blue to-blue-600", highlight: false, benefits: ["No action needed", "DD Guarantee"], }, { id: "card" as const, icon: CreditCard, title: "Card Payment", subtitle: "Visa, Mastercard, Amex — instant", tag: "Instant", tagClass: "bg-purple-100 text-purple-700", detail: "Powered by Stripe. Receipt emailed instantly.", fee: "1.4% + 20p", feeClass: "text-muted-foreground", iconBg: "from-purple-500 to-violet-600", highlight: false, benefits: ["Instant confirmation", "All major cards"], }, ] return (

How would you like to pay?

Your pledge: £{pounds} (£{giftAidTotal} with Gift Aid)

{options.map((opt) => ( ))}
All payments are encrypted and secure
) }