@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800;900&display=swap");

/* Site color scheme - this is the ONLY place these colors are defined; content/assets/site-header.css
   and other shared structural CSS reference them via var() but never define them, so this file is
   the one thing that actually differs between sites. No separate accent exists in the original
   design (a single maroon brand color is reused for CTAs) - reusing --site-dark-2 for it here. */
/* Matches the heading font already set inline on this site's own guide.html -
   without this, index.html's headings fall through to bootstrap.min.css's
   unloaded "Cerebri Sans" instead of the intended (and actually loaded) Poppins.
   bootstrap.min.css/app.min.css inject via shared-loader.js AFTER this file, so
   their own h1-h6 rule wins the cascade at equal specificity unless this is
   !important. */
h1, h2, h3, h4, .brand-font {
    font-family: "Poppins", "Cerebri Sans,sans-serif", sans-serif !important;
}

body {
    font-family: "Nunito", "Segoe UI", Arial, sans-serif !important;
}

html, body {
    max-width: 100%;
}

/* app.min.css's legacy admin-template .footer rule (position:absolute; left:240px; bottom:0;
   background-color:#eeeff3 - meant to sit beside a 240px sidebar that no longer exists here)
   injects via shared-loader.js AFTER this file and wins the cascade at equal specificity -
   reset back to the simple centered text footer common.css defines. */
.footer {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    background-color: transparent !important;
    max-width: none !important;
}

/* ===== Back to top ===== */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 2147483647;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--site-dark);
    color: #fff;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    box-shadow: 0 8px 20px rgba(17,94,89,.35);
    transition: background .2s ease, transform .2s ease;
}
.back-to-top.show { display: flex; }
.back-to-top:hover { background: var(--site-dark-2); transform: translateY(-3px); }

@media (max-width: 600px) {
    .back-to-top { width: 40px; height: 40px; right: 16px; bottom: 16px; }
}

/* app.min.css reserves margin-top:70px for a fixed-position navbar; our
   .site-topbar is in normal flow, so we replace it with a small breathing gap. */
.content-page {
    margin-top: 30px;
}

/* app.min.css sets #wrapper/.content-page to overflow:hidden (vendor admin-
   template chrome, index.html only - guide.html never loads that stylesheet).
   An overflow:hidden ancestor becomes position:sticky's containing block, but
   these two never scroll internally themselves (they're sized to fit their
   content) - so a sticky descendant sticks relative to a box that never
   moves, instead of tracking the page's real scroll on <body>. Restore
   visible so .page-ad-rail's sticky positioning tracks the actual page scroll. */
#wrapper, .content-page {
    overflow: visible;
}

.navbar-custom {
    background-color: var(--site-dark-2) !important;
}

.loan-calculator {
    font-family: "Inter", sans-serif;
    /*margin: 30px auto;*/
    /*width: 98%;*/

    border-radius: 8px;
    color: #14213d;
    overflow: hidden;
    display: flex;
    flex-direction: row;
}

.hide {
    display: none !important;
}

.sun {
    position: absolute;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease-in 0.1s;
}

    .sun.visible {
        pointer-events: auto;
        opacity: 1;
        transition: opacity 0.2s ease-in 0.1s;
    }

.moon {
    pointer-events: none;
    position: absolute;
    background-color: rgba(0, 0, 0, 0);
    border-radius: 50%;
    opacity: 0;
    display: hidden;
    transition: opacity 0.2s ease-in 0.1s;
}

    .moon.visible {
        pointer-events: auto;
        opacity: 1;
        transition: opacity 0.2s ease-in 0.1s;
    }

.dark-mode {
    background-color: #000;
    color: white;
}

    .dark-mode .loan-calculator {
        background: #212222;
        color: #fff;
    }

.loan-calculator,
.loan-calculator * {
    box-sizing: border-box;
}

    .loan-calculator .top {
        background: var(--site-dark-2);
        color: #fff;
        padding: 10px;
        /*width: 20%;*/
    }

.end {
    font-weight: 800;
}

.subtop {
    border: 0;
    border-radius: 6px;
}

.loan-calculator form {
    padding-right: 10px;
    padding-left: 10px;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    justify-content: space-between;
}

    .loan-calculator form .group {
        display: flex;
        flex-direction: column;
        gap: 15px;
        /*padding-bottom: 40px;*/
        justify-content: space-between;
    }

    /*.loan-calculator .title {
    margin-bottom: 16px;
}*/

    .loan-calculator form input {
        font-size: 20px;
        padding: 5px 0px 5px 20px;
        border-radius: 10px;
        width: 100%;
        color: #000;
    }

.loan-calculator .result {
    display: flex;
    /*width: 40%;*/
    /*justify-content: space-between;*/
    align-items: center;
    /*padding: 32px;*/
    background: #fff;
    /*box-shadow: 12px 12px 50px -11px rgba(0, 0, 0, 0.2);*/
}

    .loan-calculator .result .left {
        /*width: 100%;*/
        padding: 8px 32px;
    }

.loan-calculator .left h3 {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 8px;
}

.loan-calculator .left h4 {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 8px;
}

.loan-calculator .result .value {
    font-size: 22px;
    font-weight: 700;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(20, 33, 61, 0.2);
}

    .loan-calculator .result .value::before {
        content: "\20B9";
        font-size: 27px;
        font-weight: 400;
        margin-right: 6px;
        opacity: 0.4;
    }

.loan-calculator .group1 {
    text-align: center;
}

    .loan-calculator .group1 .calculate-btn {
        background: #e63946;
        color: #fff;
        border: none;
        padding: 8px 32px;
        border-radius: 8px;
        font-size: 18px;
        font-weight: 900;
        cursor: pointer;
        margin: 24px 0;
    }

.loan-calculator .right {
    width: 50%;
}

.start {
    float: right;
    cursor: pointer;
    right: 80px;
    box-sizing: border-box;
    padding: 12px;
    background: none;
    border: none;
    justify-content: center;
    align-items: center;
    position: relative;
}

.head {
    font-family: "Poppins", sans-serif;
    text-align: center;
    /*padding: 30px;*/
}

.connect {
    font-weight: 900;
}

.innerspan {
    margin-right: 30px;
}

.social-icon {
    display: flex;
    margin: 0px;
    padding: 0px;
}

.social-icon__item {
    list-style: none;
}

.social-icon__link {
    font-size: 1.6rem;
    color: #fff;
    margin: 0 10px;
    display: inline-block;
    transition: 0.3s;
}

    .social-icon__link:hover {
        transform: translateY(-8px);
    }

.menu__link {
    font-size: 1.2rem;
    color: #fff;
    margin: 0 10px;
    display: inline-block;
    transition: 0.5s;
    text-decoration: none;
    opacity: 0.75;
    font-weight: 300;
}

.wave {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    background: url("https://i.ibb.co/wQZVxxk/wave.png");
    background-size: 500px 100px;
}

    .wave#wave1 {
        z-index: 1000;
        opacity: 1;
        bottom: 0;
        animation: animateWaves 3s linear infinite;
    }

    .wave#wave2 {
        z-index: 999;
        opacity: 0.5;
        bottom: 2px;
        animation: animate 3s linear infinite !important;
    }

    .wave#wave3 {
        z-index: 1000;
        opacity: 0.2;
        bottom: 4px;
        animation: animateWaves 2s linear infinite;
    }

    .wave#wave4 {
        z-index: 999;
        opacity: 0.7;
        bottom: 6px;
        animation: animate 2s linear infinite;
    }

@keyframes animateWaves {
    0% {
        background-position-x: 170px;
    }

    100% {
        background-positon-x: 0px;
    }
}

@keyframes animate {
    0% {
        background-position-x: -150px;
    }

    100% {
        background-positon-x: 0px;
    }
}

@media (max-width: 750px) {
    .loan-calculator {
        /*width: 100%;*/
        /*max-width: 600px;*/
        min-height: 1400px;
        display: flex;
        flex-direction: column;
    }

        .loan-calculator .top {
            width: 100%;
        }

        .loan-calculator form {
            padding-left: 0px;
            padding-right: 0px;
        }

            .loan-calculator form .group {
                flex-direction: column;
                gap: 20px;
            }

    /*.loan-calculator .result {
        flex-direction: column;
        text-align: center;
    }*/

    .innerspan {
        display: block;
        margin-bottom: 12px;
    }

    .start {
        top: 20px;
        right: 45px;
    }
}

.foreground-div {
    position: relative;
    z-index: 2;
    background: #f5f6f8;
}

.background-div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90%;
    z-index: 1;
    overflow: auto;
}
