/* =========================================================
   help-us.css — ioann-presnya donation page block styles
   (Figma 1:2213)
   ========================================================= */

/* ----- Hide number-input spinners ----- */
/* (also in the inline <style> inside the blade partial for specificity;
    included here for completeness / override convenience) */

/* ─── Root section ─── */
.help-us--ioann-presnya {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 36px;
    padding: 48px 0 64px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 960px) {
    .help-us--ioann-presnya {
        grid-template-columns: 1fr;
        row-gap: 48px;
    }

    /* Single-column layout — no cross-column alignment needed */
    .help-us__col-title {
        min-height: 0;
    }
}

/* ─── Column wrapper ─── */
.help-us__col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ─── Column title ─── */
.help-us__col-title {
    margin: 0;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 36px;
    line-height: 1;
    letter-spacing: -0.396px;
    text-transform: uppercase;
    color: var(--ip-text);
}

/* ─── Step badge ─── */
.help-us__step {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #1b1b1b;
    color: #fff;
    min-height: 73px;
    padding: 12px 16px;
    box-sizing: border-box;
}

.help-us__step-num {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2f6f6e;
    color: #fff;
    font-family: 'Cormorant', 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
}

.help-us__step-text {
    font-family: 'Golos Text', 'Golos', Arial, sans-serif;
    font-size: 13px;
    line-height: 1.4;
    color: #fff;
}

/* ─── Requisites column ─── */
.help-us__requisites {
    font-family: 'Golos Text', 'Golos', Arial, sans-serif;
    font-size: 14px;
    color: #333;
}

/* Target rows generated by Church::getRequisitesForSite() */
.help-us__requisites p,
.help-us__requisites div,
.help-us__requisites tr,
.help-us__requisites li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    margin: 0;
}

.help-us__requisites table {
    width: 100%;
    border-collapse: collapse;
}

.help-us__requisites td,
.help-us__requisites th {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-family: 'Golos Text', 'Golos', Arial, sans-serif;
    font-size: 14px;
    color: #333;
    vertical-align: top;
}

/* ─── QR column ─── */
.help-us__col--qr {
    align-items: center;
}

.help-us__qr {
    display: block;
    width: 280px;
    height: 280px;
    object-fit: cover;
    margin: 0 auto;
}

/* ─── Donation form ─── */
.help-us__form {
    display: flex;
    flex-direction: column;
    row-gap: 0;
}

/* ─── Amount rows (radio styled as full-width rows) ─── */
.help-us__amount {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    font-family: 'Golos Text', 'Golos', Arial, sans-serif;
    font-size: 18px;
    color: #333;
    text-align: center;
    box-sizing: border-box;
    position: relative;
    transition: background 0.15s;
}

.help-us__amount input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Selected amount row */
.help-us__amount:has(input[type="radio"]:checked) {
    background: #f5f5f5;
}

/* Fallback for browsers without :has() — JS can add .is-checked */
.help-us__amount.is-checked {
    background: #f5f5f5;
}

/* ─── "Other amount" row ─── */
.help-us__amount-other {
    cursor: default;
}

.help-us__amount-other input[type="number"] {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: none;
    outline: none;
    font-family: 'Golos Text', 'Golos', Arial, sans-serif;
    font-size: 18px;
    color: #333;
    text-align: center;
    padding: 0;
}

.help-us__amount-other input[type="number"]::placeholder {
    color: #aaa;
}

/* ─── Name input ─── */
.help-us__name {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #ddd;
    outline: none;
    font-family: 'Golos Text', 'Golos', Arial, sans-serif;
    font-size: 16px;
    color: #333;
    padding: 12px 0;
    box-sizing: border-box;
    margin-top: 12px;
}

.help-us__name::placeholder {
    color: #aaa;
}

/* ─── Agreement checkbox ─── */
.help-us__agreement {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-family: 'Golos Text', 'Golos', Arial, sans-serif;
    font-size: 12px;
    color: #999;
    cursor: pointer;
    margin-top: 8px;
}

.help-us__agreement input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 2px;
}

.help-us__agreement a {
    color: #2f6f6e;
    text-decoration: underline;
}

/* ─── Submit button ─── */
.help-us__submit {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 16px;
    background: #2f6f6e;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-family: 'Golos Text', 'Golos', Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s;
}

.help-us__submit:hover {
    background: #235352;
}

/* ─── Mobile (<=767.99px): stack columns, full-width CTA, tighter padding ─── */
@media (max-width: 767.99px) {
    .help-us--ioann-presnya {
        grid-template-columns: 1fr;   /* single column; reinforces the 960px rule */
        column-gap: 0;
        row-gap: 32px;                /* tighter than the 48px tablet gap */
        padding: 24px 0 32px;         /* reduce desktop 48px 0 64px */
    }

    .help-us__col {
        gap: 16px;                    /* tighten the 20px desktop inner gap */
    }

    .help-us__col-title {
        font-size: 26px;              /* scale down the 32px serif title */
    }

    .help-us__qr {
        width: 100%;
        max-width: 280px;
        height: auto;
        aspect-ratio: 1 / 1;          /* keep the square, but never overflow */
    }

    .help-us__submit {
        width: 100%;                  /* explicit: full-width CTA on mobile */
    }

    .help-us__requisites,
    .help-us__requisites td,
    .help-us__requisites th {
        overflow-wrap: anywhere;      /* prevent long account numbers overflowing */
    }
}
