/* ============ DONATE PAGE STYLES ============ */

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body.donate-page {
    background: #f3f0ef;
    color: #2d2d2d;
    font-family: "Figtree", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    min-height: 100vh;
}

.site-local-banner--donate {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 14px;
    padding: 10px 16px;
    background: #143d20;
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    text-align: center;
    border-bottom: 2px solid #faa61a;
}

.site-local-banner--donate .site-local-banner__label {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: #faa61a;
    color: #143d20;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.site-local-banner--donate a {
    color: #b8e86a;
    text-decoration: underline;
    font-weight: 600;
}

.site-local-banner--donate a:hover {
    color: #fff;
}

/* ---- Top fake browser-like bar ---- */
.donate-topbar {
    background: #ece4e6;
    padding: 10px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ddd1d4;
    font-size: 13px;
    color: #6b5b5e;
}

.donate-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #1d522c;
    font-weight: 600;
}

.donate-back:hover {
    color: #619a38;
}

.donate-url {
    background: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-family: "Figtree", monospace;
    color: #444;
    border: 1px solid #e6dadd;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---- Page shell (two columns) ---- */
.donate-shell {
    max-width: 1180px;
    margin: 30px auto;
    padding: 0 24px 40px;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 36px;
    align-items: start;
}

@media (max-width: 900px) {
    .donate-shell {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ---- Story column ---- */
.donate-story {
    background: #fff;
    border-radius: 6px;
    padding: 28px 32px 36px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
}

.donate-logo-box {
    border: 1px solid #d8d8d8;
    padding: 8px 12px;
    display: inline-block;
    border-radius: 4px;
    background: #fff;
}

.donate-logo-box img {
    display: block;
    max-width: 140px;
    height: auto;
}

.donate-story-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-top: 22px;
}

.donate-title {
    font-family: "Afacad Flux", "Figtree", sans-serif;
    font-size: 38px;
    line-height: 1.15;
    color: #1d2333;
    margin: 0;
    font-weight: 700;
    text-transform: none;
}

.donate-share {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}

.donate-share:hover {
    background: #f6f6f6;
    border-color: #b8b8b8;
}

/* ---- Progress ---- */
.donate-progress {
    margin-top: 18px;
}

.donate-progress-bar {
    height: 4px;
    background: #d8d8d8;
    border-radius: 999px;
    overflow: hidden;
}

.donate-progress-fill {
    height: 100%;
    background: #2f5cd6;
    border-radius: inherit;
}

.donate-progress-text {
    margin: 10px 0 0;
    font-size: 14px;
    color: #444;
}

.donate-progress-text strong {
    color: #1d2333;
}

/* ---- Hero illustration ---- */
.donate-hero-image {
    margin-top: 22px;
    border-radius: 6px;
    overflow: hidden;
    background: #e6eff7;
}

.donate-hero-image svg {
    display: block;
    width: 100%;
    height: auto;
}

.donate-story-text {
    margin-top: 22px;
    color: #4a4a4a;
}

.donate-story-text p {
    margin: 0 0 12px;
}

/* ---- Form card ---- */
.donate-form-card {
    background: #fff;
    border-radius: 6px;
    padding: 24px 24px 28px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 24px;
}

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

.donate-form-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 16px;
    border-bottom: 1px solid #ececec;
    margin-bottom: 20px;
}

.donate-form-head h2 {
    margin: 0;
    font-family: "Figtree", sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #1d2333;
    text-transform: none;
}

.donate-lock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ---- Frequency toggle ---- */
.donate-frequency {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.donate-freq {
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 500;
    color: #2d2d2d;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.donate-freq.is-active {
    border-color: #2f5cd6;
    color: #2f5cd6;
    background: #f4f7ff;
    box-shadow: inset 0 0 0 1px #2f5cd6;
}

.donate-freq:hover {
    border-color: #2f5cd6;
}

.donate-heart {
    color: #e74c4c;
}

/* ---- Amount grid ---- */
.donate-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.donate-amount {
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    padding: 12px 0;
    font-size: 15px;
    font-weight: 500;
    color: #2d2d2d;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.donate-amount:hover {
    border-color: #2f5cd6;
}

.donate-amount.is-active {
    border-color: #2f5cd6;
    color: #2f5cd6;
    background: #f4f7ff;
    box-shadow: inset 0 0 0 1px #2f5cd6;
}

/* ---- Generic field ---- */
.donate-field {
    margin-bottom: 14px;
    position: relative;
}

.donate-label {
    display: block;
    font-size: 12px;
    color: #6b6b6b;
    margin: 0 0 4px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
}

.donate-field input[type="text"],
.donate-field select,
.donate-comment-wrap textarea {
    width: 100%;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 15px;
    color: #1d2333;
    background: #fff;
    appearance: none;
    -webkit-appearance: none;
}

.donate-field select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 12px;
    padding-right: 36px;
}

.donate-field input:focus,
.donate-field select:focus,
.donate-comment-wrap textarea:focus {
    outline: none;
    border-color: #2f5cd6;
    box-shadow: 0 0 0 1px #2f5cd6;
}

.donate-field-amount {
    display: grid;
    grid-template-columns: 1fr 110px;
    gap: 8px;
    align-items: stretch;
}

.donate-field-amount input {
    text-align: left;
    font-weight: 600;
}

.donate-currency select {
    width: 100%;
    height: 100%;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    padding: 12px 32px 12px 12px;
    font-size: 15px;
    background-color: #fff;
}

/* ---- Checkbox ---- */
.donate-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #2d2d2d;
    margin: 4px 0 10px;
    cursor: pointer;
}

.donate-check input {
    width: 16px;
    height: 16px;
    accent-color: #2f5cd6;
    cursor: pointer;
}

/* ---- Link-style action ---- */
.donate-link-action {
    background: none;
    border: none;
    padding: 0;
    margin: 0 0 16px;
    color: #1d2333;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
}

.donate-link-action:hover {
    color: #2f5cd6;
}

.donate-comment-wrap {
    margin: -8px 0 16px;
}

.donate-comment-wrap textarea {
    resize: vertical;
    min-height: 80px;
}

/* ---- Submit ---- */
.donate-submit {
    width: 100%;
    background: #2f5cd6;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.05s ease;
    letter-spacing: 0.2px;
}

.donate-submit:hover {
    background: #2a4fbd;
}

.donate-submit:active {
    transform: translateY(1px);
}

/* ---- Footer links ---- */
.donate-links {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #ececec;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
}

.donate-links a {
    color: #555;
    text-decoration: underline;
}

.donate-links a:hover {
    color: #2f5cd6;
}

/* ---- Success state ---- */
.donate-success {
    margin: 16px 0 0;
    padding: 12px 14px;
    background: #ecf7ee;
    border: 1px solid #b6dfb9;
    color: #1f5d2a;
    border-radius: 4px;
    font-size: 14px;
}

/* ---- Page footer ---- */
.donate-footer {
    text-align: center;
    color: #999;
    padding: 20px 16px 32px;
    font-size: 12px;
}
