/* ── Page layout ─────────────────────────────────────────────────── */
.donate-page-wrap {
    min-height: 100vh;
    padding: 120px 20px 80px;
    background: var(--dark-bg);
}
.donate-container {
    max-width: 660px;
    margin: 0 auto;
}
.donate-card {
    background: linear-gradient(160deg, var(--dark-gray), var(--medium-gray));
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 6px;
    padding: 2.5rem 2.5rem 2rem;
}

/* ── Header ──────────────────────────────────────────────────────── */
.donate-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}
.donate-header h1 {
    font-family: 'Aboreto', serif;
    color: var(--accent-gold);
    font-size: 1.9rem;
    letter-spacing: 2px;
    margin-bottom: 0.6rem;
}
.donate-header p {
    color: var(--text-gray);
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

/* ── Tax notice ──────────────────────────────────────────────────── */
.donate-tax-notice {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    color: #888;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* ── Physical donor fields (shown when Check/Cash selected) ─────── */
.donate-physical-fields {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.donate-name-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 1rem;
}
.donate-form-group {
    margin-bottom: 1rem;
}
.donate-form-group label {
    display: block;
    color: var(--text-white);
    margin-bottom: 5px;
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
}
.donate-form-group input {
    width: 100%;
    padding: 10px 13px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.35);
    color: var(--text-white);
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.donate-form-group input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.12);
}

/* ── Large card donation informational note ──────────────────────── */
.donate-fee-note {
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(212, 175, 55, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    color: #bfaa6e;
    line-height: 1.55;
}
.donate-fee-note i {
    margin-right: 6px;
}

/* ── Success state panel ─────────────────────────────────────────── */
.donate-success-panel {
    text-align: center;
    padding: 1.5rem 0 0.5rem;
}
.donate-success-icon {
    color: #48bb78;
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}
.donate-success-title {
    font-family: 'Aboreto', serif;
    color: var(--accent-gold);
    font-size: 1.3rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}
.donate-success-msg {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}
.donate-success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.donate-success-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
}
.donate-success-btn--primary {
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent-gold);
    border: 1px solid rgba(212, 175, 55, 0.4);
}
.donate-success-btn--primary:hover {
    background: rgba(212, 175, 55, 0.25);
    border-color: var(--accent-gold);
}
.donate-success-btn--secondary {
    background: transparent;
    color: var(--text-gray);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.donate-success-btn--secondary:hover { color: var(--text-white); }

/* ── Submit button spacing ───────────────────────────────────────── */
/* IMPORTANT: margin MUST live here, not as an inline style.
   FormUtils.setSubmitState() replaces all inline styles via cssText,
   which wipes any inline margin-top and causes visual overlap.
   See system_overview.md Frontend Conventions for the rule. */
#donateSubmitBtn {
    margin-top: 20px;
}

/* IMPORTANT: same rule as #donateSubmitBtn above — margin MUST live here,
   not as an inline style on the dynamically-injected button element.
   setSubmitState() wipes inline styles; see system_overview.md. */
#donatePostSignupBtn {
    margin-top: 14px;
}

/* ── Post-donation account creation section ──────────────────────── */
.donate-post-signup-section {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
}
.donate-post-signup-header {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 1rem;
    text-align: center;
}
.donate-post-signup-section .donate-form-group input[readonly] {
    background: rgba(0, 0, 0, 0.45);
    color: #9a9a9a;
    cursor: default;
    border-color: rgba(212, 175, 55, 0.1);
}
.donate-post-signup-no-thanks {
    display: block;
    text-align: center;
    margin-top: 14px;
    color: #666;
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    text-decoration: none;
}
.donate-post-signup-no-thanks:hover { color: #999; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 560px) {
    .donate-page-wrap { padding: 100px 16px 60px; }
    .donate-card { padding: 2rem 1.5rem 1.75rem; }
    .donate-name-grid { grid-template-columns: 1fr; gap: 0; }
    .sd-pay-select-btns { gap: 10px; }
    .btn-sd-pay-mode { width: 75px; height: 75px; }
}
