/* ── Zemzem Donate – Frontend ── */
*, *::before, *::after { box-sizing: border-box; }

.zzd-wrap { max-width: 680px; margin: 2.5rem auto; font-family: inherit; }

/* ── Notices ──────────────────────────────────────────────────── */
.zzd-notice          { padding: .85rem 1.1rem; border-radius: 10px; margin-bottom: 1.25rem; font-weight: 500; display: flex; align-items: center; gap: .5rem; }
.zzd-success         { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.zzd-error           { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.zzd-info            { background: #edf7f5; color: #1d6358; border: 1px solid #a0ddd2; }
.zzd-notice-small    { font-size: .85rem; color: #64748b; margin: .3rem 0; }

/* ── Campaign header ──────────────────────────────────────────── */
.zzd-campaign-header { margin-bottom: 1.75rem; }
.zzd-campaign-header img { width: 100%; border-radius: 12px; margin-bottom: 1rem; box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.zzd-campaign-header h2 { margin: 0 0 .5rem; font-size: 1.6rem; }

/* Progress bar */
.zzd-progress-wrap   { background: #e2e8f0; border-radius: 50px; height: 10px; overflow: hidden; margin: .5rem 0; }
.zzd-progress-bar    { background: linear-gradient(90deg, #10b981, #059669); height: 100%; border-radius: 50px; transition: width .6s ease; }
.zzd-progress-text   { font-size: .9rem; color: #64748b; margin: .3rem 0 1rem; }

/* ── Form shell ───────────────────────────────────────────────── */
.zzd-form {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(37,140,119,.14), 0 2px 6px rgba(0,0,0,.05);
    overflow: hidden;
    border: 1px solid rgba(37,140,119,.1);
}

/* ── Form header (gradient strip with title + flags) ─────────── */
.zzd-form-header {
    background: linear-gradient(135deg, #164f44 0%, #258c77 65%, #34b99a 100%);
    padding: 1.3rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.zzd-form-title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -.01em;
    text-shadow: 0 1px 3px rgba(0,0,0,.2);
}

/* ── Language switcher (flag circles) ────────────────────────── */
.zzd-lang-switch     { display: flex; gap: .4rem; }
.zzd-lang-btn {
    width: 38px; height: 38px;
    border: 2px solid rgba(255,255,255,.3);
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    font-size: 1.35rem; line-height: 1;
    cursor: pointer;
    transition: transform .18s, background .18s, border-color .18s, box-shadow .18s;
    display: flex; align-items: center; justify-content: center;
    padding: 0;
    backdrop-filter: blur(4px);
}
.zzd-lang-btn:hover  { background: rgba(255,255,255,.28); border-color: rgba(255,255,255,.65); transform: scale(1.1); }
.zzd-lang-btn.active { background: rgba(255,255,255,.92); border-color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.22); transform: scale(1.08); }

/* ── Form body ────────────────────────────────────────────────── */
.zzd-form-body       { padding: 1.75rem 2rem 2rem; }

.zzd-field           { margin-bottom: 1.3rem; }
.zzd-field label     { display: block; font-weight: 600; margin-bottom: .45rem; font-size: .92rem; color: #374151; }
.zzd-field input[type="text"],
.zzd-field input[type="email"],
.zzd-field input[type="number"],
.zzd-field textarea  {
    width: 100%; padding: .7rem 1rem;
    border: 1.5px solid #e2e8f0; border-radius: 9px;
    font-size: 1rem; color: #111827;
    background: #f8fafc;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.zzd-field input:focus,
.zzd-field textarea:focus {
    border-color: #258c77; outline: none;
    box-shadow: 0 0 0 3px rgba(37,140,119,.15);
    background: #fff;
}
.zzd-field textarea  { resize: vertical; min-height: 80px; }

/* ── Preset amounts ───────────────────────────────────────────── */
.zzd-amounts         { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .85rem; }
.zzd-amount-btn {
    padding: .5rem 1.25rem;
    border: 2px solid #b3dfd8; background: #edf7f5;
    color: #1d6358; border-radius: 50px;
    cursor: pointer; font-weight: 700; font-size: .95rem;
    transition: all .18s;
}
.zzd-amount-btn:hover,
.zzd-amount-btn.active {
    background: #258c77; border-color: #258c77; color: #fff;
    box-shadow: 0 3px 10px rgba(37,140,119,.3);
    transform: translateY(-1px);
}

/* ── Anonymous checkbox ───────────────────────────────────────── */
.zzd-anonymous-wrap  { margin-bottom: 1.3rem; }
.zzd-anonymous-wrap label {
    display: inline-flex; align-items: center; gap: .55rem;
    font-weight: 500; cursor: pointer; color: #374151;
    padding: .5rem .85rem; border: 1.5px solid #e2e8f0;
    border-radius: 9px; background: #f8fafc;
    transition: border-color .18s, background .18s;
}
.zzd-anonymous-wrap label:hover { border-color: #258c77; background: #edf7f5; }
.zzd-anonymous-wrap input[type="checkbox"] { width: 16px; height: 16px; accent-color: #258c77; }

/* ── Gateway options ──────────────────────────────────────────── */
.zzd-gateways        { display: flex; flex-direction: column; gap: .5rem; }
.zzd-gateway-option {
    display: flex; align-items: center; gap: .65rem;
    font-weight: 500; cursor: pointer;
    padding: .7rem 1rem;
    border: 1.5px solid #e2e8f0; border-radius: 10px;
    background: #f8fafc;
    transition: border-color .18s, background .18s, box-shadow .18s;
}
.zzd-gateway-option:has(input:checked) {
    border-color: #258c77; background: #edf7f5;
    box-shadow: 0 0 0 3px rgba(37,140,119,.12);
}
.zzd-gateway-option input[type="radio"] { accent-color: #258c77; }

/* ── Stripe card input ────────────────────────────────────────── */
.zzd-card-input      { padding: .75rem 1rem; border: 1.5px solid #e2e8f0; border-radius: 9px; background: #f8fafc; }
.zzd-error-text      { color: #dc2626; font-size: .875rem; margin-top: .45rem; }

/* ── Bank transfer box ────────────────────────────────────────── */
.zzd-transfer-box {
    background: #edf7f5; border: 1.5px solid #a0ddd2;
    border-radius: 10px; padding: 1rem 1.25rem; margin-top: .5rem;
}
.zzd-transfer-box p  { margin: .3rem 0; font-size: .95rem; color: #0c3d34; }

/* ── Submit button ────────────────────────────────────────────── */
.zzd-submit-btn {
    display: block; width: 100%; padding: .95rem;
    background: linear-gradient(135deg, #164f44 0%, #258c77 60%, #34b99a 100%);
    color: #fff; border: none; border-radius: 10px;
    font-size: 1.1rem; font-weight: 700; cursor: pointer;
    transition: all .22s; margin-top: 1.5rem;
    letter-spacing: .02em;
    box-shadow: 0 4px 14px rgba(37,140,119,.35);
}
.zzd-submit-btn:hover {
    background: linear-gradient(135deg, #0f3a2d 0%, #1d6e5e 60%, #258c77 100%);
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(37,140,119,.42);
}
.zzd-submit-btn:active { transform: translateY(0); }
.zzd-submit-btn:disabled { background: #8dd1c5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── Donor list ───────────────────────────────────────────────── */
.zzd-donor-list      { margin-top: 2.25rem; }
.zzd-donor-list h3   { font-size: 1.05rem; color: #374151; border-bottom: 2px solid #e5e7eb; padding-bottom: .5rem; margin-bottom: .5rem; }
.zzd-donor-list ul   { list-style: none; padding: 0; margin: 0; }
.zzd-donor-list li   { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .75rem 0; border-bottom: 1px solid #f1f5f9; flex-wrap: wrap; }
.zzd-donor-info      { display: flex; flex-direction: column; gap: .1rem; min-width: 0; flex: 1; }
.zzd-donor-name      { font-weight: 600; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zzd-donor-date      { font-size: .8rem; color: #9ca3af; }
.zzd-donor-campaign  { font-size: .78rem; color: #258c77; }
.zzd-donor-amount    { font-weight: 700; color: #059669; white-space: nowrap; flex-shrink: 0; }
.zzd-donor-msg       { flex-basis: 100%; font-style: italic; color: #6b7280; font-size: .875rem; margin: .25rem 0 0; padding-left: .1rem; }

/* ── SumUp Fee Box ──────────────────────────────────────────────── */
.zzd-fee-box {
    background: #f0faf8;
    border: 1.5px solid #a0ddd2;
    border-radius: 10px;
    padding: .85rem 1rem;
    margin-top: .5rem;
}
.zzd-fee-label {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: .93rem;
    font-weight: 500;
    color: #1d6e5e;
    cursor: pointer;
}
.zzd-fee-label input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: #258c77;
    cursor: pointer;
    flex-shrink: 0;
}
.zzd-fee-total {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    margin-top: .65rem;
    padding-top: .65rem;
    border-top: 1px dashed #a0ddd2;
    font-size: .9rem;
}
.zzd-fee-line      { color: #555; }
.zzd-fee-total-val { color: #164f44; font-size: 1rem; }
.zzd-fee-total-val strong { font-size: 1.15rem; }
.zzd-pagination      { display: flex; align-items: center; gap: .35rem; margin-top: 1.25rem; flex-wrap: wrap; }
.zzd-page-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 .5rem;
    border: 1.5px solid #e2e8f0; border-radius: 8px;
    background: #f8fafc; color: #374151;
    font-size: .9rem; font-weight: 600; text-decoration: none;
    transition: all .18s; cursor: pointer;
}
.zzd-page-btn:hover          { border-color: #258c77; color: #258c77; background: #edf7f5; }
.zzd-page-btn.zzd-page-current { background: #258c77; border-color: #258c77; color: #fff; cursor: default; }
.zzd-page-ellipsis   { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; color: #9ca3af; font-size: .9rem; }

/* ── Campaign list ────────────────────────────────────────────── */
.zzd-campaign-list   { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.zzd-campaign-card   { border: 1px solid #e5e7eb; border-radius: 14px; overflow: hidden; transition: box-shadow .22s, transform .22s; background: #fff; }
.zzd-campaign-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.11); transform: translateY(-2px); }
.zzd-campaign-card img { width: 100%; height: 160px; object-fit: cover; }
.zzd-campaign-card h3,
.zzd-campaign-card p,
.zzd-campaign-card .zzd-progress-text,
.zzd-campaign-card .zzd-btn { padding: 0 1rem; }
.zzd-campaign-card h3 { margin: .75rem 0 .25rem; }
.zzd-campaign-card .zzd-progress-wrap { margin: .5rem 1rem; }
.zzd-btn             { display: block; margin: 1rem; padding: .65rem 1rem; background: #258c77; color: #fff; text-align: center; border-radius: 8px; text-decoration: none; font-weight: 600; transition: background .2s; }
.zzd-btn:hover       { background: #1d6e5e; color: #fff; }

/* ── SumUp widget ─────────────────────────────────────────────── */
.zzd-sumup-wrap      { background: #fff; padding: 1.5rem; border-radius: 14px; box-shadow: 0 4px 20px rgba(0,0,0,.08); margin-top: 1.25rem; min-height: 300px; }

/* ── Transfer success box ─────────────────────────────────────── */
#zzd-transfer-confirm { background: #fff; padding: 1.75rem; border-radius: 14px; box-shadow: 0 4px 20px rgba(0,0,0,.08); }
#zzd-transfer-confirm h3 { margin-top: 0; color: #1d6358; }
#zzd-transfer-confirm .zzd-ref { font-size: 1.2rem; font-weight: 700; color: #258c77; letter-spacing: .06em; background: #edf7f5; padding: .2rem .5rem; border-radius: 5px; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 500px) {
    .zzd-form-body       { padding: 1.25rem 1.25rem 1.5rem; }
    .zzd-form-header     { padding: 1rem 1.25rem; }
    .zzd-form-title      { font-size: 1rem; }
    .zzd-amounts         { gap: .4rem; }
    .zzd-amount-btn      { padding: .45rem .9rem; font-size: .88rem; }
}
