﻿/* ====================================================================
   🚀 LAST MINUTE MAN & VAN — ULTRA-MODERN BRIGHT UI THEME (2025 EDITION)
   Optimised, enhanced, mobile-first, and animation-ready
==================================================================== */

/* ---------------------------------------------------------
   CSS VARIABLES — GLOBAL THEME SYSTEM
---------------------------------------------------------- */
:root {
    /* ===========================
       NearService Brand Adapter
       =========================== */
    /* Map old "bright" tokens to NearService brand */
    --bright-blue: var(--brand);
    --bright-blue-dark: var(--brand-strong);
    --bright-purple: var(--accent);
    --bright-teal: var(--accent);
    --bright-pink: var(--danger);
    --bright-yellow: var(--warning);
    /* Neutral surfaces (keep) */
    --bg-light: var(--bg);
    --bg-white: var(--surface);
    --border-light: var(--line);
    /* Shadows */
    --shadow-light: rgba(15, 23, 42, 0.08);
    --shadow-strong: rgba(15, 23, 42, 0.14);
    /* Radiuses */
    --radius-base: 14px;
    --radius-large: 22px;
    --radius-small: 8px;
    /* Inputs */
    --input-height: 52px;
    /* Navbar easing */
    --nav-ease: cubic-bezier(.17, .67, .83, .67);
}


/* ---------------------------------------------------------
   GLOBAL BACKGROUND
---------------------------------------------------------- */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin-bottom: 60px;
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: #212529;
    background: var(--bg-light) !important;
    -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------
   HEADINGS
---------------------------------------------------------- */
h1, h2, h3 {
    line-height: 1.6;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ---------------------------------------------------------
   FORM ELEMENTS
---------------------------------------------------------- */
input.form-control,
select.form-select,
textarea.form-control {
    border-radius: var(--radius-base);
    height: var(--input-height);
    border: 1px solid var(--border-light);
    padding: 0.65rem 1rem;
    background: var(--bg-white);
    transition: 0.2s ease, border-color 0.2s;
}

    input.form-control:focus,
    select.form-select:focus,
    textarea.form-control:focus {
        border-color: var(--bright-blue);
        box-shadow: 0 0 0 0.18rem rgba(10,132,255,0.25);
        outline: none;
    }

/* Autofill fix */
@keyframes onAutoFillStart {
    from {
        opacity: .99;
    }

    to {
        opacity: 1;
    }
}

input:-webkit-autofill {
    animation-name: onAutoFillStart;
}

/* ---------------------------------------------------------
   BUTTONS — PREMIUM INTERACTION
---------------------------------------------------------- */
.btn {
    border-radius: var(--radius-base);
    padding: 0.65rem 1.25rem;
    font-weight: 600;
    transition: 0.25s var(--nav-ease);
}

    .btn:focus,
    .btn:active:focus,
    .btn-link.nav-link:focus,
    .form-control:focus,
    .form-check-input:focus {
        box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
        outline: none;
    }

    .btn:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px var(--ring);
    }

/* Gradient “Primary” */
.btn-primary {
    background: linear-gradient(135deg, var(--bright-blue), var(--bright-purple));
    border: none;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(10,132,255,0.35);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 18px rgba(10,132,255,0.45);
    }

/* Outline Accent */
.btn-outline-primary {
    border: 2px solid var(--bright-blue);
    color: var(--bright-blue);
    background: transparent;
}

    .btn-outline-primary:hover {
        background: var(--bright-blue);
        color: #fff !important;
    }

/* Generic outline variant used elsewhere */
.btn-outline-dark {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
}

    .btn-outline-dark:hover {
        border-color: #cfd3dc;
        box-shadow: var(--shadow-sm);
    }

/* ---------------------------------------------------------
   CARD “Glass Panel”
---------------------------------------------------------- */
.card,
.custom-card,
.van-card {
    border-radius: var(--radius-large);
    background: var(--bg-white);
    border: 1px solid #eef1f8;
    box-shadow: 0 6px 16px var(--shadow-light);
    transition: 0.25s ease;
    overflow: hidden;
    animation: fadeInUp 0.7s ease-out;
}

    .card:hover,
    .custom-card:hover,
    .van-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 22px var(--shadow-strong);
    }

.custom-card-header {
    padding: 30px;
    text-align: center;
    color: #fff;
    background-color: #333;
}

    .custom-card-header h2 {
        margin-top: 15px;
        font-size: 28px;
    }

.card-body {
    padding: 30px 25px;
    text-align: center;
    font-size: 16px;
    color: #212529;
}

/* ---------------------------------------------------------
   LANDING PAGE — HERO IMAGE BLOCKS
---------------------------------------------------------- */

/* Full-width hero (desktop) */
.NearService-hero-van {
    background-image: url('/img/landing/Storage Hero Image a.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 420px;
    border-radius: 22px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}

/* Second hero (storage unit scene) */
.NearService-hero-storage {
    background-image: url('/img/landing/Storage Hero Image b.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 420px;
    border-radius: 22px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.18);
    position: relative;
    transition: background-image 1s ease-in-out;
}

    /* Overlay on storage hero (desktop) */
    .NearService-hero-storage::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to left, rgba(0,0,0,0.25), rgba(0,0,0,0.35));
        z-index: 1;
        border-radius: inherit;
    }

    /* Fade transition helper */
    .NearService-hero-storage.fade {
        opacity: 0;
        transition: opacity 0.8s ease-in-out;
    }

.NearService-service-tile img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
}

.NearService-landing-hero h1,
.NearService-landing-hero p,
.NearService-landing-hero .trust span {
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.NearService-landing-hero .btn {
    position: relative;
    z-index: 5;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.NearService-landing-hero h1 {
    color: var(--bright-blue) !important;
    text-shadow: none !important;
    font-weight: 800;
}

.NearService-landing-hero .btn-outline-light {
    border: 2px solid var(--bright-blue) !important;
    color: var(--bright-blue) !important;
    background: #ffffffaa;
    backdrop-filter: blur(6px);
}

    .NearService-landing-hero .btn-outline-light:hover {
        background: var(--bright-blue) !important;
        color: white !important;
    }

/* Variants for storage images */
.NearService-hero-storage-a {
    background-image: url('/img/landing/storage_hero_a.png');
}

.NearService-hero-storage-b {
    background-image: url('/img/landing/storage_hero_b.png');
}

.NearService-hero-storage-c {
    background-image: url('/img/landing/storage_hero_c.png');
}

.NearService-hero-storage-d {
    background-image: url('/img/landing/storage_hero_d.png');
}

/* ---------------------------------------------------------
   WIZARD (Steps Navigation)
---------------------------------------------------------- */
#wizardNav .nav-link {
    border-radius: var(--radius-base);
    background-color: #eef2ff;
    border: 1px solid #d8d9ef;
    padding: 0.7rem 1rem;
    font-weight: 600;
    transition: 0.25s ease;
}

    #wizardNav .nav-link.active {
        background: linear-gradient(135deg, var(--bright-blue), var(--bright-purple));
        color: #fff !important;
        border-color: transparent;
        box-shadow: 0 6px 16px var(--shadow-light);
    }

    #wizardNav .nav-link.completed {
        background-color: var(--bright-teal);
        color: #fff !important;
    }

    #wizardNav .nav-link:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    }

    /* Step completion styles (error-aware) */
    #wizardNav .nav-link.completed {
        background-color: #d1e7dd !important;
        color: #0f5132 !important;
        border-color: #badbcc;
    }

    #wizardNav .nav-link.active {
        background-color: #0d6efd !important;
        color: #fff !important;
    }

/* ---------------------------------------------------------
   INPUT GROUP
---------------------------------------------------------- */
.input-group .input-group-text {
    background: var(--bg-light);
    border-radius: var(--radius-small);
    border: 1px solid var(--border-light);
}

/* ---------------------------------------------------------
   MOBILE RESPONSIVENESS — Wizard & Forms
---------------------------------------------------------- */
@media (max-width: 768px) {
    #wizardNav {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

        #wizardNav .nav-link {
            min-width: 120px;
            white-space: nowrap;
        }

    input.form-control,
    select.form-select {
        height: 48px;
        font-size: 0.95rem;
    }

    header .navbar .navbar-brand img {
        height: 32px;
    }

    .driver-card .card-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .driver-details {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }

    .progress-bar {
        font-size: 0.65rem;
        padding: 0.2rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    td .text-truncate {
        max-width: 160px !important;
    }

    #map,
    #w3wMap {
        height: 250px;
    }
}

/* ============================================================
   FINAL PRODUCTION NAVBAR — Bright, Clean, Consistent
============================================================ */
.NearService-navbar {
    position: sticky;
    top: 0;
    z-index: 9999 !important;
    min-height: 64px;
    display: flex;
    align-items: center;
    /* SAME theme as before */
    backdrop-filter: blur(16px) saturate(180%);
    background: linear-gradient(120deg, rgba(10,132,255,0.88), rgba(123,92,255,0.88));
    border-bottom: 1px solid rgba(255,255,255,0.28);
    padding: 0.65rem 1rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    transition: background 0.3s ease, box-shadow 0.3s ease;
    /* FIX: remove clipping */
    border-radius: 0 !important;
}


    /* Shrink slightly on scroll */
    .NearService-navbar.scrolling {
        background: linear-gradient(120deg, rgba(10,132,255,0.75), rgba(123,92,255,0.75));
        box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    }

    /* NAV LINKS */
    .NearService-navbar .nav-link {
        color: #ffffffee !important;
        font-weight: 500;
        padding: 0.6rem 1rem !important;
        transition: 0.2s ease-in-out;
    }

        .NearService-navbar .nav-link:hover {
            color: #fff !important;
            text-shadow: 0 0 8px rgba(255,255,255,0.6);
        }

/* Toggle button (base) */
.navbar-toggler {
    border: none !important;
    padding: 6px 10px;
    filter: none !important; /* prevent brightness washout */
}

/* FORCE hamburger icon to be visible (white icon) */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='3' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
/* ============================================================
   MOBILE NAVBAR FIX — Make expanded menu readable
   ============================================================ */

.navbar-collapse.show {
    background: linear-gradient( 135deg, rgba(10, 132, 255, 0.92), rgba(123, 92, 255, 0.92) ) !important;
    padding: 1rem 1rem 1.3rem;
    border-radius: 0 0 18px 18px;
    backdrop-filter: blur(16px);
    animation: NearService-mobile-bounce 0.35s ease-out;
}

    /* Ensure mobile nav links are readable */
    .navbar-collapse.show .nav-link {
        color: #ffffff !important;
        font-weight: 600;
        text-shadow: 0 0 6px rgba(0,0,0,0.35);
    }

    /* Dropdown menus inside mobile navbar */
    .navbar-collapse.show .dropdown-menu {
        background: rgba(255,255,255,0.12) !important;
        border: 1px solid rgba(255,255,255,0.25);
        border-radius: 14px;
        backdrop-filter: blur(22px);
    }

    /* Dropdown items inside mobile menu */
    .navbar-collapse.show .dropdown-item {
        color: #ffffff !important;
        font-weight: 500;
    }

        .navbar-collapse.show .dropdown-item:hover {
            background: rgba(255,255,255,0.18) !important;
            color: #fff !important;
        }

/* Mobile nav spacing & prominent login */
@media (max-width: 768px) {
    .NearService-navbar .nav-item > .nav-link {
        padding: 0.85rem 1rem !important;
        font-size: 1.05rem !important;
    }

    .navbar-nav .nav-link.fw-bold {
        font-weight: 700 !important;
    }
}

/* Avatar + role pill (used in header) */
.NearService-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0d6efd;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
}

.NearService-role-pill {
    border: 1px solid #0d6efd;
    color: #0d6efd;
    background: #e7f0ff;
}

/* Dropdown Menu */
.NearService-profile-menu {
    border-radius: 16px;
    padding: 0.25rem 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* ---------------------------------------------------------
   Mobile Bounce on Menu Open
---------------------------------------------------------- */
@keyframes NearService-mobile-bounce {
    0% {
        transform: translateY(-10px);
        opacity: 0;
    }

    70% {
        transform: translateY(2px);
        opacity: 1;
    }

    100% {
        transform: translateY(0);
    }
}

/* ==========================================================
   MOBILE HERO FIXES — MAKES IT LOOK GOOD
========================================================== */
@media (max-width: 768px) {

    .NearService-landing-hero {
        padding-top: 2rem;
        padding-bottom: 2rem;
        text-align: center;
    }

        .NearService-landing-hero h1 {
            font-size: 1.9rem !important;
            line-height: 1.2;
            margin-bottom: 1rem;
        }

        .NearService-landing-hero p {
            font-size: 1rem;
            line-height: 1.45;
            margin-bottom: 1.5rem;
        }

        .NearService-landing-hero .d-flex {
            justify-content: center;
            flex-direction: column;
            gap: 0.75rem;
        }

        .NearService-landing-hero .btn {
            width: 100%;
            max-width: 280px;
            margin: 0 auto;
        }

        .NearService-landing-hero .trust {
            justify-content: center;
            display: flex;
            align-items: center;
        }

    .NearService-hero-storage {
        min-height: 200px !important;
        background-size: contain !important;
        background-position: center bottom !important;
        border-radius: 16px;
        margin-top: 1.5rem;
    }

        .NearService-hero-storage::before {
            background: none !important;
        }
}

/* ---------------------------------------------------------
   HERO + FEATURES + CTA
---------------------------------------------------------- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-image {
    animation: fadeIn 1s ease-in-out;
}

.feature-icon {
    font-size: 1.4rem;
}

.cta-box {
    border-radius: 16px;
    background: #ffffff;
    padding: 32px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform .2s ease, box-shadow .2s ease;
}

    .cta-box:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    }

.learn-section {
    margin-top: 70px;
    padding-top: 50px;
    border-top: 1px solid #e5e5e5;
}

/* Trust Badges */
.trust-badges img {
    height: 40px;
    width: auto;
    margin: 0 20px;
    opacity: 0.9;
    filter: grayscale(20%);
    transition: opacity .2s ease, filter .2s ease;
}

    .trust-badges img:hover {
        opacity: 1;
        filter: grayscale(0%);
    }

.trust-badges img {
    max-height: 45px;
    opacity: 0.85;
    transition: opacity .2s ease;
}

/* ---------------------------------------------------------
   GENERIC ANIMATIONS
---------------------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

/* ---------------------------------------------------------
   WAZE & PROOF BUTTON GROUP
---------------------------------------------------------- */
.route-proof-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem;
    flex-wrap: nowrap;
}

    .route-proof-wrapper .btn {
        border-radius: 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        height: 34px;
        line-height: 1;
        padding: 0 0.75rem;
        font-weight: 500;
        font-size: 0.9rem;
    }

/* Primary Waze look */
.btn-waze {
    color: #0564ff;
    border: 1px solid #0564ff;
    background: #fff;
    transition: all 0.2s ease-in-out;
}

    .btn-waze:hover {
        background-color: #0564ff;
        color: #fff;
        transform: translateY(-1px);
    }

/* Proof matches Waze style for consistency */
.btn-proof {
    color: #258cfb;
    border: 1px solid #258cfb;
    background: #fff;
    transition: all 0.2s ease-in-out;
}

    .btn-proof:hover {
        background: #258cfb;
        color: #fff;
        transform: translateY(-1px);
    }

@media (max-width: 768px) {
    .route-proof-wrapper {
        flex-wrap: wrap;
    }
}

/* ---------------------------------------------------------
   WIZARD BUTTONS (sticky footer controls)
---------------------------------------------------------- */
.wizard-buttons {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 1rem;
    border-top: 1px solid #dee2e6;
    z-index: 10;
}

@media (max-width: 768px) {
    .wizard-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Highlight invalid fields */
.input-validation-error,
.form-control.input-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.15rem rgba(220, 53, 69, .25);
}

/* Highlight nav pills with errors */
.nav-link.has-error {
    border: 1px solid #dc3545 !important;
    color: #dc3545 !important;
    font-weight: 600;
}

/* Smooth step fade */
.tab-pane {
    opacity: 0;
    transition: opacity .25s ease;
}

    .tab-pane.show.active {
        opacity: 1;
    }

/* ---------------------------------------------------------
   UNIFIED HERO SECTION (Shared by all landings)
---------------------------------------------------------- */
.NearService-hero-section {
    padding: 60px 0;
}

    .NearService-hero-section h1 {
        color: var(--bright-blue) !important;
        font-weight: 800;
    }

    .NearService-hero-section p {
        font-size: 1.15rem;
        color: #555;
    }

    .NearService-hero-section .feature-icon {
        font-size: 1.4rem;
    }

    .NearService-hero-section .hero-image {
        animation: fadeIn 1s ease-in-out;
        max-height: 450px;
        object-fit: contain;
    }

/* ---------------------------------------------------------
   GLOBAL PREMIUM GRADIENT BUTTONS (Unified Theme)
---------------------------------------------------------- */
.NearService-btn-gradient {
    background: linear-gradient(135deg, var(--bright-blue), var(--bright-purple));
    border: none;
    color: #fff !important;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(10,132,255,0.28);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

    .NearService-btn-gradient:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 22px rgba(10,132,255,0.40);
        opacity: 0.96;
        color: #fff !important;
    }

/* Outline version matching new palette */
.NearService-btn-outline {
    padding: 14px 32px;
    border-radius: 50px;
    border: 2px solid var(--bright-blue);
    color: var(--bright-blue) !important;
    background: #ffffffaa;
    backdrop-filter: blur(6px);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.25s ease;
}

    .NearService-btn-outline:hover {
        background: var(--bright-blue);
        color: #fff !important;
        transform: translateY(-3px);
    }


/* ==========================================================
   DRIVER REGISTRATION – VEHICLE STEP ENHANCEMENTS (2025)
   Mobile-first refinements + better spacing + consistent UI
========================================================== */

/* Container width for better desktop readability */
.autotrader-form {
    max-width: 900px;
    margin: auto;
}

    /* Universal spacing tuning for mobile */
    .autotrader-form .form-label {
        font-size: 0.9rem;
    }

    .autotrader-form select,
    .autotrader-form input {
        padding: 0.65rem 0.9rem;
        font-size: 0.95rem;
    }

/* Fix spacing between inputs on small screens */
@media (max-width: 576px) {
    .autotrader-form .col-md-6,
    .autotrader-form .col-md-4,
    .autotrader-form .col-md-12 {
        margin-bottom: 12px;
    }

    .autotrader-form .input-group button {
        padding: 0.5rem 0.75rem !important;
    }
}

/* Mileage validation visual cues */
#Mileage.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.15rem rgba(220,53,69,.25) !important;
}

#Mileage.is-valid {
    border-color: #198754 !important;
    box-shadow: 0 0 0 0.15rem rgba(25,135,84,.25) !important;
}

/* Removes unintended margin from removed DVLA column */
.autotrader-form .dvla-placeholder {
    display: none !important;
}
