/* ============================================================
   Ramadan Donation Page — ramzan-donation.css
   ============================================================ */

/* ── Hero ── */
.rd-hero {
    position: relative;
    background: linear-gradient(135deg, #1a3a0a 0%, #2a6a18 50%, #368420 100%);
    overflow: hidden;
    min-height: 360px;
    display: flex;
    align-items: center;
}

.rd-hero__dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.rd-hero__inner {
    position: relative;
    z-index: 1;
    padding-top: 100px;
    padding-bottom: 52px;
}

.rd-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.28);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 99px;
    padding: 5px 16px;
    margin-bottom: 16px;
}

.rd-hero__title {
    font-size: clamp(2rem, 2.5vw + 1rem, 3rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.18;
    margin: 0 0 16px;
}

.rd-hero__sub {
    color: rgba(255,255,255,0.82);
    font-size: 1rem;
    line-height: 1.65;
    max-width: 560px;
    margin: 0 0 24px;
}

.rd-hero__trust {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.rd-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}

.rd-trust-item .fa { color: #8de46a; }

/* ── Page wrapper ── */
.rd-page {
    background: #f5faf2;
    padding: 48px 0 64px;
}

/* ── Two-column layout ── */
.rd-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 40px;
    align-items: start;
}

/* ── Left info panel ── */
.rd-info__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 12px;
}

.rd-info__desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.65;
    margin: 0 0 28px;
}

.rd-impact-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 32px;
}

.rd-impact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.rd-impact-item__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eef6e8;
    border: 1.5px solid #c0deb0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #368420;
    font-size: 1rem;
    flex-shrink: 0;
}

.rd-impact-item strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 3px;
}

.rd-impact-item span {
    font-size: 0.82rem;
    color: #666;
    line-height: 1.45;
}

/* Nisab card */
.rd-nisab {
    background: #fff;
    border: 1px solid #d0eac0;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 2px 10px rgba(54,132,32,0.06);
}

.rd-nisab__head {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    margin-bottom: 12px;
}

.rd-nisab__row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #333;
    padding: 6px 0;
    border-bottom: 1px solid #f0f5ee;
}

.rd-nisab__row:last-of-type { border-bottom: none; }

.rd-nisab__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.rd-nisab__dot--gold   { background: #f5c842; }
.rd-nisab__dot--silver { background: #c8c8c8; }

.rd-nisab__rate {
    margin-top: 12px;
    background: #f0f7ec;
    border-radius: 7px;
    padding: 7px 12px;
    font-size: 0.8rem;
    color: #444;
    text-align: center;
}

.rd-nisab__rate strong { color: #368420; }

/* ── Donation form card ── */
.rd-form-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #ddefd4;
    box-shadow: 0 6px 36px rgba(54,132,32,0.1);
    overflow: hidden;
    position: sticky;
    top: 20px;
}

.rd-form-card__head {
    background: linear-gradient(135deg, #2a6a18, #368420);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rd-form-body { padding: 24px; }

/* Steps */
.rd-step { margin-bottom: 24px; }

.rd-step__label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rd-step__label span {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #368420;
    color: #fff;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Donation type buttons */
.rd-dtype {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.rd-dtype__btn {
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none !important;
    border: 2px solid #368420;
    transition: all 0.15s ease;
    cursor: pointer;
    text-align: center;
}

.rd-dtype__btn--active {
    background: #368420;
    color: #fff !important;
}

.rd-dtype__btn--outline {
    background: transparent;
    color: #368420 !important;
}

.rd-dtype__btn--active:hover { background: #2a6a18; border-color: #2a6a18; color: #fff !important; }
.rd-dtype__btn--outline:hover { background: #f0f7ec; }

/* Amount pills */
.rd-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rd-amt {
    cursor: pointer;
}

.rd-amt input { position: absolute; opacity: 0; pointer-events: none; }

.rd-amt span {
    display: block;
    padding: 9px 16px;
    border-radius: 8px;
    border: 1.5px solid #d0e8c8;
    background: #f8fcf5;
    font-size: 0.88rem;
    font-weight: 600;
    color: #333;
    transition: all 0.15s ease;
    white-space: nowrap;
    cursor: pointer;
}

.rd-amt:hover span,
.rd-amt--active span {
    background: #368420;
    border-color: #368420;
    color: #fff;
}

/* Custom amount */
.rd-amt-custom {
    display: flex;
    align-items: center;
    border: 1.5px solid #d0e8c8;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fcf5;
    flex: 1;
    min-width: 110px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.rd-amt-custom:focus-within {
    border-color: #368420;
    box-shadow: 0 0 0 3px rgba(54,132,32,0.1);
    background: #fff;
}

.rd-amt-custom__cur {
    padding: 9px 10px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #2a6a18;
    background: #eef6e8;
    border-right: 1.5px solid #d0e8c8;
    flex-shrink: 0;
}

.rd-amt-custom__input {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 9px 10px !important;
    font-size: 0.88rem !important;
    color: #1a1a1a !important;
    width: 100%;
    min-width: 0;
}

/* Donated as */
.rd-as {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rd-as__btn {
    cursor: pointer;
    flex: 1;
    min-width: 80px;
}

.rd-as__btn input { position: absolute; opacity: 0; pointer-events: none; }

.rd-as__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border-radius: 8px;
    border: 1.5px solid #d0e8c8;
    background: #f8fcf5;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    transition: all 0.15s ease;
    text-align: center;
}

.rd-as__btn:hover,
.rd-as__btn--active {
    background: #368420;
    border-color: #368420;
    color: #fff !important;
}

/* Submit button */
.rd-submit {
    width: 100%;
    padding: 14px;
    border-radius: 9px;
    background: #368420;
    border: 2px solid #368420;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.rd-submit:hover {
    background: #2a6a18;
    border-color: #2a6a18;
    color: #fff;
}

/* Secure note */
.rd-secure {
    margin-top: 12px;
    text-align: center;
    font-size: 0.75rem;
    color: #999;
}

.rd-secure .fa { color: #368420; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .rd-layout { grid-template-columns: 1fr; }
    .rd-form-card { position: static; }
    .rd-info { order: 2; }
    .rd-form-wrap { order: 1; }
}

@media (max-width: 576px) {
    .rd-hero__title { font-size: 1.8rem; }
    .rd-hero__trust { gap: 14px; }
    .rd-dtype { flex-direction: column; }
    .rd-dtype__btn { min-width: 0; }
    .rd-form-body { padding: 16px; }
}
