/* Zakat Calculator - Theme: DawateIslami Ireland */
/* Theme: Cloudflare (--accent-color #F48120, --accent-light #FAAD3F, --accent-dark #E57200) */

.zakat-nisab-section {
    padding: 5rem 0 4rem;
    background: var(--secondary-color, #F8F8F8);
}

.zakat-nisab-section .section-title h3 {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-color);
    margin-bottom: 10px;
}

/* Nisab cards with gradient border animation */
.zakat-info-card-wrapper {
    position: relative;
    border-radius: 20px;
    padding: 3px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light), var(--primary-color), var(--accent-color));
    background-size: 300% 300%;
    animation: zakatGradientBorder 6s ease infinite;
    height: 100%;
}

.zakat-info-card {
    background: var(--white-color);
    border-radius: 17px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(2, 13, 25, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    height: 100%;
    position: relative;
    z-index: 1;
}

.zakat-info-card-wrapper:hover .zakat-info-card {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(244, 129, 32, 0.15);
}

@keyframes zakatGradientBorder {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.zakat-info-card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    color: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 16px rgba(244, 129, 32, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.zakat-info-card-wrapper:hover .zakat-info-card-icon {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(244, 129, 32, 0.4);
}

.zakat-info-card h4 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.zakat-note {
    max-width: 720px;
    margin: 2rem auto 0;
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.7;
}

/* About Zakat / Nisab */
.zakat-about-section {
    padding: 4rem 0;
}

.zakat-about-card {
    background: var(--primary-color);
    color: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.zakat-about-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(244, 129, 32, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.zakat-about-card h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.zakat-about-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.zakat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.zakat-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.95);
}

.zakat-list li:last-child { border-bottom: none; }

/* Calculator section */
.zakat-calculator-section {
    padding: 4rem 0 5rem;
    background: var(--secondary-color);
}

.zakat-nisab-box {
    background: var(--white-color);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent-color);
    box-shadow: 0 4px 20px rgba(2, 13, 25, 0.06);
}

.zakat-nisab-box h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.zakat-nisab-box .nisab-value-display {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 0.75rem 0 1rem;
    font-family: var(--accent-font, inherit);
    line-height: 1.4;
}

.zakat-nisab-box .nisab-value-display .nisab-note {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-color);
    margin-top: 0.5rem;
    font-style: italic;
    opacity: 0.8;
}

.zakat-calculator-form-wrapper {
    background: var(--white-color);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 24px rgba(2, 13, 25, 0.06);
    margin-bottom: 2rem;
}

.zakat-form-section {
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--divider-color);
}

.zakat-form-section:last-of-type { border-bottom: none; }

.zakat-form-section h4 {
    font-size: 1.2rem;
    margin-bottom: 0.35rem;
    color: var(--primary-color);
}

.zakat-form-section .section-desc {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.zakat-calculator-form .form-group {
    margin-bottom: 1.25rem;
}

.zakat-calculator-form .form-group:last-child { margin-bottom: 0; }

.zakat-calculator-form .form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.zakat-calculator-form .form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--divider-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.zakat-calculator-form .form-group input::placeholder {
    color: #aaa;
}

.zakat-calculator-form .form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(244, 129, 32, 0.15);
}

/* Result box – shared */
.zakat-result-box {
    border-radius: 16px;
    padding: 2rem 2.5rem;
    text-align: center;
}

.zakat-result-box.zakat-result-reveal {
    animation: zakatResultReveal 0.6s ease;
}

@keyframes zakatResultReveal {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.zakat-result-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--white-color);
}

.zakat-result-icon-check,
.zakat-result-icon-heart {
    background: var(--accent-color);
}

.zakat-result-heading {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-family: var(--accent-font, inherit);
}
.result-amount-container{
        display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0px;
    flex-wrap: wrap;
    margin: 25px 0;
    position: relative;
    z-index: 1;
}
.zakat-amount-badge {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white-color);
    margin-bottom: 1.25rem;
    font-family: var(--accent-font, inherit);
}

.zakat-info-text {
    background: var(--white-color);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    text-align: left;
    border-left: 4px solid var(--accent-color);
}

.zakat-info-text p {
    margin: 0;
    color: var(--text-color);
    line-height: 1.7;
}

.zakat-calc-details {
    text-align: left;
    margin-top: 1.5rem;
}

.zakat-calc-details h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    font-family: var(--accent-font, inherit);
}

.zakat-calc-details h4 i {
    color: var(--accent-color);
    margin-right: 0.35rem;
}

.zakat-calc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.zakat-calc-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--divider-color);
    color: var(--text-color);
}

.zakat-calc-list li:last-child { border-bottom: none; }

.zakat-calc-list li span { margin-right: 0.5rem; }

/* Zakat eligible box – theme colours + background & shadow animation */
.zakat-result-zakat {
    position: relative;
    border: 1px solid var(--divider-color);
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--secondary-color) 0%, rgba(244, 129, 32, 0.06) 50%, var(--secondary-color) 100%);
    background-size: 200% 200%;
    box-shadow: 0 4px 24px rgba(2, 13, 25, 0.06), 0 0 0 1px rgba(244, 129, 32, 0.08);
    animation: zakatBgPulse 8s ease-in-out infinite, zakatShadowPulse 6s ease-in-out infinite;
}

@keyframes zakatBgPulse {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes zakatShadowPulse {
    0%, 100% { box-shadow: 0 4px 24px rgba(2, 13, 25, 0.06), 0 0 0 1px rgba(244, 129, 32, 0.08); }
    50% { box-shadow: 0 8px 40px rgba(244, 129, 32, 0.12), 0 0 0 1px rgba(244, 129, 32, 0.15); }
}

.zakat-result-zakat .zakat-result-heading {
    color: var(--primary-color);
}

.zakat-result-zakat .zakat-amount-badge {
    background: var(--accent-color);
}

.btn-zakat-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--accent-color);
    color: var(--white-color) !important;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    padding: 14px 28px;
    border-radius: 100px;
    border: none;
    text-decoration: none;
    font-family: var(--accent-font, inherit);
    transition: background 0.25s ease, transform 0.2s ease;
}

.btn-zakat-main:hover {
    background: var(--accent-dark);
    color: var(--white-color);
    transform: translateY(-2px);
}

/* Sadaqah box – theme colours + background & shadow animation */
.zakat-result-sadaqah {
    position: relative;
    border: 2px solid var(--accent-color);
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--secondary-color) 0%, rgba(244, 129, 32, 0.08) 50%, var(--secondary-color) 100%);
    background-size: 200% 200%;
    animation: zakatBgPulse 8s ease-in-out infinite, zakatShadowPulseSadaqah 6s ease-in-out infinite;
    box-shadow: 0 4px 24px rgba(2, 13, 25, 0.06), 0 0 0 1px rgba(244, 129, 32, 0.1);
}

@keyframes zakatShadowPulseSadaqah {
    0%, 100% { box-shadow: 0 4px 24px rgba(2, 13, 25, 0.06), 0 0 0 1px rgba(244, 129, 32, 0.1); }
    50% { box-shadow: 0 12px 48px rgba(244, 129, 32, 0.18), 0 0 0 2px rgba(244, 129, 32, 0.2); }
}

.zakat-result-sadaqah .zakat-result-heading {
    color: var(--primary-color);
}

.zakat-result-sadaqah .zakat-amount-badge {
    background: var(--accent-color);
}

.btn-zakat-sadaqah {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--accent-color);
    color: var(--white-color) !important;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    padding: 14px 28px;
    border-radius: 100px;
    border: none;
    text-decoration: none;
    font-family: var(--accent-font, inherit);
    transition: background 0.25s ease, transform 0.2s ease;
}

.btn-zakat-sadaqah:hover {
    background: var(--accent-dark);
    color: var(--white-color);
    transform: translateY(-2px);
}

/* Animations */
.zakat-info-card,
.zakat-about-card,
.zakat-nisab-box,
.zakat-calculator-form-wrapper,
.zakat-result-box {
    animation-duration: 0.6s;
}

/* Responsive */
@media (max-width: 991px) {
    .zakat-nisab-section,
    .zakat-calculator-section { padding: 3rem 0 3rem; }
    .zakat-about-section { padding: 3rem 0; }
    .zakat-amount-badge { font-size: 1.5rem; }
}

@media (max-width: 767px) {
    .zakat-calculator-form-wrapper { padding: 1.5rem; }
    .zakat-nisab-box { padding: 1.5rem; }
    .zakat-nisab-box .nisab-value-display { font-size: 1.5rem; }
    .zakat-result-box { padding: 2rem 1.5rem; }
}

@media (max-width: 575px) {
    .zakat-about-card { padding: 1.75rem; }
    .zakat-info-card { padding: 1.5rem; }
    .zakat-info-card-wrapper { padding: 2px; }
}
