/* =============================================================
   ZAKAT PAYMENT PAGE — Public Form
   Dark theme matching InfaqKU
============================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background: #0f0e17;
    color: #c8cdd8;
    min-height: 100vh;
}

/* -------------------------------------------------------
   NAVBAR
------------------------------------------------------- */
.zakat-nav {
    background: rgba(15,14,23,0.95);
    border-bottom: 0.5px solid rgba(255,255,255,0.07);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.zakat-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

.zakat-brand {
    font-family: 'Syne', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #EEEDFE;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-dot {
    width: 10px; height: 10px;
    background: #e64a34;
    border-radius: 50%;
    display: inline-block;
}

.zakat-nav-title {
    font-size: 13px;
    color: #6c7380;
}

/* -------------------------------------------------------
   HERO
------------------------------------------------------- */
.zakat-hero {
    padding: 52px 0 36px;
    position: relative;
    overflow: hidden;
}

.zakat-hero::before {
    content: '';
    position: absolute;
    top: -80px; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 300px;
    background: radial-gradient(ellipse, rgba(230,74,52,0.18) 0%, transparent 70%);
    pointer-events: none;
}

.hero-icon {
    font-size: 44px;
    color: #e64a34;
    margin-bottom: 14px;
    position: relative;
}

.hero-title {
    font-family: 'Syne', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #EEEDFE;
    margin-bottom: 10px;
}

.hero-sub {
    font-size: 14px;
    color: #6c7380;
    max-width: 380px;
    margin: 0 auto;
    line-height: 1.7;
}

/* -------------------------------------------------------
   MAIN CONTAINER
------------------------------------------------------- */
.zakat-container {
    max-width: 960px;
    padding-bottom: 60px;
}

/* -------------------------------------------------------
   SECTION CARD
------------------------------------------------------- */
.zakat-section {
    background: #1e2128;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
}

.zakat-section-header {
    background: #fff;
    border: 1px solid rgba(255, 252, 252, 0.955);
    border-radius: 0 !important;
    margin-bottom: 10px;
    overflow: hidden;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: rgba(255,255,255,0.02);
}

.section-num {
    width: 32px; height: 32px;
    background: #e64a34;
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700;
    flex-shrink: 0;
}

.section-title {
    font-family: 'Syne', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #EEEDFE;
    margin: 0 0 2px;
}

.section-sub {
    font-size: 12px;
    color: #6c7380;
    margin: 0;
}

.section-body {
    padding: 12px;
}

/* -------------------------------------------------------
   FORM ELEMENTS
------------------------------------------------------- */
.form-field { margin-bottom: 18px; }
.form-field:last-child { margin-bottom: 0; }

.form-label-z {
    display: block;
    font-size: 10px;
    font-weight: 500;
    color: #6c7380;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.req  { color: #e64a34; }
.opt  { font-weight: 400; text-transform: none; color: #4a5060; font-size: 11px; }

.form-input-z {
    width: 100%;
    background: #252830;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #c8cdd8;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    resize: vertical;
    appearance: none;
}

.form-input-z::placeholder { color: #4a5060; }

.form-input-z:focus {
    border-color: rgba(230,74,52,0.5);
    box-shadow: 0 0 0 3px rgba(230,74,52,0.1);
}

.form-input-z.is-invalid { border-color: rgba(240,100,80,0.5); }

/* Select arrow */
select.form-input-z {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236c7380' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

/* Input with icon */
.input-icon-wrap { position: relative; }

.input-icon-wrap i {
    position: absolute;
    left: 13px; top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #4a5060;
    pointer-events: none;
    transition: color 0.15s;
}

.input-icon-wrap:focus-within i { color: #e64a34; }

.form-input-z.has-icon { padding-left: 40px; }

/* -------------------------------------------------------
   REKENING CARD
------------------------------------------------------- */
.rekening-card {
    background: rgba(230,74,52,0.06);
    border: 1px solid rgba(230,74,52,0.2);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 12px;
}

.rekening-header {
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #e64a34;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid rgba(230,74,52,0.15);
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(230,74,52,0.05);
}

.rekening-body { padding: 14px 16px; }

.rekening-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 13px;
}

.rekening-row:last-child { border-bottom: none; }

.rek-label { color: #6c7380; flex-shrink: 0; min-width: 110px; }

.rek-value { color: #c8cdd8; font-weight: 500; text-align: right; }

.rek-value-copy {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #EEEDFE;
    font-size: 15px;
}

.btn-copy-rek {
    transition: all 0.2s ease;
}

.btn-copy-rek.copied {
    background-color: #198754;
    color: #fff;
}

.btn-copy-rek.copied i {
    color: #fff;
}

.btn-copy {
    background: rgba(230,74,52,0.15);
    border: 1px solid rgba(230,74,52,0.3);
    color: #e64a34;
    width: 28px; height: 28px;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.15s;
}

.btn-copy:hover { background: rgba(230,74,52,0.25); }
.btn-copy.copied { background: rgba(29,158,117,0.15); border-color: rgba(29,158,117,0.3); color: #5dcaa5; }

/* -------------------------------------------------------
   JENIS ZAKAT GRID
------------------------------------------------------- */
.jenis-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.jenis-card {
    background: #252830;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 10px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
}

.jenis-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.jenis-card i {
    font-size: 24px;
    color: #6c7380;
    transition: color 0.15s;
}

.jenis-label {
    font-size: 10px;
    font-weight: 600;
    color: #9aa0ad;
    transition: color 0.15s;
}

.jenis-desc {
    font-size: 10px;
    color: #4a5060;
    line-height: 0;
}

.jenis-card:hover,
.jenis-card.selected {
    background: rgba(230,74,52,0.08);
    border-color: rgba(230,74,52,0.35);
}

.jenis-card.selected i      { color: #e64a34; }
.jenis-card.selected .jenis-label { color: #e64a34; }

/* -------------------------------------------------------
   NOMINAL INPUT
------------------------------------------------------- */
.nominal-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.btn-nominal {
    background: #252830;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    color: #9aa0ad;
    font-size: 12px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.15s;
    font-family: 'Inter', sans-serif;
}

.btn-nominal:hover,
.btn-nominal.active {
    background: rgba(230,74,52,0.1);
    border-color: rgba(230,74,52,0.35);
    color: #e64a34;
}

.nominal-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.nominal-prefix {
    position: absolute;
    left: 14px;
    font-size: 14px;
    color: #6c7380;
    font-weight: 500;
    pointer-events: none;
}

.nominal-field { padding-left: 40px !important; font-size: 18px !important; font-weight: 600 !important; }

/* -------------------------------------------------------
   UPLOAD ZONE
------------------------------------------------------- */
.upload-zone {
    position: relative;
    border: 1.5px dashed rgba(255,255,255,0.1);
    border-radius: 10px;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #252830;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.15s, background 0.15s;
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: rgba(230,74,52,0.4);
    background: rgba(230,74,52,0.04);
}

.upload-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%; height: 100%;
    z-index: 2;
}

.upload-placeholder {
    text-align: center;
    padding: 20px;
    pointer-events: none;
}

.upload-placeholder i {
    font-size: 36px;
    color: #4a5060;
    display: block;
    margin-bottom: 10px;
}

.upload-placeholder p {
    font-size: 13px;
    color: #6c7380;
    margin-bottom: 4px;
}

.upload-placeholder p span {
    color: #e64a34;
    font-weight: 500;
}

.upload-placeholder small { font-size: 11px; color: #4a5060; }

.upload-preview-wrap {
    width: 100%;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.upload-preview-wrap img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 6px;
    object-fit: contain;
}

.pdf-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(230,74,52,0.1);
    border: 1px solid rgba(230,74,52,0.2);
    border-radius: 8px;
    padding: 12px 18px;
}

.pdf-badge i { font-size: 28px; color: #e64a34; }

.pdf-badge span { font-size: 13px; color: #c8cdd8; }

.btn-remove-file {
    background: rgba(240,100,80,0.1);
    border: 1px solid rgba(240,100,80,0.2);
    color: #F09595;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 3;
    position: relative;
    transition: background 0.15s;
}

.btn-remove-file:hover { background: rgba(240,100,80,0.2); }

/* -------------------------------------------------------
   SUMMARY CARD
------------------------------------------------------- */
.summary-card {
    background: #1e2128;
    border: 1px solid rgba(230,74,52,0.2);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.summary-header {
    padding: 12px 20px;
    font-size: 12px;
    font-weight: 600;
    color: #e64a34;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    border-bottom: 1px solid rgba(230,74,52,0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(230,74,52,0.04);
}

.summary-body { padding: 16px 20px; }

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 13px;
}

.summary-row:last-of-type { border-bottom: none; }
.summary-row span { color: #6c7380; }
.summary-row strong { color: #c8cdd8; text-align: right; }
.text-highlight { color: #e64a34 !important; font-size: 16px !important; }

.summary-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 12px 0; }

.summary-status {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,193,7,0.06);
    border: 1px solid rgba(255,193,7,0.2);
    border-radius: 8px;
    padding: 12px 14px;
}

.summary-status i { font-size: 22px; color: #ffc107; flex-shrink: 0; }
.status-label { font-size: 11px; color: #6c7380; margin-bottom: 2px; }
.status-value { font-size: 13px; font-weight: 600; color: #ffc107; }

/* -------------------------------------------------------
   SUBMIT BUTTON
------------------------------------------------------- */
.submit-wrap { text-align: center; margin-top: 8px; }

.btn-zakat-submit {
    background: #e64a34;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 36px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Syne', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s, opacity 0.15s;
    width: 100%;
    justify-content: center;
}

.btn-zakat-submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-zakat-submit:not(:disabled):hover { background: #c73d29; }
.btn-zakat-submit:not(:disabled):active { transform: scale(0.99); }

.submit-note {
    font-size: 12px;
    color: #4a5060;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* -------------------------------------------------------
   ERROR BANNER
------------------------------------------------------- */
.alert-zakat-error {
    background: rgba(240,100,80,0.08);
    border: 1px solid rgba(240,100,80,0.25);
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    color: #F09595;
    line-height: 1.6;
}

.alert-zakat-error i { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

.error-msg {
    font-size: 12px;
    color: #F09595;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* -------------------------------------------------------
   SUCCESS PAGE
------------------------------------------------------- */
.success-page {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.success-card {
    background: #1e2128;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 48px 40px;
    text-align: center;
    max-width: 480px;
    width: 100%;
}

.success-icon {
    font-size: 60px;
    color: #1d9e75;
    margin-bottom: 20px;
    line-height: 1;
}

.success-title {
    font-family: 'Syne', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #EEEDFE;
    margin-bottom: 10px;
}

.success-sub {
    font-size: 14px;
    color: #6c7380;
    line-height: 1.7;
    margin-bottom: 24px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,193,7,0.1);
    border: 1px solid rgba(255,193,7,0.25);
    color: #ffc107;
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 28px;
}

.success-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 32px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.step-dot {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
}

.step.done .step-dot  { background: rgba(29,158,117,0.15); color: #5dcaa5; border: 1px solid rgba(29,158,117,0.3); }
.step.pending .step-dot { background: rgba(255,255,255,0.05); color: #4a5060; border: 1px solid rgba(255,255,255,0.08); }

.step-text { text-align: center; }
.step-text strong { display: block; font-size: 11px; color: #9aa0ad; margin-bottom: 2px; }
.step-text span   { font-size: 10px; color: #4a5060; }

.step-line { flex: 0.5; height: 1px; background: rgba(255,255,255,0.08); margin-bottom: 20px; }

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-back-zakat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #9aa0ad;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.15s;
}

.btn-back-zakat:hover { background: rgba(255,255,255,0.08); color: #c8cdd8; }

/* -------------------------------------------------------
   FOOTER
------------------------------------------------------- */
.zakat-footer {
    padding: 20px;
    border-top: 1px solid rgba(244, 241, 241, 0.05);
    font-size: 12px;
    color: #4a5060;
}

/* -------------------------------------------------------
   RESPONSIVE
------------------------------------------------------- */
@media (max-width: 640px) {
    .jenis-grid { grid-template-columns: repeat(2, 1fr); }
    .nominal-shortcuts { gap: 5px; }
    .btn-nominal { font-size: 11px; padding: 5px 9px; }
    .hero-title  { font-size: 24px; }
    .success-card { padding: 32px 20px; }
}


/* =============================================================
   TAMBAHAN: KALKULATOR ZAKAT
============================================================= */

/* Grid 6 jenis */
.jenis-grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.jenis-grid-6 .jenis-card {
    background: #252830;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 12px 6px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    position: relative;
    transition: all 0.15s;
}

.jenis-grid-6 .jenis-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.jenis-grid-6 .jenis-card i     { font-size: 22px; color: #6c7380; transition: color 0.15s; }
.jenis-grid-6 .jenis-card:hover,
.jenis-grid-6 .jenis-card.selected {
    background: rgba(230,74,52,0.08);
    border-color: rgba(230,74,52,0.35);
}
.jenis-grid-6 .jenis-card.selected i          { color: #e64a34; }
.jenis-grid-6 .jenis-card.selected .jenis-label { color: #e64a34; }

/* Rumus info box */
.rumus-box {
    display: flex;
    gap: 12px;
    background: rgba(127,119,221,0.07);
    border: 1px solid rgba(127,119,221,0.15);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 12px;
    color: #9aa0ad;
    line-height: 1.7;
    margin-bottom: 4px;
}

.rumus-box i   { font-size: 18px; color: #7F77DD; flex-shrink: 0; margin-top: 1px; }
.rumus-box b   { color: #c8cdd8; }
.rumus-box span { color: #6c7380; }

/* Field hint */
.field-hint {
    font-size: 11px;
    color: #4a5060;
    display: block;
    margin-top: 0px;
}

/* Counter (jiwa) */
.counter-wrap {
    display: flex;
    align-items: center;
    gap: 0;
}

.btn-counter {
    width: 36px;
    height: 44px;
    background: rgba(230,74,52,0.1);
    border: 1px solid rgba(230,74,52,0.25);
    color: #e64a34;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    flex-shrink: 0;
}

.btn-counter:first-child { border-radius: 8px 0 0 8px; border-right: none; }
.btn-counter:last-child  { border-radius: 0 8px 8px 0; border-left: none; }
.btn-counter:hover       { background: rgba(230,74,52,0.2); }

.counter-input {
    flex: 1;
    text-align: center;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}

/* Nominal shortcuts (dalam section pembayaran) */
.nom-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

/* Kalkulator result */
.calc-result {
    margin-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 18px;
}

.calc-result-inner {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 18px;
}

.result-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
}

.result-status.wajib {
    background: rgba(29,158,117,0.12);
    border: 1px solid rgba(29,158,117,0.3);
    color: #5dcaa5;
}

.result-status.tidak-wajib {
    background: rgba(255,193,7,0.1);
    border: 1px solid rgba(255,193,7,0.25);
    color: #ffc107;
}

.result-detail {
    font-size: 12px;
    color: #9aa0ad;
    line-height: 1.8;
    margin-bottom: 14px;
}

.result-nominal-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(230,74,52,0.06);
    border: 1px solid rgba(230,74,52,0.2);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 12px;
}

.result-label  { font-size: 12px; color: #6c7380; }
.result-nominal { font-size: 20px; font-weight: 700; color: #e64a34; font-family: 'Syne', sans-serif; }

.btn-pakai-nominal {
    width: 100%;
    background: #e64a34;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background 0.15s;
}

.btn-pakai-nominal:hover { background: #c73d29; }

/* Responsive */
@media (max-width: 768px) {
    .jenis-grid-6 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
    .jenis-grid-6 { grid-template-columns: repeat(2, 1fr); }
}
