﻿/* ==========================================
   INSTANT PAY - PAYIN PAGE
   UNIQUE PREFIX: ips-payin-
========================================== */

.ips-payin-banner,
.ips-payin-services {
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
}

    .ips-payin-banner *,
    .ips-payin-services * {
        box-sizing: border-box;
    }


/* ==========================================
   BREADCRUMB BANNER
========================================== */

.ips-payin-banner {
    position: relative;
    width: 100%;
    aspect-ratio: 1265 / 269;
    min-height: 220px;
    max-height: 320px;
    background: linear-gradient(110deg, #171612, #292319 65%, #171612);
    overflow: hidden;
    isolation: isolate;
    display: flex;
    align-items: center;
    color: #ffffff;
}

    .ips-payin-banner::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
        background-size: 35px 35px;
        pointer-events: none;
    }

    .ips-payin-banner::after {
        content: "";
        position: absolute;
        width: 55%;
        height: 2px;
        bottom: 0;
        left: 0;
        background: linear-gradient(90deg, #f8c344, transparent);
    }

.ips-payin-banner-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    right: 12%;
    top: -230px;
    background: rgba(239, 170, 24, .13);
    filter: blur(80px);
    border-radius: 50%;
}

.ips-payin-banner-container {
    width: 92%;
    max-width: 1450px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.ips-payin-banner-content {
    position: relative;
    z-index: 3;
}

.ips-payin-banner-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f6bd3d;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.7px;
    margin-bottom: 12px;
}

    .ips-payin-banner-tag::before {
        content: "";
        width: 25px;
        height: 2px;
        background: #f6bd3d;
    }

.ips-payin-banner-content h1 {
    font-size: 36px;
    line-height: 1.2;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 9px;
}

.ips-payin-banner-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #d1c8b8;
    margin: 0 0 15px;
}

.ips-payin-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #f6bd3d;
}

    .ips-payin-breadcrumb a {
        color: #ffffff;
        text-decoration: none;
        transition: color .3s ease;
    }

        .ips-payin-breadcrumb a:hover {
            color: #ffc642;
        }


/* ==========================================
   3D BANNER VISUAL
========================================== */

.ips-payin-banner-visual {
    position: relative;
    width: 310px;
    height: 220px;
    margin-right: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 900px;
}

.ips-payin-orbit {
    position: absolute;
    border: 1px solid rgba(255, 191, 48, .4);
    border-radius: 50%;
}

.ips-payin-orbit-one {
    width: 230px;
    height: 150px;
    transform: rotate(-25deg);
    animation: ipsPayinOrbit 9s linear infinite;
}

.ips-payin-orbit-two {
    width: 280px;
    height: 190px;
    transform: rotate(35deg);
    border-color: rgba(255, 255, 255, .13);
    animation: ipsPayinOrbit 13s linear infinite reverse;
}

.ips-payin-payment-card {
    position: relative;
    z-index: 2;
    width: 205px;
    height: 130px;
    padding: 15px;
    border-radius: 14px;
    border: 1px solid #ffdb73;
    background: linear-gradient(140deg, #363128, #111111 75%);
    box-shadow: 0 20px 35px rgba(0,0,0,.4), 0 0 20px rgba(244,178,30,.25), inset 0 1px 1px rgba(255,255,255,.35);
    transform: rotateY(-15deg) rotateX(9deg) rotateZ(-7deg);
    animation: ipsPayinCardFloat 4s ease-in-out infinite;
}

.ips-payin-card-top,
.ips-payin-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
}

.ips-payin-card-top {
    color: #f8c13f;
}

.ips-payin-card-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f6b72d;
    box-shadow: 0 0 10px #f6b72d;
}

.ips-payin-card-chip {
    width: 27px;
    height: 20px;
    margin-top: 12px;
    border-radius: 5px;
    background: linear-gradient(135deg, #ffdf8c, #d89b22);
    display: flex;
    overflow: hidden;
}

    .ips-payin-card-chip span {
        width: 50%;
        border-right: 1px solid #9e711e;
    }

.ips-payin-card-number {
    margin: 8px 0;
    font-size: 14px;
    color: #ffffff;
    letter-spacing: 1px;
}

.ips-payin-card-bottom {
    color: #e6bd63;
}

.ips-payin-float-icon {
    position: absolute;
    z-index: 4;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(140deg, #ffdb79, #e7a20c);
    color: #201a0f;
    font-size: 19px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(0,0,0,.25);
}

.ips-payin-float-one {
    top: 25px;
    left: 20px;
    animation: ipsPayinFloat 4s ease-in-out infinite;
}

.ips-payin-float-two {
    bottom: 25px;
    right: 15px;
    animation: ipsPayinFloat 3.5s ease-in-out infinite .5s;
}

.ips-payin-float-three {
    top: 18px;
    right: 40px;
    animation: ipsPayinFloat 4.5s ease-in-out infinite 1s;
}

.ips-payin-banner-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,191,48,.18);
}

.ips-payin-circle-one {
    width: 100px;
    height: 100px;
    right: 35%;
    top: -55px;
}

.ips-payin-circle-two {
    width: 50px;
    height: 50px;
    left: 43%;
    bottom: -25px;
}


/* ==========================================
   SERVICES SECTION
========================================== */

.ips-payin-services {
    width: 100%;
    padding: 65px 0 70px;
    position: relative;
    background: #ffffff;
    overflow: hidden;
}

.ips-payin-services-container {
    width: 92%;
    max-width: 1450px;
    margin: 0 auto;
}


/* SECTION HEADING */

.ips-payin-section-heading {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 38px;
}

.ips-payin-section-tag {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #bd820e;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.4px;
    margin-bottom: 12px;
}

    .ips-payin-section-tag span {
        display: inline-block;
        width: 25px;
        height: 2px;
        background: #e9a619;
    }

.ips-payin-section-heading h2 {
    font-size: 32px;
    line-height: 1.25;
    font-weight: 800;
    color: #242424;
    margin: 0 0 12px;
}

    .ips-payin-section-heading h2 span {
        color: #ca8c15;
    }

.ips-payin-section-heading p {
    font-size: 15px;
    line-height: 1.7;
    color: #77716a;
    margin: 0;
}


/* ==========================================
   SERVICES GRID
========================================== */

.ips-payin-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.ips-payin-service-card {
    position: relative;
    padding: 24px 22px;
    min-height: 220px;
    background: #ffffff;
    border: 1px solid #f0e6d4;
    border-radius: 15px;
    box-shadow: 0 8px 28px rgba(50, 40, 20, .045);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: all .4s ease;
}

    .ips-payin-service-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 0;
        height: 3px;
        background: linear-gradient(90deg, #f6c044, #e49a0b);
        transition: width .4s ease;
    }

    .ips-payin-service-card:hover::before {
        width: 100%;
    }

    .ips-payin-service-card:hover {
        transform: translateY(-8px) rotateX(2deg);
        border-color: #eac16c;
        box-shadow: 0 18px 35px rgba(173, 125, 25, .12);
    }

.ips-payin-card-icon {
    width: 53px;
    height: 53px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffe8a9, #f4b629);
    box-shadow: 0 7px 17px rgba(235, 170, 26, .19);
    transition: transform .5s ease;
}

.ips-payin-service-card:hover .ips-payin-card-icon {
    transform: rotateY(180deg) translateZ(10px);
}

.ips-payin-card-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: #282016;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ips-payin-card-number {
    position: absolute;
    top: 28px;
    right: 23px;
    font-size: 14px;
    color: #c9a55c;
    font-weight: 700;
    opacity: .8;
}

.ips-payin-service-card h3 {
    color: #282828;
    font-size: 16px;
    font-weight: 800;
    margin: 18px 0 9px;
}

.ips-payin-service-card p {
    color: #77716a;
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 15px;
    max-width: 350px;
}

.ips-payin-card-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    font-weight: 700;
    color: #bd810c;
    text-decoration: none;
    transition: color .3s ease;
}

    .ips-payin-card-link span {
        display: inline-block;
        font-size: 17px;
        transition: transform .3s ease;
    }

    .ips-payin-card-link:hover {
        color: #252016;
    }

        .ips-payin-card-link:hover span {
            transform: translate(4px, -4px);
        }


/* ==========================================
   BOTTOM CTA
========================================== */

.ips-payin-bottom-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 28px;
    margin-top: 30px;
    border-radius: 15px;
    background: linear-gradient(110deg, #28231b, #171612);
    position: relative;
    overflow: hidden;
}

    .ips-payin-bottom-cta::after {
        content: "";
        position: absolute;
        width: 180px;
        height: 180px;
        border-radius: 50%;
        border: 1px solid rgba(255,190,40,.22);
        right: 15%;
        top: -120px;
    }

.ips-payin-cta-content {
    display: flex;
    align-items: center;
    gap: 17px;
    position: relative;
    z-index: 2;
}

.ips-payin-cta-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffdc7c, #eda70e);
    color: #211a0c;
    font-size: 22px;
    font-weight: 800;
}

.ips-payin-cta-content h3 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 5px;
}

.ips-payin-cta-content p {
    color: #c6bfb1;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.ips-payin-cta-button {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 13px 20px;
    border-radius: 8px;
    background: linear-gradient(120deg, #ffdc75, #efa60d);
    color: #211a0d;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: all .3s ease;
}

    .ips-payin-cta-button:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 22px rgba(238,166,13,.22);
    }


/* ==========================================
   ANIMATIONS
========================================== */

@keyframes ipsPayinCardFloat {
    0%, 100% {
        transform: translateY(0) rotateY(-15deg) rotateX(9deg) rotateZ(-7deg);
    }

    50% {
        transform: translateY(-10px) rotateY(-10deg) rotateX(5deg) rotateZ(-4deg);
    }
}

@keyframes ipsPayinFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-12px) rotate(8deg);
    }
}

@keyframes ipsPayinOrbit {
    from {
        rotate: 0deg;
    }

    to {
        rotate: 360deg;
    }
}


/* SCROLL REVEAL */

.ips-payin-services.ips-payin-js .ips-payin-section-heading,
.ips-payin-services.ips-payin-js .ips-payin-service-card,
.ips-payin-services.ips-payin-js .ips-payin-bottom-cta {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity .7s ease, transform .7s ease;
}

    .ips-payin-services.ips-payin-js .ips-payin-service-card:nth-child(2),
    .ips-payin-services.ips-payin-js .ips-payin-service-card:nth-child(5) {
        transition-delay: .12s;
    }

    .ips-payin-services.ips-payin-js .ips-payin-service-card:nth-child(3),
    .ips-payin-services.ips-payin-js .ips-payin-service-card:nth-child(6) {
        transition-delay: .22s;
    }

.ips-payin-services.ips-payin-visible .ips-payin-section-heading,
.ips-payin-services.ips-payin-visible .ips-payin-service-card,
.ips-payin-services.ips-payin-visible .ips-payin-bottom-cta {
    opacity: 1;
    transform: translateY(0);
}


/* ==========================================
   RESPONSIVE DESIGN
========================================== */

@media (max-width: 991px) {

    .ips-payin-banner {
        min-height: 220px;
        aspect-ratio: auto;
    }

    .ips-payin-banner-visual {
        margin-right: 0;
        transform: scale(.85);
    }

    .ips-payin-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ips-payin-services {
        padding: 55px 0;
    }
}

@media (max-width: 600px) {

    .ips-payin-banner {
        min-height: 190px;
        max-height: none;
        aspect-ratio: auto;
    }

    .ips-payin-banner-container {
        width: 90%;
    }

    .ips-payin-banner-content h1 {
        font-size: 27px;
    }

    .ips-payin-banner-content p {
        max-width: 250px;
        font-size: 14px;
    }

    .ips-payin-banner-tag {
        font-size: 14px;
    }

    .ips-payin-banner-visual {
        position: absolute;
        right: -80px;
        bottom: -15px;
        width: 200px;
        height: 170px;
        margin: 0;
        transform: scale(.72);
        transform-origin: center;
        opacity: .65;
    }

    .ips-payin-payment-card {
        width: 185px;
    }

    .ips-payin-services {
        padding: 45px 0;
    }

    .ips-payin-services-container {
        width: 91%;
    }

    .ips-payin-section-heading {
        margin-bottom: 25px;
    }

        .ips-payin-section-heading h2 {
            font-size: 25px;
        }

        .ips-payin-section-heading p {
            font-size: 14px;
        }

    .ips-payin-services-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .ips-payin-service-card {
        min-height: auto;
        padding: 20px;
    }

        .ips-payin-service-card h3 {
            margin-top: 14px;
        }

    .ips-payin-bottom-cta {
        padding: 20px;
        align-items: flex-start;
        flex-direction: column;
    }

    .ips-payin-cta-content {
        align-items: flex-start;
    }

    .ips-payin-cta-button {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {

    .ips-payin-banner *,
    .ips-payin-services * {
        animation: none !important;
        transition: none !important;
    }
}
