/* ============================================================
   THE FUELYARD - Custom Bootstrap 5 Theme
   Brand colours: Orange #F58220 / Dark Orange #D96E0E
   ============================================================ */

/* --- Root Variables --- */
:root {
    --ft-green: #F58220;
    --ft-green-dark: #D96E0E;
    --ft-green-light: #FFF0DD;
    --ft-green-pale: #FFF7ED;
    --ft-orange: #F58220;
    --ft-text: #222222;
    --ft-text-light: #555555;
    --ft-border: #dee2e6;
    --ft-dark: #2d3436;
    --ft-gray: #f7f8fa;
    --ft-gray-mid: #e9ecef;
}

/* --- Scroll offset for sticky navbar --- */
html {
    scroll-padding-top: 110px;
    scroll-behavior: smooth;
}

/* --- Global --- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--ft-text);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: var(--ft-green-dark);
    text-decoration: none;
}
a:hover {
    color: #000;
    text-decoration: none;
}

/* --- Navbar --- */
.navbar-ft {
    background-color: var(--ft-dark);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    padding: 1rem 0;
}
.navbar-ft .navbar-brand {
    font-weight: 700;
    color: #fff;
    line-height: 1;
    padding: 0.25rem 0;
    flex-shrink: 0;
}
.navbar-ft .navbar-brand:hover {
    color: #fff;
}
.navbar-ft .navbar-brand.ft-brand {
    gap: 0.5rem;
    align-items: center;
}
.navbar-ft .ft-brand-icon {
    display: block;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    object-fit: cover;
}
.navbar-ft .ft-brand-text {
    display: inline-flex;
    align-items: baseline;
    font-family: Inter, 'Segoe UI', Tahoma, Arial, sans-serif;
    font-size: 3.8rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 0.95;
}
.navbar-ft .ft-brand-fuel {
    color: #ffffff;
}
.navbar-ft .ft-brand-tool {
    color: var(--ft-green);
}
.navbar-ft .ft-brand-reg {
    color: rgba(255,255,255,0.85);
    font-size: 0.42em;
    margin-left: 0.08rem;
    top: -0.7em;
}
.navbar-ft .nav-link {
    color: rgba(255,255,255,0.75);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.5rem 0.75rem;
    transition: color 0.2s;
}
.navbar-ft .nav-link:hover,
.navbar-ft .nav-link.active {
    color: #fff;
    background-color: rgba(255,255,255,0.08);
    border-radius: 4px;
}
.navbar-ft .navbar-toggler {
    border-color: rgba(255,255,255,0.4);
}
.navbar-ft .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --- Nav Login Link --- */
.navbar-ft .nav-link-login {
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 5px;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
}
.navbar-ft .nav-link-login:hover {
    border-color: var(--ft-green);
    background-color: rgba(245,130,32,0.15);
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.6) 100%),
                url('../img/hero-fuelyard-landing-2026-03-08.png') center/cover no-repeat;
    background-position: center, center center;
    color: #fff;
    padding: 2.5rem 0 3rem;
}
.hero-section h1 {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.hero-section .hero-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 480px;
}
.hero-section .hero-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.25rem;
    font-size: 0.85rem;
    opacity: 0.85;
}
.hero-section .hero-stats strong {
    display: block;
    font-size: 1.1rem;
    opacity: 1;
}

/* --- Quote Widget --- */
.quote-widget {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 1.5rem;
}
.quote-widget .card-header-ft {
    background-color: var(--ft-dark);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    padding: 0.75rem;
    border-radius: 8px 8px 0 0;
    margin: -1.5rem -1.5rem 1.25rem -1.5rem;
}
.quote-widget .form-floating > label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--ft-text-light);
}
.quote-widget .form-floating > .form-control,
.quote-widget .form-floating > .form-select {
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 0.9rem;
    height: calc(3rem + 2px);
    padding-top: 1.4rem;
}
.quote-widget .form-floating > .form-control:focus,
.quote-widget .form-floating > .form-select:focus {
    border-color: var(--ft-green);
    box-shadow: 0 0 0 0.2rem rgba(245,130,32,0.25);
}

/* --- Buttons --- */
.btn-ft {
    background-color: var(--ft-green);
    border-color: var(--ft-green);
    color: #fff;
    font-weight: 700;
    border-radius: 6px;
    padding: 0.6rem 1.5rem;
    transition: all 0.2s;
}
.btn-ft:hover {
    background-color: var(--ft-green-dark);
    border-color: var(--ft-green-dark);
    color: #fff;
}
.btn-ft-outline {
    background-color: transparent;
    border: 2px solid var(--ft-green);
    color: var(--ft-green);
    font-weight: 700;
    border-radius: 6px;
    padding: 0.6rem 1.5rem;
    transition: all 0.2s;
}
.btn-ft-outline:hover {
    background-color: var(--ft-green);
    color: #fff;
}

/* --- Nav Pills (login page tabs) --- */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background-color: var(--ft-green);
    color: #fff;
}
.nav-pills .nav-link {
    color: var(--ft-green-dark);
}
.nav-pills .nav-link:hover:not(.active) {
    color: var(--ft-green);
    background-color: var(--ft-green-pale);
}

/* --- Cards --- */
.card-ft {
    border: 1px solid var(--ft-border);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s;
}
.card-ft:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.card-ft .card-header {
    background-color: var(--ft-green-pale);
    border-bottom: 1px solid var(--ft-border);
    font-weight: 600;
}

/* --- Feature List (home page) --- */
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
}
.feature-item .feature-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: var(--ft-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ft-green);
    font-size: 1.1rem;
}
.feature-item h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
    color: var(--ft-text);
}
.feature-item p {
    font-size: 0.9rem;
    color: var(--ft-text-light);
    margin-bottom: 0;
}

/* --- Sidebar Panel --- */
.sidebar-panel {
    background: #fff;
    border: 1px solid var(--ft-border);
    border-top: 3px solid var(--ft-green);
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.sidebar-panel-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--ft-text);
}
.sidebar-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--ft-border);
    font-size: 0.9rem;
    color: var(--ft-text-light);
}
.sidebar-stat-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ft-text);
}

/* --- Search Results --- */
.result-card {
    border: 1px solid var(--ft-border);
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    background: #fff;
    transition: all 0.2s;
}
.result-card:hover {
    border-color: var(--ft-green);
    box-shadow: 0 4px 16px rgba(245,130,32,0.15);
}
.result-card .price-tag {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ft-green-dark);
}
.result-card .price-ppl {
    font-size: 0.85rem;
    color: var(--ft-text-light);
}
.result-card .supplier-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ft-orange);
}

/* --- Checkout Steps --- */
.checkout-steps {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
}
.checkout-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ft-text-light);
    position: relative;
}
.checkout-step.active {
    color: var(--ft-green-dark);
}
.checkout-step .step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}
.checkout-step.active .step-number {
    background-color: var(--ft-green);
}
.checkout-step.completed .step-number {
    background-color: var(--ft-green-dark);
}

/* --- News Cards --- */
.news-card {
    border-left: 4px solid var(--ft-green);
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    background: var(--ft-green-pale);
    border-radius: 0 6px 6px 0;
}
.news-card h6 {
    color: var(--ft-green-dark);
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.news-card p {
    font-size: 0.85rem;
    color: var(--ft-text-light);
    margin-bottom: 0;
}

/* --- Footer --- */
.footer-ft {
    background-color: var(--ft-dark);
    color: rgba(255,255,255,0.7);
    padding: 2.5rem 0 1.5rem;
    font-size: 0.85rem;
}
.footer-ft h6 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}
.footer-ft a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-ft a:hover {
    color: var(--ft-green);
}
.footer-ft .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

/* --- Section Headings --- */
.section-heading {
    color: var(--ft-text);
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

/* --- Utility --- */
.bg-ft-green, .bg-ft-orange { background-color: var(--ft-green) !important; }
.bg-ft-green-dark, .bg-ft-orange-dark { background-color: var(--ft-green-dark) !important; }
.bg-ft-green-light, .bg-ft-orange-light { background-color: var(--ft-green-light) !important; }
.bg-ft-green-pale, .bg-ft-orange-pale { background-color: var(--ft-green-pale) !important; }
.text-ft-green, .text-ft-orange { color: var(--ft-green) !important; }
.text-ft-green-dark, .text-ft-orange-dark { color: var(--ft-green-dark) !important; }

/* --- Form Pages (checkout, contact, etc.) --- */
.form-page {
    max-width: 600px;
    margin: 0 auto;
}
.form-page .form-label {
    font-weight: 600;
    font-size: 0.85rem;
}

/* --- Breadcrumb --- */
.breadcrumb-ft {
    background: transparent;
    padding: 0.5rem 0;
    font-size: 0.8rem;
}
.breadcrumb-ft .breadcrumb-item a {
    color: var(--ft-green-dark);
}
.breadcrumb-ft .breadcrumb-item.active {
    color: var(--ft-text-light);
}

/* --- Cookie Consent --- */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--ft-dark);
    color: rgba(255,255,255,0.85);
    padding: 1rem 0;
    font-size: 0.85rem;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}
.cookie-consent a {
    color: var(--ft-green);
}

/* --- Text Size Toggle --- */
.text-size-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: var(--ft-text-light);
}
.text-size-bar span {
    font-weight: 500;
}
.text-size-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--ft-border);
    border-radius: 6px;
    background: #fff;
    color: var(--ft-text);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1;
}
.text-size-btn:hover {
    border-color: var(--ft-green);
    color: var(--ft-green);
}
.text-size-btn.active {
    background: var(--ft-green);
    border-color: var(--ft-green);
    color: #fff;
}

/* Large text mode */
body.ft-large-text .form-label,
body.ft-large-text .form-control,
body.ft-large-text .form-select,
body.ft-large-text .form-check-label {
    font-size: 1.1rem;
}
body.ft-large-text .form-control,
body.ft-large-text .form-select {
    padding: 0.75rem 1rem;
    height: auto;
}
body.ft-large-text .table td,
body.ft-large-text .table th {
    font-size: 1.05rem;
    padding: 0.75rem 0.5rem;
}
body.ft-large-text p,
body.ft-large-text li,
body.ft-large-text .alert {
    font-size: 1.05rem;
    line-height: 1.7;
}
body.ft-large-text h4, body.ft-large-text h5 {
    font-size: 1.3rem;
}
body.ft-large-text .btn-lg {
    font-size: 1.1rem;
    padding: 0.75rem 2rem;
}
body.ft-large-text .checkout-step {
    font-size: 1rem;
}
body.ft-large-text .result-card .price-tag,
body.ft-large-text .rcv2-meta-value.is-price {
    font-size: 1.4rem;
}
body.ft-large-text .result-card .price-ppl,
body.ft-large-text .result-card .supplier-name,
body.ft-large-text .rcv2-meta-value,
body.ft-large-text .rcv2-product-name {
    font-size: 1.1rem;
}

/* --- Dark Section --- */
.bg-ft-dark {
    background-color: var(--ft-dark) !important;
    color: #fff;
}
.bg-ft-dark .section-heading {
    color: #fff;
}
.bg-ft-gray { background-color: var(--ft-gray) !important; }

/* --- Trust Banner --- */
.trust-banner {
    background: linear-gradient(180deg, #fde8cc 0%, #fef0dc 100%);
    color: var(--ft-dark);
    padding: 0.85rem 0 0.35rem;
    position: relative;
    overflow: hidden;
}
.trust-banner::before,
.trust-banner::after {
    display: none;
}
.trust-banner .container {
    position: relative;
    z-index: 1;
}
.trust-banner-panel {
    background: linear-gradient(180deg, #fff5e8 0%, #feeedd 100%);
    color: var(--ft-dark);
    border-radius: 18px;
    border: 1px solid rgba(245,130,32,0.20);
    padding: 1rem 1.25rem;
    box-shadow: 0 8px 18px rgba(54, 34, 10, 0.06);
    gap: 1.25rem;
}
.trust-banner-copy {
    max-width: 540px;
}
.trust-banner-press {
    flex-shrink: 0;
}
.trust-banner h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0;
    letter-spacing: -0.02em;
    color: var(--ft-green-dark);
}
.trust-banner p {
    font-size: 0.9rem;
    opacity: 1;
    color: rgba(45,52,54,0.82);
    margin-bottom: 0;
}
.trust-banner .trust-banner-eyebrow {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    opacity: 1;
    color: rgba(45,52,54,0.55);
}
.trust-banner .press-logos > span {
    background: rgba(245,130,32,0.10);
    border: 1px solid rgba(245,130,32,0.20);
    color: var(--ft-dark);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
}

/* --- Phone CTA --- */
.phone-cta {
    background: linear-gradient(180deg, #fde8cc 0%, #fef0dc 100%);
    padding-top: 0.35rem !important;
    padding-bottom: 0.95rem !important;
}
.phone-cta-panel {
    background: linear-gradient(180deg, #fff5e8 0%, #feeedd 100%);
    border: 1px solid rgba(245,130,32,0.20);
    border-radius: 18px;
    padding: 1rem 1.25rem;
    box-shadow: 0 8px 18px rgba(54, 34, 10, 0.06);
}

/* --- Image Banner Sections --- */
.scenic-banner {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.scenic-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45,52,54,0.4);
}
.scenic-banner-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
    padding: 1rem;
}
.scenic-banner-content > div {
    width: 100%;
}
.scenic-banner-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0;
    letter-spacing: -0.02em;
}
.scenic-banner-content p {
    font-size: 1.05rem;
    opacity: 0.95;
    margin-bottom: 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.why-section-bg {
    background: #fff;
}

/* --- Responsive adjustments --- */

/* Tablet */
@media (max-width: 991.98px) {
    .hero-section {
        background-position: center, 38% 66%;
    }
    .hero-section h1 {
        font-size: 1.9rem;
    }
    .hero-section .hero-stats {
        gap: 1rem;
    }
    .quote-widget {
        margin-top: 1.5rem;
    }
    .section-heading {
        font-size: 1.25rem;
    }
    /* Stack checkout steps on tablet */
    .checkout-steps {
        flex-wrap: wrap;
    }
}

/* Phone */
@media (max-width: 575.98px) {
    /* Navbar - compact on mobile */
    .navbar-ft {
        padding: 0.5rem 0;
    }
    .navbar-ft .ft-brand-icon {
        width: 3.8rem;
        height: 3.8rem;
    }
    .navbar-ft .ft-brand-text {
        font-size: 2.8rem;
    }
    .navbar-ft .ft-brand-reg {
        font-size: 0.35em;
    }
    .navbar-ft .nav-link {
        font-size: 0.95rem;
        padding: 0.6rem 0.5rem;
    }
    .navbar-ft .nav-link-login {
        font-size: 0.9rem;
    }

    /* Scenic banners */
    .scenic-banner {
        height: 200px;
    }
    .scenic-banner-content h3 {
        font-size: 1.2rem;
    }
    .scenic-banner-content p {
        font-size: 0.85rem;
    }

    /* Hero */
    .hero-section {
        padding: 1.25rem 0 1.5rem;
        text-align: center;
        background-position: center, 42% 62%;
    }
    .hero-section h1 {
        font-size: 1.4rem;
    }
    .hero-section .hero-subtitle {
        font-size: 0.88rem;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-section .hero-stats {
        justify-content: center;
        gap: 0.5rem;
        font-size: 0.72rem;
        margin-top: 1rem;
    }
    .hero-section .hero-stats strong {
        font-size: 0.88rem;
    }

    /* Quote widget */
    .quote-widget {
        margin-top: 1rem;
        padding: 0.85rem;
        border-radius: 10px;
    }
    .quote-widget .card-header-ft {
        margin: -0.85rem -0.85rem 0.75rem -0.85rem;
        font-size: 0.95rem;
        padding: 0.5rem;
    }
    .quote-widget .form-floating {
        margin-bottom: 0.35rem !important;
    }
    .quote-widget .form-floating > .form-control,
    .quote-widget .form-floating > .form-select {
        height: calc(2.75rem + 2px);
        font-size: 0.85rem;
    }
    .quote-widget .form-floating > label {
        font-size: 0.8rem;
    }
    .quote-widget .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    /* Stats bar cards */
    .card-ft p, .card-ft .fs-3 {
        font-size: 1.2rem !important;
    }

    /* Section spacing */
    section.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    section.py-4 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    .section-heading {
        font-size: 1.15rem;
    }

    /* Feature items */
    .feature-item {
        padding: 0.5rem 0;
        gap: 0.75rem;
    }
    .feature-item .feature-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    .feature-item h5 {
        font-size: 0.9rem;
    }
    .feature-item p {
        font-size: 0.82rem;
    }

    /* Sidebar panel */
    .sidebar-panel {
        padding: 1rem;
    }
    .sidebar-stat {
        font-size: 0.85rem;
        padding: 0.5rem 0;
    }
    .sidebar-stat-value {
        font-size: 1rem;
    }

    /* Price chart */
    .card-ft[style*="height: 350px"] {
        height: 250px !important;
    }

    /* When to buy badges */
    .badge.fs-6 {
        font-size: 0.7rem !important;
    }

    /* Price alerts */
    .bg-ft-dark .card-ft {
        border: none;
    }

    /* Trust signals */
    .bi.fs-2 {
        font-size: 1.4rem !important;
    }

    /* Trust banner - scale down for phones */
    .trust-banner {
        padding: 0.75rem 0 0.25rem;
    }
    .trust-banner-panel {
        border-radius: 16px;
        padding: 0.9rem 0.95rem;
    }
    .trust-banner h3 {
        font-size: 1rem;
    }
    .trust-banner p {
        font-size: 0.78rem;
    }
    .trust-banner .trust-banner-eyebrow {
        font-size: 0.64rem;
        letter-spacing: 2.6px;
    }
    .trust-banner .press-logos > span {
        font-size: 0.72rem !important;
        padding: 0.25rem 0.6rem;
    }
    .phone-cta {
        padding-top: 0.25rem !important;
        padding-bottom: 0.75rem !important;
    }
    .phone-cta-panel {
        border-radius: 16px;
        padding: 0.9rem 0.95rem;
    }

    /* Results page - mobile card layout */
    .result-card {
        padding: 0.85rem;
    }
    .result-card .price-tag {
        font-size: 1.4rem;
    }
    .result-card .row > [class*="col-md-"] {
        margin-bottom: 0.35rem;
    }
    .result-card .row > [class*="col-md-"]:last-child {
        margin-bottom: 0;
    }

    /* Results search form - enlarge for touch */
    .result-card .form-control-sm,
    .form-control-sm,
    .form-select-sm {
        min-height: 38px;
        font-size: 0.88rem;
    }

    /* Phone CTA section */
    .btn-lg {
        font-size: 0.88rem;
        padding: 0.5rem 1rem;
    }
    .btn-ft-outline {
        padding: 0.45rem 0.8rem;
        font-size: 0.82rem;
    }

    /* Chart range buttons - wrap */
    #chartRangeGroup {
        flex-wrap: wrap;
    }

    /* Price alerts form */
    #price-alerts .col-sm-auto {
        width: 100%;
    }
    #price-alerts .btn {
        width: 100%;
    }

    /* Callback modal - stack phone/postcode on mobile */
    .modal .col-7,
    .modal .col-5 {
        width: 100% !important;
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Relaunch banner */
    .text-center.py-2 {
        font-size: 0.75rem;
    }

    /* UK Average price bar */
    .d-flex.gap-4 {
        gap: 0.75rem !important;
        font-size: 0.78rem !important;
    }

    /* Supplier CTA */
    section[style*="suppliers-cta"] {
        padding: 2rem 0 !important;
    }

    /* Cookie consent */
    .cookie-consent {
        font-size: 0.78rem;
        padding: 0.75rem 0;
    }
    .cookie-consent .container {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    /* Footer */
    .footer-ft {
        padding: 1.5rem 0 1rem;
        font-size: 0.8rem;
    }
    .footer-ft h6 {
        margin-bottom: 0.5rem;
        margin-top: 0.5rem;
    }

    /* Checkout steps - horizontal scroll on tiny screens */
    .checkout-steps {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 0;
        -webkit-overflow-scrolling: touch;
    }
    .checkout-step {
        font-size: 0.75rem;
        padding: 0.4rem 0.5rem;
        white-space: nowrap;
    }
    .checkout-step .step-number {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }

    /* How It Works badges */
    .hiw-overlay .text-center span {
        display: block;
        margin-bottom: 0.25rem;
    }
}

/* ============================================================
   RESULTS PAGE V2 - Card Grid Layout
   ============================================================ */

/* Page background */
.results-page {
    background: #f5f5f7;
    min-height: 70vh;
}

/* Count header */
.results-count {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}
.results-count span {
    font-weight: 400;
    color: #888;
}

/* --- Sidebar: clean, borderless sections --- */
.results-filter-section {
    margin-bottom: 2rem;
}
.results-filter-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999;
    margin-bottom: 0.85rem;
}
.results-filter-section .form-control {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.9rem;
    padding: 0.6rem 0.85rem;
}
.results-filter-section .form-control:focus {
    border-color: var(--ft-green);
    box-shadow: 0 0 0 3px rgba(245,130,32,0.12);
}
.results-filter-section .form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 0.3rem;
}
.results-filter-section .btn {
    border-radius: 10px;
}

/* Stat rows (sidebar) */
.results-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0;
    font-size: 0.85rem;
    color: #888;
}
.results-stat-row + .results-stat-row {
    border-top: 1px solid #eee;
}
.results-stat-value {
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a1a;
}

/* --- Result Cards --- */
.result-card-v2 {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    border: 1px solid transparent;
    transition: all 0.25s ease;
}
.result-card-v2:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
    transform: translateY(-3px);
}
.result-card-v2.is-best {
    border-color: var(--ft-green);
    box-shadow: 0 4px 12px rgba(245,130,32,0.12), 0 1px 3px rgba(0,0,0,0.04);
}

/* Card header */
.rcv2-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.rcv2-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f0f0;
    font-weight: 700;
    font-size: 0.82rem;
    color: #444;
    flex-shrink: 0;
}
.rcv2-rank.is-first {
    background: #1a1a1a;
    color: #fff;
}
.rcv2-badge-best {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    background: var(--ft-green);
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
}

/* Product name */
.rcv2-product-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.2rem;
}
.rcv2-location {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 1rem;
}

/* Metadata row - spread across like the inspiration */
.rcv2-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}
.rcv2-meta-item {
    text-align: center;
    flex: 1;
}
.rcv2-meta-item:first-child {
    text-align: left;
}
.rcv2-meta-item:last-child {
    text-align: right;
}
.rcv2-meta-label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #aaa;
    margin-bottom: 0.2rem;
}
.rcv2-meta-value {
    font-weight: 700;
    font-size: 0.92rem;
    color: #1a1a1a;
}
.rcv2-meta-value.is-price {
    color: var(--ft-green-dark);
    font-size: 1.15rem;
}

/* Description */
.rcv2-desc {
    font-size: 0.84rem;
    color: #666;
    line-height: 1.55;
    margin-bottom: 1rem;
}

/* Tags */
.rcv2-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}
.rcv2-tag {
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.28rem 0.6rem;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
    color: #555;
    background: #fafafa;
}

/* Card footer */
.rcv2-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}
.rcv2-footer .btn {
    border-radius: 10px;
    font-weight: 600;
}

/* No results / error states */
.results-empty {
    background: #fff;
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.results-empty-icon {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
}
.results-empty h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}
.results-empty p {
    font-size: 0.9rem;
    color: #888;
    max-width: 400px;
    margin: 0 auto 1.25rem;
}
.results-fewer-notice {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-size: 0.85rem;
    color: #92400e;
    margin-bottom: 1.25rem;
}

/* Price note */
.results-price-note {
    background: #fff;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-size: 0.8rem;
    color: #999;
    margin-top: 1.5rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.results-price-note a {
    color: #999;
    text-decoration: underline;
}

/* Trust footer */
.results-trust {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1.5rem 0;
    font-size: 0.78rem;
    color: #bbb;
}
.results-trust i {
    margin-right: 0.3rem;
}

/* --- Results V2 Responsive --- */
@media (max-width: 991.98px) {
    .results-count {
        font-size: 1.5rem;
    }
    .results-trust {
        gap: 1rem;
        flex-wrap: wrap;
    }
}
@media (max-width: 575.98px) {
    .results-page {
        padding-bottom: 0;
    }
    .results-count {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    .result-card-v2 {
        padding: 1.15rem;
        border-radius: 14px;
    }
    .rcv2-rank {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }
    .rcv2-product-name {
        font-size: 0.95rem;
    }
    .rcv2-meta-value {
        font-size: 0.85rem;
    }
    .rcv2-meta-value.is-price {
        font-size: 1rem;
    }
    .rcv2-meta-label {
        font-size: 0.6rem;
    }
    .rcv2-desc {
        font-size: 0.8rem;
    }
    .results-trust {
        gap: 0.75rem;
        font-size: 0.72rem;
    }
}

/* Small phones (320-375px) */
@media (max-width: 374px) {
    .navbar-ft .ft-brand-text {
        font-size: 2.4rem;
    }
    .navbar-ft .ft-brand-icon {
        width: 3.4rem;
        height: 3.4rem;
    }
    .hero-section h1 {
        font-size: 1.2rem;
    }
    .hero-section .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
    }
    .hero-section .hero-stats > div {
        text-align: center;
    }
    .result-card .price-tag {
        font-size: 1.2rem;
    }
    .trust-banner .press-logos {
        flex-direction: column;
        gap: 0.35rem !important;
    }
}
