/* ── Design tokens ─────────────────────────────────────────── */
:root {
    --church-purple:  #5B2D8E;
    --church-maroon:  #841E40;
    --church-gold:    #C8972A;
    --church-light:   #F5F0FA;
    --church-dark:    #2A1245;
    --church-maroon-dark:  #460F22;
    --success-green:  #28a745;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(160deg, var(--church-light) 0%, #E8E0F5 100%);
    min-height: 100vh;
    color: #333;
}
h1, h2, h3, .font-serif { font-family: 'Merriweather', Georgia, serif; }

/* ── Church header ──────────────────────────────────────────── */
.church-header {
    background: linear-gradient(135deg, var(--church-maroon-dark) 0%, var(--church-maroon) 100%);
    color: #fff;
    padding: 2.5rem 1rem 2rem;
    text-align: center;
    border-bottom: 4px solid var(--church-gold);
}
.church-header .icon-cross { font-size: 2.8rem; color: var(--church-gold); }
.church-header h1           { font-size: 2rem; margin: 0.6rem 0 0.3rem; }
.church-header p            { opacity: 0.85; margin: 0; font-size: 1.05rem; }

/* ── Card ───────────────────────────────────────────────────── */
.donation-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 36px rgba(91,45,142,0.13);
}

/* ── Section heading ────────────────────────────────────────── */
.section-heading {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--church-maroon);
    text-transform: uppercase;
    letter-spacing: 0.09em;
    border-bottom: 2px solid var(--church-gold);
    padding-bottom: 0.4rem;
    margin-bottom: 1.25rem;
}

/* ── Amount preset buttons ──────────────────────────────────── */
.amount-btn {
    width: 100%;
    border: 2px solid var(--church-maroon);
    background: #fff;
    color: var(--church-maroon);
    border-radius: 8px;
    padding: 0.5rem 0.25rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, transform 0.1s;
}
.amount-btn:hover    { background: var(--church-light); transform: translateY(-1px); }
.amount-btn.selected { background: var(--church-maroon); color: #fff; }

/* ── Frequency toggle ───────────────────────────────────────── */
.freq-toggle              { display: flex; border: 2px solid var(--church-maroon); border-radius: 8px; overflow: hidden; }
.freq-toggle input[type="radio"] { display: none; }
.freq-toggle label        { flex: 1; text-align: center; padding: 0.65rem; cursor: pointer; font-weight: 600; color: var(--church-maroon); margin: 0; transition: all 0.18s; }
.freq-toggle input[type="radio"]:checked + label { background: var(--church-maroon); color: #fff; }

/* ── Form controls ──────────────────────────────────────────── */
.form-control:focus, .form-select:focus {
    border-color: var(--church-maroon);
    box-shadow: 0 0 0 0.2rem rgba(70,15,34,0.2);
}

/* ── Stripe Payment Element container ───────────────────────── */
#payment-element {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 1rem;
    background: #fafafa;
    min-height: 60px;
}

/* ── Donate button ──────────────────────────────────────────── */
.btn-donate {
    width: 100%;
    background: linear-gradient(135deg, var(--church-maroon), #821414);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.9rem;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: opacity 0.18s, transform 0.1s;
}
.btn-donate:hover:not(:disabled) { opacity: 0.9; transform: translateY(-1px); }
.btn-donate:disabled             { opacity: 0.55; cursor: not-allowed; }

/* ── Error message ──────────────────────────────────────────── */
#payment-message {
    color: #842029;
    background: #f8d7da;
    border: 1px solid #f5c2c7;
    border-radius: 8px;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
}

/* ── Security badges ────────────────────────────────────────── */
.security-badges        { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; color: #666; font-size: 0.8rem; }
.security-badges span   { display: flex; align-items: center; gap: 5px; }
.security-badges i      { color: var(--success-green); }

/* ── Footer ─────────────────────────────────────────────────── */
.church-footer {
    background: var(--church-maroon-dark);
    color: rgba(255,255,255,0.65);
    text-align: center;
    padding: 1.1rem;
    font-size: 0.8rem;
    margin-top: 3rem;
}
.church-footer a { color: var(--church-gold); text-decoration: none; }