/* TaxFast — overrides on top of Bizox main.css. */

/* Accent is a deep blue from the logo's own family, not the harsh #0000DF the site used to run. Change these two and every gradient below follows. */
:root {
    --tf-blue: #1D4487;
    --tf-navy: #102850;
    --tf-blue-soft: #6E9BE0;   /* lighter tint for dark panels, where the deep blue would disappear */

    --color-primary: var(--tf-blue);
    --color-secondary: var(--tf-navy);
    --color-heading: var(--tf-navy);
}

/* --------------------------------------------------------------- header */
.xb-header-logo .logo img,
.xb-logo-mobile img,
.sidebar-logo img {
    max-height: 52px;
    width: auto;
}

/* Stock nav pills (dark text on a 5%-dark tint) disappear over the dark hero photo — opaque plate reads over any backdrop. */
.main-menu > ul > li > a > span {
    background: rgba(255, 255, 255, 0.92);
    padding: 4px 12px;
}

.main-menu > ul > li:hover > a > span,
.main-menu > ul > li.active > a > span {
    background: var(--tf-blue);
    color: var(--color-white);
}

/* --------------------------------------------------------------- buttons */
/* main.css hardcodes the purple gradient on .thm-btn — restate it in brand blue. */
.thm-btn,
.form-btn,
.xb-footer-input-form button,
.sidebar-newsletter-from button {
    background: linear-gradient(259deg, var(--tf-blue) 0%, var(--tf-navy) 100%);
}

.thm-btn:hover {
    background: linear-gradient(259deg, var(--tf-navy) 0%, var(--tf-blue) 100%);
}

/* main.css declares .btn-bg with !important, so match it. */
.btn-bg {
    background: linear-gradient(101deg, var(--tf-blue) 0%, var(--tf-navy) 100%) !important;
}

/* Both of these are declared deeper / with !important in main.css. */
.xb-footer-top .xb-footer-btn {
    background: linear-gradient(259deg, var(--tf-blue) 0%, var(--tf-navy) 100%);
}

.form-btn {
    background: linear-gradient(101deg, var(--tf-blue) 0%, var(--tf-navy) 100%) !important;
}

/* main.css tints these icons with the stock purple. */
.xb-footer-contact_info .xb-icon svg path,
.xb-contact-method svg path,
.xb-item--icon svg path[fill="#8348FF"] {
    fill: var(--tf-blue);
}

/* Compact variant so the header CTA fits the row — the stock .thm-btn is ~80px tall. */
.header-btn {
    margin-left: 24px;
}

.header-btn .thm-btn {
    gap: 10px;
    font-size: 15px;
    padding: 0 4px 0 18px;
}

.header-btn .thm-btn .btn_label {
    padding: 13px 0;
}

.header-btn .thm-btn .xb-icon {
    height: 36px;
    width: 36px;
}

.header-btn .thm-btn .xb-icon svg {
    width: 20px;
    height: 20px;
}

/* --------------------------------------------------------------- software marquee */
/* jquery.marquee wraps the <li>s in .js-marquee divs — that wrapper, not the <ul>, needs to be the flex row. */
.tf-software-list {
    display: inline-flex;
    align-items: center;
}

.tf-software-list .js-marquee {
    display: flex;
    align-items: center;
}

.tf-software-list .item {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 84px;
    margin-right: 24px;
    padding: 16px 24px;
    background: #fff;
    border-radius: 10px;
}

.tf-software-list .item img {
    max-height: 44px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

/* --------------------------------------------------------------- hero */
/* Slow continuous pan/zoom on the hero photo, same effect as the restaurant site's Ken Burns hero — .xb-hero-img crops the overscan, .tf-hero-zoom is the moving layer so the rating badge (a sibling) never scales with it. */
.xb-hero-img {
    overflow: hidden;
}

.tf-hero-zoom {
    position: absolute;
    inset: -3%;
    width: 106%;
    height: 106%;
    overflow: hidden;
    background: var(--tf-navy);
}

.tf-hero-slide {
    position: absolute;
    inset: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0;
    animation: tf-hero-slide 32s ease-in-out infinite;
    will-change: opacity, transform;
}

.tf-hero-slide:nth-child(2) {
    animation-delay: -24s;
}

.tf-hero-slide:nth-child(3) {
    animation-delay: -16s;
}

.tf-hero-slide:nth-child(4) {
    animation-delay: -8s;
}

@keyframes tf-hero-slide {
    0% {
        opacity: 1;
        transform: scale(1.04);
    }
    20% {
        opacity: 1;
        transform: scale(1.15);
    }
    25% {
        opacity: 0;
        transform: scale(1.18);
    }
    95% {
        opacity: 0;
        transform: scale(1.04);
    }
    100% {
        opacity: 1;
        transform: scale(1.04);
    }
}

@media (prefers-reduced-motion: reduce) {
    .tf-hero-slide {
        animation: none;
    }

    .tf-hero-slide:not(:first-child) {
        display: none;
    }

    .tf-hero-slide:first-child {
        opacity: 1;
    }
}

/* main.css's 560px cap left a lot of unused width next to the headline above it. */
.xb-hero_content .content {
    max-width: 620px;
    font-size: 19px;
    line-height: 1.7;
}

/* "TAXFAST" is wider per-character than Bizox's "BUSINESS" — the stock 294px overflows. main.css pins this box to bottom:0 of the column, which collides with the tagline in flow beneath it once the description above runs past one short line — bottom offset below gives it a fixed clearance regardless of how tall that flow content gets. main.css hides the whole block under 992px. */
.xb_hero_big_text {
    bottom: 95px;
}

.xb_hero_big_text .text {
    font-size: 200px;
    background: linear-gradient(111deg, var(--tf-navy) 0%, var(--tf-blue) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media only screen and (max-width: 1600px) {
    .xb_hero_big_text .text {
        font-size: 130px;
    }
}

@media only screen and (min-width: 1200px) and (max-width: 1500px) {
    .xb_hero_big_text {
        bottom: 80px;
    }
    .xb_hero_big_text .text {
        font-size: 110px;
    }
}

@media (max-width: 1199px) {
    .xb_hero_big_text {
        bottom: 70px;
    }
    .xb_hero_big_text .text {
        font-size: 95px;
    }
}

/* Google rating badge (replaces the stock award badge) */
.tf-rating-badge {
    position: absolute;
    left: 60px;
    bottom: 60px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 22px 30px;
    text-align: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    box-shadow: 0 20px 45px rgba(16, 40, 80, 0.18);
}

.tf-rating-score {
    font-family: var(--font-heading);
    font-size: 40px;
    line-height: 1;
    color: var(--tf-navy);
}

.tf-rating-stars {
    display: inline-flex;
    gap: 3px;
    font-size: 13px;
    color: #f5a623;
}

.tf-rating-meta {
    font-size: 13px;
    line-height: 1.3;
    color: var(--color-default);
}

@media (max-width: 991px) {
    .tf-rating-badge {
        left: 24px;
        bottom: 24px;
        padding: 16px 22px;
    }

    .tf-rating-score {
        font-size: 30px;
    }
}

/* --------------------------------------------------------------- about */
.xb-about-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.xb-about-section .content + .content {
    margin-top: 20px;
}

/* Stat suffix ".0" should not read as a separate number */
.xb-countdown-item .suffix {
    letter-spacing: -0.02em;
}

/* Deep accent blue is unreadable on the dark panel here, so the lighter tint instead. */
.xb-countdown-item .xb-item--number {
    color: var(--tf-blue-soft);
}

/* --------------------------------------------------------------- legacy */
/* Source photo is portrait — cropped to a landscape-ish box so both columns balance. */
.tf-legacy .tf-legacy-img {
    border-radius: 12px;
    overflow: hidden;
    max-height: 520px;
}

.tf-legacy .tf-legacy-img img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    object-position: center 30%;
    transition: transform 0.6s var(--easing);
}

@media (max-width: 991px) {
    .tf-legacy .tf-legacy-img,
    .tf-legacy .tf-legacy-img img {
        max-height: 380px;
        height: 380px;
    }
}

.tf-legacy .tf-legacy-img:hover img {
    transform: scale(1.04);
}

.tf-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* --------------------------------------------------------------- services */
.tf-service-num {
    display: inline-block;
    margin-bottom: 12px;
    font-family: var(--font-heading);
    font-size: 20px;
    line-height: 1;
    color: var(--tf-blue);
    transition: 0.3s;
}

.tf-service-desc {
    margin-bottom: 26px;
    max-width: 560px;
    transition: 0.3s;
}

/* The hover overlay gradient is hardcoded purple in main.css. */
.xb-service-inner::before {
    background: linear-gradient(259deg, var(--tf-blue) 0%, var(--tf-navy) 100%);
}

/* main.css only lightens the title/tag list on hover — our added number/description would stay dark and unreadable otherwise. */
.xb-service-inner:hover .tf-service-desc,
.xb-service-inner:hover .tf-service-num {
    position: relative;
    z-index: 1;
    color: var(--color-white);
}

/* Source photos have wildly different aspect ratios — pinned height keeps alternating rows lined up. */
.xb-service-img,
.xb-service-img .xb-img {
    display: block;
    height: 100%;
}

.xb-service-img img {
    width: 100%;
    height: 440px;
    object-fit: cover;
}

@media (max-width: 1199px) {
    .xb-service-img img {
        height: 360px;
    }
}

@media (max-width: 767px) {
    .xb-service-img img {
        height: 260px;
    }
}

/* --------------------------------------------------------------- testimonial */
/* Bizox's 200px mosaic tiles upscale 120px Google avatars badly — a tidy row of circular avatars instead. */
.xb-testimonial-author .swiper-wrapper {
    gap: 14px;
}

.xb-testimonial-author .swiper-slide {
    width: 92px !important;
}

@media only screen and (max-width: 1600px) {
    .xb-testimonial-author .swiper-slide {
        width: 92px !important;
    }
}

@media only screen and (min-width: 1200px) and (max-width: 1500px) {
    .xb-testimonial-author .swiper-slide {
        width: 84px !important;
    }
}

@media (max-width: 1199px) {
    .xb-testimonial-author .swiper-slide {
        width: 76px !important;
    }
}

.xb-tes-author img {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.25);
    transition: 0.3s;
}

.xb-tes-author:hover img,
.swiper-slide-thumb-active .xb-tes-author img {
    border-color: var(--tf-blue);
}

/* The oversized decorative arrow and quote chip are scaled for 200px tiles. */
.xb-tes-author .arrow-active,
.xb-tes-author .xb-icon {
    display: none;
}

.xb-testimonial-item .xb-item--img img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
}

/* --------------------------------------------------------------- pricing */
.xb-pricing-top .content {
    max-width: 460px;
}

/* --------------------------------------------------------------- faq */
/* main.css scopes .accordion_box to .service__blockchain only — this Q&A variant is styled from scratch. */
.tf-faq-box {
    margin: 0;
}

.tf-faq-box .accordion {
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(16, 40, 80, 0.12);
    background: #fff;
    transition: 0.3s;
}

.tf-faq-box .accordion:last-child {
    margin-bottom: 0;
}

.tf-faq-box .accordion.active-block {
    border-color: rgba(0, 0, 223, 0.35);
    box-shadow: 0 18px 40px rgba(16, 40, 80, 0.08);
}

.tf-faq-box .acc-btn {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 30px;
    border: 0;
    text-align: left;
    background: #fff;
    appearance: none;
    cursor: pointer;
}

.tf-faq-box .acc-btn .title {
    margin: 0;
    font-size: 21px;
    line-height: 1.4;
    color: var(--tf-navy);
    transition: 0.3s;
}

.tf-faq-box .acc-btn:hover .title,
.tf-faq-box .acc-btn.active .title {
    color: var(--tf-blue);
}

/* plus → minus toggle */
.tf-faq-box .tf-acc-icon {
    position: relative;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 0, 223, 0.08);
    transition: 0.3s;
}

.tf-faq-box .tf-acc-icon::before,
.tf-faq-box .tf-acc-icon::after {
    position: absolute;
    content: '';
    top: 50%;
    left: 50%;
    background: var(--tf-blue);
    transform: translate(-50%, -50%);
    transition: 0.3s;
}

.tf-faq-box .tf-acc-icon::before {
    width: 13px;
    height: 2px;
}

.tf-faq-box .tf-acc-icon::after {
    width: 2px;
    height: 13px;
}

.tf-faq-box .acc-btn.active .tf-acc-icon {
    background: var(--tf-blue);
}

.tf-faq-box .acc-btn.active .tf-acc-icon::before,
.tf-faq-box .acc-btn.active .tf-acc-icon::after {
    background: #fff;
}

.tf-faq-box .acc-btn.active .tf-acc-icon::after {
    height: 2px;
}

.tf-faq-box .acc_body {
    display: none;
}

.tf-faq-box .acc_body.current {
    display: block;
}

.tf-faq-box .acc_body .content {
    padding: 0 30px 30px;
}

.tf-faq-box .acc_body .content p {
    margin: 0;
}

.tf-faq-search { margin-bottom: 18px; }
.tf-faq-search label { display: block; margin-bottom: 9px; font-family: var(--font-heading); font-weight: 600; color: var(--tf-navy); }
.tf-faq-search input { width: 100%; height: 58px; padding: 0 20px; border: 1px solid rgba(16, 40, 80, 0.18); border-radius: 10px; color: var(--tf-navy); background: #fff; }
.tf-faq-results-count { margin: 0 0 20px; color: rgba(16, 40, 80, 0.72); }
.tf-faq-pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.tf-faq-pagination button { min-width: 42px; height: 42px; padding: 0 14px; border: 1px solid rgba(16, 40, 80, 0.16); border-radius: 7px; color: var(--tf-navy); background: #fff; }
.tf-faq-pagination button:hover, .tf-faq-pagination button.is-current { border-color: var(--tf-blue); color: #fff; background: var(--tf-blue); }
.tf-faq-pagination button:disabled { cursor: not-allowed; opacity: 0.45; }

.tf-faq .tf-faq-img {
    height: 100%;
    min-height: 380px;
    border-radius: 12px;
    overflow: hidden;
}

.tf-faq .tf-faq-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 991px) {
    .tf-faq .tf-faq-img {
        min-height: 280px;
    }
}

@media (max-width: 767px) {
    .tf-faq-box .acc-btn {
        padding: 22px 20px;
    }

    .tf-faq-box .acc-btn .title {
        font-size: 18px;
    }

    .tf-faq-box .acc_body .content {
        padding: 0 20px 24px;
    }
}

/* --------------------------------------------------------------- cta */
.tf-cta-wrap {
    position: relative;
    padding: 120px 70px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.tf-cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(16, 40, 80, 0.94) 0%, rgba(16, 40, 80, 0.72) 55%, rgba(16, 40, 80, 0.35) 100%);
}

.tf-cta-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.tf-cta-content .title {
    margin: 14px 0 18px;
    font-size: 56px;
    line-height: 1.1;
}

@media (max-width: 991px) {
    .tf-cta-wrap {
        padding: 80px 30px;
    }

    .tf-cta-content .title {
        font-size: 38px;
    }
}

@media (max-width: 767px) {
    .tf-cta-wrap {
        padding: 60px 20px;
    }

    .tf-cta-content .title {
        font-size: 30px;
    }
}

/* --------------------------------------------------------------- blog */
.xb-blog-item .xb-item--img img {
    width: 100%;
    object-fit: cover;
}

.xb-blog-big .xb-item--img img {
    height: 320px;
}

/* 2x2 grid: cards must match height per row, or the shorter one leaves a gap. */
.tf-blog-grid > [class*="col-"] {
    display: flex;
}

.tf-blog-grid .xb-blog-item {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.tf-blog-grid .xb-blog-item .xb-item--holder {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

/* push every Read more button to the same baseline */
.tf-blog-grid .xb-blog-item .xb-item--btn {
    margin-top: auto;
}

.tf-blog-grid .xb-blog-big .xb-item--img img {
    height: 260px;
}

@media (max-width: 767px) {
    .tf-blog-grid .xb-blog-big .xb-item--img img {
        height: 210px;
    }
}

/* --------------------------------------------------------------- contact */
.xb-contact-method .text.mt-25 {
    margin-top: 25px;
}

/* nice-select sizes itself to its longest option and spills out of the column. */
.xb-select-field .nice-select {
    width: 100%;
    max-width: 100%;
}

.xb-select-field .nice-select .current {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding-right: 24px;
}

.xb-select-field .nice-select .list {
    width: 100%;
}

/* --------------------------------------------------------------- footer */
/* logo-footer.png replaces the theme's giant animated "BIZOX" wordmark, at the same size/role. */
.xb-footer-brand {
    display: block;
    width: 100%;
    height: auto;
}

/* The theme's sweeping line graphic (1782x100) only swept the bottom third of our taller wordmark — stretched to cover it fully. */
.xb-footer-logo .line-shape {
    height: 100%;
}

.xb-footer-logo .line-shape img {
    width: 100%;
    height: 100%;
}

/* main.css sets .xb-list to a flex column — override the direction too. */
.xb-footer_widget .xb-list.xb-year-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px 14px;
}

.xb-footer_widget .xb-list.xb-year-list li {
    margin: 0;
}

.xb-footer_newslatter .xb-footer-social {
    margin-top: 34px;
}

.xb-footer-note {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    line-height: 26px;
}

.xb-footer_widget .xb-widget-title.mt-30 {
    margin-top: 30px;
}

/* Inner pages — about.php, services.php, service.php */

/* --------------------------------------------------------------- breadcrumb */
/* Runs on real photos (theme's own backgrounds are grey placeholders) — needs a scrim to keep the heading legible. */
.tf-breadcrumb {
    position: relative;
    background-size: cover;
    background-position: center;
}

.tf-breadcrumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(16, 40, 80, 0.94) 0%, rgba(16, 40, 80, 0.78) 60%, rgba(16, 40, 80, 0.55) 100%);
}

.tf-breadcrumb .container-fluid {
    position: relative;
    z-index: 1;
}

.tf-breadcrumb .breadcrumb__title,
.tf-breadcrumb .breadcrumb__text,
.tf-breadcrumb .breadcrumb__list,
.tf-breadcrumb .breadcrumb__list a,
.tf-breadcrumb .breadcrumb-item {
    color: var(--color-white);
}

.tf-breadcrumb .breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.tf-breadcrumb .breadcrumb__title {
    border-bottom: 0;
    padding-bottom: 22px;
}

.tf-breadcrumb .breadcrumb-item {
    position: relative;
    list-style: none;
    opacity: 0.85;
}

.tf-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    position: absolute;
    left: -14px;
    opacity: 0.5;
}

.tf-breadcrumb .breadcrumb__list a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------- services grid */
.tf-service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: #f8f5ff;
    transition: 0.35s;
}

.tf-service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 60px rgba(16, 40, 80, 0.14);
}

.tf-service-card .tf-card-img {
    display: block;
    overflow: hidden;
}

.tf-service-card .tf-card-img img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    transition: transform 0.6s var(--easing);
}

.tf-service-card:hover .tf-card-img img {
    transform: scale(1.05);
}

.tf-service-card .tf-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 30px 30px 34px;
}

.tf-card-num {
    font-family: var(--font-heading);
    font-size: 16px;
    line-height: 1;
    color: var(--tf-blue);
}

.tf-card-title {
    margin: 10px 0 14px;
    font-size: 26px;
    line-height: 1.25;
}

.tf-card-title a {
    color: var(--tf-navy);
    transition: 0.3s;
}

.tf-card-title a:hover {
    color: var(--tf-blue);
}

.tf-card-text {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 26px;
}

.tf-card-list {
    margin: 0 0 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tf-card-list li {
    padding: 5px 12px;
    font-size: 13px;
    border-radius: 30px;
    color: var(--tf-navy);
    background: rgba(29, 68, 135, 0.08);
}

.tf-service-card .tf-card-btn {
    margin-top: auto;
}

/* --------------------------------------------------------------- service detail */
.tf-detail-img {
    margin-bottom: 45px;
    border-radius: 12px;
    overflow: hidden;
}

.tf-detail-img img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.tf-detail-body .title {
    margin: 12px 0 22px;
    font-size: 42px;
    line-height: 1.15;
}

.tf-detail-lead {
    font-size: 18px;
    line-height: 32px;
    color: var(--tf-navy);
}

.tf-detail-body p {
    margin-bottom: 20px;
}

.tf-detail-heading {
    margin: 34px 0 16px;
    font-size: 24px;
    color: var(--tf-navy);
}

.tf-detail-list {
    margin: 0 0 20px;
}

.tf-detail-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    line-height: 28px;
}

.tf-detail-list li img {
    flex: 0 0 auto;
    margin-top: 7px;
}

.tf-detail-list li a {
    color: var(--color-default);
    transition: 0.3s;
}

.tf-detail-list li a:hover {
    color: var(--tf-blue);
}

@media (max-width: 767px) {
    .tf-detail-body .title {
        font-size: 30px;
    }

    .tf-detail-img img {
        height: 250px;
    }
}

/* --------------------------------------------------------------- sidebar */
.tf-sidebar {
    position: sticky;
    top: 120px;
}

.tf-sidebar-box {
    padding: 34px 32px;
    margin-bottom: 30px;
    border-radius: 12px;
    background: #f8f5ff;
}

.tf-sidebar-title {
    margin: 0 0 20px;
    font-size: 22px;
    color: var(--tf-navy);
}

.tf-sidebar-nav li {
    border-bottom: 1px solid rgba(16, 40, 80, 0.1);
}

.tf-sidebar-nav li:last-child {
    border-bottom: 0;
}

.tf-sidebar-nav li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
    font-weight: 500;
    color: var(--tf-navy);
    transition: 0.3s;
}

.tf-sidebar-nav li a:hover,
.tf-sidebar-nav li.is-active > a {
    color: var(--tf-blue);
}

.tf-sidebar-arrow {
    flex: 0 0 auto;
    opacity: 0;
    transform: translateX(-6px);
    transition: 0.3s;
}

.tf-sidebar-nav li a:hover .tf-sidebar-arrow,
.tf-sidebar-nav li.is-active .tf-sidebar-arrow {
    opacity: 1;
    transform: translateX(0);
}

.tf-sidebar-cta {
    color: var(--color-white);
    background: linear-gradient(206deg, var(--tf-navy) 0%, var(--tf-blue) 100%);
}

.tf-sidebar-cta .tf-sidebar-title,
.tf-sidebar-cta p {
    color: var(--color-white);
}

.tf-sidebar-contact {
    margin: 22px 0 0;
}

.tf-sidebar-contact li {
    margin-bottom: 8px;
}

.tf-sidebar-contact li a {
    color: var(--color-white);
    opacity: 0.85;
}

.tf-sidebar-contact li a:hover {
    opacity: 1;
    text-decoration: underline;
}

@media (max-width: 991px) {
    .tf-sidebar {
        position: static;
    }
}

/* --------------------------------------------------------------- about page */
.tf-director-quote {
    margin: 22px auto 30px;
    max-width: 940px;
    font-family: var(--font-heading);
    font-size: 34px;
    line-height: 1.4;
    color: var(--color-white);
}

.tf-director-name {
    margin: 0;
    font-size: 22px;
    color: var(--color-white);
}

.tf-director-role {
    font-size: 15px;
    color: var(--tf-blue-soft);
}

@media (max-width: 767px) {
    .tf-director-quote {
        font-size: 22px;
    }
}

.tf-value-card {
    height: 100%;
    padding: 34px 30px 36px;
    border-radius: 12px;
    border: 1px solid rgba(16, 40, 80, 0.12);
    background: #fff;
    transition: 0.35s;
}

.tf-value-card:hover {
    border-color: rgba(29, 68, 135, 0.35);
    box-shadow: 0 22px 50px rgba(16, 40, 80, 0.1);
}

.tf-value-num {
    display: inline-block;
    margin-bottom: 16px;
    font-family: var(--font-heading);
    font-size: 34px;
    line-height: 1;
    color: rgba(29, 68, 135, 0.35);
}

.tf-value-title {
    margin: 0 0 12px;
    font-size: 22px;
    color: var(--tf-navy);
}

.tf-value-text {
    margin: 0;
    font-size: 15px;
    line-height: 27px;
}

/* --------------------------------------------------------------- about testimonials */
.tf-testi-card {
    position: relative;
    height: 100%;
    padding: 36px 30px 32px;
    border-radius: 12px;
    border: 1px solid rgba(16, 40, 80, 0.12);
    background: #fff;
    transition: 0.35s;
}

.tf-testi-card:hover {
    border-color: rgba(29, 68, 135, 0.3);
    box-shadow: 0 22px 50px rgba(16, 40, 80, 0.1);
}

.tf-testi-quote {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: rgba(29, 68, 135, 0.08);
}

.tf-testi-quote img {
    max-width: 20px;
}

.tf-testi-text {
    margin: 0 0 22px;
    font-size: 15px;
    line-height: 27px;
}

.tf-testi-name {
    margin: 0;
    font-size: 19px;
    color: var(--tf-navy);
}

/* --------------------------------------------------------------- home testimonials */
.tf-home-testi .tf-testi-card {
    padding: 22px 24px;
}

.tf-home-testi {
    padding-top: 90px;
    padding-bottom: 90px;
}

.tf-home-testi-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.tf-home-testi-brand img {
    max-height: 24px;
    width: auto;
}

.tf-home-testi-title {
    margin: 0 0 10px;
    font-size: 21px;
    line-height: 1.35;
    color: var(--tf-navy);
}

.tf-home-testi-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tf-home-testi-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.tf-home-testi-meta {
    margin: 4px 0 0;
    font-size: 14px;
    color: var(--tf-blue);
}

.tf-home-testi .tf-testi-text {
    margin-bottom: 16px;
}

/* --------------------------------------------------------------- contact page */
.tf-info-card {
    height: 100%;
    padding: 32px 28px;
    border-radius: 12px;
    border: 1px solid rgba(16, 40, 80, 0.12);
    background: #fff;
    transition: 0.35s;
}

.tf-info-card:hover {
    border-color: rgba(29, 68, 135, 0.3);
    box-shadow: 0 22px 50px rgba(16, 40, 80, 0.1);
}

.tf-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    font-size: 20px;
    border-radius: 50%;
    color: var(--color-white);
    background: linear-gradient(206deg, var(--tf-navy) 0%, var(--tf-blue) 100%);
}

.tf-info-title {
    margin: 0 0 10px;
    font-size: 20px;
    color: var(--tf-navy);
}

.tf-info-card p {
    margin: 0;
    line-height: 27px;
}

.tf-info-card p a {
    color: var(--color-default);
    transition: 0.3s;
}

.tf-info-card p a:hover {
    color: var(--tf-blue);
}

.tf-info-hours {
    font-size: 15px;
}

/* map */
.tf-map {
    height: 420px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(16, 40, 80, 0.1);
}

.tf-map iframe {
    display: block;
    width: 100%;
    height: 100%;
}

/* Keep the map/content column and the form panel aligned at their lower edge. */
.tf-contact-page-row,
.tf-home-contact-row {
    align-items: stretch;
}

.tf-contact-page-row > [class*="col-"],
.tf-home-contact-row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.tf-contact-page-row .xb-contact-form,
.tf-home-contact-row .xb-contact-form {
    height: 100%;
}

/* --------------------------------------------------------------- home contact */
.tf-home-contact {
    padding-top: 120px;
    padding-bottom: 120px;
    scroll-margin-top: 112px;
}

.tf-home-contact .sec-title {
    margin-bottom: 34px;
}

.tf-home-contact .xb-contact-ser_list .text {
    margin-bottom: 20px;
    font-size: 20px;
}

.tf-home-contact .xb-contact-ser_list .list {
    gap: 12px 0;
    padding-bottom: 36px;
}

.tf-home-contact .xb-contact-method {
    padding-top: 28px;
}

.tf-contact-split {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    grid-template-areas:
        "office contact"
        "hours-label hours-values";
    align-items: start;
    column-gap: 34px;
    row-gap: 16px;
}

.tf-contact-split ul {
    width: auto;
    margin: 0;
}

.tf-office-list li {
    font-size: 18px;
    line-height: 1.55;
}

.tf-office-list {
    grid-area: office;
}

.tf-quick-contact {
    grid-area: contact;
}

.tf-hours-label {
    grid-area: hours-label;
}

.tf-hours-label .text {
    margin: 0;
    white-space: nowrap;
}

.tf-hours-values-list {
    grid-area: hours-values;
}

.tf-hours-values-list .tf-hours-values {
    display: flex;
    flex-direction: column;
    font-size: 16px !important;
    line-height: 1.45 !important;
}

.tf-hours-values span {
    display: block;
}

.tf-office-list li:not(.text) {
    align-items: flex-start;
}

.tf-office-list li > span:first-child {
    flex: 0 0 20px;
    display: inline-flex;
    justify-content: center;
    margin-top: 8px;
}

.tf-contact-address {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
}

.tf-contact-split .text {
    font-size: 16px;
    margin-bottom: 6px;
}

.tf-contact-split .text.mt-25 {
    margin-top: 18px;
}

@media (max-width: 1199px) {
    .tf-contact-split {
        grid-template-columns: 1fr;
        grid-template-areas:
            "office"
            "contact"
            "hours-label"
            "hours-values";
        gap: 28px;
    }
}

@media (max-width: 767px) {
    .tf-map {
        height: 300px;
    }
}

/* consent checkbox */
.tf-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 22px;
    color: rgba(255, 255, 255, 0.7);
}

.tf-consent input {
    flex: 0 0 auto;
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: var(--tf-blue);
}

/* --------------------------------------------------------------- form labels */
/* main.css hides the floating label on :valid, but an empty *optional* field is already valid — driven off :placeholder-shown instead. */
.xb-contact-form .xb-input-field input:valid + label,
.xb-contact-form .xb-input-field textarea:valid + label {
    transform: none;
    opacity: 1;
}

.xb-contact-form .xb-input-field input:focus + label,
.xb-contact-form .xb-input-field textarea:focus + label,
.xb-contact-form .xb-input-field input:not(:placeholder-shown) + label,
.xb-contact-form .xb-input-field textarea:not(:placeholder-shown) + label {
    transform: translate(15px, -50%);
    opacity: 0;
}

/* --------------------------------------------------------------- faq page */
.tf-faq-group + .tf-faq-group {
    margin-top: 55px;
}

.tf-faq-group-title {
    margin: 0 0 24px;
    font-size: 24px;
    color: var(--tf-navy);
}

/* --------------------------------------------------------------- team page */
.tf-team-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    height: 420px;
    padding: 30px;
    overflow: hidden;
    border-radius: 12px;
    background-size: cover;
    background-position: center top;
}

.tf-team-holder {
    position: relative;
    z-index: 2;
}

.tf-team-name {
    margin: 0 0 4px;
    font-size: 24px;
    color: var(--color-white);
}

.tf-team-role {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.tf-team-card .glassy-shape {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.tf-team-card .glassy-shape svg {
    width: 100%;
    height: 100%;
}

@media (max-width: 767px) {
    .tf-team-card {
        height: 340px;
    }
}

/* --------------------------------------------------------------- testimonials page */
.tf-google-badge {
    text-align: right;
}

.tf-google-badge .xb-rating {
    justify-content: flex-end;
    color: #f5a623;
}

.tf-google-badge p {
    margin: 6px 0 0;
    font-size: 15px;
}

.tf-review-card {
    height: 100%;
    padding: 30px 28px;
    border-radius: 12px;
    border: 1px solid rgba(16, 40, 80, 0.12);
    background: #fff;
    transition: 0.35s;
}

.tf-review-card:hover {
    border-color: rgba(29, 68, 135, 0.3);
    box-shadow: 0 22px 50px rgba(16, 40, 80, 0.1);
}

.tf-review-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.tf-review-avatar {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
}

.tf-review-name {
    margin: 0;
    font-size: 18px;
    color: var(--tf-navy);
}

.tf-review-meta {
    font-size: 13px;
    color: var(--color-default);
}

.tf-review-google {
    margin-left: auto;
    max-width: 62px;
}

.tf-review-title {
    margin: 0 0 10px;
    font-size: 17px;
    color: var(--tf-blue);
}

.tf-review-text {
    margin: 0;
    font-size: 15px;
    line-height: 27px;
}

/* --------------------------------------------------------------- pricing page */
.tf-price-note {
    max-width: 760px;
    font-size: 15px;
    color: var(--color-default);
}

/* --------------------------------------------------------------- legal pages */
.tf-legal-notice {
    padding: 28px 30px;
    margin-bottom: 45px;
    border-radius: 12px;
    border-left: 4px solid var(--tf-blue);
    background: rgba(29, 68, 135, 0.06);
}

.tf-legal-notice h3 {
    margin: 0 0 12px;
    font-size: 20px;
    color: var(--tf-navy);
}

.tf-legal-notice p {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 27px;
}

.tf-legal-notice p:last-child {
    margin-bottom: 0;
}

.tf-legal-updated {
    font-size: 14px;
    color: var(--color-default);
}

.tf-legal-heading {
    margin: 34px 0 12px;
    font-size: 22px;
    color: var(--tf-navy);
}

.tf-legal-placeholder {
    margin: 0;
    padding: 14px 18px;
    font-size: 14px;
    font-style: italic;
    border-radius: 8px;
    color: #7a7d88;
    background: #f6f6f9;
}

.tf-legal-contact {
    margin-top: 50px;
    padding-top: 34px;
    border-top: 1px solid rgba(16, 40, 80, 0.12);
}

.tf-legal-contact h3 {
    margin: 0 0 12px;
    font-size: 22px;
    color: var(--tf-navy);
}

.tf-legal-contact a {
    color: var(--tf-blue);
}

.tf-legal-contact a:hover {
    text-decoration: underline;
}

/* ============================================================ blog (headless WP)
   Post body is WordPress's own markup (h2/h3, ul/ol, blockquote, wp-block-*) — the theme never styled those, so .tf-post-content does it here. */

.tf-blog-page .blog_details_item {
    margin-bottom: 40px;
}

/* The theme sizes the text column as calc(100% - 362px) but never sets the image column's own width — real WP featured images overflowed and wrapped. */
.tf-blog-page .blog_details_item .xb-item--img {
    flex: 0 0 312px;
    max-width: 312px;
    align-self: stretch;
}

/* .ul_li's align-items:center left the image short of the card — nesting flex all the way down lets it fill the text's height instead. */
.tf-blog-page .blog_details_item .xb-item--img,
.tf-blog-page .blog_details_item .xb-item--img a {
    display: flex;
}

.tf-blog-page .blog_details_item .xb-item--img a {
    flex: 1;
}

.tf-blog-page .blog_details_item .xb-item--img img {
    flex: 1;
    width: 100%;
    min-height: 280px;
    object-fit: cover;
}

@media (max-width: 767px) {
    .tf-blog-page .blog_details_item .xb-item--img {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.tf-post-meta {
    margin: 14px 0 0;
    font-size: 14px;
    color: #7a7d88;
}

/* Filter bar + empty state */
.tf-blog-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 16px 22px;
    border-radius: 10px;
    background: rgba(29, 68, 135, 0.06);
}

.tf-blog-filter p {
    margin: 0;
    font-weight: 500;
    color: var(--tf-navy);
}

.tf-blog-clear {
    font-size: 14px;
    font-weight: 600;
    color: var(--tf-blue);
}

.tf-blog-clear:hover {
    text-decoration: underline;
}

.tf-blog-empty {
    padding: 60px 30px;
    border-radius: 12px;
    text-align: center;
    background: #f6f6f9;
}

.tf-blog-empty h3 {
    margin: 0 0 12px;
    font-size: 24px;
    color: var(--tf-navy);
}

.tf-blog-empty p {
    margin: 0;
    color: #7a7d88;
}

.tf-blog-empty a {
    color: var(--tf-blue);
    text-decoration: underline;
}

/* Pagination — theme ships neutral; brand the active page. */
.xb-pagination-inner li a.active,
.xb-pagination-inner li a:hover {
    background: var(--tf-blue);
    border-color: var(--tf-blue);
    color: #fff;
}

/* ---------------------------------------------------------- single post body */
.tf-post-content {
    font-size: 17px;
    line-height: 1.75;
    color: #4c4f5a;
}

.tf-post-content > *:first-child {
    margin-top: 0;
}

.tf-post-content p {
    margin: 0 0 22px;
}

.tf-post-content h1,
.tf-post-content h2,
.tf-post-content h3,
.tf-post-content h4,
.tf-post-content h5 {
    margin: 42px 0 16px;
    color: var(--tf-navy);
    line-height: 1.3;
}

.tf-post-content h1 { font-size: 32px; }
.tf-post-content h2 { font-size: 28px; }
.tf-post-content h3 { font-size: 23px; }
.tf-post-content h4 { font-size: 20px; }

.tf-post-content a {
    color: var(--tf-blue);
    text-decoration: underline;
}

.tf-post-content strong,
.tf-post-content b {
    color: var(--tf-navy);
}

.tf-post-content ul,
.tf-post-content ol {
    margin: 0 0 24px;
    padding-left: 22px;
}

.tf-post-content li {
    margin-bottom: 10px;
}

.tf-post-content ul li::marker {
    color: var(--tf-blue);
}

.tf-post-content blockquote {
    margin: 30px 0;
    padding: 24px 28px;
    border-left: 4px solid var(--tf-blue);
    border-radius: 0 10px 10px 0;
    font-size: 19px;
    font-style: italic;
    color: var(--tf-navy);
    background: rgba(29, 68, 135, 0.05);
}

.tf-post-content blockquote p:last-child {
    margin-bottom: 0;
}

/* WordPress emits raw <img>, <figure> and wp-block-image wrappers. */
.tf-post-content img,
.tf-post-content figure img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.tf-post-content figure {
    margin: 30px 0;
}

.tf-post-content figcaption {
    margin-top: 10px;
    font-size: 14px;
    text-align: center;
    color: #7a7d88;
}

/* Tables occasionally show up in tax posts — keep them from breaking layout. */
.tf-post-content table {
    width: 100%;
    margin: 0 0 26px;
    border-collapse: collapse;
    font-size: 15px;
    display: block;
    overflow-x: auto;
}

.tf-post-content th,
.tf-post-content td {
    padding: 10px 14px;
    border: 1px solid rgba(16, 40, 80, 0.12);
    text-align: left;
}

.tf-post-content th {
    color: var(--tf-navy);
    background: rgba(29, 68, 135, 0.06);
}

.tf-post-content pre {
    margin: 0 0 24px;
    padding: 18px 20px;
    overflow-x: auto;
    border-radius: 10px;
    font-size: 14px;
    background: #f6f6f9;
}

/* Post header/footer bits */
.tf-post .single-item-image img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 12px;
}

.tf-post .details-content-title {
    font-size: 38px;
    line-height: 1.25;
    color: var(--tf-navy);
}

.tf-post .post_meta .meta_label1 {
    padding: 5px 14px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    color: var(--tf-blue);
    background: rgba(29, 68, 135, 0.1);
}

.tf-post-tags h4 {
    margin: 0 0 16px;
    font-size: 18px;
    color: var(--tf-navy);
}

.tf-post-tags,
.tf-post-nav {
    padding-top: 30px;
    border-top: 1px solid rgba(16, 40, 80, 0.12);
}

/* ------------------------------------------------------------------ sidebar */
.tf-blog-sidebar .sidebar_widget .form-group {
    position: relative;
}

.tf-blog-sidebar .sidebar_widget .search_icon {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    border: 0;
    background: none;
    color: var(--tf-blue);
    cursor: pointer;
}

.tf-blog-sidebar .recent_post_item .post-title a {
    font-size: 16px;
    line-height: 1.45;
    color: var(--tf-navy);
}

.tf-blog-sidebar .recent_post_item span {
    font-size: 13px;
    color: #7a7d88;
}

.tf-blog-sidebar .category_list_block a:hover span,
.tf-blog-sidebar .tags_block a:hover {
    color: var(--tf-blue);
}

.tf-blog-sidebar .tf-sidebar-cta {
    padding: 30px;
    border-radius: 12px;
    background: rgba(29, 68, 135, 0.06);
}

.tf-blog-sidebar .tf-sidebar-cta p {
    margin: 0;
    color: #4c4f5a;
}

@media (max-width: 991px) {
    .tf-post .details-content-title { font-size: 30px; }
    .tf-blog-page .blog_details_item .xb-item--img img { height: 220px; }
}

/* ============================================================ tax return form
   73 fields across five steps — the theme has no multi-step form, so rail/panels/grid/review are all defined here. */

.tf-return-rail {
    position: sticky;
    top: 110px;
    padding: 32px 28px;
    border-radius: 14px;
    background: #f8f5ff;
}

.tf-return-year {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid rgba(16, 40, 80, 0.12);
}

.tf-return-year span {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #7a7d88;
}

.tf-return-year select {
    padding: 8px 12px;
    border: 1px solid rgba(16, 40, 80, 0.18);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--tf-navy);
    background: #fff;
    cursor: pointer;
}

/* -------------------------------------------------------------- step rail */
.tf-steps {
    margin: 0;
}

.tf-step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    cursor: default;
    color: #7a7d88;
    transition: color 0.2s;
}

.tf-step-no {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
    color: #7a7d88;
    background: rgba(16, 40, 80, 0.08);
    transition: 0.2s;
}

.tf-step-label {
    font-size: 15px;
    font-weight: 500;
}

.tf-step.is-current {
    color: var(--tf-navy);
}

.tf-step.is-current .tf-step-no {
    color: #fff;
    background: var(--tf-blue);
}

.tf-return-help {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid rgba(16, 40, 80, 0.12);
}

.tf-return-help h4 {
    margin: 0 0 8px;
    font-size: 17px;
    color: var(--tf-navy);
}

.tf-return-help p {
    margin: 0 0 8px;
    font-size: 14px;
    color: #7a7d88;
}

.tf-return-help a {
    font-weight: 600;
    color: var(--tf-blue);
}

/* --------------------------------------------------------------- progress */
.tf-progress {
    margin-bottom: 34px;
}

.tf-return-retrieve {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
    gap: 24px;
    margin-bottom: 24px;
    padding: 22px 24px;
    border: 1px solid rgba(16, 40, 80, 0.13);
    border-radius: 12px;
    background: #f8f5ff;
}

.tf-return-retrieve h2 {
    margin: 0 0 4px;
    font-size: 20px;
    color: var(--tf-navy);
}

.tf-return-retrieve-copy,
.tf-return-retrieve > button {
    grid-column: 1 / -1;
}

.tf-return-retrieve p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #5f6470;
}

.tf-return-retrieve-field {
    min-width: 0;
}

.tf-return-retrieve label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--tf-navy);
}

.tf-return-retrieve input,
.tf-return-retrieve select,
.tf-return-retrieve .nice-select {
    width: 100%;
    height: 52px;
    min-height: 52px;
    margin: 0;
    padding: 10px 13px;
    border: 1px solid rgba(16, 40, 80, 0.22);
    border-radius: 8px;
    color: var(--tf-navy);
    background: #fff;
}

.tf-return-retrieve .nice-select {
    display: flex;
    align-items: center;
    float: none;
    padding-right: 40px;
    line-height: normal;
}

.tf-return-retrieve .nice-select .current {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tf-return-retrieve button {
    height: 52px;
    min-width: 210px;
    padding: 0 24px;
    border: 0;
    border-radius: 8px;
    font-weight: 600;
    color: #fff;
    background: var(--tf-blue);
    cursor: pointer;
}

.tf-return-retrieve-message {
    margin: -8px 0 24px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.tf-return-retrieve-message--success {
    color: #17623b;
    background: #eaf7ef;
}

.tf-return-retrieve-message--error {
    color: #a3323a;
    background: rgba(213, 72, 79, 0.08);
}

.tf-progress-bar {
    height: 6px;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(16, 40, 80, 0.1);
}

.tf-progress-bar span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 20px;
    background: var(--tf-blue);
    transition: width 0.35s ease;
}

.tf-progress-text {
    margin: 10px 0 0;
    font-size: 14px;
    color: #7a7d88;
}

.tf-progress-text strong {
    color: var(--tf-navy);
}

/* ---------------------------------------------------------------- panels */
.tf-panel {
    display: none;
    border: 0;
    padding: 0;
    margin: 0;
}

.tf-panel.is-active {
    display: block;
}

.tf-panel-head {
    display: block;
    width: 100%;
    float: none;
    margin-bottom: 32px;
    padding: 0;
}

.tf-panel-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 14px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--tf-blue);
    background: rgba(29, 68, 135, 0.1);
}

.tf-panel-title {
    margin: 0 0 10px;
    font-size: 32px;
    color: var(--tf-navy);
}

.tf-panel-intro {
    margin: 0;
    color: #7a7d88;
}

.tf-panel-notice {
    margin: 0 0 26px;
    padding: 14px 20px;
    border-left: 4px solid var(--tf-blue);
    border-radius: 0 8px 8px 0;
    font-weight: 500;
    color: var(--tf-navy);
    background: rgba(29, 68, 135, 0.07);
}

/* ------------------------------------------------------------------ grid */
.tf-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 26px;
}

.tf-col--wide {
    grid-column: 1 / -1;
}

@media (max-width: 767px) {
    .tf-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------------------------------------------------------- FAQ assistant */
.tf-faq-assistant,
.tf-review-invite {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
    padding: 28px;
    border: 1px solid rgba(29, 68, 135, 0.15);
    border-radius: 12px;
    background: #f8f5ff;
}

.tf-faq-assistant > div,
.tf-review-invite > div {
    flex: 1 1 320px;
    min-width: 0;
}

.tf-review-invite {
    margin: 40px 0 0;
}

.tf-faq-assistant h3,
.tf-review-invite h3 {
    margin-bottom: 10px;
    font-size: 24px;
    color: var(--tf-navy);
}

.tf-faq-assistant p,
.tf-review-invite p {
    margin: 8px 0 0;
    font-size: 15px;
}

.tf-faq-assistant .thm-btn,
.tf-review-invite .thm-btn {
    flex-shrink: 0;
}

.tf-faq-assistant .thm-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.tf-faq-assistant-status:empty {
    display: none;
}

@media (max-width: 991px) {
    .tf-faq-assistant,
    .tf-review-invite {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }
    .tf-faq-assistant > div,
    .tf-review-invite > div {
        flex-basis: auto;
    }
}

/* ---------------------------------------------------------------- fields */
.tf-f {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tf-f-label {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--tf-navy);
}

.tf-f-req {
    color: #d5484f;
}

.tf-f-help {
    font-size: 13px;
    color: #7a7d88;
}

.tf-f input[type="text"],
.tf-f input[type="email"],
.tf-f input[type="date"],
.tf-f select {
    height: 50px;   /* overrides main.css's blanket height:75px, meant for its own chunkier floating-label forms */
    min-height: 50px;
    margin: 0;
    width: 100%;
    padding: 0 16px;
    border: 1px solid rgba(16, 40, 80, 0.18);
    border-radius: 9px;
    font-size: 16px;
    color: var(--tf-navy);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tf-f select {
    /* Fallback arrow for if nice-select's JS fails to load — background:#fff above (a shorthand) already erased main.css's own arrow image. */
    appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23102850' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.tf-f input:focus,
.tf-f select:focus {
    outline: 0;
    border-color: var(--tf-blue);
    box-shadow: 0 0 0 3px rgba(29, 68, 135, 0.12);
}

.tf-f.has-error input,
.tf-f.has-error select {
    border-color: #d5484f;
}

/* Nice Select hides the native select, so its replacement needs the same
   invalid-state treatment for required dropdowns. */
.tf-f.has-error .nice-select {
    border-color: #d5484f;
    box-shadow: 0 0 0 3px rgba(213, 72, 79, 0.12);
}

/* Radios: the CRA questions are all Yes/No, so a pill pair reads faster than
   stacked radio rows. */
.tf-f-radios {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tf-f-radio {
    position: relative;
}

.tf-f-radio input {
    position: absolute;
    opacity: 0;
    inset: 0;
    cursor: pointer;
}

.tf-f-radio label {
    display: block;
    min-width: 82px;
    padding: 10px 22px;
    border: 1px solid rgba(16, 40, 80, 0.18);
    border-radius: 40px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: var(--tf-navy);
    background: #fff;
    cursor: pointer;
    transition: 0.2s;
}

.tf-f-radio input:checked + label {
    color: #fff;
    border-color: var(--tf-blue);
    background: var(--tf-blue);
}

.tf-f-radio input:focus-visible + label {
    box-shadow: 0 0 0 3px rgba(29, 68, 135, 0.2);
}

/* Uploads */
.tf-f-file {
    padding: 18px;
    border: 1.5px dashed rgba(29, 68, 135, 0.32);
    border-radius: 10px;
    background: rgba(29, 68, 135, 0.03);
}

.tf-f-file input {
    width: 100%;
    font-size: 15px;
    color: var(--tf-navy);
}

.tf-f-file-hint {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #7a7d88;
}

.tf-file-list {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.tf-file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 10px;
    border-radius: 7px;
    background: #fff;
    font-size: 13px;
}

.tf-file-detail {
    min-width: 0;
    overflow: hidden;
    color: var(--tf-navy);
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tf-file-remove,
.tf-file-replace {
    border: 0;
    cursor: pointer;
    color: #a3323a;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.tf-file-replace {
    display: block;
    margin-top: 12px;
    color: var(--tf-blue);
}

.tf-file-remove:hover,
.tf-file-replace:hover {
    text-decoration: underline;
}

/* --------------------------------------------------- nice-select dropdowns
   Refitted from its default 42px pill to the same box the plain inputs use, so a field next to a dropdown lines up. */
.tf-f .nice-select,
.tf-return-year .nice-select {
    display: flex;
    align-items: center;
    float: none;
    width: 100%;
    height: 50px;
    min-height: 50px;
    margin: 0;
    padding: 0 40px 0 16px;
    border: 1px solid rgba(16, 40, 80, 0.18);
    border-radius: 9px;
    font-size: 16px;
    font-family: inherit;
    line-height: normal;
    background: #fff;
}

.tf-f .nice-select.open,
.tf-f .nice-select:active,
.tf-return-year .nice-select.open,
.tf-return-year .nice-select:active {
    border-color: var(--tf-blue);
    box-shadow: 0 0 0 3px rgba(29, 68, 135, 0.12);
}

.tf-f .nice-select .current,
.tf-return-year .nice-select .current {
    overflow: hidden;
    color: var(--tf-navy);
    text-overflow: ellipsis;
}

.tf-f .nice-select:after,
.tf-return-year .nice-select:after {
    right: 16px;
    width: 7px;
    height: 7px;
    border-color: var(--tf-navy);
    border-width: 2px;
}

.tf-f .nice-select .list,
.tf-return-year .nice-select .list {
    width: 100%;
    margin-top: 6px;
    padding: 6px;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(16, 40, 80, 0.16);
}

.tf-f .nice-select .option,
.tf-return-year .nice-select .option {
    min-height: auto;
    padding: 10px 12px;
    border-radius: 6px;
    line-height: 1.4;
}

/* .focus groups with .selected, not :hover — nice-select's own CSS forces every non-hovered option's background transparent with !important, so a plain blue background here would lose that fight while the white text stayed, going invisible white-on-white. */
.tf-f .nice-select .option.selected,
.tf-f .nice-select .option.focus,
.tf-return-year .nice-select .option.selected,
.tf-return-year .nice-select .option.focus {
    font-weight: 600;
    color: var(--tf-blue);
    background: transparent;
}

.tf-f .nice-select .option:hover,
.tf-return-year .nice-select .option:hover {
    color: #fff;
    background: var(--tf-blue);
}

/* ------------------------------------------------------- date picker (UI)
   jQuery UI's own theme is a bare, dated widget — restyled to a rounded card matching the rest of this form. */
.ui-datepicker {
    width: 300px;
    padding: 16px;
    border: 1px solid rgba(16, 40, 80, 0.1);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(16, 40, 80, 0.18);
    font-family: inherit;
}

.ui-datepicker .ui-datepicker-header {
    padding: 0 0 12px;
    background: none;
    border: 0;
}

.ui-datepicker .ui-datepicker-title {
    margin: 0 2.6em;
    font-weight: 600;
    color: var(--tf-navy);
}

.ui-datepicker select.ui-datepicker-month,
.ui-datepicker select.ui-datepicker-year {
    height: 34px;
    padding: 0 6px;
    border: 1px solid rgba(16, 40, 80, 0.18);
    border-radius: 6px;
    font-size: 13px;
    color: var(--tf-navy);
    background: #fff;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(29, 68, 135, 0.06);
    cursor: pointer;
}

.ui-datepicker .ui-datepicker-prev:hover,
.ui-datepicker .ui-datepicker-next:hover {
    top: 0;
    border: 0;
    background: var(--tf-blue);
}

.ui-datepicker .ui-datepicker-prev:hover:after,
.ui-datepicker .ui-datepicker-next:hover:after {
    border-color: #fff;
}

.ui-datepicker .ui-datepicker-prev:after,
.ui-datepicker .ui-datepicker-next:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    border: solid var(--tf-navy);
    border-width: 0 2px 2px 0;
    transform: translate(-65%, -50%) rotate(135deg);
}

.ui-datepicker .ui-datepicker-next:after {
    transform: translate(-35%, -50%) rotate(-45deg);
}

.ui-datepicker .ui-datepicker-prev span,
.ui-datepicker .ui-datepicker-next span {
    display: none;
}

.ui-datepicker table {
    margin: 4px 0;
    font-size: 14px;
}

.ui-datepicker th {
    padding: 8px 2px;
    color: #7a7d88;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
}

.ui-datepicker td {
    padding: 2px;
}

.ui-datepicker td span,
.ui-datepicker td a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    border: 0;
    border-radius: 50%;
    color: var(--tf-navy);
    text-align: center;
}

.ui-datepicker td a.ui-state-default:hover {
    background: rgba(29, 68, 135, 0.1);
}

.ui-datepicker td a.ui-state-active {
    color: #fff;
    background: var(--tf-blue);
    border: 0;
    font-weight: 600;
}

.ui-datepicker td.ui-datepicker-today a {
    color: var(--tf-blue);
    background: rgba(29, 68, 135, 0.06);
    box-shadow: inset 0 0 0 1.5px var(--tf-blue);
}

.ui-datepicker td.ui-datepicker-today a.ui-state-active {
    color: #fff;
    background: var(--tf-blue);
}

.ui-datepicker .ui-datepicker-unselectable .ui-state-default {
    color: #c7cad2;
}

/* ------------------------------------------------------------ dependents */
.tf-dependents {
    margin-top: 4px;
}

.tf-dep-empty {
    margin: 0;
    padding: 26px;
    border-radius: 10px;
    text-align: center;
    color: #7a7d88;
    background: #f6f6f9;
}

.tf-dep {
    margin-bottom: 26px;
    padding: 26px;
    border: 1px solid rgba(16, 40, 80, 0.12);
    border-radius: 12px;
}

.tf-dep-title {
    margin: 0 0 20px;
    font-size: 18px;
    color: var(--tf-navy);
}

/* ---------------------------------------------------------------- review */
.tf-review-block {
    margin-bottom: 26px;
    padding: 24px 26px;
    border-radius: 12px;
    background: #f8f5ff;
}

.tf-review-block h4 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 18px;
    font-size: 19px;
    color: var(--tf-navy);
}

.tf-review-edit {
    padding: 5px 16px;
    border: 1px solid var(--tf-blue);
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    color: var(--tf-blue);
    background: none;
    cursor: pointer;
    transition: 0.2s;
}

.tf-review-edit:hover {
    color: #fff;
    background: var(--tf-blue);
}

.tf-review-list {
    margin: 0;
}

.tf-review-row {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 14px;
    padding: 9px 0;
    border-top: 1px solid rgba(16, 40, 80, 0.1);
}

.tf-review-row:first-child {
    border-top: 0;
}

.tf-review-row dt {
    font-size: 14px;
    color: #7a7d88;
}

.tf-review-row dd {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    word-break: break-word;
    color: var(--tf-navy);
}

.tf-review-row dd em {
    font-weight: 400;
    color: #a5a8b3;
}

@media (max-width: 575px) {
    .tf-review-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
    }
}

/* ------------------------------------------------------------------- nav */
.tf-panel-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 38px;
    padding-top: 28px;
    border-top: 1px solid rgba(16, 40, 80, 0.12);
}

.tf-panel-nav button {
    padding: 13px 34px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.tf-btn-back {
    border: 1px solid rgba(16, 40, 80, 0.22);
    color: var(--tf-navy);
    background: #fff;
}

.tf-btn-back:hover {
    border-color: var(--tf-navy);
}

.tf-btn-next {
    margin-left: auto;
    border: 1px solid var(--tf-blue);
    color: #fff;
    background: var(--tf-blue);
}

.tf-btn-next:hover:not(:disabled) {
    background: var(--tf-navy);
    border-color: var(--tf-navy);
}

.tf-btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tf-return .tf-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 10px;
    font-size: 15px;
    color: #4c4f5a;
    cursor: pointer;
}

.tf-return .tf-consent input {
    margin-top: 4px;
    flex: 0 0 auto;
}

@media (max-width: 991px) {
    .tf-return-rail {
        position: static;
    }

    .tf-panel-title {
        font-size: 26px;
    }
}

@media (max-width: 767px) {
    .tf-return-retrieve {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .tf-return-retrieve button {
        width: 100%;
        min-width: 0;
    }
}

/* =============================================== form errors & confirmation */

/* Moved off screen rather than display:none — some bots skip hidden inputs. */
.tf-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.tf-form-banner {
    margin-bottom: 28px;
    padding: 16px 22px;
    border-left: 4px solid #d5484f;
    border-radius: 0 8px 8px 0;
    background: rgba(213, 72, 79, 0.07);
}

.tf-form-banner p {
    margin: 0;
    font-weight: 500;
    color: #a3323a;
}

.tf-form-banner p + p {
    margin-top: 8px;
}

.tf-f-error {
    font-size: 13px;
    font-weight: 500;
    color: #d5484f;
}

.tf-f-client-error[hidden] {
    display: none;
}

/* The contact forms sit on a dark panel, where the red above is unreadable. */
.xb-contact-form .tf-f-error {
    display: block;
    margin-top: 6px;
    color: #ffb3b8;
}

.xb-contact-form .tf-form-banner {
    border-left-color: #ffb3b8;
    background: rgba(255, 179, 184, 0.12);
}

.xb-contact-form .tf-form-banner p {
    color: #ffd7da;
}

.xb-input-field.has-error input,
.xb-input-field.has-error textarea {
    border-color: #ffb3b8 !important;
}

/* ------------------------------------------------------------ thank you */
.tf-thanks-card {
    max-width: 720px;
    margin: 0 auto;
    padding: 60px 50px;
    border-radius: 16px;
    text-align: center;
    background: #f8f5ff;
}

.tf-thanks-tick {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 28px;
    border-radius: 50%;
    font-size: 34px;
    color: #fff;
    background: var(--tf-blue);
}

.tf-thanks-card h2 {
    margin: 0 0 16px;
    font-size: 34px;
    color: var(--tf-navy);
}

.tf-spouse-next {
    margin: 28px 0;
    padding: 24px;
    border-radius: 12px;
    background: #f8f5ff;
}

.tf-spouse-next h3 {
    font-size: 23px;
}

.tf-thanks-ref {
    display: inline-block;
    margin: 0 0 22px;
    padding: 10px 24px;
    border-radius: 40px;
    font-size: 17px;
    color: var(--tf-navy);
    background: #fff;
}

.tf-thanks-ref strong {
    letter-spacing: 0.04em;
}

.tf-thanks-card p {
    margin: 0 0 14px;
    color: #4c4f5a;
}

.tf-thanks-card a {
    color: var(--tf-blue);
    text-decoration: underline;
}

@media (max-width: 575px) {
    .tf-thanks-card {
        padding: 40px 24px;
    }

    .tf-thanks-card h2 {
        font-size: 26px;
    }
}
