/* ========================================================================
   LOANLEADS — COMPLETE VISUAL REDESIGN
   Premium Editorial Fintech / Charcoal + Emerald + Ivory
   Drop-in replacement for the existing stylesheet.
   No HTML changes are required for the existing selectors.
   ======================================================================== */

:root {
    --ink: #101613;
    --ink-2: #18211d;
    --muted: #68736d;
    --paper: #f6f5ef;
    --paper-2: #eeeee7;
    --white: #fffef9;
    --line: #dfe2db;
    --accent: #b7f34a;
    --accent-2: #8fd52c;
    --success: #15966f;
    --danger: #d9485f;
    --warning: #d89b22;
    --font-primary: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, sans-serif;
    --space-1: .375rem;
    --space-2: .75rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 3rem;
    --space-7: 4.5rem;
    --space-8: 6.5rem;
    --space-9: 9rem;
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-xl: 38px;
    --radius-pill: 999px;
    --shadow-1: 0 8px 30px rgba(16, 22, 19, .06);
    --shadow-2: 0 20px 60px rgba(16, 22, 19, .10);
    --shadow-3: 0 30px 90px rgba(16, 22, 19, .16);
    --focus: 0 0 0 4px rgba(183, 243, 74, .28);
    --ease: cubic-bezier(.2,.8,.2,1);
    --hero-back: '/images/hero-illustration.svg';
}

/* RESET */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-x: hidden;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-primary) !important;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

header {
    flex-shrink: 0;
}

main {
    flex: 1 0 auto !important;
    width: 100%;
    padding: 0;
}

    main > *:last-child {
        margin-bottom: 0;
    }

.container {
    position: relative;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 var(--space-3);
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.08;
}

h1 {
    font-size: clamp(2.7rem, 7vw, 6.5rem);
}

h2 {
    font-size: clamp(2.2rem, 5vw, 4.4rem);
}

h3 {
    font-size: clamp(1.65rem, 3vw, 2.6rem);
}

h4 {
    font-size: 1.45rem;
}

h5 {
    font-size: 1.15rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin: 0 0 var(--space-3);
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
}

.lead {
    max-width: 700px;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    line-height: 1.65;
}

.display-4 {
    font-size: clamp(2.8rem, 7vw, 6.5rem);
    line-height: .98;
    letter-spacing: -.065em;
}

/* NAVIGATION — compact, floating, editorial */
.navbar {
    position: sticky;
    top: 14px;
    z-index: 1000;
    width: min(1180px, calc(100% - 28px));
    margin: 14px auto 0;
    padding: .7rem .85rem;
    background: rgba(255,254,249,.92) !important;
    border: 1px solid rgba(16,22,19,.10);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-1);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: .3s var(--ease);
}

    .navbar.scrolled {
        padding: .45rem .7rem;
        box-shadow: var(--shadow-2);
    }

.navbar-brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding-left: .65rem;
    color: var(--ink) !important;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -.03em;
}

    .navbar-brand img {
        height: 18rem;
        width: auto;
        max-width: 100%;
        object-fit: contain;
        border-radius: 7rem;
    }

.navbar-logo {
    display: block;
}

.navbar-nav {
    gap: .15rem;
}

    .navbar-nav .nav-link {
        position: relative;
        padding: .65rem .9rem !important;
        border-radius: var(--radius-pill);
        color: var(--ink) !important;
        font-size: .88rem;
        font-weight: 700;
        transition: .2s var(--ease);
    }

        .navbar-nav .nav-link::after {
            display: none;
        }

        .navbar-nav .nav-link:hover,
        .navbar-nav .nav-link.active {
            background: var(--ink);
            color: var(--white) !important;
        }

/* BUTTONS — solid, tactile, less "template" */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 48px;
    padding: .8rem 1.35rem;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-size: .9rem;
    font-weight: 800;
    letter-spacing: -.01em;
    text-transform: none;
    cursor: pointer;
    overflow: hidden;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}

    .btn::before {
        display: none;
    }

    .btn:hover {
        transform: translateY(-2px);
    }

    .btn:focus-visible {
        outline: none;
        box-shadow: var(--focus);
    }

.btn-primary,
.btn-success,
.apply-now-btn {
    background: var(--accent) !important;
    color: var(--ink) !important;
    border-color: var(--accent) !important;
    box-shadow: none;
}

    .btn-primary:hover,
    .btn-success:hover,
    .apply-now-btn:hover {
        background: var(--accent-2) !important;
        color: var(--ink) !important;
        box-shadow: 0 12px 30px rgba(143,213,44,.25);
    }

.btn-lg {
    min-height: 58px;
    padding: 1rem 1.7rem;
    font-size: 1rem;
}

.btn-outline-primary {
    color: var(--ink) !important;
    background: transparent !important;
    border: 1px solid rgba(16,22,19,.25) !important;
}

    .btn-outline-primary:hover {
        background: var(--ink) !important;
        color: var(--white) !important;
        border-color: var(--ink) !important;
    }

/* HERO — intentionally asymmetrical and magazine-like */
.hero-section {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    padding: 8rem 0 7rem;
    overflow: hidden;
    text-align: left;
    color: var(--white);
    background: var(--ink);
    isolation: isolate;
}

    .hero-section::before {
        content: "";
        position: absolute;
        z-index: -1;
        width: 520px;
        height: 520px;
        right: -160px;
        top: -150px;
        border: 1px solid rgba(183,243,74,.25);
        border-radius: 50%;
        box-shadow: 0 0 0 80px rgba(183,243,74,.035), 0 0 0 160px rgba(183,243,74,.02);
    }

    .hero-section::after {
        content: "";
        position: absolute;
        z-index: -1;
        left: -8%;
        bottom: -45%;
        width: 65%;
        height: 80%;
        background: rgba(183,243,74,.06);
        transform: rotate(-12deg);
    }

    .hero-section .container {
        z-index: 2;
    }

    .hero-section h1 {
        max-width: 880px;
        color: var(--white);
        text-shadow: none;
        margin-bottom: 1.5rem;
        animation: fadeInUp .65s var(--ease);
    }

        .hero-section h1::first-line {
            color: var(--accent);
        }

    .hero-section .lead {
        max-width: 650px;
        margin: 0 0 2rem;
        color: rgba(255,254,249,.72);
        text-shadow: none;
        animation: fadeInUp .8s var(--ease) .08s both;
    }

    .hero-section .btn {
        background: var(--accent) !important;
        color: var(--ink) !important;
        padding: 1rem 1.6rem;
        animation: fadeInUp .9s var(--ease) .16s both;
    }

        .hero-section .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 16px 40px rgba(0,0,0,.3);
        }

.hero-floating-shapes {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    border: 1px solid rgba(255,255,255,.08);
    background: transparent;
    border-radius: 28%;
    animation: float 14s infinite var(--ease);
}

    .floating-shape:nth-child(1) {
        width: 90px;
        height: 90px;
        top: 16%;
        right: 20%;
    }

    .floating-shape:nth-child(2) {
        width: 150px;
        height: 150px;
        top: 55%;
        right: 4%;
        animation-delay: 2s;
        transform: rotate(25deg);
    }

    .floating-shape:nth-child(3) {
        width: 55px;
        height: 55px;
        bottom: 12%;
        left: 16%;
        animation-delay: 4s;
    }

.hero-background {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    height: 80%;
    background-image: url(--hero-back);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right center;
    opacity: 0.15;
    z-index: 0;
}

/* SECTIONS */
.how-it-works-section,
.why-choose-us-section,
.final-cta-section {
    padding: var(--space-9) 0;
}

section {
    position: relative;
}

    section h2 {
        display: block;
        margin-bottom: var(--space-6);
    }

        section h2::after {
            display: none;
        }

/* Add subtle section labels when existing markup uses common heading patterns */
.how-it-works-section::before,
.why-choose-us-section::before {
    display: block;
    width: fit-content;
    margin: 0 auto 1rem;
    padding: .35rem .7rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    color: var(--muted);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.how-it-works-section::before {
    content: "Simple process";
}

.why-choose-us-section::before {
    content: "Why LoanLeads";
}

/* CARDS — flat panels with oversized index/icon treatment */
.feature-card,
.step-card {
    position: relative;
    height: 100%;
    padding: 2rem;
    overflow: hidden;
    text-align: left;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: none;
    transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}

    .feature-card::before,
    .step-card::before {
        display: none;
    }

    .feature-card:hover,
    .step-card:hover {
        transform: translateY(-8px);
        border-color: rgba(16,22,19,.3);
        box-shadow: var(--shadow-2);
    }

    .feature-card i,
    .step-card i {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 54px;
        height: 54px;
        margin-bottom: 1.5rem;
        border-radius: 16px;
        background: var(--ink);
        color: var(--accent);
        transition: transform .35s var(--ease), background .35s var(--ease);
    }

    .feature-card:hover i,
    .step-card:hover i {
        transform: rotate(-6deg) scale(1.08);
        background: var(--accent);
        color: var(--ink);
    }

    .feature-card h5,
    .step-card h5 {
        margin-bottom: .65rem;
        color: var(--ink);
        font-weight: 800;
    }

    .feature-card p,
    .step-card p {
        margin-bottom: 0;
        color: var(--muted);
        font-size: .95rem;
    }

/* BOOTSTRAP CARD OVERRIDES */
.card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: none;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

    .card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-1);
        border-color: rgba(16,22,19,.22);
    }

.card-body {
    padding: var(--space-5);
}

.alert {
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.alert-info {
    background: #eef3f0;
    color: var(--ink);
    border-left: 4px solid var(--ink);
}

.alert-success {
    background: #eff8e2;
    color: var(--ink);
    border-left: 4px solid var(--accent-2);
}

/* LISTS */
.list-unstyled li {
    position: relative;
    padding: .55rem 0 .55rem 1.75rem;
}

    .list-unstyled li i {
        position: absolute;
        left: 0;
        top: .75rem;
        color: var(--accent-2);
    }

/* FOOTER — dark block, not gradient */
.footer {
    position: relative;
    z-index: 10;
    width: 100%;
    margin-top: auto !important;
    padding: 5rem 0 2rem;
    background: var(--ink);
    color: rgba(255,254,249,.7);
    border-top: 1px solid rgba(255,255,255,.08);
}

    .footer::before {
        display: none;
    }

    .footer h5 {
        color: var(--white);
        margin-bottom: 1.1rem;
        font-size: 1rem;
        letter-spacing: -.02em;
    }

    .footer p, .footer address {
        color: rgba(255,254,249,.6);
        line-height: 1.75;
    }

    .footer a {
        position: relative;
        color: rgba(255,254,249,.68);
        text-decoration: none;
        transition: color .2s ease;
    }

        .footer a:hover {
            color: var(--accent);
            padding-left: 0;
        }

    .footer .list-unstyled li {
        margin-bottom: .4rem;
        padding-left: 0;
    }

    .footer hr {
        margin: 2rem 0;
        border-color: rgba(255,255,255,.1);
    }

    .footer .row {
        margin-bottom: 1.5rem;
    }

    .footer .col-md-4 {
        margin-bottom: 2rem;
    }

    .footer address {
        font-style: normal;
    }

/* FORMS — modern SaaS / fintech fields */
.form-control,
.form-select {
    min-height: 52px;
    padding: .8rem 1rem;
    background: var(--white);
    color: var(--ink);
    border: 1px solid #cfd5ce;
    border-radius: 13px;
    font-size: .98rem;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

    .form-control:hover, .form-select:hover {
        border-color: #9da79f;
    }

    .form-control:focus, .form-select:focus {
        background: var(--white);
        border-color: var(--accent-2);
        box-shadow: var(--focus);
        outline: none;
    }

.form-label {
    margin-bottom: .45rem;
    color: var(--ink);
    font-size: .85rem;
    font-weight: 800;
}

.text-danger {
    color: var(--danger) !important;
    font-size: .85rem;
}

/* UTILITY */
.hidden {
    display: none !important;
}

.text-primary {
    color: var(--ink) !important;
}

.text-teal {
    color: var(--accent-2) !important;
}

.bg-light-gray {
    background: var(--paper-2) !important;
}

.bg-gradient-primary {
    background: var(--ink) !important;
}

.shadow-hover {
    transition: box-shadow .3s var(--ease),transform .3s var(--ease);
}

    .shadow-hover:hover {
        box-shadow: var(--shadow-2);
        transform: translateY(-3px);
    }

.py-6 {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
}

.my-6 {
    margin-top: var(--space-8);
    margin-bottom: var(--space-8);
}

/* CTA — framed rather than gradient */
.final-cta-section {
    overflow: hidden;
    background: var(--accent);
    color: var(--ink);
    text-align: left;
}

    .final-cta-section::before {
        content: "";
        position: absolute;
        width: 340px;
        height: 340px;
        right: -100px;
        top: -120px;
        border: 1px solid rgba(16,22,19,.18);
        border-radius: 50%;
    }

    .final-cta-section h2, .final-cta-section p {
        color: var(--ink);
    }

/* CONTENT / TERMS */
.terms-container, .content-container {
    max-width: 920px;
    margin: 0 auto;
    padding: var(--space-7) var(--space-3);
}

    .terms-container h2, .content-container h2 {
        margin-top: var(--space-6);
        color: var(--ink);
    }

    .terms-container p, .content-container p {
        line-height: 1.85;
    }

    .terms-container ul, .content-container ul {
        padding-left: 1.5rem;
    }

        .terms-container ul li, .content-container ul li {
            margin-bottom: .6rem;
        }

/* LOADING */
.loading {
    position: relative;
    overflow: hidden;
    background: var(--paper-2);
}

    .loading::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
        animation: shimmer 1.5s infinite;
    }

@keyframes shimmer {
    from {
        transform: translateX(-100%)
    }

    to {
        transform: translateX(100%)
    }
}

/* APPLICATION WIZARD — strong stepper */
.progress-steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    margin: 0 auto 3rem;
    padding: 0;
    max-width: 900px;
}

    .progress-steps::before {
        content: "";
        position: absolute;
        left: 5%;
        right: 5%;
        top: 24px;
        height: 2px;
        background: var(--line);
        z-index: 0;
    }

.progress-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    gap: .7rem;
    max-width: 130px;
}

.progress-step-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--paper);
    border: 2px solid var(--line);
    color: #8a948e;
    font-weight: 800;
    transition: .3s var(--ease);
}

.progress-step-label {
    color: #89928d;
    font-size: .75rem;
    font-weight: 800;
    text-align: center;
}

.progress-step.active .progress-step-circle {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--accent);
    box-shadow: 0 0 0 7px rgba(16,22,19,.08);
    transform: none;
}

.progress-step.active .progress-step-label {
    color: var(--ink);
}

.progress-step.completed .progress-step-circle {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--ink);
    font-size: 0;
}

    .progress-step.completed .progress-step-circle::after {
        content: '✓';
        font-size: 1.1rem;
    }

.progress-step.completed .progress-step-label {
    color: var(--success);
}

.apply-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--space-7) var(--space-3);
}

.wizard-step {
    display: none;
    animation: fadeInUp .4s var(--ease);
}

    .wizard-step.active {
        display: block;
    }

.form-section {
    margin-bottom: var(--space-4);
    padding: clamp(1.25rem,4vw,2.5rem);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: none;
}

.form-section-header {
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.form-section-title {
    color: var(--ink);
    font-size: 1.45rem;
    font-weight: 800;
}

.form-section-subtitle {
    color: var(--muted);
    font-size: .92rem;
}

/* SIGNATURE */
.signature-pad-wrapper {
    width: 100%;
    max-width: 700px;
}

.signature-canvas {
    display: block;
    width: 100%;
    max-width: 700px;
    height: 160px !important;
    background: var(--white);
    border: 1px dashed #aeb7b0;
    border-radius: 14px;
    cursor: crosshair;
    touch-action: none;
    transition: border-color .2s ease,box-shadow .2s ease;
}

    .signature-canvas:hover {
        border-color: var(--accent-2);
        box-shadow: var(--focus);
    }

.sig-stamp {
    margin-top: .5rem;
    color: #89928d;
    font-size: .72rem;
}

.success-container {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-7) var(--space-3);
}

/* ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-35px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(35px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

@keyframes float {
    0%,100% {
        transform: translateY(0) rotate(0)
    }

    50% {
        transform: translateY(-22px) rotate(8deg)
    }
}

@keyframes pulse {
    0%,100% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.04)
    }
}

.fade-in {
    animation: fadeIn .6s var(--ease);
}

.slide-in-left {
    animation: slideInLeft .7s var(--ease);
}

.slide-in-right {
    animation: slideInRight .7s var(--ease);
}

.pulse-animation {
    animation: pulse 2.5s infinite;
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .navbar {
        top: 8px;
        margin-top: 8px;
    }

    .hero-section {
        min-height: auto;
        padding: 7rem 0 5.5rem;
    }

    .how-it-works-section, .why-choose-us-section, .final-cta-section {
        padding: var(--space-8) 0;
    }
}

@media (max-width: 767px) {
    .navbar {
        width: calc(100% - 16px);
        margin-top: 8px;
        border-radius: 20px;
    }

    .navbar-brand {
        padding-left: .35rem;
    }

        .navbar-brand img {
            height: 36px;
        }

    .navbar-nav .nav-link {
        padding: .7rem .8rem !important;
        border-radius: 12px;
    }

    .hero-section {
        padding: 6rem 0 4rem;
        text-align: left;
    }

        .hero-section h1 {
            font-size: clamp(2.65rem,13vw,4rem);
        }

        .hero-section .lead {
            font-size: 1rem;
        }

    .btn {
        min-height: 46px;
        padding: .72rem 1.1rem;
    }

    .btn-lg {
        min-height: 52px;
        padding: .85rem 1.35rem;
    }

    h1 {
        font-size: 2.6rem;
    }

    h2 {
        font-size: 2.15rem;
    }

    h3 {
        font-size: 1.6rem;
    }

    p, .lead {
        font-size: 1rem;
    }

    .how-it-works-section, .why-choose-us-section, .final-cta-section {
        padding: 5rem 0;
    }

    .feature-card, .step-card {
        padding: 1.5rem;
        border-radius: 22px;
    }

    .form-section {
        border-radius: 20px;
    }

    .progress-steps {
        margin-bottom: 2rem;
    }

    .progress-step {
        max-width: 80px;
        gap: .5rem;
    }

    .progress-step-circle {
        width: 40px;
        height: 40px;
        font-size: .85rem;
    }

    .progress-step-label {
        font-size: .68rem;
    }

    .progress-steps::before {
        top: 20px;
        left: 6%;
        right: 6%;
    }

    .footer {
        padding: 4rem 0 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}
/* ================================================================
   FOOTER FIX
   ================================================================ */

.footer p {
    white-space: normal;
}
