/* ============================================================
   FUELTOOL.CSS - Custom Bootstrap 5 Theme
   Brand colours: Green #5DAC46 / Dark Green #4E8F3A
   ============================================================ */

/* --- Root Variables --- */
:root {
    --ft-green: #5DAC46;
    --ft-green-dark: #4E8F3A;
    --ft-green-light: #E9FDD7;
    --ft-green-pale: #EEF5E9;
    --ft-orange: #E15A00;
    --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(93,172,70,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/FueltoolBanner.jpeg') center/cover no-repeat;
    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(93,172,70,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(93,172,70,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 { background-color: var(--ft-green) !important; }
.bg-ft-green-dark { background-color: var(--ft-green-dark) !important; }
.bg-ft-green-light { background-color: var(--ft-green-light) !important; }
.bg-ft-green-pale { background-color: var(--ft-green-pale) !important; }
.text-ft-green { color: var(--ft-green) !important; }
.text-ft-green-dark { color: var(--ft-green-dark) !important; }
.text-ft-orange { color: var(--ft-orange) !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 {
    font-size: 1.9rem;
}
body.ft-large-text .result-card .price-ppl,
body.ft-large-text .result-card .supplier-name {
    font-size: 0.95rem;
}

/* --- 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(135deg, #3a7d32 0%, #2c5e27 50%, #1a4a1a 100%);
    color: #fff;
    padding: 1.5rem 0;
    position: relative;
    overflow: hidden;
}
.trust-banner::before,
.trust-banner::after {
    display: none;
}
.trust-banner .container {
    position: relative;
    z-index: 1;
}
.trust-banner h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0;
    letter-spacing: -0.02em;
}
.trust-banner p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0;
}
.trust-banner .press-divider {
    width: 50px;
    height: 2px;
    background: rgba(255,255,255,0.4);
    margin: 0 auto;
    border-radius: 2px;
}
.trust-banner .press-logos > span {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    backdrop-filter: blur(4px);
}

/* --- 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 h1 {
        font-size: 1.9rem;
    }
    .hero-section .hero-stats {
        gap: 1rem;
    }
    .quote-widget {
        margin-top: 1.5rem;
    }
    .section-heading {
        font-size: 1.25rem;
    }
}

/* Phone */
@media (max-width: 575.98px) {
    /* Navbar */
    .navbar-ft .ft-brand-icon {
        width: 2.6rem;
    }
    .navbar-ft .ft-brand-text {
        font-size: 2.2rem;
    }

    /* 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;
    }
    .hero-section h1 {
        font-size: 1.5rem;
    }
    .hero-section .hero-subtitle {
        font-size: 0.9rem;
        max-width: 100%;
    }
    .hero-section .hero-stats {
        justify-content: center;
        gap: 0.5rem;
        font-size: 0.75rem;
        margin-top: 1rem;
    }
    .hero-section .hero-stats strong {
        font-size: 0.95rem;
    }

    /* 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;
    }
    .feature-item .feature-icon {
        width: 34px;
        height: 34px;
        font-size: 0.95rem;
    }
    .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;
    }

    /* Results page */
    .result-card {
        padding: 1rem;
    }
    .result-card .price-tag {
        font-size: 1.3rem;
    }

    /* Buttons */
    .btn-lg {
        font-size: 0.9rem;
        padding: 0.55rem 1.2rem;
    }
    .btn-ft-outline {
        padding: 0.45rem 1rem;
        font-size: 0.85rem;
    }

    /* 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;
    }
}
