/* thenextloantoday.com - Avenue Link */

/* Logo is inline SVG in HTML; no ::before needed */
.site-title::before {
    content: none;
    display: none;
}

/* Site Header - compact height, CTA visible on right */
.site-header {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    background: #003645;
    border-top: 2px solid #4FC3F7;
    position: relative;
    z-index: 10;
    padding: 0.6rem 0 !important;
}

.header-content {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: var(--max-width, 1200px);
    margin: 0 auto;
    padding: 0 var(--spacing, 1rem);
    text-align: left;
}

/* Site Title - allow shrink so CTA stays on same row */
.site-title {
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.025em;
    margin: 0;
    min-width: 0;
    flex-shrink: 1;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.header-cta-text {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    white-space: nowrap;
}

.header-cta-button {
    display: inline-block;
    background: #FEA410;
    color: #FFFFFF !important;
    font: 18px Nunito, sans-serif;
    text-transform: uppercase;
    text-decoration: none;
    padding: 5px 28px;
    margin: 0 0 0 10px;
    border-radius: 999px;
    border: none;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.header-cta-button:hover {
    background: #e5940e;
    color: #FFFFFF !important;
}

/* Hide header CTA (text + START NOW button) at 991px and below */
@media (max-width: 991.98px) {
    .header-cta {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }
    .header-cta {
        width: 100%;
        justify-content: center;
    }
    .header-cta-text {
        font-size: 0.9rem;
        white-space: normal;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .header-cta {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .header-cta-button {
        text-align: center;
    }
}

/* Hero wrap: contains background + copy + embedded form */
.hero-wrap {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

/* Form Background - hero image only, no overlay */
.form-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://res.cloudinary.com/dbtcg826q/image/upload/v1773086462/common/sp-buckets/img/nld-hero.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    z-index: 1;
}

/* Hero content over background */
.hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 100%;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .hero-inner {
        max-width: var(--max-width, 1200px);
        margin: 0 auto;
        padding: 0 var(--spacing, 1rem);
        text-align: center;
    }

    .hero-headline.jumbotron-title,
    .jumbotron-title,
    .hero-subline.jumbotron-sub-title,
    .jumbotron-sub-title {
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
        text-align: center;
    }

    .hero-cta-card,
    .homepage-action-card {
        margin-top: 2.5rem;
    }
}

.hero-headline.jumbotron-title,
.jumbotron-title {
    color: #ffffff;
    font: 700 68px Nunito, sans-serif;
    margin: 20px 0 4px;
    padding: 0 10px;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* At 991px and below: match hero headline and subline, reduce hero-inner padding */
@media (max-width: 991.98px) {
    .hero-inner {
        padding: 0 0.75rem;
    }
    .hero-headline.jumbotron-title,
    .jumbotron-title {
        color: #FFFFFF;
        font: 700 50.5px Nunito, sans-serif;
        margin: 20px 0 4px;
        padding: 0 10px;
    }
    .hero-subline.jumbotron-sub-title,
    .jumbotron-sub-title {
        color: #FFFFFF;
        font: 42.12px Nunito, sans-serif;
        margin: 8px 0 10px;
    }
}

@media (max-width: 768px) {
    .hero-headline.jumbotron-title,
    .jumbotron-title {
        font-size: clamp(1.75rem, 8vw, 80px);
    }
}

.hero-subline.jumbotron-sub-title,
.jumbotron-sub-title {
    color: #FFFFFF;
    font: 42.12px Nunito, sans-serif;
    margin: 6px 0 10px;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .hero-subline.jumbotron-sub-title,
    .jumbotron-sub-title {
        font-size: clamp(1.5rem, 6vw, 70px);
    }
}

/* CTA card: white, rounded, shadow - constrained width, centered */
.hero-cta-card,
.homepage-action-card {
    background: #ffffff;
    border-radius: 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    padding: 48px 110px;
    margin-top: 2.5rem;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1024px) {
    .hero-cta-card,
    .homepage-action-card {
        padding: 0;
        width: 100% !important;
        max-width: 520px;
        margin-top: 0;
    }
}

/* Below 1024px: reduce side padding so "GET STARTED" doesn't wrap */
@media (max-width: 1023.98px) {
    .hero-cta-card,
    .homepage-action-card {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (max-width: 600px) {
    .hero-cta-card,
    .homepage-action-card {
        padding: 32px 1.5rem;
    }
}

.hero-cta-button {
    display: inline-block;
    background: #FEA410;
    color: #FFFFFF !important;
    font: 26px Nunito, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 47px;
    margin: 0 0 24px 0;
    border-radius: 999px;
    border: none;
    box-shadow: 0 4px 14px rgba(254, 164, 16, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hero-cta-button:hover {
    background: #e5940e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(254, 164, 16, 0.45);
    color: #FFFFFF !important;
}

.hero-cta-disclaimer {
    margin: 1rem 0 0;
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.3;
}

/* Form Section */
.form-section {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Form container below hero: solid background */
.form-container {
    background: #ffffff;
    padding: 2rem 1rem;
    min-height: 500px;
}

/* Steps section - 3 steps like reference */
.steps-section {
    background: #ffffff;
    padding: 3rem 1rem;
}

.steps-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.steps-section .steps-header .steps-main-title,
.steps-main-title {
    color: #003645;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.steps-subtitle {
    color: #6b7280;
    font-size: 1rem;
    margin: 0;
}

.steps-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 960px;
    margin: 0 auto;
}

.step {
    text-align: center;
}

/* Numbered circle (blue circle, white number) */
.step-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: #006ddf;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    line-height: 1;
}

.step-icon i {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(55, 65, 81, 0.4);
}

.step-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: #003645;
}

.step-description {
    font-size: 0.9375rem;
    color: #4b5563;
    line-height: 1.5;
    margin: 0;
}

/* Button Hover */
button:hover,
input[type="submit"]:hover,
.btn:hover {
    background-color: #006ddf !important;
}

/* 3-column steps layout */
@media (min-width: 768px) {
    .steps-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .steps-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* Why Choose Section - dark teal background */
.why-choose-section {
    background: #003645;
    padding: 3.5rem 1.5rem;
}

.why-choose-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.why-choose-title {
    color: #ffffff;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    text-align: center;
    margin: 0 0 2.5rem;
    line-height: 1.2;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem 1.5rem;
}

.why-choose-item {
    text-align: center;
}

.why-choose-icon {
    color: #4fc3f7;
    font-size: 2.25rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.why-choose-icon i {
    color: inherit;
}

.why-choose-item-title {
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.why-choose-item-desc {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.9375rem;
    line-height: 1.5;
    margin: 0;
}

.why-choose-item-clone {
    display: none !important;
}

@media (min-width: 640px) {
    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .why-choose-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 900px) and (max-width: 1099.98px) {
    .why-choose-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        grid-template-columns: unset;
        gap: 2rem 1.5rem;
    }
    .why-choose-item:not(.why-choose-item-clone) {
        width: calc((100% - 3rem) / 3);
        max-width: calc((100% - 3rem) / 3);
    }
}

@media (min-width: 1100px) {
    .why-choose-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 2rem;
    }
    .why-choose-item:not(.why-choose-item-clone) {
        width: auto;
        max-width: none;
    }
}

/* Why choose: swipeable slideshow at 900px and below */
.why-choose-dots,
.why-choose-swipe-hint {
    display: none;
}

@media (max-width: 899.98px) {
    .why-choose-section {
        overflow-x: hidden;
    }
    .why-choose-slider {
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        margin: 0 -1.5rem;
        padding: 0;
        width: calc(100% + 3rem);
        box-sizing: border-box;
    }
    .why-choose-slider::-webkit-scrollbar {
        display: none;
    }
    .why-choose-grid {
        display: flex;
        flex-wrap: nowrap;
        grid-template-columns: unset;
        gap: 0;
        width: 600vw;
    }
    .why-choose-item {
        scroll-snap-align: center;
        scroll-snap-stop: always;
        flex: 0 0 100vw;
        width: 100vw;
        min-width: 100vw;
        max-width: 100vw;
        box-sizing: border-box;
        padding: 0 1.5rem;
    }
    .why-choose-item-clone {
        display: block !important;
    }
    .why-choose-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        margin-top: 1.5rem;
        flex-wrap: wrap;
    }
    .why-choose-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.4);
        border: none;
        padding: 0;
        cursor: pointer;
        transition: background 0.2s ease;
    }
    .why-choose-dot:hover {
        background: rgba(255, 255, 255, 0.7);
    }
    .why-choose-dot.active {
        background: rgba(255, 255, 255, 0.95);
    }
    .why-choose-swipe-hint {
        display: block;
        text-align: center;
        color: rgba(255, 255, 255, 0.9);
        font-size: 0.9rem;
        margin: 0.5rem 0 0;
        padding: 0;
    }
}

/* Footer */
.site-footer,
.site-footer p,
.site-footer a,
.site-footer .footer-info,
.site-footer .footer-links,
.site-footer .copyright {
    color: #ffffff !important;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

#footer-company {
    font-style: italic;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
    margin-bottom: 1rem;
}

.footer-info {
    margin-bottom: 0.5rem;
}

.footer-info p {
    margin: 0.25rem 0;
    font-size: 0.875rem;
}

.copyright {
    margin: 0;
    font-size: 0.8125rem;
    opacity: 0.9;
}

/* Popup overlay and content (match other Avenue-Link sites; ensures modals show when footer links are clicked) */
.popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.popup-overlay[aria-hidden="false"] {
    display: flex;
}
.popup-content {
    background: #fff;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    position: relative;
    padding: 2rem;
}

/* Popup close */
.popup-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: #000000 !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}
.popup-close:hover {
    background: #333333 !important;
    color: #ffffff !important;
}
