:root {
    --public-primary: #0A2540;
    --public-blue: #1E3A8A;
    --public-secondary: #7C3AED;
    --public-gradient: linear-gradient(135deg, #0A2540 0%, #1E3A8A 52%, #7C3AED 100%);
    --public-soft: #f5f7fb;
    --public-border: #e2e8f0;
    --public-dark: #0f172a;
    --public-muted: #64748b;
    --public-radius: .5rem;
    --public-select-bg: #FFFFFF;
    --public-select-border: #D1D5DB;
    --public-select-focus: #6366F1;
    --public-select-focus-shadow: 0 0 0 2px rgba(99, 102, 241, .18);
    --public-select-radius: 5px;
    --public-select-height: 34px;
    --public-select-tag-bg: #EEF2FF;
    --public-select-tag-text: #4F46E5;
}

html {
    scroll-behavior: smooth;
}

body.public-site {
    background: #fff;
    color: var(--public-dark);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
}

.public-navbar {
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid rgba(226, 232, 240, .85);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}

.public-brand-mark {
    align-items: center;
    background: var(--public-gradient);
    color: #fff;
    display: inline-flex;
    font-weight: 900;
    height: 2.2rem;
    justify-content: center;
    width: 2.2rem;
}

.public-nav-link {
    color: #334155 !important;
    font-size: .9rem;
    font-weight: 700;
}

.public-nav-link.active,
.public-nav-link:hover {
    color: var(--public-secondary) !important;
}

.public-btn-primary {
    background: var(--public-gradient) !important;
    border: 0 !important;
    box-shadow: 0 14px 30px rgba(124, 58, 237, .24);
    color: #fff !important;
    font-weight: 800;
}

.public-btn-outline {
    border: 1px solid rgba(255, 255, 255, .75) !important;
    color: #fff !important;
    font-weight: 800;
}

.public-section {
    padding: 5rem 0;
}

.public-section-soft {
    background: var(--public-soft);
}

.public-eyebrow {
    color: var(--public-secondary);
    font-size: .8rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.public-heading {
    color: var(--public-primary);
    font-weight: 900;
    letter-spacing: -.04em;
}

.public-card {
    background: #fff;
    border: 1px solid var(--public-border);
    border-radius: var(--public-radius);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
    height: 100%;
    transition: transform .25s ease, box-shadow .25s ease;
}

.public-card:hover {
    box-shadow: 0 24px 55px rgba(15, 23, 42, .12);
    transform: translateY(-4px);
}

.public-icon {
    align-items: center;
    background: var(--public-gradient);
    color: #fff;
    display: inline-flex;
    height: 3rem;
    justify-content: center;
    width: 3rem;
}

.hero-carousel,
.hero-slide {
    min-height: 720px;
}

.hero-slide {
    align-items: center;
    background-position: center;
    background-size: cover;
    display: flex;
    position: relative;
}

.hero-slide::before {
    background:
        linear-gradient(90deg, rgba(10, 37, 64, .96) 0%, rgba(30, 58, 138, .82) 48%, rgba(124, 58, 237, .62) 100%);
    content: "";
    inset: 0;
    position: absolute;
}

.hero-content {
    color: #fff;
    max-width: 760px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.6rem, 6vw, 5.75rem);
    font-weight: 950;
    letter-spacing: -.06em;
    line-height: .95;
}

.hero-text {
    color: rgba(255, 255, 255, .82);
    font-size: 1.15rem;
}

.animate-up {
    animation: animateUp .85s ease both;
}

.animate-up-delay {
    animation: animateUp .85s .18s ease both;
}

.animate-up-delay-2 {
    animation: animateUp .85s .34s ease both;
}

@keyframes animateUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stats-band {
    background: var(--public-gradient);
    color: #fff;
}

.stat-number {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 950;
}

.fleet-card-img {
    background: var(--public-gradient);
    color: #fff;
    min-height: 180px;
}

.testimonial-card {
    background: #fff;
    border-left: 4px solid var(--public-secondary);
}

.public-footer {
    background: #071a2d;
    color: rgba(255, 255, 255, .75);
}

.public-footer a {
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
}

.public-footer a:hover {
    color: #fff;
}

.social-link {
    align-items: center;
    background: rgba(255, 255, 255, .08);
    color: #fff !important;
    display: inline-flex;
    height: 2.25rem;
    justify-content: center;
    width: 2.25rem;
}

.public-site .form-control,
.public-site .form-select {
    border-radius: .35rem !important;
    font-size: .78rem;
    line-height: 1.25;
    min-height: 2.15rem;
    padding: .42rem .58rem;
}

.public-site textarea.form-control {
    min-height: 4rem;
}

.public-site .form-label {
    font-size: .78rem;
    font-weight: 600;
    margin-bottom: .3rem;
}

.public-site .input-group-text {
    border-radius: .35rem;
    font-size: .78rem;
    min-height: 2.15rem;
    padding: .42rem .58rem;
}

.public-site .erp-search-select-field {
    position: relative;
    width: 100%;
}

.public-site .erp-search-select-field > .form-label {
    background: var(--public-select-bg);
    color: var(--public-muted);
    font-size: 11px;
    font-weight: 700;
    left: .48rem;
    line-height: 1.1;
    margin: 0;
    max-width: calc(100% - 1rem);
    overflow: hidden;
    padding: 0 .16rem;
    pointer-events: none;
    position: absolute;
    text-overflow: ellipsis;
    top: .2rem;
    white-space: nowrap;
    z-index: 3;
}

.public-site .ts-wrapper {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    width: 100%;
}

.public-site .ts-wrapper.single .ts-control,
.public-site .ts-wrapper.multi .ts-control {
    align-items: center;
    background: var(--public-select-bg);
    border: 1px solid var(--public-select-border);
    border-radius: var(--public-select-radius);
    box-shadow: none;
    color: var(--public-dark);
    display: flex;
    font-size: 12px;
    min-height: var(--public-select-height);
    padding: .34rem .58rem;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.public-site .erp-search-select-field.has-label .ts-wrapper.single .ts-control,
.public-site .erp-search-select-field.has-label .ts-wrapper.multi .ts-control {
    padding-bottom: .16rem;
    padding-top: .88rem;
}

.public-site .ts-wrapper.focus .ts-control,
.public-site .ts-wrapper.dropdown-active .ts-control {
    border-color: var(--public-select-focus);
    box-shadow: var(--public-select-focus-shadow);
}

.public-site .ts-wrapper.multi .ts-control > div {
    background: var(--public-select-tag-bg);
    border: 0;
    border-radius: 5px;
    color: var(--public-select-tag-text);
    font-size: 11.5px;
    font-weight: 700;
    padding: .18rem .36rem;
}

.public-site .ts-dropdown {
    animation: publicDropdownIn .12s ease-out;
    background: #fff;
    border: 1px solid var(--public-border);
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .16);
    font-size: 12px;
    margin-top: .25rem;
    max-width: min(94vw, 100%);
    overflow: hidden;
    z-index: 1080;
}

.public-site .ts-dropdown .option,
.public-site .ts-dropdown .no-results,
.public-site .ts-dropdown .create,
.public-site .ts-dropdown .loading,
.public-site .ts-dropdown .loading-more-results {
    padding: .42rem .58rem;
}

.public-site .ts-dropdown .active {
    background: #EEF2FF;
    color: #3730A3;
}

.public-site .erp-ts-option mark {
    background: rgba(99, 102, 241, .18);
    border-radius: 3px;
    color: inherit;
    font-weight: 800;
    padding: 0 .08rem;
}

@keyframes publicDropdownIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991.98px) {
    .public-navbar .navbar-collapse {
        background: #fff;
        border: 1px solid var(--public-border);
        box-shadow: 0 18px 45px rgba(15, 23, 42, .1);
        margin-top: .75rem;
        padding: .75rem;
    }

    .hero-carousel,
    .hero-slide {
        min-height: 620px;
    }

    .public-section {
        padding: 3.25rem 0;
    }

    .hero-title {
        font-size: clamp(2.4rem, 10vw, 4rem);
    }
}

@media (max-width: 767.98px) {
    .public-navbar .container {
        padding-inline: .75rem;
    }

    .public-brand-mark {
        height: 1.9rem;
        width: 1.9rem;
    }

    .navbar-brand small {
        display: none;
    }

    .hero-carousel,
    .hero-slide {
        min-height: 560px;
    }

    .hero-slide {
        text-align: center;
    }

    .hero-slide::before {
        background: linear-gradient(180deg, rgba(10, 37, 64, .92), rgba(30, 58, 138, .84), rgba(124, 58, 237, .7));
    }

    .hero-content {
        margin-inline: auto;
    }

    .hero-text {
        font-size: 1rem;
    }

    .hero-content .btn {
        width: 100%;
    }

    .public-section {
        padding: 2.75rem 0;
    }

    .public-heading {
        letter-spacing: -.025em;
    }

    .public-card {
        box-shadow: 0 10px 28px rgba(15, 23, 42, .07);
    }

    .stats-band .row > div {
        border-bottom: 1px solid rgba(255, 255, 255, .14);
        padding-bottom: 1rem;
    }

    .public-footer {
        text-align: center;
    }

    .public-footer .d-flex {
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .hero-carousel,
    .hero-slide {
        min-height: 520px;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .public-section {
        padding: 2.25rem 0;
    }

    .public-card {
        border-radius: .35rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .fleet-card-img {
        min-height: 140px;
    }
}

/* Material outlined inputs (public site) */
.public-site .form-outline {
    margin-bottom: 0;
    position: relative;
}

.public-site .form-outline .form-control,
.public-site .form-outline textarea.form-control {
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 10px !important;
    box-shadow: none !important;
    color: #111827;
    font-size: 14px;
    min-height: 44px;
    padding: 1rem .85rem .45rem;
    transition: border-color .2s ease, box-shadow .2s ease;
    width: 100%;
}

.public-site .form-outline .form-control::placeholder {
    color: transparent;
}

.public-site .form-outline .form-label {
    background: transparent;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    left: .8rem;
    margin: 0;
    padding: 0 .2rem;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transform-origin: left center;
    transition: top .2s ease, transform .2s ease, color .2s ease, font-size .2s ease;
    z-index: 2;
}

.public-site .form-outline .form-control:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, .15) !important;
    outline: 0;
}

.public-site .form-outline .form-control:focus ~ .form-label,
.public-site .form-outline .form-control:not(:placeholder-shown) ~ .form-label,
.public-site .form-outline.has-value .form-label,
.public-site .form-outline.is-focused .form-label {
    background: #fff;
    color: #6366f1;
    font-size: 12px;
    font-weight: 600;
    top: 0;
    transform: translateY(-50%) scale(.92);
}

.public-site .form-outline.erp-date-field .form-control {
    padding-right: 2.65rem;
}

.public-site .form-outline.erp-date-field .erp-field-icon {
    color: #64748b;
    font-size: 1rem;
    pointer-events: none;
    position: absolute;
    right: .85rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.public-site .form-outline.erp-date-field .form-control::-webkit-calendar-picker-indicator {
    cursor: pointer;
    height: 100%;
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 2.65rem;
}
