/* Halaman Zakat (/zakat) - tab Bayar + Kalkulator. Semua kelas berawalan zk- supaya tidak bentrok dengan main.js/style.css. */
.zk-page { padding-bottom: 1rem; }
.zk-title { font-size: 1.35rem; font-weight: 800; text-align: center; text-transform: uppercase; line-height: 1.25; margin: 0.5rem 0 1rem; color: var(--brand-dark); }

/* ---------- Tab ---------- */
.zk-tabs { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.zk-tab { flex: 1; background: none; border: none; border-bottom: 3px solid #8b929c; padding: 0.55rem 0; font-weight: 700; font-size: 0.95rem; color: #6b7280; cursor: pointer; transition: color 0.15s ease, border-color 0.15s ease; }
.zk-tab.active { color: var(--brand-primary); border-bottom-color: var(--brand-primary); }

/* ---------- Form bayar ---------- */
.zk-label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 0.5rem; }
.zk-select { width: 100%; height: 46px; border: 1.5px solid var(--brand-dark); border-radius: 0.5rem; padding: 0 0.75rem; background: #fff; font-size: 0.95rem; color: var(--brand-dark); }
.zk-nominal { align-items: center; cursor: text; }
.zk-nominal-input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; text-align: right; font-size: 0.95rem; font-weight: 600; color: var(--brand-dark); }
.zk-nominal-input::placeholder { color: var(--brand-muted); font-weight: 400; }
.zk-pm-row { display: flex; align-items: center; gap: 0.5rem; width: 100%; margin-top: 0.7rem; padding: 0.7rem 0.9rem; border: 1px solid #e5e7eb; border-radius: 0.5rem; background: #fff; font-size: 0.88rem; cursor: pointer; text-align: left; }
.zk-pm-row .zk-pm-label { flex: 1; text-align: right; color: var(--brand-primary); font-weight: 500; }
.zk-pm-row.selected .zk-pm-label { text-align: left; color: var(--brand-dark); font-weight: 700; }
.zk-pm-row i { color: var(--brand-muted); font-size: 0.8rem; }
.zk-input { display: block; width: 100%; background: #f4f4f5; border: none; border-radius: 0.4rem; padding: 0.75rem 0.9rem; font-size: 0.9rem; outline: none; }
.zk-input:focus { box-shadow: 0 0 0 2px rgba(13, 84, 139, 0.25); }
.zk-input::placeholder { color: var(--brand-muted); }
.zk-inline-opts { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.zk-inline-opts .donate-link-toggle { margin: 0; color: #4b5563; }
.zk-check { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.76rem; font-style: italic; color: #4b5563; margin: 0; cursor: pointer; }
.zk-agree-title { font-size: 0.9rem; color: #374151; margin: 0.25rem 0 0.6rem; }
.zk-agree { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.78rem; font-style: italic; color: #4b5563; margin-bottom: 0.6rem; }
.zk-agree input { margin-top: 0.2rem; flex-shrink: 0; }
.zk-cta { position: sticky; bottom: 0; background: #e7eaee; padding: 0.75rem 0; z-index: 5; margin: 0 -0.25rem; }

/* ---------- Kalkulator ---------- */
.zk-calc { padding: 1.25rem 1rem 1.5rem; }
.zk-calc-title { text-align: center; font-size: 1.15rem; font-weight: 500; margin: 0.25rem 0 1rem; }
.zk-types { display: flex; gap: 0.7rem; overflow-x: auto; padding: 0.2rem 0.1rem 0.6rem; margin-bottom: 0.9rem; scrollbar-width: none; }
.zk-types::-webkit-scrollbar { display: none; }
.zk-type { flex: 0 0 auto; width: 76px; background: none; border: none; padding: 0; cursor: pointer; text-align: center; }
.zk-type-icon { display: flex; align-items: center; justify-content: center; width: 76px; height: 76px; border-radius: 0.8rem; background: #fff; box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12); font-size: 1.9rem; color: var(--brand-primary); transition: background 0.15s ease, transform 0.15s ease; }
.zk-type:hover .zk-type-icon { transform: translateY(-2px); }
.zk-type.active .zk-type-icon { background: #cfdde9; box-shadow: none; }
.zk-type-label { display: block; margin-top: 0.4rem; font-size: 0.74rem; color: #4b5563; }

.zk-field-label { font-size: 0.95rem; margin: 0.25rem 0 0.4rem; }
.zk-field-label sup, .zk-field-head sup { color: #dc2626; }
.zk-radios { display: flex; gap: 1.1rem; margin-bottom: 1rem; font-size: 0.95rem; }
.zk-radios label { display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer; margin: 0; }
.zk-radios input { width: 1.1rem; height: 1.1rem; }
.zk-field { margin-bottom: 1.1rem; }
.zk-field-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.4rem; font-size: 0.92rem; }
.zk-field-head label { margin: 0; }
.zk-field-head > span { color: #6b7280; font-size: 0.85rem; }
.zk-money { width: 100%; height: 46px; border: 1px solid #d5dae1; border-radius: 0.5rem; padding: 0 0.85rem; font-size: 1rem; outline: none; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05); }
.zk-money:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(13, 84, 139, 0.15); }

.zk-result { text-align: center; border: 1px solid var(--brand-primary); border-radius: 0.5rem; background: #fffbe6; padding: 1rem; margin: 0.5rem 0 1.1rem; transition: background 0.2s ease; }
.zk-result p { margin: 0; color: var(--brand-primary); }
.zk-result-note { font-size: 0.82rem; margin-bottom: 0.5rem !important; }
.zk-result-title { font-weight: 700; color: var(--brand-dark) !important; font-size: 0.95rem; }
.zk-result-amount { font-size: 1.05rem; }
.zk-result.is-wajib { background: #ecfaf0; border-color: #1f9d55; }
.zk-result.is-wajib p { color: #167a43; }
.zk-result.is-wajib .zk-result-title { color: var(--brand-dark) !important; }

.zk-notes-title { font-size: 0.95rem; margin-bottom: 0.4rem; }
.zk-notes { padding-left: 1.2rem; font-size: 0.9rem; color: #1f2937; margin-bottom: 1.5rem; }
.zk-notes li { margin-bottom: 0.25rem; }
.zk-calc-actions { display: flex; gap: 0.75rem; }
.zk-share { flex: 0 0 62px; height: 52px; border: 1.5px solid var(--brand-primary); border-radius: 0.5rem; background: #fff; color: var(--brand-primary); font-size: 1.3rem; cursor: pointer; }
.zk-pay { flex: 1; height: 52px; border: none; border-radius: 0.5rem; background: var(--brand-primary); color: #fff; font-weight: 600; font-size: 1rem; cursor: pointer; transition: background 0.15s ease; }
.zk-pay:hover { background: var(--brand-primary-dark); }

/* ---------- Bottom sheet metode pembayaran ---------- */
.zk-sheet-backdrop { display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.5); z-index: 1040; }
.zk-sheet-backdrop.show { display: block; }
.zk-sheet { position: fixed; left: 50%; bottom: 0; width: 100%; max-width: 480px; max-height: 80vh; background: #fff; border-radius: 1rem 1rem 0 0; z-index: 1050; transform: translate(-50%, 105%); transition: transform 0.25s ease; display: flex; flex-direction: column; }
.zk-sheet.show { transform: translate(-50%, 0); }
.zk-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.1rem; border-bottom: 1px solid #eef0f3; }
.zk-sheet-close { border: none; background: none; font-size: 1.1rem; color: #6b7280; cursor: pointer; }
.zk-sheet-body { overflow-y: auto; padding: 0.8rem 1.1rem 1.2rem; }
.zk-pm-group { font-weight: 700; font-size: 0.78rem; color: var(--brand-muted); text-transform: uppercase; letter-spacing: 0.05em; margin: 0.8rem 0 0.5rem; }
.zk-pm-option { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0.85rem; border: 1.5px solid #e5e7eb; border-radius: 0.5rem; margin-bottom: 0.5rem; font-size: 0.9rem; cursor: pointer; transition: border-color 0.12s ease, background 0.12s ease; }
.zk-pm-option:hover { border-color: var(--brand-primary); background: #f6fafd; }
.zk-pm-option.active { border-color: var(--brand-primary); color: var(--brand-primary); font-weight: 700; }
.zk-pm-option i { color: var(--brand-muted); font-size: 0.85rem; }
.zk-pm-option-icon { display: inline-flex; }

/* Tombol utama & banner info disesuaikan dengan desain (biru brand + hijau cerah) */
.zk-page .zk-submit { background: var(--brand-primary); border: none; color: #fff; border-radius: 0.3rem; font-size: 1rem; }
.zk-page .zk-submit:hover, .zk-page .zk-submit:focus { background: var(--brand-primary-dark); color: #fff; }
.zk-page .zk-submit:disabled { opacity: 0.7; }
.zk-page .donate-info-banner { background: #00c853; }

/* Pilihan jenis zakat di tengah; margin auto (bukan justify-content) supaya tetap bisa di-scroll kalau tidak muat */
.zk-types .zk-type:first-child { margin-left: auto; }
.zk-types .zk-type:last-child { margin-right: auto; }
