/* === Homepage: Search Form Area === */

#homepage .installment-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 17% 24%, rgba(255, 210, 64, .26), transparent 24%),
        radial-gradient(circle at 83% 18%, rgba(32, 196, 131, .32), transparent 26%),
        linear-gradient(135deg, #063b35 0%, #0b5d50 43%, #1f6f98 100%) !important;
}

#homepage .installment-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(115deg, rgba(2, 16, 24, .65), rgba(2, 28, 27, .2) 48%, rgba(3, 35, 50, .72)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .055) 0 1px, transparent 1px 96px);
}

#homepage .installment-hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -42% -10%;
    height: 58%;
    z-index: -1;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, .2), transparent 68%);
    animation: heroGlow 9s ease-in-out infinite;
}

#homepage .installment-hero-content {
    position: relative;
    z-index: 2;
}

#homepage .installment-hero h1 {
    letter-spacing: 0;
    text-shadow: 0 8px 24px rgba(0, 0, 0, .32);
}

#homepage .installment-hero h5 {
    text-shadow: 0 5px 18px rgba(0, 0, 0, .28);
}

#homepage .installment-hero .row.justify-content-center > .col-9 {
    width: min(100%, 940px);
}

#homepage .installment-hero .home-search-form {
    filter: drop-shadow(0 18px 38px rgba(0, 0, 0, .24));
}

#homepage .installment-hero-visual {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

#homepage .installment-hero-visual .hero-grid {
    position: absolute;
    inset: 12% 8%;
    border-radius: 36px;
    background-image:
        linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(ellipse at center, #000 0%, transparent 68%);
    opacity: .65;
    animation: heroGridDrift 18s linear infinite;
}

#homepage .installment-hero-visual .hero-ring {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 999px;
    box-shadow: inset 0 0 38px rgba(255, 255, 255, .08);
}

#homepage .installment-hero-visual .hero-ring-one {
    width: 280px;
    height: 280px;
    left: 8%;
    top: 17%;
    animation: heroFloat 9s ease-in-out infinite;
}

#homepage .installment-hero-visual .hero-ring-two {
    width: 420px;
    height: 420px;
    right: -90px;
    top: 8%;
    animation: heroFloat 11s ease-in-out infinite reverse;
}

#homepage .installment-hero-visual .hero-float,
#homepage .installment-hero-visual .hero-payment {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #f8fbff;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .26);
    box-shadow: 0 18px 46px rgba(0, 0, 0, .2);
    backdrop-filter: blur(14px);
    border-radius: 14px;
    padding: 12px 15px;
    font-weight: 700;
}

#homepage .installment-hero-visual .hero-float i {
    color: #ffd43b;
    font-size: 1.2rem;
}

#homepage .installment-hero-visual .hero-float-phone {
    left: 14%;
    top: 26%;
    animation: heroFloat 7.5s ease-in-out infinite;
}

#homepage .installment-hero-visual .hero-float-car {
    right: 14%;
    top: 28%;
    animation: heroFloat 8.5s ease-in-out infinite .5s;
}

#homepage .installment-hero-visual .hero-float-tv {
    left: 20%;
    bottom: 21%;
    animation: heroFloat 8s ease-in-out infinite .9s;
}

#homepage .installment-hero-visual .hero-payment-one {
    right: 20%;
    bottom: 18%;
    background: rgba(255, 210, 64, .18);
}

#homepage .installment-hero-visual .hero-payment-one strong {
    color: #ffd43b;
    font-size: 1.35rem;
    line-height: 1;
}

#homepage .installment-hero-visual .hero-payment-two {
    left: 9%;
    top: 54%;
    background: rgba(37, 196, 131, .18);
    animation: heroFloat 10s ease-in-out infinite .2s;
}

#homepage .installment-hero-visual .hero-payment-two i {
    color: #20c483;
}

#homepage .installment-hero-visual .hero-spark {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffd43b;
    box-shadow: 0 0 0 8px rgba(255, 212, 59, .13), 0 0 34px rgba(255, 212, 59, .55);
    animation: heroPulse 3.8s ease-in-out infinite;
}

#homepage .installment-hero-visual .hero-spark-one {
    left: 31%;
    top: 20%;
}

#homepage .installment-hero-visual .hero-spark-two {
    right: 31%;
    top: 58%;
    animation-delay: 1.1s;
    background: #20c483;
    box-shadow: 0 0 0 8px rgba(32, 196, 131, .13), 0 0 34px rgba(32, 196, 131, .55);
}

#homepage .installment-hero-visual .hero-spark-three {
    right: 18%;
    bottom: 34%;
    animation-delay: 2s;
}

@keyframes heroFloat {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -16px, 0); }
}

@keyframes heroPulse {
    0%, 100% { opacity: .55; transform: scale(.86); }
    50% { opacity: 1; transform: scale(1.15); }
}

@keyframes heroGridDrift {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(42px, 42px, 0); }
}

@keyframes heroGlow {
    0%, 100% { transform: translateY(0); opacity: .55; }
    50% { transform: translateY(-16px); opacity: .85; }
}

@media (max-width: 991px) {
    #homepage .installment-hero-visual .hero-float,
    #homepage .installment-hero-visual .hero-payment {
        transform: scale(.86);
    }

    #homepage .installment-hero-visual .hero-float-car {
        right: 4%;
    }

    #homepage .installment-hero-visual .hero-payment-one {
        right: 8%;
    }
}

@media (max-width: 767px) {
    #homepage .installment-hero {
        min-height: 430px;
        padding: 5rem 0 3rem;
    }

    #homepage .installment-hero-visual .hero-float,
    #homepage .installment-hero-visual .hero-payment {
        display: none;
    }

    #homepage .installment-hero-visual .hero-ring-one {
        left: -120px;
        top: 12%;
    }

    #homepage .installment-hero-visual .hero-ring-two {
        right: -210px;
        top: 6%;
    }

    #homepage .installment-hero h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    #homepage .installment-hero h5 {
        font-size: 1.05rem !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    #homepage .installment-hero::after,
    #homepage .installment-hero-visual .hero-grid,
    #homepage .installment-hero-visual .hero-ring,
    #homepage .installment-hero-visual .hero-float,
    #homepage .installment-hero-visual .hero-payment,
    #homepage .installment-hero-visual .hero-spark {
        animation: none !important;
    }
}

#homepage .hero-wrap:not(.only-search-bar) {
    height: 480px;
    max-height: 480px;
}

#homepage .search-row .search-col:first-child > div {
    border-start-start-radius: 24px !important;
    border-end-start-radius: 24px !important;
}

#homepage .search-row .search-col:first-child .form-control {
    border-start-start-radius: 24px !important;
    border-end-start-radius: 24px !important;
}

#homepage .search-row .search-col button {
    border-start-end-radius: 24px !important;
    border-end-end-radius: 24px !important;
}

#homepage .search-row .search-col .btn {
    border-start-end-radius: 24px !important;
    border-end-end-radius: 24px !important;
}

@media (max-width: 767px) {
    #homepage .search-row .search-col:first-child > div,
    #homepage .search-row .search-col:first-child .form-control,
    #homepage .search-row .search-col > div,
    #homepage .search-row .search-col .form-control,
    #homepage .search-row .search-col button,
    #homepage .search-row .search-col .btn {
        border-radius: 24px !important;
    }

}

/* === Homepage: Locations & SVG Map === */
