/* Mortgage Loans Page Specific Styles (Orange Theme Redesign v2) */

:root {
    /* Define Orange Theme Variables */
    --theme-orange: #ec6033;
    /* New requested color */
    --theme-orange-dark: #d54e25;
    --theme-orange-gradient: linear-gradient(135deg, #ec6033 0%, #ff8c61 100%);
    --theme-glass-bg: rgba(255, 255, 255, 0.7);
    --theme-glass-border: 1px solid rgba(236, 96, 51, 0.2);
    --theme-glass-shadow: 0 8px 32px 0 rgba(236, 96, 51, 0.15);
    --theme-text-dark: #1a1a1a;
}

/* 1. Base Styles Override */
.mortgage-page {
    font-family: 'Inter', sans-serif;
    color: #333;
    background: #fff;
    margin-top: 0 !important;
    padding-top: 0 !important;
    /* Reset padding */
    /* overflow-x: hidden; <--- REMOVED TO FIX STICKY SCROLL */
}

/* V6: Standard Spacing System */
.section-spacing-standard {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
}

/* 2. Announcement Bar - High Z-index to avoid hiding */
.announcement-bar {
    background: var(--theme-orange);
    color: white;
    text-align: center;
    padding: 12px 0;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    z-index: 9999;
    /* Ensure it's on top */
    display: block !important;
}

.announcement-bar .container-2xl {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.announcement-bar .btn-white-sm {
    background: white;
    color: var(--theme-orange);
    border-radius: 50px;
    padding: 6px 18px;
    font-size: 0.8rem;
    font-weight: 800;
    border: none;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 3. Hero Section Refactor */
.mortgage-page .service-hero {
    background: linear-gradient(90deg, #FFFFFF 0%, #FFF5EF 100%) !important;
    /* min-height: 0; */
    /* padding: 100px 0 80px; */
    /* position: relative; */
    overflow: hidden !important;
    /* Fix Image Overflow */
}

.mortgage-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
}

/* Hero Typography */
.mortgage-page .service-hero h1 {
    font-size: 3.5rem !important;
    font-weight: 700;
    color: var(--theme-orange) !important;
    text-align: left !important;
    line-height: 1.1;
    margin-bottom: 24px;
    text-transform: capitalize !important;
    letter-spacing: -0.02em;
}

.mortgage-page .service-hero p {
    font-size: 1.15rem;
    color: #555;
    margin-bottom: 35px;
    text-align: left !important;
    max-width: 90%;
    line-height: 1.6;
}

/* Hero Buttons Container */
.mortgage-page .hero-buttons {
    display: flex;
    justify-content: flex-start !important;
    /* Left Align */
    gap: 20px;
}

/* Glass Buttons for Hero */
.mortgage-page .hero-buttons .btn-primary,
.mortgage-page .hero-buttons .btn-secondary,
/* Assuming generic class */
.mortgage-page a.hero-btn {
    background: rgba(255, 255, 255, 0.4) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(236, 96, 51, 0.3) !important;
    color: var(--theme-orange) !important;
    box-shadow: 0 4px 15px rgba(236, 96, 51, 0.1);
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 8px !important;
    /* V4: Enforce 8px */
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

/* Add Arrow Icon via Pseudo-element */
.mortgage-page .hero-buttons .btn-primary::after,
.mortgage-page .hero-buttons .btn-secondary::after,
.mortgage-page a.hero-btn::after {
    content: '→';
    font-family: monospace;
    display: inline-block;
    transition: transform 0.3s ease;
    opacity: 1 !important;
    background: transparent !important;
    width: auto !important;
    height: auto !important;
    position: static !important;
    color: inherit;
    /* Inherit color from parent */
}

/* V3 Hover State Fix: Orange BG, White Text, White Arrow */
.mortgage-page .hero-buttons .btn-primary:hover,
.mortgage-page .hero-buttons .btn-secondary:hover,
.mortgage-page a.hero-btn:hover {
    background: var(--theme-orange) !important;
    border-color: var(--theme-orange) !important;
    color: #FFFFFF !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(236, 96, 51, 0.25);
}

.mortgage-page .hero-buttons .btn-primary:hover::after,
.mortgage-page a.hero-btn:hover::after,
.mortgage-page .hero-buttons .btn-secondary:hover::after {
    transform: translateX(4px);
    color: #FFFFFF !important;
    /* Ensure arrow turns white */
}

/* 4. Glassmorphism & Cards */
.glass-card {
    background: var(--theme-glass-bg);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: var(--theme-glass-border);
    border-radius: 8px !important;
    /* V4: Enforce 8px */
    padding: 30px;
    box-shadow: var(--theme-glass-shadow);
    transition: all 0.4s ease;
    display: flex;
    /* Ensure flex for equal height content */
    flex-direction: column;
    height: 100%;
    /* Fill grid cell */
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(236, 96, 51, 0.2);
    border-color: rgba(236, 96, 51, 0.4);
}

/* Rates Grid */
.rates-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
    align-items: stretch;
    /* Force equal height */
}

/* Sentence Case Headers - V5: Force 2.5rem */
.section-header h2,
.title-solid {
    font-size: 2.5rem !important;
    /* V5: Standardized Size */
    color: #111;
    text-transform: none !important;
    font-weight: 700;
    margin-bottom: 0.5em;
    text-align: left;
    /* Default to left, override if needed */
}

/* Rate Card Buttons (White -> Orange Hover) */
.rate-card .btn-outline {
    background: #fff !important;
    color: var(--theme-orange) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(236, 96, 51, 0.15);
    border-radius: 50px;
    padding: 10px 24px;
    font-weight: 700;
    margin-top: auto;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.rate-card .btn-outline:hover {
    transform: translateY(-2px);
    background: var(--theme-orange) !important;
    color: #FFFFFF !important;
    box-shadow: 0 8px 20px rgba(236, 96, 51, 0.3);
}

/* Badge Styling */
.rate-card .badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--theme-orange-gradient);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    z-index: 10;
}

/* 5. Benefits of Mortgage Loan (Previously 'Why Choose') Styling */
/* Note: User requested gradient backgrounds for these modules */
.benefits-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1000px;
    /* V4: Reduced Width */
    margin: 0 auto;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* V3: Gradient Backgrounds */
.benefit-item-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    /* V4: Reduced Padding */
    background: linear-gradient(180deg, #ff9f7a 0%, #ec6033 100%);
    /* Light to Dark Orange */
    border-radius: 8px !important;
    /* V4: Enforce 8px */
    border: none;
    transition: transform 0.3s ease;
    color: #FFFFFF;
    /* White text for contrast */
}

.benefit-item-row h3 {
    color: #FFFFFF !important;
    /* Force white */
    font-weight: 700;
}

.benefit-item-row p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.benefit-item-row:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(236, 96, 51, 0.3);
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    /* Semi-transparent white */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.benefit-image-placeholder {
    width: 100%;
    min-height: 400px;
    background: #f0f0f0;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-weight: 500;
    border: 2px dashed #ddd;
}

/* New CTA Button for Benefits Section */
.benefits-cta-row {
    margin-top: 40px;
    text-align: center;
    display: flex;
    justify-content: center;
}

.btn-orange-solid {
    background: var(--theme-orange);
    color: white;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    box-shadow: 0 4px 15px rgba(236, 96, 51, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-orange-solid:hover {
    background: var(--theme-orange-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(236, 96, 51, 0.4);
}

/* V4: White Glass Button */
.btn-glass-white {
    background: rgba(255, 255, 255, 0.9);
    color: var(--theme-orange);
    padding: 14px 40px;
    border-radius: 8px;
    /* V4: 8px */
    font-weight: 700;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-glass-white:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: var(--theme-orange-dark);
}

/* 6. How Mortgage Pre-Approval Works (Horizontal Scroll) */
/* 6. How Mortgage Pre-Approval Works (Horizontal Scroll) */
.scroll-section-container {
    position: relative;
    padding: 0;
    /* removed overflow: hidden to fix sticky scroll */
    overflow: visible;
    min-height: 100vh;
}

/* We will use JS to drive the transform or use pseudo-sticky if structure allows.
   Layout: Title -> Sticky Container -> Horizontal Cards */

.scroll-sticky-wrapper {
    position: sticky;
    top: 100px;
    height: calc(100vh - 100px);
    /* Adjust height to fit */
    display: flex;
    align-items: center;
    overflow: hidden;
}

.horizontal-track {
    display: flex;
    gap: 40px;
    padding: 0 5vw;
    /* Start with some padding */
    width: max-content;
    /* Allow standard flex width */
    /* Transform will be applied via JS */
    position: relative;
    /* Context for Timeline */
    /* Context for Timeline */
    padding-top: 40px;
    align-items: stretch;
    /* V6 Fix: Force Equal Height Children */
}

/* V5: Timeline Line */
/* V5: Timeline Line */
.horizontal-track::before {
    content: '';
    position: absolute;
    top: 40px;
    /* V6: Adjust relative to padding */
    left: 0;
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    z-index: 0;
}

/* Active part of timeline could be done via JS width, but simple gray line is base */

.process-card {
    min-width: 28vw;
    /* Approx 1/3 screen with gaps */
    width: 28vw;
    background: #fff;
    /* V6: White Background */
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    /* Soft shadow */
    border: 1px solid rgba(236, 96, 51, 0.2);
    /* V6: Orange Border */
    display: flex;
    /* V6: Flex for Equal Height */
    flex-direction: column;
    justify-content: space-between;
    /* Push button to bottom */
    gap: 20px;
    scroll-snap-align: start;
    position: relative;
    z-index: 1;
    /* On top of line */
    height: 100%;
    /* V6: Force Full Height */
    min-height: 420px;
    /* V6: Force Minimum Height */
}

/* V5: Arrow Connector */
.process-card::after {
    content: '→';
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--theme-orange);
    opacity: 0.5;
}

.process-card:last-child::after {
    display: none;
}

.process-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-orange);
    /* V6: Orange Number */
    margin-bottom: 12px;
}

.process-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* 7. Stats Section (5 Cols) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    text-align: center;
    border-top: 1px solid #eee;
    /* V6: Separator */
    padding-top: 60px;
    margin-top: 40px;
}

.stat-item h3 {
    font-size: 3rem;
    /* V6: Increased Size */
    color: var(--theme-orange);
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    color: #555;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* 8. Calculator Updates */
input[type=range]::-webkit-slider-thumb {
    background: var(--theme-orange);
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.calc-tabs .tab-btn.active {
    border-bottom-color: var(--theme-orange) !important;
    color: var(--theme-orange) !important;
}

/* 9. Responsive */
@media (max-width: 992px) {
    .rates-grid {
        grid-template-columns: 1fr 1fr;
    }

    .benefits-wrapper {
        grid-template-columns: 1fr;
        max-width: 600px;
        /* V6: Center constraint */
        margin: 0 auto;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .rates-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .mortgage-page .hero-buttons {
        flex-direction: column;
    }

    .mortgage-page .service-hero h1 {
        font-size: 2.5rem !important;
    }
}

/* Active State for Scroll Carousel Cards */
.process-card {
    transition: all 0.3s ease;
}

.process-card.active-card {
    background: var(--theme-orange) !important;
    color: white !important;
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(236, 96, 51, 0.3);
    border-color: transparent;
}

.process-card.active-card h3 {
    color: white !important;
}

.process-card.active-card p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.process-card.active-card .btn-primary {
    background: white !important;
    color: var(--theme-orange) !important;
}

/* =========================================
   V3 NEW SECTIONS STYLING
   ========================================= */

/* 1. Benefits 2x2 Grid */
/* 1. Benefits 2x2 Grid - V6: Centered & Containerized */
.benefits-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    background: #f9f9f9;
    /* V6: Subtle BG */
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 40px;
}

.benefit-card-minimal {
    text-align: center;
    padding: 30px;
}

.benefit-card-minimal .icon-box {
    width: 70px;
    height: 70px;
    background: rgba(236, 96, 51, 0.1);
    color: var(--theme-orange);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.benefit-card-minimal:hover .icon-box {
    background: var(--theme-orange);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(236, 96, 51, 0.3);
}

.benefit-card-minimal h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #333;
}

.benefit-card-minimal p {
    color: #666;
    line-height: 1.6;
}

/* 2. Testimonials Full Width */
.testimonials-fullwidth h2 {
    position: relative;
    z-index: 2;
}

/* Fixed Selector */
.testimonial-slider-container {
    position: relative;
    z-index: 2;
    overflow: hidden;
    padding: 20px 0;
    width: 100%;
    /* V5: Force Full Width */
}

.testimonial-track {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.glass-card-white {
    background: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    color: white;
    color: white;
    text-align: left;
    border-radius: 8px !important;
    /* V4: 8px */
    flex-shrink: 0;
    width: 400px;
}

/* V4: Infinite Marquee Animation */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Move half way assuming duplicated content */
}

.testimonial-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: marquee 60s linear infinite;
    /* Slow continuous scroll */
}

.testimonial-track:hover {
    animation-play-state: paused;
}

.testi-text {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 24px;
    opacity: 0.95;
}

.testi-footer {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testi-footer .user-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    color: var(--theme-orange);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.testi-footer .user-info {
    display: flex;
    flex-direction: column;
}

.testi-footer .user-name {
    font-weight: 700;
    font-size: 1rem;
}

.testi-footer .stars {
    color: #FFD700;
    font-size: 0.9rem;
}

/* 3. Services Split 50/50 */
.split-layout-50 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
    /* V6: Top Align */
}

.split-desc {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* V6: Left Align Button */
    gap: 24px;
}

.services-sub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.service-blurbs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.blurb-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.blurb-item p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.5;
}

.blurb-item .text-link {
    color: var(--theme-orange);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
}

.blurb-item .text-link:hover {
    text-decoration: underline;
}

/* 4. FAQ 30/70 */
.faq-layout {
    display: grid;
    grid-template-columns: 3fr 7fr;
    gap: 60px;
}

.faq-sidebar {
    position: sticky;
    /* Sticky functionality */
    top: 120px;
    align-self: start;
}

.accordion-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.accordion-header {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 20px 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--theme-orange);
    font-weight: 400;
    transition: transform 0.3s ease;
}

.accordion-header.active::after {
    transform: rotate(45deg);
    /* Becomes an X */
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-body p {
    padding-bottom: 20px;
    color: #666;
    line-height: 1.6;
}

/* Response Fixes for New Sections */
@media (max-width: 992px) {

    .benefits-grid-2x2,
    .split-layout-50,
    .services-sub-grid,
    .faq-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Fix FAQ Sidebar on mobile */
    .faq-sidebar {
        position: static;
        margin-bottom: 40px;
    }
}

/* Close Media Query Here */

/* =========================================
   V4 & V5 GLOBAL STYLES (MOVED OUT OF MEDIA QUERY)
   ========================================= */

/* News & Insights Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Force 3 columns */
    gap: 30px;
}

.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-thumb {
    height: 200px;
    background: #eee;
    overflow: hidden;
    order: 2;
    /* Image Below */
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 24px;
    order: 1;
    /* Content Above */
}

.news-content h3 {
    font-size: 1.5rem;
    /* Reduced from 2.5rem context but legible */
    font-weight: 700;
    margin-bottom: 12px;
    color: #333;
    line-height: 1.3;
}

.news-content p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* V5: New Icon Image Styling */
.benefit-icon-img {
    width: 60px;
    height: auto;
    margin-bottom: 20px;
    display: block;
}

/* V5: Strict Left Align for Benefits 2x2 */
.benefits-grid-2x2 {
    text-align: left !important;
}

.benefits-grid-2x2 .benefit-card-minimal {
    text-align: left !important;
    align-items: flex-start !important;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    /* Remove center padding if any */
}

.benefits-grid-2x2 .benefit-card-minimal h3 {
    text-align: left !important;
}

/* V5: Hero Button Style Override for Carousel/Services */
.btn-glass-hero {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%) !important;
    border: 1px solid rgba(236, 96, 51, 0.3) !important;
    color: var(--theme-orange) !important;
    border-radius: 8px !important;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: inline-block;
    cursor: pointer;
}

.btn-glass-hero:hover {
    background: var(--theme-orange) !important;
    color: white !important;
    transform: translateY(-2px);
    border-color: var(--theme-orange) !important;
}

/* V4: Service Image Row */
.service-image-row {
    width: 100%;
    height: 400px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 60px;
}

/* Enforce 8px Border Radius Globally */
.process-card,
.btn-orange-solid,
.benefit-image-placeholder,
.scroll-section-container,
.how-it-works-scroll .process-card,
.img-placeholder-rect {
    border-radius: 8px !important;
}

/* =========================================
   V4: Advanced Mortgage Calculator (Entry Gate & Modal)
   ========================================= */

/* --- Entry Gate Section --- */
.fx-entry-gate {
    background: linear-gradient(90deg, #FFFFFF 0%, #FFF5EF 100%);
    padding-bottom: 60px;
}

.fx-tiles-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.fx-entry-tile {
    /* Smaller Tile: ~300x120px */
    width: 300px;
    min-height: 120px;
    /* Matched to .rate-card styles */
    background: rgba(255, 255, 255, 0.7);
    border: 0.8px solid rgba(236, 96, 51, 0.2);
    border-radius: 8px;
    box-shadow: 0px 8px 32px 0px rgba(236, 96, 51, 0.15);
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    color: rgb(51, 51, 51);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.fx-entry-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(236, 96, 51, 0.25);
    border-color: var(--theme-orange);
}

.fx-tile-icon {
    font-size: 2rem;
    /* Reduced from 3rem */
    margin-bottom: 10px;
}

.fx-entry-tile h3 {
    font-size: 1.1rem;
    /* Reduced from 1.5rem */
    margin-bottom: 15px;
    color: var(--text-dark);
}

/* Page-Specific Button Override (Scoped to Content Only) */
/* Page-Specific Button Override (Scoped to Content Only) */
/* Page-Specific Button Override (Scoped to Content Only) */
.main-content.mortgage-page .btn-primary,
.fx-entry-tile button {
    width: auto;
    min-width: 160px;
    background: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 0.8px solid rgba(236, 96, 51, 0.3) !important;
    border-radius: 8px !important;
    color: rgb(236, 96, 51) !important;
    font-size: 16px;
    font-weight: 700;
    padding: 10px 24px;
    box-shadow: rgba(236, 96, 51, 0.1) 0px 4px 15px 0px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    /* Ensure text sits on top of pseudo */
}

/* Specific Typography for Entries Tiles (User Request: 14px, 500 weight) */
.fx-entry-tile button {
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* Re-implement Premium Swipe Animation (Orange) */
.main-content.mortgage-page .btn-primary::before,
.fx-entry-tile button::before {
    display: block !important;
    content: "" !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--theme-orange) !important;
    z-index: -1;
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 8px !important;
    /* Force match parent radius */
}

/* Remove conflicting global styles if any leak through */
.main-content.mortgage-page .btn-primary::after,
.fx-entry-tile button::after {
    display: none !important;
    content: none !important;
}

.main-content.mortgage-page .btn-primary:hover,
.fx-entry-tile button:hover {
    color: #fff !important;
    border-color: var(--theme-orange) !important;
    transform: translateY(-2px);
    background: transparent !important;
    /* Let pseudo show */
}

.main-content.mortgage-page .btn-primary:hover::before,
.fx-entry-tile button:hover::before {
    width: 100%;
}

/* --- Modal Overlay --- */
.fx-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

.fx-modal-content {
    /* Background Image + Glassmorphism Overlay */
    background:
        linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)),
        url('http://localhost/fintalx/wp-content/uploads/2026/02/calculator-bg.png') no-repeat center center / cover;

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 90%;
    max-width: 800px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 40px;
    position: relative;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fx-close-modal {
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #999;
}

.fx-close-modal:hover {
    color: #333;
}

/* --- Wizard Header --- */
.fx-modal-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.fx-selected-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

.fx-selected-label span {
    font-weight: bold;
    color: var(--theme-orange);
}

/* --- Wizard Steps --- */
.fx-wizard-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.fx-wizard-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fx-wizard-step h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-align: center;
}

/* Options Grid (Radio Cards) */
.fx-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.fx-radio-card {
    position: relative;
    cursor: pointer;
}

.fx-radio-card input {
    position: absolute;
    opacity: 0;
}

.fx-card-inner {
    border: 2px solid #eee;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fx-card-inner .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.fx-radio-card input:checked+.fx-card-inner {
    border-color: var(--theme-orange);
    background: #fff5ef;
}

/* Inputs */
.fx-input-group {
    margin-bottom: 20px;
}

.fx-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.fx-input-group input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
}

/* Footer / Navigation */
.fx-step-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.fx-back-btn {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
}

/* --- Results Grid --- */
#fx-results-wrapper {
    position: relative;
    min-height: 300px;
}

#fx-results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.fx-result-card {
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    position: relative;
}

.fx-result-card.recommended {
    border: 2px solid var(--theme-orange);
    background: #fff;
    box-shadow: 0 10px 30px rgba(255, 102, 0, 0.1);
}

.fx-badge {
    background: #eee;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.fx-result-card.recommended .fx-badge {
    background: var(--theme-orange);
    color: #fff;
}

.fx-rate-display {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 15px 0;
}

.fx-rate-display small {
    font-size: 0.9rem;
    font-weight: 400;
    color: #888;
}

.fx-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.95rem;
}

.fx-value {
    font-weight: bold;
}

.fx-note {
    font-size: 0.85rem;
    color: #666;
    margin-top: 15px;
    font-style: italic;
}

/* Blur & Overlay */
.blur-me {
    filter: blur(6px);
    user-select: none;
}

#fx-blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.fx-overlay-content {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.fx-overlay-content h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.fx-overlay-content input {
    width: 100%;
    margin-bottom: 15px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.fx-consent {
    display: block;
    margin-bottom: 20px;
    font-size: 0.85rem;
    text-align: left;
}

@media (max-width: 600px) {
    #fx-results-grid {
        grid-template-columns: 1fr;
    }

    .fx-options-grid {
        grid-template-columns: 1fr;
    }
}