/* ══════════════════════════════════════════
   ZAKAT CALCULATOR — Site-matched design
   ══════════════════════════════════════════ */

.zk-wrap {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 20px 80px;
    font-family: 'Cairo', sans-serif;
    direction: rtl;
}

/* ── Header ── */
.zk-head {
    display: flex; align-items: center; gap: 16px;
    padding: 32px 0 28px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 36px;
}
.zk-head-icon {
    width: 56px; height: 56px; flex-shrink: 0;
    background: linear-gradient(135deg, #27318b, #e31b24);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 24px;
}
.zk-head-title { font-size: clamp(20px,2.5vw,30px); font-weight: 800; color: #1a1a2e; margin: 0 0 4px; }
.zk-head-sub   { color: #888; font-size: 14px; margin: 0; }

/* ── Layout ── */
.zk-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
}
@media (max-width: 820px) { .zk-layout { grid-template-columns: 1fr; } }

/* ── Input Section Card ── */
.zk-section {
    background: #fff;
    border-radius: 16px;
    padding: 22px 24px 18px;
    box-shadow: 0 2px 14px rgba(0,0,0,.07);
    margin-bottom: 18px;
    opacity: 0; transform: translateY(20px);
    animation: zkFadeUp .5s ease forwards;
}
.zk-section:nth-child(1) { animation-delay: .05s; }
.zk-section:nth-child(2) { animation-delay: .12s; }
.zk-section:nth-child(3) { animation-delay: .19s; }
.zk-section:nth-child(4) { animation-delay: .26s; }
@keyframes zkFadeUp { to { opacity: 1; transform: translateY(0); } }

.zk-sec-head {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1.5px solid #f0f0f0;
}
.zk-sec-icon {
    width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 17px;
}
.zk-sec-title { font-size: 15px; font-weight: 800; color: #1a1a2e; margin: 0; }

/* ── Fields ── */
.zk-field { margin-bottom: 14px; }
.zk-field:last-child { margin-bottom: 0; }
.zk-field label {
    display: block; font-size: 13px; font-weight: 700;
    color: #555; margin-bottom: 7px;
}
.zakat-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Cairo', sans-serif;
    color: #1a1a2e;
    direction: ltr; text-align: left;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}
.zakat-input:focus {
    outline: none;
    border-color: #27318b;
    box-shadow: 0 0 0 3px rgba(39,49,139,.08);
}

/* ── Results Sidebar ── */
.zk-sidebar { position: sticky; top: 90px; }
.zk-results {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 14px rgba(0,0,0,.07);
    overflow: hidden;
    opacity: 0; transform: translateY(20px);
    animation: zkFadeUp .5s ease .3s forwards;
}
.zk-results-head {
    background: #27318b; color: #fff;
    padding: 16px 22px;
    font-size: 15px; font-weight: 800;
    display: flex; align-items: center; gap: 9px;
}
.zk-results-head i { font-size: 16px; opacity: .85; }

.zk-results-body { padding: 6px 0; }

.zk-result-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 22px;
    border-bottom: 1px solid #f5f5f5;
    transition: background .2s;
}
.zk-result-row.zk-active { background: #f0f4ff; }
.zk-result-label { font-size: 13px; color: #666; }
.zk-result-val {
    font-size: 14px; font-weight: 800; color: #1a1a2e;
    display: inline-flex; flex-direction: row; align-items: center; gap: 4px;
    transition: color .3s;
}
.zk-result-val.zk-changed { color: #27318b; }
.zk-cur { font-size: 11px; font-weight: 400; color: #aaa; }

/* ── Total Row ── */
.zk-total-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 22px 16px;
    background: #f8f9ff;
    border-top: 2px solid #eef0fb;
}
.zk-total-label { font-size: 14px; font-weight: 800; color: #27318b; }
.zk-total-amount {
    font-size: 26px; font-weight: 900; color: #e31b24;
    display: inline-flex; flex-direction: row; align-items: baseline; gap: 5px;
    line-height: 1;
    transition: transform .2s;
}
.zk-total-amount.zk-bump { transform: scale(1.08); }
.zk-total-amount .zk-cur { font-size: 13px; font-weight: 400; color: #aaa; }

/* ── Donate Button ── */
.zk-donate-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: calc(100% - 44px); margin: 16px 22px;
    padding: 14px;
    background: #27318b; color: #fff;
    border: none; border-radius: 12px;
    font-size: 16px; font-weight: 900;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(39,49,139,.3);
    transition: background .2s, transform .15s, box-shadow .2s, opacity .2s;
}
.zk-donate-btn:hover:not(:disabled) {
    background: #1e256b;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(39,49,139,.35);
}
.zk-donate-btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.zk-donate-btn i { font-size: 15px; }

/* ── Note ── */
.zk-note {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: #aaa;
    padding: 0 22px 18px;
    line-height: 1.6;
    margin: 0;
}
.zk-note i { color: #27318b; flex-shrink: 0; }
