﻿/* -----------------------------------------------------
   DECLARE COLORS
----------------------------------------------------- */
:root {
    /* BLUE SCALE */
    --blue-900: #0f2e5b;
    --blue-800: #1e4474;
    --blue-700: #0e4f8c;
    --blue-600: #01579f;
    --blue-500: #0063b1;
    --blue-400: #508ed0;
    --blue-300: #91bef0;
    --blue-200: #b2d4ff;
    --blue-100: #ebf3ff;
    /* GREY SCALE */
    --grey-900: #222222;
    --grey-800: #333333;
    --grey-700: #555555;
    --grey-600: #777777;
    --grey-500: #999999;
    --grey-400: #b2b2b2;
    --grey-300: #cccccc;
    --grey-200: #e0e0e0;
    --grey-100: #f4f4f4;
    /* RED SCALE */
    --red-900: #7a1f1f;
    --red-700: #a52a2a;
    --red-500: #cc3333;
    --red-300: #e07a7a;
    --red-100: #fdeaea;
}



/* -----------------------------------------------------
   RESET / BASELINE
----------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    /* Fluid type scaling (min 16px → max 20px) */
    /* font-size: clamp(16px, 4vw, 20px);*/
    font-size: clamp(1.1rem, 0.95rem + 0.3vw, 1.2rem);
    scroll-behavior: smooth;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: 'Source Sans Pro', Arial, Helvetica, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--grey-800);
    min-height: 100vh;
    background: linear-gradient( to bottom, #ffffff 0, #fafafa 120px, #f9f9f9 180px );
}

a {
    color: var(--blue-500);
    text-decoration: none;
    font-weight: 600;
}

    a:hover {
        text-decoration: underline;
    }

    a img {
        border: none;
    }


img, embed, object, video {
    max-width: 100%;
    height: auto;
}


.fade {
    opacity: 0;
    transform: translateY(120%);
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
    /*transition: transform 0.7s ease-in-out;*/
    /*visibility: visible;*/
    pointer-events: none;
}

    .fade.show {
        opacity: 1;
        transform: translateY(0);
        /*visibility: visible;*/
        pointer-events: auto;
    }

.fade-transition {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


.container {
    width: min(1250px, 100% - 2rem);
    margin-inline: auto;
}


/* -----------------------------------------------------
   TYPOGRAPHY
   Mobile-first, scale up with breakpoints
----------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    /*margin: 0 0 0.75em 0;*/
    font-weight: 600;
    line-height: 1.25;
    color: var(--grey-900);
}

/*h1 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
}

h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
}

h3 {
    font-size: clamp(1.25rem, 4.5vw, 1.75rem);
}*/

h1 {
    /*font-size: clamp(1.75rem, calc(1.6rem + 1vw), 2.75rem);*/
    font-size: clamp(1.5rem, calc(3vw), 2.5rem);
    line-height: 1.15;
    margin-block: 0 0.75em;
}

h2 {
    /*font-size: clamp(1.6rem, 1.4rem + 0.8vw, 2rem);*/
    font-size: clamp(1.3rem, calc(3vw), 1.75rem);
    line-height: 1.3;
    margin-block: 1.75em 0.5em;
}

h3 {
    font-size: clamp(1.25rem, calc(3vw), 1.5rem);
    line-height: 1.4;
    margin-block: 1.75em 0.75em;
}

h4 {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-block: 0em 0.25em;
}

p {
    margin: 0 0 1em;
    font-size: 1rem; /* = html base (16–20px) */
}


@media screen and (max-width: 990px) {
    .no-mob {
        display: none !important;
    }
}

@media screen and (min-width: 991px) {
    .only-mob {
        display: none !important;
    }
}

.hidden {
    display: none;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.nowrap{
    white-space:nowrap;
}


/* -----------------------------------------------------
   SPACING UTILITIES
----------------------------------------------------- */
.mt-0 {
    margin-top: 0 !important;
}

.mt-1 {
    margin-top: 0.5rem !important;
}

.mt-2 {
    margin-top: 1rem !important;
}

.mt-3 {
    margin-top: 1.5rem !important;
}

.mt-4 {
    margin-top: 2rem !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 0.5rem !important;
}

.mb-2 {
    margin-bottom: 1rem !important;
}

.mb-3 {
    margin-bottom: 1.5rem !important;
}

.mb-4 {
    margin-bottom: 2rem !important;
}

.p-1 {
    padding: 0.5rem !important;
}

.p-2 {
    padding: 1rem !important;
}

.p-3 {
    padding: 1.5rem !important;
}

.p-4 {
    padding: 2rem !important;
}


/* -----------------------------------------------------
   HEADER
----------------------------------------------------- */
#above-header {
    background: var(--blue-900);
    color: var(--blue-100);
    font-size: 0.9rem;
    text-align: center;
    padding: 0.5rem;
}
    #above-header a {
        color: #fff
    }
    #above-header img {
        height:18px; vertical-align:middle
    }

#header {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

/* -------------------------------------------
   NAVIGATION
-------------------------------------------- */
.nav-wrapper .logo img {
    width: 90px;
}

@media screen and (max-width: 990px) {
    .nav-wrapper .logo img {
        width: 80px;
    }
}

#nav-menu {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #fff;
    padding: 0 1rem;
    margin-top: 0;
    border-radius: 8px;
    border: 1px solid #eee;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease, margin 0.25s ease;
}

    /* Show when opened */
    #nav-menu.open {
        max-height: 500px; /* larger than menu height */
        opacity: 1;
        padding: 1rem;
        margin-top: 1rem;
    }

    /* Links */
    #nav-menu a {
        text-decoration: none;
        font-weight: 600;
        color: var(--grey-900);
        text-transform: unset;
        position: relative;
    }

        #nav-menu a span {
            display: inline;
        }

        #nav-menu a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -4px;
            width: 0;
            height: 2px;
            background: var(--blue-500);
            transition: width 0.25s ease;
        }

        #nav-menu a:hover::after {
            width: 100%;
        }

#nav-menu .nav-cta:hover::after {
    width: 0;
}

/* -------------------------------------------
   BURGER BUTTON
-------------------------------------------- */
#burger {
    width: 32px;
    height: 28px;
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    margin-top: 12px; /* AV ADDED */
    cursor: pointer;
    float: right;
}

    #burger span {
        height: 4px;
        background: var(--grey-900);
        border-radius: 2px;
        transition: all 0.25s ease;
    }

    /* Burger animation */
    #burger.open span:nth-child(1) {
        transform: translateY(12px) rotate(45deg);
    }

    #burger.open span:nth-child(2) {
        opacity: 0;
    }

    #burger.open span:nth-child(3) {
        transform: translateY(-12px) rotate(-45deg);
    }

@media screen and (max-width: 990px) {
    .nav-cta {
        padding: unset !important;
        margin: unset !important;
        border: unset !important;
        background: unset !important;
    }

    #nav-menu a:hover::after {
        width: 0;
    }
}
@media screen and (min-width: 991px) {

    .nav-wrapper
    {
        display:flex;
    }

    /* Hide burger */
    #burger {
        display: none;
    }

    /* Show nav */
    #nav-menu {
        display: flex;
        flex: 1;
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
        background: none;
        padding: 0;
        margin-top: 0;
        border: none;
        margin-left: 3rem;
        max-height: none;
        opacity: 1;
        overflow: visible;
    }

        #nav-menu a {
            text-transform: capitalize;
        }

        #nav-menu a span {
            display:none;
        }

    .nav-cta {
        margin-left:auto;
        order: 99;
    }
}


/* -------------------------------------------
   FOOTER STYLING
-------------------------------------------- */
#footer {
    background-color: var(--blue-500);
    padding: 1rem 1rem 5rem 1rem;
    margin: 1rem 0 0 0;
    color: var(--blue-100);
}


#footer .flex{
    flex-wrap:nowrap;
}

#footer .flex > * {
    width:100%;
}

#footer a {
    color: var(--blue-100);
    font-weight: normal;
}

    #footer ul {
        list-style: none;
        padding: 0;
        margin: 0 0 1.5rem 0;
    }


@media screen and (min-width: 991px) {
    #footer {
        padding: 2rem 1rem 1rem 1rem;
    }

    #footer-end div:last-of-type {
        text-align: right;
    }
}

#footer .card {
    border-radius: 0;
    display:inline-block;
    padding:1rem;
    max-height:95px;
}

#footer .card img {
    max-height:calc(95px - 2rem);
    width: 100%;
}

#footer-reviews, #footer .equity-release-council-logo {
    margin-bottom: 1.5rem;
}


#footer-reviews .center {
    display: inline-block;
    background-color: #fff;
    padding: 0.70rem;
    max-height: 95px;
}

#footer-reviews img {
    max-height: 28px;
}

#footer .equity-release-council-logo img {
    max-height: 95px;
}

/*#footer-logo {
    display:none;
}

#footer-reviews, .equity-release-council-logo {
    display: inline;
}

.equity-release-council-logo {
    float:right;
}

.equity-release-council-logo img {
    max-height: 60px !important;

}*/


#footer-reg {
    border-top: solid 1px var(--blue-400);
    padding-top: 0.75rem;
}

#footer-reg p {
    font-size: 0.85rem;
}



/* -------------------------------------------
   COMPONENT STYLING
-------------------------------------------- */
.pop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 101;
    background: rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
}

.pop-content {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0.75rem 1.25rem;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    background-color: #fff;
    max-width:1250px;
    width:100%;
    margin: 0 auto;
}


/* -------------------------------------------
   HOMEPAGE STYLING
-------------------------------------------- */

.fullwidth-blue {
    background-color: var(--blue-100);
    padding: 1.5rem 0;
    margin-bottom: 2.5rem; /* clear separation from article */
    box-shadow: 0 2px 6px rgba(0,0,0,0.05); /* subtle depth */
}

.fullwidth-grey {
    background-color: var(--grey-100);
    padding: 1.5rem 0;
    margin-bottom: 2.5rem; /* clear separation from article */
    box-shadow: 0 2px 6px rgba(0,0,0,0.05); /* subtle depth */
}

.quoted_in {
    display: flex;
    padding: 0;

}
 
    .quoted_in div:first-of-type {
        width: calc(50%);
        padding: 1.2rem;
    }

    .quoted_in div:last-of-type {
        width: calc(50%);
        background-color: #005689;
        padding: 1.2rem;
    }

.examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}


@media screen and (max-width: 990px) {
    .examples {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
}


    .examples a {
        background: #fff;
        border: 1px solid #e6e6e6;
        border-radius: 8px;
        padding: 1.5rem 1rem;
        text-align: center;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

        .examples a:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 12px rgba(0,0,0,0.1);
            border-color: var(--blue-300);
            text-decoration:none;
        }


.examples span {
    display: block;
    color: var(--blue-800);
    font-weight:500;
}

    .examples a img[src$=".svg"] {
        height: 70px;
    }


.home-video {
    max-width: 400px;
    width: 32%;
}

@media screen and (max-width: 990px) {
    .home-video {
        width: 100%;
    }
}

.ratings {
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

    .ratings .card {
        flex: 1;
    }

        .ratings .card img {
            max-height: 60px;
        }


.star-rating {
    --rating: 3.7;
    --star-size: 28px;
    position: relative;
    display: inline-block;
    font-size: var(--star-size);
    line-height: 1;
}

    /* base (empty stars) */
    .star-rating::before {
        content: "★★★★★";
        color: var(--grey-200);
    }

    /* filled stars */
    .star-rating::after {
        content: "★★★★★";
        color: #f5b301;
        position: absolute;
        left: 0;
        top: 0;
        width: calc(var(--rating) / 5 * 100%);
        overflow: hidden;
        white-space: nowrap;
    }

.speech-bubble {
    position: relative;
    padding: 1.5rem;
    background: var(--blue-500);
    color: #fff;
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

    .speech-bubble:after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: -20px;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 20px solid transparent;
        border-right: 0;
        border-top: 20px solid var(--blue-500);
        border-bottom: 0;
    }

.reviews-info {
    text-align:center;
    margin-bottom:2rem;
}

    .reviews-info img {
        width: 24px;
    }

    .center {
        text-align:center;
    }


.process-steps {
    display: flex;
    gap: 0; /* chevrons touch each other */
    margin-bottom: 4rem;
}

.process-step {
    position: relative;
    background: var(--blue-300);
    padding: 2rem;
    padding-left: calc(2rem + 20px);
    flex: 1;
    clip-path: polygon( 0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100% );
    margin-right: -20px;
    z-index: 2;
}

    .process-step h4 {
        color: var(--blue-900)
    }

    .process-step:first-child {
        background: var(--blue-200);
        z-index: 3;
        border-bottom-left-radius: 8px;
        border-top-left-radius: 8px;
        padding-left: 2rem;
    }

    .process-step:last-child {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        background: var(--blue-400);
        z-index: 1;
        border-bottom-right-radius: 8px;
        border-top-right-radius: 8px;
        color: var(--blue-100);
    }

        .process-step:last-child h4 {
            color: var(--blue-100);
        }

@media (max-width: 768px) {
    .process-steps {
        flex-direction: column;
        text-align: center;
    }

    .process-step {
        clip-path: polygon( 0 0, 100% 0, 100% calc(100% - 20px), 50% 100%, 0 calc(100% - 20px) );
        margin-right: 0px;
        margin-bottom: -20px;
        padding-left: 2rem;
        padding-top: calc(2rem + 20px);
    }
        .process-step:first-child {
            border-bottom-left-radius: 0px;
            border-top-left-radius: 8px;
            border-top-right-radius: 8px;
            padding-top: 2rem;
        }

        .process-step:last-child {
            clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
            border-bottom-left-radius: 8px;
            border-bottom-right-radius: 8px;
            border-top-left-radius: 0px;
            border-top-right-radius: 0px;
            padding-bottom: 1rem;
        }
}




.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.benefit-card {
    background: var(--blue-100);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

    .benefit-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }

    .benefit-card .icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        color: var(--blue-600);
    }

    .benefit-card h4 {
        margin-bottom: 0.75rem;
        color: var(--blue-900);
    }

    .benefit-card p {
        color: var(--blue-700);
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom:0;
    }

/* Mobile spacing tweak */
@media (max-width: 480px) {
    .benefit-card {
        padding: 1.5rem 1rem;
    }
}


@media (max-width: 480px) {
    .book-cta {
        text-align:center;
    }
    .book-cta .btn {
        display: block;
        margin: 0.5rem;
    }
}




/* -------------------------------------------
   ARTICLE STYLING
-------------------------------------------- */
    .article-nav {
        background: #fff;
        border: 1px solid #e6e6e6;
        border-radius: 6px;
        padding: 1.25rem 1.5rem;
        margin: 1.5rem 0 2rem;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }

        .article-nav ul {
            list-style: none;
            padding: 0;
            margin: 0.75rem 0 0 0;
        }

        .article-nav li {
            margin: 1rem 0;
        }

            .article-nav li:last-of-type {
                margin: 1rem 0 0 0;
            }

        .article-nav a {
            text-decoration: none;
            color: var(--blue-500);
            font-weight: 600;
        }

            .article-nav a:hover {
                text-decoration: underline;
            }

    .article-nav-toggle {
        display: block;
        width: 100%;
        background: none;
        border: none;
        font-size: 1.05rem;
        font-weight: 700;
        color: #222;
        padding: 0;
        text-align: left;
        cursor: default;
    }

    @media (max-width: 768px) {

        .article-nav-toggle {
            cursor: pointer;
            position: relative;
            padding-right: 1.5rem;
        }

            .article-nav-toggle::after {
                content: "–";
                position: absolute;
                right: 0;
                top: 0;
                font-weight: bold;
            }

        .article-nav[aria-expanded="false"] .article-nav-toggle::after {
            content: "+";
        }


        .article-nav[aria-expanded="false"] .article-nav-list {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
            margin: 0;
            /* Avoid display: none for SEO */
        }

        .article-nav[aria-expanded="true"] .article-nav-list {
            margin: 0.75rem 0 0 0;
            transition: max-height 0.3s ease;
            max-height: 1000px; /* safely larger than content */
        }
    }




    .kick {
        /*background: rgba(0, 99, 177, 0.06);*/
        background-color: var(--blue-100);
        border-left: 4px solid var(--blue-500);
        padding: 1.25rem 1.5rem;
        border-radius: 6px;
        margin: 1rem 0 1.5rem 0;
        color: var(--blue-900);
        min-width: 0 !important;
    }

        .kick h4 {
            color: var(--blue-800);
        }

        .kick h3 {
            margin: 0 0 0.4rem;
            font-size: 1.15rem;
            font-weight: 700;
            color: var(--blue-800);
        }

        .kick h2 {
            margin: 0 0 0.75rem;
            font-weight: 700;
            color: var(--blue-800);
        }

        .kick p:last-of-type {
            margin: 0;
        }

    @media screen and (max-width: 768px) {
        .kick--shorter {
            padding-top: 1rem;
            padding-bottom: 0.75rem;
            margin-bottom: 1.25rem
        }
    }

    .kick--tip {
        background: var(--grey-100);
        border-left-color: var(--grey-500);
        color: var(--grey-900)
    }

        .kick--tip h2 {
            color: var(--grey-800);
        }

        .kick--tip h3, .kick--tip h4 {
            color: var(--grey-700);
        }

    .kick--warn {
        background: var(--red-100);
        border-left-color: var(--red-500);
        color: var(--red-900);
    }

        .kick--warn h3, .kick--warn h4 {
            color: var(--red-500);
        }

        .kick--warn a {
            color: var(--red-500);
        }

    .kick--note {
        background: var(--grey-100);
        border-left-color: var(--grey-500);
        color: var(--grey-900)
    }

        .kick--note h3, .kick--note h4 {
            color: var(--grey-800);
        }

    .kick--takeaway p {
        font-size: 1.15em;
        line-height: 1.5;
    }

    #reading-progress {
        position: fixed;
        top: 0;
        left: 0;
        height: 4px;
        width: 0%;
        background-color: var(--blue-500);
        z-index: 9999;
        transition: width 0.1s linear;
    }


    /* Wrapper for the benefits grid */
    .benefits-wrapper {
    }

    .benefits-title {
    }

    /* Grid layout */
    .benefits-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 0.5rem;
        margin-bottom: 2rem;
    }

    /* Individual benefit item */
    .benefit {
        display: flex;
        align-items: flex-start;
        gap: 0.5rem;
    }

    /* Icon styling */
    .benefit-icon {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
        margin-top: 3px; /* aligns icon with first line of text */
    }

    @media screen and (min-width: 991px) {
        .benefit-icon {
            width: 48px;
            height: 48px;
        }

        /* Grid layout */
        .benefits-grid {
            gap: 1.5rem 2rem;
        }

        /* Individual benefit item */
        .benefit {
            gap: 1rem;
        }
    }


    .avatar-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 1rem;
        background: #fff;
        /*border: 1px solid #e6e6e6;*/
        border-radius: 6px;
        padding: 0.75rem 1.5rem;
        margin: 0 0 1rem;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }

    .avatar {
        width: 64px;
        height: 64px;
        border-radius: 50%;
        object-fit: cover;
        border: solid 1px #ddd;
        margin: 0 1rem 0 0;
    }

    .avatar-bio {
        flex: 1;
    }

    .intro-quote {
        position: relative;
        padding-left: 1.5rem;
        margin: 1.5rem 0;
        font-size: 1.05rem;
        font-style: italic;
        border-left: 4px solid var(--grey-200);
        color: var(--grey-700);
        font-family: Georgia, 'Times New Roman', Times, serif
    }

        .intro-quote::before {
            content: "“";
            position: absolute;
            left: 0;
            top: -0.2em;
            font-size: 3rem;
            line-height: 1;
            color: #ccc;
        }


    .calculator-hero {
        background-color: var(--blue-100); /* subtle tint fits your color palette */
        padding: 2.5rem 0 1.5rem 0;
        margin-bottom: 0.5rem; /* clear separation from article */
        box-shadow: 0 2px 6px rgba(0,0,0,0.05); /* subtle depth */
    }

        .calculator-hero .container {
            gap: 5rem;
        }

        .calculator-hero .lhs,
        .calculator-hero .rhs {
            flex: 1 1 300px; /* flexible columns */
        }

    @media (max-width: 768px) {
        .calculator-hero {
            flex-direction: column;
            padding: 0;
            background: 0;
            box-shadow: none;
            margin-bottom: 0;
            gap: 0
        }

            .calculator-hero .rhs::after {
                content: "";
                display: block;
                width: 60px;
                height: 3px;
                background: var(--blue-300);
                border-radius: 2px;
            }
    }

.tick {
    list-style-image: url('/Images/Tick-Small.png');
}

.cross {
    list-style-image: url('/Images/cross-small.png');
}


.reviews-grid {
    flex-wrap: wrap;
    gap: 1.5rem;
}

.review-card {
    padding: 1.5rem;
    min-width:calc((100%/ 3) - 3rem);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #e6e6e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.review-source {
    display: inline;
    padding-left: 1rem;
}

    .review-source img {
        height: 16px;
    }


/* -------------------------------------------
   COMPARISON
-------------------------------------------- */

    .lender-comparison {
        max-width: 1000px;
        margin: 0 auto;
        padding: 0 1rem 1.5rem 1rem;
        text-align: center;
    }

    .comparison-title {
        margin-bottom: 1.5rem;
    }

    .comparison-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .lender-card {
        background: #fff;
        border: 1px solid #e6e6e6;
        border-radius: 8px;
        padding: 0 1rem 1.5rem 1rem;
        text-align: center;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

        .lender-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 12px rgba(0,0,0,0.1);
        }

        .lender-card .rate {
            
            font-weight: 700;
            margin-bottom: 0.5rem;
        }

            .lender-card .rate span {
                color: var(--blue-500); /* highlight the % */
                font-size: 1.5rem;
            }


    /* Optional: highlight best rate */
    .lender-card--highlight {
        border: 2px solid var(--blue-300);
        background-color: var(--blue-100);
    }

    @media screen and (max-width: 768px) {
        .comparison-grid {
            grid-template-columns: 1fr; /* stack cards on mobile */
        }
    }


    .intro {
        font-size: 1.05rem; /* slightly larger than bullets */
        font-weight: 600; /* semi-bold */
        line-height: 1.4;
    }


    .report-benefits {
        list-style: none;
        padding: 0;
        margin: 1.5rem0 0 1.5rem 0;
    }

        .report-benefits li {
            margin-bottom: 0.75rem;
            font-size: 1rem;
            font-weight: 400;
            color: #222;
            position: relative;
            padding-left: 1.5rem;
        }

            .report-benefits li::before {
                content: "✓";
                color: #02b15d; /* matches button green */
                position: absolute;
                left: 0;
            }

    .field-desc {
        display: block;
        font-size: 0.875rem;
        color: #666;
        margin: -0.15rem 0 0.25rem 0;
    }

    .form-reassurance {
        font-size: 0.9rem;
        color: var(--grey-700);
        text-align: center;
        margin-top: 0.75rem !important;
        margin-bottom: 0;
        line-height: 1.4;
    }

    .trust-strip {
        margin-top: 1.25rem;
        padding-top: 1rem;
        border-top: 1px solid var(--blue-200);
        text-align: center;
    }

        .trust-strip p {
            margin: 0;
            font-size: 0.95rem;
            font-weight: 500;
            color: var(--blue-900);
            line-height: 1.4;
            text-align: center;
        }

            .trust-strip p span {
                display: inline;
                position: relative;
                padding: 0 0.5rem;
            }

                /* Add separator except for first span */
                .trust-strip p span:not(:first-child)::before {
                    content: "•";
                    color: var(--blue-500); /* subtle, matches brand */
                    margin-right: 1rem;
                }

#EquityReleaseCalculator .trust-strip, #EquityReleasePurchaesCalculator .trust-strip, #EquityReleaseEligibilityCalculator .trust-strip, #EquityReleaseLenderCalculator .trust-strip {
    margin-top: 0;
    border-top: none;
}

    /* Mobile: stack vertically, remove separators */
    @media screen and (max-width: 768px) {
        .trust-strip p span:not(:last-child) {
            display: block;
            padding: 0;
            margin-bottom: 0.5rem;
        }

        .trust-strip p span:not(:first-child)::before {
            content: none;
        }
    }




    /* -------------------------------------------
   SIDEBAR
-------------------------------------------- */
    /* Main layout container */
    .content-layout {
        display: flex;
        justify-content: flex-start;
        gap: 6rem;
        row-gap: 2rem;
        flex-wrap: wrap;
        padding-top:1rem;
    }

        .content-layout > article {
            flex: 1;
            padding-right: 0;
        }

    .sidebar {
        flex: 0 1 34%;
        min-width: 380px;
        max-width: 420px;
    }

        .sidebar h2, .sidebar h3 {
            margin-top: 0;
        }


    .sticky-form {
        position: -webkit-sticky;
        position: sticky;
        top: 1.2rem;
        margin-bottom: 2rem;
        transition: opacity 0.25s ease;
    }

    /* Medium screens need to have the gaps and sidebar width adjusted */
    @media screen and (max-width: 1275px) {
        .content-layout {
            gap: 4rem;
        }
    }

    @media screen and (max-width: 1150px) {
        .content-layout {
            gap: 2rem;
        }
    }


    /* Mobile layout (sidebar should take full width and be at the bottom) */
    @media screen and (max-width: 990px) {
        .content-layout {
            display: block;
            padding-top: 0;
        }

            .content-layout > article {
                padding-right: 0;
            }

        .sidebar {
            width: 100%; /* Full width on mobile */
            flex: none;
            max-width: none;
            min-width: 0 !important;
        }

        .content-layout > article {
            margin-bottom: 2rem;
        }
    }


    /* fade animation for moving form */
    /* transition is always on the form itself */
    #EquityReleaseCalculator {
        transition: opacity 0.35s ease, transform 0.35s ease;
        opacity: 1;
        transform: translateY(0);
    }

    /* moving out */
    .is-moving-out #EquityReleaseCalculator {
        opacity: 0;
        transform: translateY(-5px);
    }

    /* sticky state */
    .sticky-form.is-sticky #EquityReleaseCalculator {
        opacity: 1;
        transform: translateY(0);
    }





    /* -------------------------------------------
   TABLE STYLING
-------------------------------------------- */
    /* Make table scrollable on small screens */
    .table-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }


    article table {
        width: 100%;
        border-left: solid 1px #e3e3e3;
        border-top: solid 1px #e3e3e3;
        border-right: solid 1px #e3e3e3;
        margin-bottom: 0.8rem;
        background-color: #fff;
    }

    article thead {
        font-weight: bold;
    }

    article td {
        border-bottom: solid 1px #e3e3e3;
        padding: 0.6rem;
    }



    .table-2col td {
        text-align: center;
        width: 50%;
        border-right: solid 1px #e3e3e3;
    }

        .table-2col td:last-of-type {
            border-right: none;
        }


    .table-rates td {
        text-align: center;
        width: 37%;
    }

        .table-rates td:first-of-type {
            text-align: left;
            width: 26%;
        }

        /*.table-summary .tr td { border-bottom:0 !important; vertical-align:top; }
        .tdtable { padding:0 !important; border-bottom:1px #ccc; }
        .tdtable table { border:0 !important; }
        .tdtable table td { width:50%; border:0 !important; }
        .tdtable table td ul { margin:0 !important; }
        .tdtable table td ul li { margin:0 !important; }
        .tdtable table td { vertical-align:top; }*/
.table-4cen {
    text-align: center;
}

    .table-4cen td {
        width: 25%;
    }
@media screen and (max-width: 400px) {
    .table-4cen .btn {
        font-size: 80%;
        padding-left: 0.4rem;
        padding-right: 0.4rem;
    }

    #table-features thead {
        font-size: 80%;
    }
}

#table-features td {
    border-right: solid 1px #e3e3e3;
}

    #table-features td:last-of-type {
        border-right: none;
    }



    /* -------------------------------------------
   FORM STYLING
-------------------------------------------- */
    .form {
        padding: 1rem;
        background: #f4f4f4;
        /*box-shadow: 0 4px 6px rgba(0, 0, 0, 0.095), 0 5px 15px rgba(0, 0, 0, 0.05);*/
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        margin-bottom: 2rem;
        border-radius: 6px;
        /*border-top: 4px solid var(--grey-500);*/
    }

        .form h2, .form h3 {
            margin-top: 0.25rem;
            color: var(--grey-900);
        }

        .form p {
            font-size: 0.95rem;
            color: var(--grey-800);
        }


    /* --- Choice group reset --- */
    .choice-group {
        border: 0;
        padding: 0;
        margin: 0;
        min-inline-size: unset;
    }

        .choice-group > legend {
            font-weight: 600;
            margin-bottom: 0.5rem;
        }

    .choice {
        display: block;
        cursor: pointer;
    }

        .choice input[type="radio"] {
            position: absolute !important;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }


        .choice .btn {
            width: 100%;
            min-width: 0;
            text-align: center;
            background: #f7f7f7;
            color: #222;
            border: 1px solid #bbb;
            box-shadow: none;
            transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
        }

            .choice .btn:hover {
                background: #f0f0f0;
            }

        .choice input[type="radio"]:checked + .btn {
            background: var(--blue-500);
            border-color: var(--blue-500);
            color: #fff;
        }

        .choice input[type="radio"]:focus-visible + .btn {
            outline: 3px solid rgba(0, 99, 177, 0.4);
            outline-offset: 2px;
        }





    .btn {
        display: inline-block;
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
        border: solid 1px var(--blue-700);
        border-radius: 6px;
        background: var(--blue-500);
        color: #fff;
        cursor: pointer;
        transition: background 0.2s ease, transform 0.1s ease, color 0.2s ease;
        text-decoration: none;
    }

        .btn:hover {
            background: #00589f;
            text-decoration: none;
        }

        .btn:active {
            transform: scale(0.97);
        }

    .btn--secondary {
        background: #f7f7f7;
        color: var(--blue-600) !important;
        border: solid 1px var(--blue-500);
    }

        .btn--secondary:hover {
            background: #f0f0f0;
            text-decoration: none;
        }


    .form .btn, .btn.block {
        display: block;
        width: 100%;
    }


    label, .label {
        display: block;
        font-weight: 500;
        margin-bottom: 0.25rem;
    }

    input,
    textarea,
    select {
        width: 100%;
        padding: 0.75rem;
        margin-bottom: 1rem;
        font-size: 1rem;
        border: 1px solid #bbb;
        border-radius: 6px;
        background: #fff;
        color: #222;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

        /* Inputs focus */
        input:not([type="checkbox"]):not([type="radio"]):focus,
        textarea:focus,
        select:focus {
            outline: none;
            border-color: var(--blue-500);
            box-shadow: 0 0 0 3px rgba(0, 99, 177, 0.3);
        }

        /* Inputs hover */
        input:hover,
        textarea:hover,
        select:hover {
            border-color: var(--blue-400);
        }

        input::placeholder,
        textarea::placeholder {
            color: var(--grey-500);
        }

    .form-pound {
        position: relative;
        width: 100%;
    }

        .form-pound input {
            padding-left: 1.75rem; /* space for £ */
        }

        .form-pound .currency {
            position: absolute;
            left: 12px;
            top: 25%; /* center relative to input height */
            transform: translateY(-25%); /* adjust based on font metrics */
            font-size: 1rem;
            font-weight: 500;
            color: #666;
            pointer-events: none;
        }


.form-footer {
    padding: 0.75rem 0;
}

    .form-footer.form-footer-sticky {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 0.75rem 1rem;
        z-index: 100;
        text-align: center;
    }

    .form-footer .container {
        width: min(1250px, 100%);
    }

        .form-footer .btn {
            width: 100%;
        }


.radio-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.radio-option {
    display: flex;
    align-items: center;
    border: 1px solid #bbb;
    border-radius: 6px;
    padding: 9px 16px;
    cursor: pointer;
    background-color: #fff;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    flex: 1;
    margin-bottom: 0;
    min-width: calc(50% - 1rem);
    position: relative;
}

    .radio-option input[type="radio"] {
        display: none;
    }

    .radio-option:has(input[type="radio"]:checked) {
        border-color: var(--blue-500);
        background-color: var(--blue-100);
    }

    .radio-option .icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        flex-shrink: 0;
        margin-right: 8px;
        color: var(--grey-700);
    }

    .radio-option:has(input[type="radio"]:checked) .icon {
        color: var(--blue-600);
    }

    .radio-option .icon img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .radio-option:hover {
        border-color: var(--blue-400);
    }

    .radio-option:active {
        transform: scale(0.98);
    }


/* Checkmark container */
.checkmark {
    position: absolute;
    top: calc(50% - 9px);
    right: 12px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--blue-400);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Hidden by default */
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.2s ease;
}

    /* SVG sizing */
    .checkmark svg {
        width: 12px;
        height: 12px;
    }

/* Show when selected */
.radio-option:has(input:checked) .checkmark {
    opacity: 1;
    transform: scale(1);
}


    /* -------------------------------------------
   EQUITY RELEASE CALCULATOR RESULTS STYLING
-------------------------------------------- */
    .flex {
        display: flex;
        gap: 2rem;
        flex-wrap: wrap;
    }

        .flex .lhs, .flex .rhs {
            width: calc(50% - 1rem);
            min-width: 0 !important;
        }

            .flex .rhs #quick_compare {
                margin-top: 0 !important;
            }

    .flex--1 {
        flex: 1;
    }

    .flex--full-row {
        display: flex;
        width: 100%;
        flex-basis: 100%; /* forces a new row inside the main flex */
        gap: 2rem;
    }



    @media screen and (max-width: 768px) {
        .flex {
            display: block;
        }

            .flex .lhs, .flex .rhs {
                width: 100%;
            }

                .flex .rhs #quick_compare {
                    margin-top: 2rem !important;
                }
    }


    .skeleton-item, .skeleton-actions {
        width: 100%;
        background: #fff;
        border-radius: 8px;
        padding: 1.25rem;
        border: 1px solid #eee;
        margin-bottom: 0.5rem;
        animation: pulse 1.5s infinite ease-in-out;
        min-height: 117px
    }

    .skeleton-actions {
        min-height: 100px
    }

    @keyframes pulse {
        0% {
            background-color: #fff;
        }

        50% {
            background-color: #f3f3f3;
        }

        100% {
            background-color: #fff;
        }
    }

    .card {
        background: #fff;
        border-radius: 8px;
        padding: 1.25rem;
        border: 1px solid #eee;
        margin-bottom: 1.5rem;
    }

    .result-amount strong {
        font-size: 1.4rem;
        font-weight: 700;
    }

    .result-rate {
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--grey-700);
    }

        .result-amount span, .result-rate span {
            color: var(--grey-500);
            font-weight: 400;
            text-transform: uppercase;
            font-size: 0.8rem;
        }

    .result-type {
        font-size: 0.9rem;
        color: var(--grey-600);
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .result-icon {
        height: 40px;
    }

    @media (max-width: 768px) {
        .result-icon {
            height: 28px;
        }
    }

    .avatar--lender {
        width: 52px;
        height: 52px;
        object-fit: contain;
        margin: 0 0 0 -16px;
        padding: 6px;
        background-color: #fff;
        border: 2px solid #fff;
        box-shadow: 0 0 1px 1px var(--grey-300);
    }

        .avatar--lender:first-of-type {
            margin: 0 0 0 1rem;
        }

    .lender-avatars {
        margin: 0 0 0 1rem;
        float: right;
    }


    .card-action-container {
        display: flex;
        flex-wrap: nowrap; /* prevent wrapping */
        gap: 0.5rem; /* smaller gap for mobile */
        justify-content: space-between;
    }

    .card-action-btn {
        width: 25%; /* always 4 across */
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        padding: 0.75rem;
        background: #fff;
        border: 2px solid #0063b1;
        border-radius: 8px;
        color: #0063b1;
        text-decoration: none;
        transition: background 0.25s ease, color 0.25s ease;
    }

        /* Icon colouring */
        .card-action-btn img {
            width: 28px;
            height: 28px;
            transition: filter 0.25s ease;
            filter: brightness(0) saturate(100%) invert(20%) sepia(98%) saturate(1554%) hue-rotate(181deg) brightness(92%) contrast(102%);
        }

        .card-action-btn:hover {
            background: #0063b1;
            color: #fff;
            text-decoration: none;
        }

            .card-action-btn:hover img {
                filter: brightness(0) invert(1);
            }

    .card-action-btn {
        padding: 0.5rem;
    }



    .lender-panel {
        text-align: center;
    }

    .lender-logos {
        display: grid;
        grid-template-columns: repeat(5, auto);
        gap: 2rem 3rem;
        justify-content: center;
        align-items: center;
        margin: 2rem 0;
    }

        .lender-logos img {
            max-height: 52px;
            width: auto;
            margin: 0 auto;
        }

    @media (max-width: 768px) {
        .lender-logos {
            grid-template-columns: repeat(2, auto);
        }
    }




    /* -------------------------------------------
   MARKET REPORT STYLING
-------------------------------------------- */
    .step-heading {
        font-size: 1.2rem; /* smaller than main H2 */
        font-weight: 600;
        margin: 2rem 0 1.25rem 0;
        color: var(--grey-800);
    }

    /* Optional subtle divider from H1 */
    .video-step::before {
        content: "";
        display: block;
        width: 60px;
        height: 3px;
        background: var(--blue-300);
        margin-bottom: 1.5rem;
        border-radius: 2px;
    }



    .next-steps {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin: 1rem 0 2rem 0;
        font-size: 1rem;
        color: var(--grey-700);
        font-weight: 500;
    }

    .next-steps-icon {
        width: 24px;
        height: 24px;
    }

        .next-steps-icon svg {
            width: 24px;
            height: 24px;
            stroke: var(--blue-500);
        }



    .card--advisor .avatar {
        width: 120px;
        height: 120px;
    }

    @media (max-width: 768px) {

        .card--advisor {
            padding: 0.75rem;
        }

            .card--advisor .avatar {
                width: 90px;
                height: 90px;
                margin: 0;
            }

            .card--advisor h3 {
                font-size: 1rem;
                margin: 0;
            }

            .card--advisor p {
                font-size: 0.85rem;
                margin: 0.25rem 0 0;
            }

            .card--advisor .field-desc {
                display: none; /* hide FCA line on mobile */
            }
    }

    .advisor-card-inner {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    /* Mobile default */
    .advisor-card-inner {
        flex-direction: row-reverse;
    }

    /* Desktop */
    @media (min-width: 768px) {
        .advisor-card-inner {
            flex-direction: row;
        }
    }

    @media screen and (max-width: 768px) {
        .appointment-buttons button {
            display: block;
            width: 100%;
        }

            .appointment-buttons button:first-of-type {
                margin-bottom: 0.75rem;
            }

            .appointment-buttons button:last-of-type {
                margin-bottom: 0;
            }
    }


    /* Wrapper for gradient hint */
    .appointment-dates-wrapper {
        position: relative;
        background: var(--blue-100);
    }

        .appointment-dates-wrapper::after {
            content: "";
            position: absolute;
            top: 0;
            right: 0;
            width: 40px;
            height: 100%;
            pointer-events: none;
            background: linear-gradient( to left, var(--blue-100), transparent );
            opacity: 0;
            transition: opacity 0.25s ease;
        }


        /* Show when scrollable */
        .appointment-dates-wrapper.has-overflow::after {
            opacity: 1;
        }

        /* Hide when at end */
        .appointment-dates-wrapper.at-end::after {
            opacity: 0;
        }


    .appointment-dates {
        display: flex;
        gap: 0.75rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

        .appointment-dates .card {
            flex: 0 0 auto;
            scroll-snap-align: start;
            text-align: center;
            padding: 0.75rem;
            width: 64px;
            text-decoration: none;
            cursor: pointer;
            margin-bottom: 0.75rem;
            transition: background 0.25s, color 0.25s, border 0.25s;
        }

        .appointment-dates span {
            font-size: 0.8rem;
            display: block;
        }

        .appointment-dates .card:hover {
            background: var(--blue-600) !important;
            color: #fff;
        }

        .appointment-dates .card.active {
            background: var(--blue-500);
            color: #fff;
        }

button.card:disabled {
    background: var(--grey-200);
    color: var(--grey-600);
    cursor: not-allowed;
    pointer-events: none; /* completely disables interactions */
}

    button.card:disabled:hover {
        background: none; /* remove hover background */
        color: inherit; /* keep default text color */
    }

    .appointment-times {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 1rem;
    }



    @media screen and (max-width: 768px) {
        .appointment-times {
            grid-template-columns: repeat(4, 1fr);
        }
    }

    .appointment-times .card {
        padding: 0.5rem 0.5rem;
        margin: 0;
        text-decoration: none;
        cursor: pointer;
        transition: background 0.25s, color 0.25s, border 0.25s;
    }

        .appointment-times .card:hover {
            background: var(--blue-600) !important;
            color: #fff;
        }

        .appointment-times .card.active {
            background: var(--blue-500);
            color: #fff;
        }

    .appointment-summary {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem 1.25rem;
        margin: 1.5rem 0;
        background: #f4faff;
        border: 1px solid #b2d4ff;
        border-radius: 8px;
    }

        .appointment-summary .summary-label {
            margin: 0;
            font-size: 0.9rem;
            color: var(--grey-700);
        }

        .appointment-summary .summary-time {
            margin: 0.25rem 0 0;
            font-weight: 600;
            color: var(--grey-900);
        }

        .appointment-summary img {
            width: 24px;
            height: 24px;
            opacity: 0.75;
        }



    /* Explore Tools Grid */
    .explore-tools {
        display: grid;
        gap: 1.25rem;
        margin: 1.5rem 0 2rem;
    }

    @media (min-width: 768px) {
        .explore-tools {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    /* Individual Tool Card */
    .explore-tool {
        all: unset;
        background: #fff;
        border: 1px solid var(--grey-200);
        border-radius: 8px;
        padding: 1.5rem 1.25rem;
        box-shadow: 0 2px 6px rgba(0,0,0,0.04);
        transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
    }

        /* Hover effect */
        .explore-tool:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 18px rgba(0,0,0,0.08);
            border-color: var(--blue-300);
        }

        /* Active state */
        .explore-tool.active {
            border-color: var(--blue-500);
            box-shadow: 0 10px 28px rgba(0,0,0,0.10);
        }

        .explore-tool.dimmed {
            opacity: 0.8;
        }

        /* Keyboard accessibility */
        .explore-tool:focus-visible {
            outline: 3px solid var(--blue-400);
            outline-offset: 3px;
        }

    /* CTA text styling */
    .explore-link {
        margin-top: 1rem;
        font-weight: 600;
        color: var(--blue-600);
    }

    /* Headings inside */
    .explore-tool h3 {
        margin-top: 0;
        margin-bottom: 0.5rem;
        color: var(--blue-700);
    }

    /* Paragraph */
    .explore-tool p {
        flex-grow: 1;
        font-size: 0.95rem;
        color: var(--grey-700);
    }


    .tool-panel {
        margin-top: 2rem;
        padding: 2rem;
        background: #fff;
        border-radius: 8px;
        border: 1px solid var(--grey-200);
        box-shadow: 0 12px 28px rgba(0,0,0,0.06);
        animation: toolFade 0.35s ease forwards;
    }

    @media (max-width: 768px) {
        .tool-panel {
            margin-left: -1rem;
            margin-right: -1rem;
            padding: 2rem 1rem;
            border: none;
            border-radius: 0;
        }
    }

    @keyframes toolFade {
        from {
            opacity: 0;
            transform: translateY(12px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }


    /* Keep table width natural, but prevent it from exceeding wrapper */
    .near-miss-table {
        width: max-content;
        min-width: 100%;
        table-layout: auto;
        border-collapse: collapse;
    }
        /*.near-miss-table tbody tr:hover {
    background-color: var(--grey-100);
}*/

        .near-miss-table tbody tr.selected {
            background-color: var(--blue-100);
            font-weight: 600;
        }


    .slider-container {
        margin: 1.5rem 0;
    }

    input[type="range"] {
        width: 100%;
        -webkit-appearance: none;
        height: 12px;
        border-radius: 6px;
        background: var(--blue-100);
        outline: none;
        transition: background 0.3s ease;
    }

        input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: var(--blue-500);
            cursor: pointer;
            border: 2px solid #fff;
            box-shadow: 0 2px 6px rgba(0,0,0,0.15);
            transition: transform 0.2s ease;
        }

            input[type="range"]::-webkit-slider-thumb:hover {
                transform: scale(1.1);
            }

        input[type="range"]::-moz-range-thumb {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: var(--blue-500);
            border: 2px solid #fff;
            cursor: pointer;
            box-shadow: 0 2px 6px rgba(0,0,0,0.15);
        }

    .slider-labels {
        display: flex;
        justify-content: space-between;
        font-size: 0.9rem;
        color: var(--grey-700);
        margin-top: 0.25rem;
    }

    .tool-links {
        text-align: right;
        width: 116px;
    }

    .icon-button {
        padding: 2px;
        margin-left: 4px;
        cursor: pointer;
        position: relative;
        width: 40px;
    }

        .icon-button img {
            height: 32px;
        }

        .icon-button .tooltip {
            visibility: hidden;
            background-color: #333;
            color: #fff;
            text-align: center;
            padding: 4px 6px;
            border-radius: 4px;
            position: absolute;
            z-index: 10;
            bottom: 120%; /* above the icon */
            /*left: 50%;
        transform: translateX(-50%);*/
            right: 0;
            font-size: 0.75rem;
            white-space: nowrap;
        }

        .icon-button:hover .tooltip,
        .icon-button:focus .tooltip {
            visibility: visible;
        }



/* -------------------------------------------
   MEET THE TEAM ABOUT STYLING
-------------------------------------------- */
.advisor-about {
    margin-bottom: 2rem;
    gap: 3rem;
    row-gap: 1rem;
    flex-direction: row;
    display:flex;
}

    .advisor-about::before {
        content: "";
        display: block;
        width: 100%;
        height: 1px;
        background: var(--grey-200);
        border-radius: 2px;
        margin-top: 0.5rem;
    }


    .advisor-words {
        flex: 1;
        padding-top:1rem;
    }


    .advisor-words h2 {
        margin-top:0;
    }

    .advisor-words .bio p {
        font-size:0.95rem;
    }

.advisor-image {
    max-width: 400px;
    padding-top: 1.5rem;
    text-align:center;
}

        .advisor-image img {
            border-radius: 8px;
        }




@media (max-width: 768px) {
    .advisor-words {
        order: 1;
    }

    .advisor-image {
        order: 0;
    }
}



/* -------------------------------------------
   BARTON LAW STYLING
-------------------------------------------- */
.barton-law-details {
    margin-bottom: 2rem;
    gap: 3rem;
    row-gap: 1rem;
    flex-direction: row;
    display: flex;
}

.company {
    flex: 1;
    padding-top: 1rem;
}

    .company img {
        margin-bottom:1rem;
    }
    

.peter {
    max-width: 400px;
    padding-top: 1.5rem;
    text-align: center;
}

    .peter img {
        border-radius: 8px;
    }
@media (max-width: 768px) {
    .company {
        text-align: center;
    }
    .peter {
        padding-top: 0.5rem;
    }
}



/* -------------------------------------------
   FAST TRACK STYLING
-------------------------------------------- */
.step-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.step-left {
    justify-self: start;
}

.step-centre {
    text-align: center;
}

.step-right {
    justify-self: end;
}

.step-back {
    text-decoration: none;
    font-weight:normal;
    cursor: pointer;
}








/* -------------------------------------------
   STICKY FOOTER STYLING
-------------------------------------------- */
    .advertise {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 0.75rem 1rem;
        background: #fff;
        border-top: 1px solid #eee;
        box-shadow: 0 -4px 10px rgba(0,0,0,0.04);
        z-index: 100;
        text-align: center;
    }

    .sticky-note {
        margin: 0 0 0.5rem;
        font-size: 0.90rem;
        color: var(--grey-700);
        padding: 0 0.25rem;
    }
