/* Extracted from site/donate.html on 2026-04-14 */

/* Suppress the blue → org-accent flash on /d/<short>/ page loads. donate.js
   adds .sr-accent-pending to <body> before any async work and removes it the
   moment document.documentElement.style.--accent is set to the org's color.
   1.5s timeout is the hard cap if the API never responds. */
body.sr-accent-pending { visibility: hidden; }

.donate-page { max-width: 440px; margin: 0 auto; padding: 16px; min-height: 100vh; }
        .org-header { text-align: center; padding: 24px 0 16px; }
        .org-logo { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; margin-bottom: 8px; }
        .org-name { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
        .fundraiser-name { font-size: 28px; font-weight: 700; color: var(--text-primary); margin: 4px 0; }
        .raised-by { font-size: 13px; color: var(--text-muted); margin: 4px 0 0; }
        .raised-by strong { color: var(--text-primary); font-weight: 600; }
        .campaign-name { font-size: 14px; color: var(--text-secondary); }
        .raised-badge { display: inline-block; background: var(--accent-light); color: var(--accent);
            padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; margin-top: 12px; }

        .amount-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 24px 0; }
        .amount-btn { padding: 16px; border: 2px solid var(--border); border-radius: 12px; background: white;
            font-size: 20px; font-weight: 700; cursor: pointer; transition: all 0.15s; text-align: center; }
        .amount-btn:hover { border-color: var(--accent); }
        .amount-btn.selected { border-color: var(--accent); background: var(--accent-light); color: var(--accent); }
        .amount-btn.custom { font-size: 14px; font-weight: 500; color: var(--text-secondary); }

        .custom-amount { display: none; margin: -8px 0 16px; }
        .custom-amount.visible { display: block; }
        .custom-amount input { width: 100%; padding: 14px; border: 2px solid var(--border); border-radius: 12px;
            font-size: 24px; font-weight: 700; text-align: center; outline: none; }
        .custom-amount input:focus { border-color: var(--accent); }
        .custom-amount .field-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; text-align: center; }

        .donor-fields { margin: 0 0 16px; }
        .donor-fields label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
        .donor-fields input, .donor-fields textarea { width: 100%; padding: 12px; border: 1.5px solid var(--border);
            border-radius: 10px; font-size: 15px; margin-bottom: 10px; outline: none; box-sizing: border-box; }
        .donor-fields input:focus, .donor-fields textarea:focus { border-color: var(--accent); }
        .donor-fields textarea { resize: none; height: 60px; }

        .fec-fields { margin: 16px 0; padding: 16px; background: #fef9c3; border: 1.5px solid #fde68a; border-radius: 10px; }
        .fec-fields h3 { font-size: 14px; font-weight: 700; color: #854d0e; margin: 0 0 4px; }
        .fec-fields .fec-blurb { font-size: 12px; color: #854d0e; margin: 0 0 12px; line-height: 1.4; }
        .fec-fields label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
        .fec-fields input { width: 100%; padding: 10px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 14px; margin-bottom: 10px; box-sizing: border-box; outline: none; }
        .fec-fields input:focus { border-color: var(--accent); }
        .fec-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; }
        .fec-row > div { display: flex; flex-direction: column; }

        .checkbox-row { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0; font-size: 14px; color: var(--text-secondary); }
        .checkbox-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); margin-top: 2px; flex-shrink: 0; }
        .checkbox-row label { line-height: 1.4; }
        .checkbox-row .anon-hint { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }
        .donor-fields input:disabled, .donor-fields textarea:disabled { background: #f3f4f6; color: #94a3b8; cursor: not-allowed; }

        .donate-btn { width: 100%; padding: 16px; background: var(--accent); color: white; border: none;
            border-radius: 12px; font-size: 18px; font-weight: 700; cursor: pointer; transition: opacity 0.15s; }
        .donate-btn:hover { opacity: 0.9; }
        .donate-btn:disabled { opacity: 0.5; cursor: not-allowed; }

        .test-mode-banner { background: #fef3c7; border: 1px solid #f59e0b; color: #78350f;
            padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 13px;
            text-align: center; line-height: 1.4; }
        .test-mode-banner strong { color: #b45309; letter-spacing: 0.04em; }

        .secure-note { text-align: center; font-size: 11px; color: var(--text-muted); margin-top: 12px; }
        .branding { text-align: center; font-size: 11px; color: var(--text-muted); margin-top: 24px; padding-bottom: 24px; }

        .loading { display: flex; align-items: center; justify-content: center; min-height: 60vh; }
        .loading-spinner { width: 32px; height: 32px; border: 3px solid var(--border);
            border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
        @keyframes spin { to { transform: rotate(360deg); } }

        .error-state { text-align: center; padding: 48px 16px; }
        .error-state h2 { font-size: 20px; margin-bottom: 8px; }
        .error-state p { color: var(--text-muted); }
        .error-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
        .error-cta-primary { display: inline-block; padding: 12px 24px; background: #2563eb;
            color: white !important; text-decoration: none; border-radius: 8px; font-weight: 600; }
        .error-cta-primary:hover { background: #1e4fd6; }
        .error-cta-secondary { display: inline-block; padding: 12px 24px; background: transparent;
            color: #4b5563 !important; text-decoration: underline; border-radius: 8px; font-weight: 500; }

        /* Athon pledge tab styles */
        .athon-tabs { display: flex; margin: 0 0 20px; border-radius: 10px; overflow: hidden; border: 2px solid var(--border); }
        .athon-tab { flex: 1; padding: 12px 8px; text-align: center; font-size: 14px; font-weight: 600;
            cursor: pointer; background: white; border: none; color: var(--text-secondary); transition: all 0.15s; }
        .athon-tab.active { background: var(--accent); color: white; }
        .athon-tab:first-child { border-right: 1px solid var(--border); }

        .pledge-section { display: none; }
        .pledge-section.visible { display: block; }
        .donate-section { display: block; }
        .donate-section.hidden { display: none; }

        .pledge-amount-row { display: flex; align-items: center; gap: 8px; margin: 16px 0; }
        .pledge-amount-row input { flex: 1; padding: 14px; border: 2px solid var(--border); border-radius: 12px;
            font-size: 20px; font-weight: 700; text-align: center; outline: none; }
        .pledge-amount-row input:focus { border-color: var(--accent); }
        .pledge-amount-row .unit-label { font-size: 14px; color: var(--text-secondary); white-space: nowrap; }

        .pledge-cap-row { margin: 0 0 16px; }
        .pledge-cap-row label { font-size: 13px; color: var(--text-muted); display: block; margin-bottom: 4px; }
        .pledge-cap-row input { width: 100%; padding: 12px; border: 1.5px solid var(--border); border-radius: 10px;
            font-size: 15px; outline: none; box-sizing: border-box; }
        .pledge-cap-row input:focus { border-color: var(--accent); }

        .pledge-info { background: #eff6ff; border: 1.5px solid #bfdbfe; border-radius: 10px;
            padding: 12px 16px; margin: 16px 0; font-size: 13px; color: #1e40af; line-height: 1.5; }

        .pledge-success { text-align: center; padding: 32px 16px; }
        .pledge-success h2 { font-size: 22px; color: var(--text-primary); margin-bottom: 8px; }
        .pledge-success p { font-size: 15px; color: var(--text-secondary); line-height: 1.5; }

        /* Recurring tier picker (Wave 2 multi-tier memberships) */
        .give-mode-tabs { display: flex; margin: 16px 0 20px; border-radius: 10px; overflow: hidden; border: 2px solid var(--border); }
        .give-mode-tab { flex: 1; padding: 12px 8px; text-align: center; font-size: 14px; font-weight: 600;
            cursor: pointer; background: white; border: none; color: var(--text-secondary); transition: all 0.15s; }
        .give-mode-tab.active { background: var(--accent); color: white; }
        .give-mode-tab:first-child { border-right: 1px solid var(--border); }

        .recurring-section[hidden] { display: none; }
        .tier-grid { display: grid; gap: 10px; margin: 16px 0; }
        .tier-btn { padding: 14px 16px; border: 2px solid var(--border); border-radius: 12px;
            background: white; cursor: pointer; transition: all 0.15s; text-align: left;
            display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: baseline; }
        .tier-btn:hover { border-color: var(--accent); }
        .tier-btn.selected { border-color: var(--accent); background: var(--accent-light); }
        .tier-name { font-size: 15px; font-weight: 700; color: var(--text-primary); }
        .tier-amount { font-size: 18px; font-weight: 700; color: var(--accent); white-space: nowrap; }
        .tier-per { font-size: 12px; font-weight: 500; color: var(--text-muted); margin-left: 2px; }
        .tier-desc { grid-column: 1 / -1; font-size: 13px; color: var(--text-muted); line-height: 1.4; }
