/* ═══════════════════════════════════════════════════════════
   Piece of Peace — Public Styles
   Lightweight, Astra-compatible, no framework dependencies
═══════════════════════════════════════════════════════════ */
:root {
    --pop-green:   #2e7d32;
    --pop-green-l: #e8f5e9;
    --pop-green-d: #1b5e20;
    --pop-accent:  #ff8f00;
    --pop-text:    #1f2937;
    --pop-muted:   #6b7280;
    --pop-border:  #e5e7eb;
    --pop-bg:      #f9fafb;
    --pop-white:   #ffffff;
    --pop-radius:  10px;
    --pop-shadow:  0 2px 16px rgba(0,0,0,.08);
}

/* ── Base reset ─────────────────────────────────────────── */
.pop-form input,
.pop-form select,
.pop-form textarea,
.pop-newsletter-form input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--pop-border);
    border-radius: 7px;
    font-size: 15px;
    color: var(--pop-text);
    background: var(--pop-white);
    box-sizing: border-box;
    transition: border-color .2s;
    font-family: inherit;
}
.pop-form input:focus,
.pop-form select:focus,
.pop-form textarea:focus { border-color: var(--pop-green); outline: none; }
.pop-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--pop-text);
    margin-bottom: 5px;
}
.pop-field        { margin-bottom: 16px; }
.pop-field-row    { display: flex; gap: 14px; }
.pop-field-row .pop-field { flex: 1; min-width: 0; }
@media (max-width: 600px) { .pop-field-row { flex-direction: column; } }

/* ── Button ─────────────────────────────────────────────── */
.pop-btn {
    display: inline-block;
    background: var(--pop-green);
    color: #fff !important;
    border: none;
    padding: 13px 28px;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, transform .1s;
    font-family: inherit;
    width: 100%;
}
.pop-btn:hover    { background: var(--pop-green-d); transform: translateY(-1px); }
.pop-btn:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.pop-btn-outline  { background: transparent; color: var(--pop-green) !important; border: 2px solid var(--pop-green); width: auto; }
.pop-btn-outline:hover { background: var(--pop-green-l); }
.pop-btn-disabled { background: var(--pop-border); color: var(--pop-muted) !important; cursor: default; }
.pop-btn-disabled:hover { transform: none; }

/* ── Responses ──────────────────────────────────────────── */
.pop-response {
    padding: 14px 18px;
    border-radius: 7px;
    margin-top: 14px;
    font-size: 15px;
    font-weight: 500;
}
.pop-success { background: var(--pop-green-l); color: var(--pop-green-d); border: 1px solid #a5d6a7; }
.pop-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.pop-empty   { color: var(--pop-muted); font-style: italic; padding: 24px 0; }
.pop-hint    { color: var(--pop-muted); font-size: 13px; margin-bottom: 12px; }
.pop-secure-note { font-size: 12px; color: var(--pop-muted); text-align: center; margin-top: 8px; }

/* ═══════════════════════════════════════════════════════════
   DONATION
═══════════════════════════════════════════════════════════ */
.pop-donation-wrap {
    background: var(--pop-white);
    border: 1px solid var(--pop-border);
    border-radius: var(--pop-radius);
    padding: 32px;
    box-shadow: var(--pop-shadow);
    max-width: 620px;
}

/* Goal bar */
.pop-goal-bar     { margin-bottom: 24px; }
.pop-goal-meta    { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.pop-raised       { color: var(--pop-green); }
.pop-goal-amt     { color: var(--pop-muted); }
.pop-progress-track { background: var(--pop-border); border-radius: 99px; height: 10px; overflow: hidden; }
.pop-progress-fill  { background: linear-gradient(90deg, var(--pop-green), #66bb6a); height: 100%; border-radius: 99px; transition: width .6s ease; }

/* Tabs */
.pop-tabs { display: flex; gap: 8px; margin-bottom: 24px; }
.pop-tab  {
    flex: 1; padding: 10px; border: 1.5px solid var(--pop-border);
    border-radius: 7px; background: var(--pop-bg); cursor: pointer;
    font-size: 13px; font-weight: 600; color: var(--pop-muted);
    transition: all .2s; font-family: inherit;
}
.pop-tab:hover  { border-color: var(--pop-green); color: var(--pop-green); background: var(--pop-green-l); }
.pop-tab.active { border-color: var(--pop-green); color: var(--pop-green); background: var(--pop-green-l); }
.pop-tab-panel  { display: none; }
.pop-tab-panel.active { display: block; }

/* Quick amounts */
.pop-quick-amounts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.pop-quick-btn {
    padding: 7px 14px; border: 1.5px solid var(--pop-border);
    border-radius: 20px; background: #fff; cursor: pointer;
    font-size: 13px; font-weight: 600; color: var(--pop-muted);
    transition: all .15s; font-family: inherit;
}
.pop-quick-btn:hover,
.pop-quick-btn.selected { border-color: var(--pop-green); color: var(--pop-green); background: var(--pop-green-l); }

/* Bank details */
.pop-bank-details { background: var(--pop-bg); border-radius: 7px; padding: 20px; margin-bottom: 20px; }
.pop-bank-details h4 { margin: 0 0 10px; color: var(--pop-text); }
.pop-bank-info    { font-size: 15px; line-height: 1.7; }
.pop-bank-note    { font-size: 13px; color: var(--pop-muted); margin-top: 10px 0 0; }

/* ═══════════════════════════════════════════════════════════
   EVENTS
═══════════════════════════════════════════════════════════ */
.pop-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.pop-event-card {
    background: var(--pop-white);
    border: 1px solid var(--pop-border);
    border-radius: var(--pop-radius);
    overflow: hidden;
    box-shadow: var(--pop-shadow);
    transition: transform .2s, box-shadow .2s;
    display: flex; flex-direction: column;
}
.pop-event-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.pop-event-img {
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: var(--pop-green-l);
}
.pop-event-body { display: flex; gap: 16px; padding: 20px 20px 12px; flex: 1; }
.pop-event-date { text-align: center; min-width: 48px; }
.pop-event-date .pop-day { display: block; font-size: 26px; font-weight: 800; color: var(--pop-green); line-height: 1; }
.pop-event-date .pop-mon { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--pop-muted); }
.pop-event-info h3 { margin: 0 0 6px; font-size: 16px; color: var(--pop-text); }
.pop-event-card .pop-btn { border-radius: 0 0 var(--pop-radius) var(--pop-radius); margin-top: auto; }
.pop-meta  { font-size: 13px; color: var(--pop-muted); margin: 4px 0; }
.pop-desc  { font-size: 14px; color: var(--pop-muted); margin: 8px 0 0; }
.pop-spots { color: var(--pop-accent); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════
   VOLUNTEERS
═══════════════════════════════════════════════════════════ */
.pop-form-wrap {
    background: var(--pop-white);
    border: 1px solid var(--pop-border);
    border-radius: var(--pop-radius);
    padding: 32px;
    box-shadow: var(--pop-shadow);
    max-width: 700px;
}
.pop-checkbox-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pop-check-item {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 12px; border: 1.5px solid var(--pop-border);
    border-radius: 20px; font-size: 13px; cursor: pointer;
    transition: all .15s; font-weight: 500; color: var(--pop-text);
}
.pop-check-item:hover,
.pop-check-item:has(input:checked) { border-color: var(--pop-green); color: var(--pop-green); background: var(--pop-green-l); }
.pop-check-item input { margin: 0; }

/* ═══════════════════════════════════════════════════════════
   GRANTS
═══════════════════════════════════════════════════════════ */
.pop-grants-list { display: flex; flex-direction: column; gap: 20px; }
.pop-grant-card  {
    background: var(--pop-white);
    border: 1px solid var(--pop-border);
    border-radius: var(--pop-radius);
    padding: 24px 28px;
    box-shadow: var(--pop-shadow);
    border-left: 4px solid var(--pop-green);
}
.pop-grant-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 12px; }
.pop-grant-header h3 { margin: 0; font-size: 18px; color: var(--pop-text); }
.pop-grant-amount { background: var(--pop-green); color: #fff; padding: 4px 14px; border-radius: 20px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.pop-grant-desc  { color: var(--pop-muted); font-size: 15px; line-height: 1.6; margin-bottom: 12px; }
.pop-grant-eligibility { background: var(--pop-bg); padding: 10px 14px; border-radius: 6px; font-size: 14px; margin-bottom: 16px; }
.pop-grant-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.pop-deadline { font-size: 13px; color: var(--pop-muted); }
.pop-grant-apply-btn { width: auto; padding: 10px 22px; }

/* Step nav */
.pop-steps-nav { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 24px; }
.pop-step-dot  {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--pop-border); color: var(--pop-muted);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px; transition: all .2s;
}
.pop-step-dot.active { background: var(--pop-green); color: #fff; }
.pop-step-line { flex: 1; height: 2px; background: var(--pop-border); max-width: 60px; }

/* ═══════════════════════════════════════════════════════════
   IMPACT STORIES
═══════════════════════════════════════════════════════════ */
.pop-stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.pop-story-card {
    background: var(--pop-white);
    border: 1px solid var(--pop-border);
    border-radius: var(--pop-radius);
    overflow: hidden;
    box-shadow: var(--pop-shadow);
    transition: transform .2s;
}
.pop-story-card:hover { transform: translateY(-3px); }
.pop-story-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: var(--pop-green-l);
    position: relative;
}
.pop-beneficiary-badge {
    position: absolute; bottom: 12px; left: 12px;
    background: rgba(0,0,0,.65); color: #fff;
    padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600;
}
.pop-story-body { padding: 20px; }
.pop-story-body h3 { margin: 6px 0 10px; font-size: 17px; }
.pop-story-body h3 a { color: var(--pop-text); text-decoration: none; }
.pop-story-body h3 a:hover { color: var(--pop-green); }
.pop-read-more { font-size: 14px; font-weight: 600; color: var(--pop-green); text-decoration: none; }
.pop-read-more:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════
   GALLERY
═══════════════════════════════════════════════════════════ */
.pop-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}
.pop-gallery-item { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: var(--pop-bg); }
.pop-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; display: block; }
.pop-gallery-item:hover img { transform: scale(1.06); }
.pop-gallery-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,.35);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .2s; font-size: 24px;
}
.pop-gallery-item:hover .pop-gallery-overlay { opacity: 1; }

/* Lightbox */
.pop-lightbox {
    position: fixed; inset: 0; z-index: 99999;
    display: flex; align-items: center; justify-content: center;
}
.pop-lightbox-bg { position: absolute; inset: 0; background: rgba(0,0,0,.92); }
.pop-lightbox-content {
    position: relative; z-index: 1; text-align: center;
    max-width: min(90vw, 900px); max-height: 90vh;
}
.pop-lightbox-content img { max-width: 100%; max-height: 80vh; border-radius: 6px; display: block; margin: 0 auto; }
.pop-lightbox-content p   { color: rgba(255,255,255,.8); margin-top: 12px; font-size: 14px; }
.pop-lightbox-close, .pop-lightbox-prev, .pop-lightbox-next {
    position: fixed; background: rgba(255,255,255,.15); border: none;
    color: #fff; font-size: 20px; cursor: pointer; border-radius: 50%;
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    transition: background .2s; z-index: 2;
}
.pop-lightbox-close { top: 20px; right: 20px; }
.pop-lightbox-prev  { left: 16px; top: 50%; transform: translateY(-50%); }
.pop-lightbox-next  { right: 16px; top: 50%; transform: translateY(-50%); }
.pop-lightbox-close:hover,
.pop-lightbox-prev:hover,
.pop-lightbox-next:hover { background: rgba(255,255,255,.3); }

/* ═══════════════════════════════════════════════════════════
   NEWSLETTER
═══════════════════════════════════════════════════════════ */
.pop-newsletter-wrap { padding: 32px; background: var(--pop-green-l); border-radius: var(--pop-radius); border: 1px solid #a5d6a7; }
.pop-newsletter-wrap h3 { margin: 0 0 6px; color: var(--pop-green-d); }
.pop-newsletter-wrap p  { margin: 0 0 20px; color: var(--pop-muted); }
.pop-nl-row { display: flex; gap: 10px; flex-wrap: wrap; }
.pop-nl-row input { flex: 1; min-width: 180px; }
.pop-nl-row .pop-btn { width: auto; }

/* ═══════════════════════════════════════════════════════════
   MODAL
═══════════════════════════════════════════════════════════ */
.pop-modal {
    position: fixed; inset: 0; background: rgba(0,0,0,.6);
    z-index: 99990; display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.pop-modal-inner {
    background: var(--pop-white);
    border-radius: var(--pop-radius);
    padding: 32px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.pop-modal-wide { max-width: 640px; }
.pop-modal-close {
    position: absolute; top: 16px; right: 16px;
    background: var(--pop-bg); border: none; width: 32px; height: 32px;
    border-radius: 50%; cursor: pointer; font-size: 14px;
    display: flex; align-items: center; justify-content: center;
}
.pop-modal-close:hover { background: var(--pop-border); }
.pop-modal-inner h3 { margin: 0 0 20px; padding-right: 32px; }
