/* donation.css - multi-step donation form (standalone, non-WP classes) */

/* Basic variables */
:root {
    --container-max: 1180px;
    --accent: #6a3cbc;
    --muted: #666;
    --bg: #ffffff;
    --card-bg: #fff;
    --radius: 10px;
    --gap: 20px;
    --step-count: 5;
    --form-width: 520px;
}

/* Section layout */
.donation-section {
    padding: 48px 20px;
    background: #f7f7f8;
    box-sizing: border-box;
}

.donation-wrap {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 520px;
    gap: 32px;
    align-items: start;
}

/* Left info/iframe */
.donation-info {
    background: transparent;
    padding: 8px 0;
}

.donation-info h2 {
    font-size: 2.1rem;
    margin-bottom: 8px;
    color: #2a0a55;
    font-family: "EB Garamond", serif;
}

.donation-lead {
    max-width: 720px;
    font-size: 1.05rem;
    color: #222;
    margin-bottom: 14px;
}

.donation-copy {
    color: #444;
    line-height: 1.6;
    margin-bottom: 18px;
}

.donation-iframe-wrap iframe {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
}

/* Right: the form */
.donation-form-wrap {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: 0 18px 40px rgba(15, 15, 20, 0.06);
    padding: 18px;
    box-sizing: border-box;
}

/* Progress bar */
.donation-progress {
    height: 8px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 14px;
}

.donation-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #4b2b80);
    width: 0%;
    transition: width .35s ease;
}

/* Fieldset steps */
.donation-step {
    display: none;
    border: 0;
    margin: 0;
    padding: 0;
}

.donation-step.active {
    display: block;
}

/* Step titles */
.step-title {
    font-size: 1.15rem;
    margin-bottom: 12px;
    font-weight: 700;
    color: #222;
}

/* Amount buttons */
.preset-amounts {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.amount-btn {
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #fafafa;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    color: #222;
    transition: all .15s ease;
}

.amount-btn.active,
.amount-btn:focus {
    background: var(--accent);
    color: #fff;
    border-color: rgba(0, 0, 0, 0.06);
    outline: none;
    transform: translateY(-1px);
}

/* custom amount */
.custom-amount-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 16px;
}

.custom-amount-row input[type="number"] {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    font-size: 1rem;
}

.custom-amount-row .currency {
    font-weight: 700;
    color: var(--muted);
}

/* labels + inputs */
label {
    display: block;
    margin: 10px 0 6px;
    color: #333;
    font-weight: 600;
    font-size: .95rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 1rem;
    box-sizing: border-box;
}

/* card fields */
.card-row {
    display: flex;
    gap: 12px;
}

.card-row>div {
    flex: 1;
}

/* review block */
.review-block {
    background: #fbfbfb;
    border-radius: 8px;
    padding: 12px;
    margin: 8px 0;
}

.review-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.04);
}

.review-row:last-child {
    border-bottom: none;
}

/* payment note */
.payment-note {
    font-size: .95rem;
    color: var(--muted);
    margin: 12px 0;
}

/* buttons */
.step-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 18px;
}

.btn {
    padding: 10px 14px;
    border-radius: 8px;
    border: 0;
    cursor: pointer;
    font-weight: 700;
}

.btn-prev {
    background: #f3f3f3;
    color: #333;
}

.btn-next {
    background: var(--accent);
    color: #fff;
}

.btn-submit {
    background: #2a0a55;
    color: #fff;
}

.btn-finish {
    background: var(--accent);
    color: #fff;
}

/* success message */
.donation-success h3 {
    color: #2a0a55;
}

.donation-success p {
    color: #444;
}

/* required */
.required {
    color: #c0392b;
    margin-left: 4px;
    font-weight: 700;
}

/* small responsive tweaks */
@media (max-width: 980px) {
    .donation-wrap {
        grid-template-columns: 1fr;
        padding: 0 12px;
    }

    .donation-form-wrap {
        width: 100%;
    }

    .step-actions {
        justify-content: space-between;
    }

    .donation-info {
        order: 2;
        margin-top: 18px;
    }

    .donation-form-wrap {
        order: 1;
    }

    .donation-iframe-wrap iframe {
        min-height: 240px;
    }
}