/* =========================================================
   FLASH DELIVERY — PUBLIC FRONTEND
   Main stylesheet
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@300;400;500;600;700;800&display=swap');

:root {
    --flash-navy: #071b2d;
    --flash-navy-2: #0b2238;
    --flash-dark: #080d13;
    --flash-dark-2: #111827;
    --flash-yellow: #ffb400;
    --flash-yellow-hover: #e9a500;
    --flash-orange: #ff7200;
    --flash-white: #ffffff;
    --flash-bg: #f6f7f9;
    --flash-soft: #f8f9fb;
    --flash-line: #e4e7ec;
    --flash-text: #101828;
    --flash-muted: #667085;
    --flash-success: #15803d;
    --flash-danger: #dc2626;
    --flash-radius: 18px;
    --flash-shadow: 0 12px 35px rgba(15, 23, 42, .08);
}

/* =========================================================
   1. GLOBAL RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    direction: rtl;
    font-family: 'Alexandria', sans-serif;
    color: var(--flash-text);
    background: #fff;
    line-height: 1.75;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--flash-orange);
}

button,
input,
select,
textarea {
    font: inherit;
}

img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
}

img,
video {
    height: auto;
}

header,
nav,
main,
footer,
section,
article,
aside,
form {
    max-width: 100%;
}

p,
span,
div,
a,
strong,
label,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* =========================================================
   2. BOOTSTRAP SAFETY / RESPONSIVE FOUNDATION
   ========================================================= */

.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
    width: 100%;
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
}

.container-fluid {
    width: 100%;
    max-width: 100%;
}

.row {
    max-width: 100%;
}

.row > *,
[class*="col-"],
.col {
    min-width: 0;
    max-width: 100%;
}

.d-flex,
[class*="d-flex"] {
    min-width: 0;
}

.d-flex > *,
[class*="d-flex"] > * {
    min-width: 0;
}

.card,
.card-body,
.card-header,
.card-footer {
    max-width: 100%;
    min-width: 0;
}

.table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    max-width: 100%;
}

/* =========================================================
   3. TYPOGRAPHY / COMMON ELEMENTS
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--flash-text);
    font-weight: 700;
    line-height: 1.4;
}

.text-muted {
    color: var(--flash-muted) !important;
}

.section-title {
    font-weight: 800;
    color: var(--flash-text);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--flash-orange);
    font-weight: 700;
    margin-bottom: 10px;
}

.section-description {
    max-width: 720px;
    color: var(--flash-muted);
    line-height: 1.9;
}

.home-section {
    padding: 82px 0;
}

/* =========================================================
   4. BUTTONS
   ========================================================= */

.btn {
    max-width: 100%;
    border-radius: 12px;
    font-weight: 700;
    transition: .2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-warning,
.flash-btn-primary,
.hero-primary {
    background: var(--flash-yellow) !important;
    border-color: var(--flash-yellow) !important;
    color: #111 !important;
    box-shadow: 0 8px 22px rgba(255, 180, 0, .18);
}

.btn-warning:hover,
.flash-btn-primary:hover,
.hero-primary:hover {
    background: var(--flash-yellow-hover) !important;
    border-color: var(--flash-yellow-hover) !important;
    color: #111 !important;
}

.btn-dark {
    background: var(--flash-dark-2);
    border-color: var(--flash-dark-2);
}

.btn-dark:hover {
    background: var(--flash-navy);
    border-color: var(--flash-navy);
}

.flash-btn-outline,
.hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: .65rem 1rem;
    border: 1px solid rgba(255, 255, 255, .30);
    border-radius: 12px;
    color: #fff;
    background: transparent;
    font-weight: 700;
    transition: .2s ease;
}

.flash-btn-outline:hover,
.hero-secondary:hover {
    color: #111;
    background: var(--flash-yellow);
    border-color: var(--flash-yellow);
}

/* =========================================================
   5. PUBLIC HEADER
   ========================================================= */

.flash-navbar {
    width: 100%;
    min-height: 94px;
    padding: 10px 0;
    background: var(--flash-navy) !important;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    box-shadow: 0 5px 25px rgba(0, 0, 0, .10);
    z-index: 1040;
}

.flash-navbar .container {
    display: flex;
    align-items: center;
    gap: 18px;
}

.flash-navbar .navbar-brand {
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
}

.flash-navbar-logo {
    display: block;
    width: 94px;
    height: 62px;
    object-fit: contain;
    background: #050505;
    padding: 5px 8px;
}

.flash-brand-text {
    color: #fff;
    font-weight: 800;
}

.flash-navbar .navbar-collapse {
    min-width: 0;
}

.flash-navbar .navbar-nav {
    align-items: center;
}

.flash-navbar .nav-link {
    position: relative;
    color: rgba(255, 255, 255, .72) !important;
    font-weight: 600;
    padding: .72rem .9rem !important;
    border-radius: 10px;
    white-space: nowrap;
    transition: .2s ease;
}

.flash-navbar .nav-link:hover,
.flash-navbar .nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, .06);
}

.flash-navbar .nav-link.active::after {
    content: "";
    position: absolute;
    right: 18%;
    left: 18%;
    bottom: 3px;
    height: 2px;
    border-radius: 10px;
    background: var(--flash-yellow);
}

.flash-navbar .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, .25);
    box-shadow: none !important;
}

.flash-mobile-actions {
    border-top: 1px solid rgba(255, 255, 255, .08);
    margin-top: 10px;
    padding-top: 14px;
}

/* =========================================================
   6. HOME HERO
   ========================================================= */

.home-hero {
    position: relative;
    overflow: hidden;
    min-height: 610px;
    display: flex;
    align-items: center;
    color: #fff;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 180, 0, .12), transparent 28%),
        linear-gradient(135deg, #061727 0%, #071b2d 55%, #0b2238 100%);
}

.home-hero::before {
    content: "FLASH";
    position: absolute;
    left: 1%;
    bottom: -12%;
    font-family: Arial Black, Arial, sans-serif;
    font-size: clamp(10rem, 26vw, 28rem);
    font-weight: 900;
    font-style: italic;
    line-height: .8;
    color: #fff;
    opacity: .025;
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: .06;
    background-image:
        linear-gradient(rgba(255, 255, 255, .20) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .20) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 70px;
    padding-bottom: 70px;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 180, 0, .28);
    border-radius: 999px;
    background: rgba(255, 180, 0, .08);
    color: var(--flash-yellow);
    font-weight: 700;
}

.hero-title {
    color: #fff;
    font-size: clamp(2.7rem, 5.7vw, 5.3rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.25;
}

.hero-description {
    max-width: 720px;
    color: rgba(255, 255, 255, .66);
    font-size: 1.1rem;
    line-height: 2;
}

.hero-primary,
.hero-secondary {
    padding: .85rem 1.35rem;
}

.hero-visual {
    position: relative;
    min-height: 390px;
}

.hero-box-main {
    position: absolute;
    inset: 25px 20px 25px 30px;
    border-radius: 34px;
    border: 1px solid rgba(255, 180, 0, .22);
    background: linear-gradient(145deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .015));
    transform: rotate(-4deg);
}

.hero-box-inner {
    position: absolute;
    inset: 70px 65px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--flash-yellow), var(--flash-orange));
    opacity: .92;
    box-shadow: 0 25px 60px rgba(255, 180, 0, .20);
}

.hero-small-box {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .07);
    backdrop-filter: blur(8px);
}

.hero-small-box.one {
    top: 25px;
    left: 20px;
}

.hero-small-box.two {
    bottom: 25px;
    right: 15px;
}

/* =========================================================
   7. HOME STATS
   ========================================================= */

.home-stats {
    position: relative;
    z-index: 4;
    margin-top: -38px;
}

.stat-card {
    height: 100%;
    background: #fff;
    border: 1px solid var(--flash-line);
    border-radius: 20px;
    box-shadow: var(--flash-shadow);
}

.stat-card .rounded-3 {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    background: var(--flash-dark-2);
    color: var(--flash-yellow);
    font-size: 1.3rem;
}

.stat-number {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.2;
}

/* =========================================================
   8. CARDS
   ========================================================= */

.card {
    border-radius: var(--flash-radius);
}

.shadow-sm {
    box-shadow: var(--flash-shadow) !important;
}

.home-job-card,
.partner-card,
.vehicle-home-card {
    border: 1px solid var(--flash-line) !important;
    border-radius: 20px;
    background: #fff;
    transition: .22s ease;
}

.home-job-card:hover,
.partner-card:hover,
.vehicle-home-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .12) !important;
}

.company-logo-box {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    border: 1px solid var(--flash-line);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
}

.company-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.partner-card {
    padding: 25px 18px;
}

.partner-card img {
    max-height: 72px;
    object-fit: contain;
}

/* =========================================================
   9. INNER PAGE HERO
   Applies to the first dark .py-5 section on list/detail pages
   ========================================================= */

body > main > section.py-5:first-child,
body > section.py-5:first-of-type {
    position: relative;
}

.inner-hero {
    position: relative;
    overflow: hidden;
    padding: 90px 0;
    color: #fff;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 180, 0, .14), transparent 28%),
        linear-gradient(135deg, #061727, #0b2238);
}

.inner-hero::after {
    content: "FLASH";
    position: absolute;
    left: 2%;
    bottom: -35%;
    font-family: Arial Black, Arial, sans-serif;
    font-size: 18rem;
    font-weight: 900;
    font-style: italic;
    color: #fff;
    opacity: .025;
    pointer-events: none;
}

/* Existing pages use dark backgrounds inline/classes; harmonize them */
.bg-dark,
section[style*="background"] {
    --bs-bg-opacity: 1;
}

.text-bg-warning {
    color: #111 !important;
    background-color: var(--flash-yellow) !important;
}

/* =========================================================
   10. FILTERS / FORMS
   ========================================================= */

.form-control,
.form-select {
    width: 100%;
    max-width: 100%;
    border: 1px solid #d8dee8;
    border-radius: 12px;
    padding: .76rem .9rem;
    background-color: #fff;
    color: var(--flash-text);
    box-shadow: none;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--flash-yellow);
    box-shadow: 0 0 0 .22rem rgba(255, 180, 0, .14);
}

.form-label {
    color: #344054;
}

input::placeholder,
textarea::placeholder {
    color: #98a2b3 !important;
}

form {
    width: 100%;
    min-width: 0;
}

.form-check,
.input-group,
textarea,
select,
input {
    max-width: 100%;
}

/* =========================================================
   11. JOBS / RENTALS LISTS
   ========================================================= */

.py-4.bg-light.border-bottom {
    background: #f7f8fa !important;
    border-color: var(--flash-line) !important;
}

.py-4.bg-light.border-bottom form,
.filter-box {
    background: #fff;
    border: 1px solid var(--flash-line);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 26px rgba(15, 23, 42, .04);
}

.card.h-100.border-0.shadow-sm {
    border: 1px solid var(--flash-line) !important;
    transition: .22s ease;
}

.card.h-100.border-0.shadow-sm:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, .11) !important;
}

.pagination {
    gap: 5px;
}

.page-link {
    border-radius: 10px !important;
    border-color: var(--flash-line);
    color: var(--flash-text);
    min-width: 42px;
    text-align: center;
}

.page-link:hover,
.page-item.active .page-link {
    color: #111;
    background: var(--flash-yellow);
    border-color: var(--flash-yellow);
}

/* =========================================================
   12. DETAILS PAGES
   ========================================================= */

.sticky-top:not(.flash-navbar) {
    top: 115px;
}

.flash-navbar.sticky-top {
    position: sticky;
    top: 0;
}

.card-body.p-4.p-lg-5 {
    line-height: 1.9;
}

.lh-lg {
    line-height: 2 !important;
}

/* =========================================================
   13. VEHICLE IMAGES / GALLERY
   ========================================================= */

.rental-main-image,
.vehicle-main-image {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.rental-gallery img,
.vehicle-gallery img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* =========================================================
   14. PUBLIC FORM PAGE
   ========================================================= */

.public-form-page,
.form-page,
.form-wrapper,
.form-container,
.public-form-wrapper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.public-form-page .card,
.form-page .card,
.form-wrapper .card,
.form-container .card,
.public-form-wrapper .card {
    width: 100%;
    max-width: 100%;
}

body:has(form) main {
    min-width: 0;
}

/* =========================================================
   15. CTA
   ========================================================= */

.cta-band,
.home-cta-box {
    position: relative;
    overflow: hidden;
    color: #fff;
    border: 1px solid rgba(255, 180, 0, .18);
    border-radius: 26px;
    background: linear-gradient(125deg, #071b2d, #0c263f);
    box-shadow: 0 18px 45px rgba(7, 27, 45, .15);
}

.cta-band::after,
.home-cta-box::after {
    content: "FLASH";
    position: absolute;
    left: 2%;
    top: 50%;
    transform: translateY(-50%);
    font-family: Arial Black, Arial, sans-serif;
    font-size: 8rem;
    font-weight: 900;
    font-style: italic;
    color: #fff;
    opacity: .025;
    pointer-events: none;
}

/* =========================================================
   16. PUBLIC FOOTER
   ========================================================= */

footer {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    background: #061727;
    color: rgba(255, 255, 255, .68);
}

footer h6 {
    color: var(--flash-yellow);
}

footer a {
    transition: .2s ease;
}

footer a:hover {
    color: var(--flash-yellow) !important;
}

footer .border-top {
    border-color: rgba(255, 255, 255, .09) !important;
}

footer .rounded-3 {
    flex: 0 0 auto;
}

footer .row > * {
    min-width: 0;
}

/* =========================================================
   17. ALERTS / EMPTY STATES
   ========================================================= */

.alert {
    border-radius: 14px;
}

.alert-danger {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.alert-warning {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.empty-state {
    padding: 50px 20px;
    text-align: center;
    color: var(--flash-muted);
}

/* =========================================================
   18. DESKTOP
   ========================================================= */

@media (min-width: 1200px) {
    main {
        width: 100%;
    }

    .container {
        max-width: 1320px;
    }
}

@media (min-width: 992px) {
    .flash-navbar .navbar-collapse.collapse {
        display: flex !important;
        visibility: visible !important;
        height: auto !important;
    }
}

/* =========================================================
   19. TABLET
   ========================================================= */

@media (max-width: 991.98px) {
    .container,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl,
    .container-xxl {
        width: 100%;
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }

    .flash-navbar {
        min-height: 78px;
    }

    .flash-navbar .navbar-collapse {
        padding: 15px 0 5px;
    }

    .flash-navbar .navbar-collapse.collapse:not(.show) {
        display: none !important;
    }

    .flash-navbar .navbar-collapse.collapse.show {
        display: block !important;
    }

    .flash-navbar .navbar-nav {
        align-items: stretch;
        margin: 8px 0 !important;
    }

    .flash-navbar .nav-link {
        padding: .75rem .9rem !important;
    }

    .flash-navbar .nav-link.active::after {
        display: none;
    }

    .home-hero {
        min-height: auto;
    }

    .hero-content {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .hero-visual {
        min-height: 300px;
    }

    .home-stats {
        margin-top: 0;
        padding-top: 24px;
    }

    h1 {
        font-size: clamp(1.9rem, 5vw, 2.7rem);
    }

    h2 {
        font-size: clamp(1.5rem, 4vw, 2.1rem);
    }

    .sticky-top:not(.flash-navbar) {
        position: static !important;
    }
}

/* =========================================================
   20. MOBILE
   ========================================================= */

@media (max-width: 767.98px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden !important;
    }

    .container,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl,
    .container-xxl,
    .container-fluid {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        margin-left: auto;
        margin-right: auto;
    }

    main,
    section {
        width: 100%;
        max-width: 100%;
    }

    .home-section {
        padding: 58px 0;
    }

    .flash-navbar-logo {
        width: 80px;
        height: 52px;
    }

    .hero-content {
        padding-top: 48px;
        padding-bottom: 48px;
    }

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

    .hero-description {
        font-size: .98rem;
    }

    .hero-visual {
        min-height: 250px;
    }

    .hero-box-main {
        inset: 20px 30px;
    }

    .hero-box-inner {
        inset: 58px 70px;
    }

    .stat-card {
        border-radius: 16px;
    }

    .card {
        width: 100%;
        max-width: 100%;
        border-radius: 16px;
    }

    .card-body {
        padding: 18px;
    }

    form,
    .form-control,
    .form-select,
    textarea,
    input:not([type="checkbox"]):not([type="radio"]) {
        width: 100%;
        max-width: 100%;
    }

    .btn {
        white-space: normal;
    }

    .d-flex {
        max-width: 100%;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    .display-5,
    .display-6 {
        font-size: 2rem;
    }

    .py-5 {
        padding-top: 2.6rem !important;
        padding-bottom: 2.6rem !important;
    }

    footer {
        text-align: right;
    }
}

/* =========================================================
   21. SMALL MOBILE
   ========================================================= */

@media (max-width: 575.98px) {
    .container,
    .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }

    .card-body {
        padding: 15px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .hero-label {
        font-size: .82rem;
    }

    .hero-visual {
        min-height: 210px;
    }

    .hero-box-main {
        inset: 15px 25px;
    }

    .hero-box-inner {
        inset: 48px 60px;
    }

    .hero-small-box {
        width: 58px;
        height: 58px;
        border-radius: 16px;
    }

    .home-stats .row {
        --bs-gutter-y: .75rem;
    }

    .py-4.bg-light.border-bottom form {
        padding: 15px;
    }
}

/* =========================================================
   22. EXTREMELY SMALL SCREENS
   ========================================================= */

@media (max-width: 380px) {
    .container,
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }

    .card-body {
        padding: 12px;
    }

    .flash-navbar-logo {
        width: 72px;
        height: 48px;
    }

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

/* =========================================================
   23. FINAL OVERFLOW PROTECTION
   ========================================================= */

body > * {
    max-width: 100%;
}


/* Company availability and job selection */
.partner-choice{position:relative;display:flex;flex-direction:column;gap:12px;text-decoration:none;color:inherit;min-height:180px}
.partner-visual{display:flex;align-items:center;justify-content:center;min-height:60px;width:100%}
.partner-company-name{font-size:15px;font-weight:700;text-align:center}
.partner-state{font-size:12px;padding:5px 9px;border-radius:20px;background:#eef0f3;color:#536070;text-align:center}
.partner-state.available{background:#fff1bd;color:#283246}
.partner-choice.is-unavailable .partner-visual{filter:blur(2px) grayscale(1);opacity:.45}
.partner-choice.is-unavailable{cursor:default}
.partner-choice.is-unavailable:hover{transform:none}
section.py-5[style*="#031526"] h1.display-5{color:#f8fafc!important}
.job-step-panel{border:1px solid #e3e7ed;border-radius:16px;padding:20px;background:#fff;margin-bottom:20px}
.job-company-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(170px,100%),1fr));gap:14px}
