/* ── Collection Donate Page ───────────────────────────────────────────────── */

body {
    background-color: #f5f6fa;
}

/* ── Campaign identity (in left column) ───────────────────────────────────── */

.cd-org-badge {
    display: inline-block;
    background: #eef3ff;
    color: #003FA2;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: .28rem .85rem;
    border-radius: 20px;
    border: 1px solid rgba(0,63,162,.2);
}

.cd-header-title {
    color: #1a1a2e;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: .3rem;
}

.cd-header-meta {
    color: #6c757d;
    font-size: .85rem;
}

/* ── Body layout ──────────────────────────────────────────────────────────── */

.cd-body {
    padding-top: 2.5rem;
    padding-bottom: 4rem;
}

/* ── Cover image (in column) ──────────────────────────────────────────────── */

.cd-cover-wrap {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.12);
}

.cd-cover-img {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* ── Target badge (alongside org badge) ───────────────────────────────────── */

.cd-target-badge {
    display: inline-block;
    background: #fff7ed;
    color: #b45309;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .28rem .85rem;
    border-radius: 20px;
    border: 1px solid rgba(180,83,9,.2);
}

/* ── Description ──────────────────────────────────────────────────────────── */

.cd-description {
    font-size: 1.02rem;
    line-height: 1.8;
    color: #444;
    padding-left: 1.1rem;
    border-left: 3px solid #003FA2;
}

/* ── Form card ────────────────────────────────────────────────────────────── */

.cd-form-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0,0,0,.11);
    overflow: hidden;
    position: sticky;
    top: 1.5rem;
}

.cd-form-header {
    background: linear-gradient(135deg, #003FA2 0%, #0052cc 100%);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: .6rem;
}

.cd-heart-icon {
    color: #D15460;
    font-size: 1.1rem;
    animation: heartbeat 1.6s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1);    }
    14%       { transform: scale(1.15); }
    28%       { transform: scale(1);    }
    42%       { transform: scale(1.1);  }
    56%       { transform: scale(1);    }
}

.cd-form-title {
    color: #fff;
    font-weight: 700;
    margin: 0;
    font-size: .95rem;
}

.cd-form-body {
    padding: 1.25rem 1.5rem;
}

/* ── Section labels ───────────────────────────────────────────────────────── */

.cd-section-label {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #8a94a6;
    margin-bottom: .5rem;
}

.cd-field-label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: .3rem;
}

.cd-field-hint {
    font-size: .76rem;
    color: #8a94a6;
    margin-top: .25rem;
}

/* ── Quick amounts ────────────────────────────────────────────────────────── */

.cd-quick-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.cd-quick-btn {
    padding: .35rem .85rem;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    background: #fff;
    color: #2d3748;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s ease;
    line-height: 1;
}

.cd-quick-btn:hover {
    border-color: #003FA2;
    color: #003FA2;
    background: #f0f4ff;
}

.cd-quick-btn.active {
    border-color: #003FA2;
    background: #003FA2;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,63,162,.3);
}

/* ── Fixed amount options ─────────────────────────────────────────────────── */

.cd-fixed-amounts {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.cd-fixed-option {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .6rem .85rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all .18s ease;
}

.cd-fixed-option:hover {
    border-color: #003FA2;
    background: #f5f8ff;
}

.cd-fixed-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #003FA2;
    flex-shrink: 0;
}

.cd-fixed-option:has(input:checked) {
    border-color: #003FA2;
    background: #eef3ff;
}

.cd-fixed-label {
    line-height: 1.3;
}

.cd-fixed-amount {
    font-weight: 700;
    color: #003FA2;
    font-size: 1rem;
}

/* ── Open amount input ────────────────────────────────────────────────────── */

.cd-amount-input-wrap {
    display: flex;
    align-items: center;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .18s, box-shadow .18s;
}

.cd-amount-input-wrap:focus-within {
    border-color: #003FA2;
    box-shadow: 0 0 0 3px rgba(0,63,162,.1);
}

.cd-currency {
    padding: 0 .85rem;
    background: #f8f9fc;
    color: #6c757d;
    font-weight: 700;
    font-size: .85rem;
    border-right: 2px solid #e2e8f0;
    height: 44px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.cd-amount-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.25rem;
    font-weight: 700;
    color: #003FA2;
    padding: .4rem .65rem;
    background: transparent;
    min-width: 0;
}

.cd-amount-input::placeholder {
    color: #d0d5e0;
    font-weight: 400;
}

/* Remove number input arrows */
.cd-amount-input::-webkit-outer-spin-button,
.cd-amount-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

/* ── Standard inputs ──────────────────────────────────────────────────────── */

.cd-input {
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: .45rem .8rem !important;
    font-size: .875rem !important;
    transition: border-color .18s, box-shadow .18s !important;
}

.cd-input:focus {
    border-color: #003FA2 !important;
    box-shadow: 0 0 0 3px rgba(0,63,162,.1) !important;
    outline: none !important;
}

/* ── Divider ──────────────────────────────────────────────────────────────── */

.cd-divider {
    border-color: #f0f2f5;
    margin: .85rem 0;
}

/* ── Submit button ────────────────────────────────────────────────────────── */

.cd-submit-btn {
    display: block;
    width: 100%;
    padding: .75rem;
    background: linear-gradient(135deg, #D15460 0%, #b03040 100%);
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    letter-spacing: .02em;
    transition: transform .15s ease, box-shadow .15s ease;
    box-shadow: 0 4px 18px rgba(209,84,96,.35);
}

.cd-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(209,84,96,.45);
}

.cd-submit-btn:active {
    transform: translateY(0);
}

.cd-submit-btn:disabled {
    opacity: .7;
    transform: none;
    cursor: not-allowed;
}

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

@media (max-width: 991px) {
    .cd-form-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .cd-header-title {
        font-size: 1.4rem;
    }

    .cd-amount-input {
        font-size: 1.2rem;
    }

    .cd-body {
        padding-top: 1.5rem;
    }
}

/* Quick Access & Share: swap desktop / mobile placement */
.cd-qr-desktop { display: block; }
.cd-qr-mobile  { display: none; }
@media (max-width: 991.98px) {
    .cd-qr-desktop { display: none; }
    .cd-qr-mobile  { display: block; }
}
