
/* ========================================================= */
/* SCROLL REVEAL */
/* ========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(35px);

    transition:
        opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* LEFT */

.reveal-left {
    opacity: 0;
    transform: translateX(-45px);

    transition:
        opacity 750ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 750ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}


/* RIGHT */

.reveal-right {
    opacity: 0;
    transform: translateX(45px);

    transition:
        opacity 750ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 750ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}


/* SCALE */

.reveal-scale {
    opacity: 0;
    transform: scale(.96);

    transition:
        opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-scale.is-visible {
    opacity: 1;
    transform: scale(1);
}


/* ========================================================= */
/* ACCESSIBILITY */
/* ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1;
        transform: none;
        transition: none;
    }

}





/* ========================================================= */
/* NAVIGATION */
/* ========================================================= */

.nav-link::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 20px;

    width: 0;
    height: 2px;

    background: #FFAB00;

    border-radius: 999px;

    transform: translateX(-50%);

    transition: width 250ms ease;
}


.nav-link:hover::after,
.nav-link-active::after {
    width: 20px;
}



/* ========================================================= */
/* JIWEZE HERO SWIPER */
/* ========================================================= */

.jiweze-hero-swiper {
    width: 100%;
}


.hero-animate {
    opacity: 0;
    transform: translateY(28px);

    transition:
        opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}


.hero-animate.hero-animate-active {
    opacity: 1;
    transform: translateY(0);
}


/* ========================================================= */
/* PAGINATION */
/* ========================================================= */

.jiweze-hero-pagination {
    width: auto !important;
}


.jiweze-hero-pagination .swiper-pagination-bullet {

    width: 8px;
    height: 8px;

    margin: 0 4px !important;

    background: rgba(255, 255, 255, 0.5);

    opacity: 1;

    transition:
        width 300ms ease,
        background-color 300ms ease;
}


.jiweze-hero-pagination .swiper-pagination-bullet-active {

    width: 32px;

    border-radius: 999px;

    background: #FFAB00;

}


/* ========================================================= */
/* ACCESSIBILITY */
/* ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .hero-animate {
        opacity: 1;
        transform: none;
        transition: none;
    }

}




/* ========================================================= */
/* JIWEZE LOAN CALCULATOR RANGE */
/* ========================================================= */

.jiweze-range {
    appearance: none;
    -webkit-appearance: none;

    height: 6px;

    border-radius: 999px;

    outline: none;

    background:
        linear-gradient(to right,
            #F7A600 0%,
            #F7A600 var(--range-progress, 25%),
            #E2E8F0 var(--range-progress, 25%),
            #E2E8F0 100%);
}


/* CHROME / SAFARI */

.jiweze-range::-webkit-slider-thumb {

    appearance: none;
    -webkit-appearance: none;

    width: 22px;
    height: 22px;

    border-radius: 50%;

    background: #FFFFFF;

    border: 5px solid #163B78;

    cursor: pointer;

    box-shadow:
        0 2px 8px rgba(15, 23, 42, 0.18);
}


/* FIREFOX */

.jiweze-range::-moz-range-thumb {

    width: 14px;
    height: 14px;

    border-radius: 50%;

    background: #FFFFFF;

    border: 5px solid #163B78;

    cursor: pointer;

    box-shadow:
        0 2px 8px rgba(15, 23, 42, 0.18);
}


/* FOCUS */

.jiweze-range:focus-visible::-webkit-slider-thumb {

    outline: 3px solid rgba(247, 166, 0, 0.3);
    outline-offset: 3px;

}




/* ========================================================= */
/* HOW IT WORKS ANIMATION */
/* ========================================================= */

.process-step {
    opacity: 0;
    transform: translateY(32px);

    transition:
        opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.process-step.process-step-visible {
    opacity: 1;
    transform: translateY(0);
}


.how-it-works-line {
    width: 0;

    transition:
        width 1200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.how-it-works-line.process-line-visible {
    width: 100%;
}


/* ========================================================= */
/* REDUCED MOTION */
/* ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .process-step {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .how-it-works-line {
        width: 100%;
        transition: none;
    }

}






/* ========================================================= */
/* FORMS */
/* ========================================================= */

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-jiweze-navy, #244881);
}

.form-control {
    width: 100%;
    min-height: 52px;
    margin-top: 0.5rem;
    padding-inline: 1rem;

    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;

    background: #ffffff;
    color: #334155;

    font-size: 0.875rem;

    outline: none;

    transition:
        border-color 200ms ease,
        box-shadow 200ms ease;
}

.form-control::placeholder {
    color: #94a3b8;
}

.form-control:focus {
    border-color: var(--color-jiweze-gold,
            #FFAB00);

    box-shadow:
        0 0 0 4px rgba(255, 171, 0, 0.10);
}























/* ========================================================= */
/* FOOTER LINKS */
/* ========================================================= */

.footer-link {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.58);
    transition:
        color 200ms ease,
        transform 200ms ease;
}

.footer-link:hover {
    color: #FFAB00;
}




