/* ==========================================================================
   CUSTOM VEHICLE RENTAL BOOKING SYSTEM — PREMIUM DESIGN SYSTEM
   Color Palette (Matched to Reference Mockup):
   - Primary Navy   : #0F1A2C
   - Secondary Navy : #162642
   - Accent Gold    : #F5B800 (Hover: #DFA700)
   - Surface Light  : #F6F8FB
   - Card White     : #FFFFFF
   - Text Primary   : #0F1A2C
   - Text Muted     : #64748B
   - Border Subtle  : #E2E8F0
   ========================================================================== */

:root {
    --navy-900: #0F1A2C;
    --navy-800: #162642;
    --navy-700: #1E3356;
    --gold-500: #F5B800;
    --gold-600: #DDA500;
    --gold-100: #FFF8E1;
    --bg-light: #F6F8FB;
    --text-main: #0F1A2C;
    --text-muted: #64748B;
    --border-color: #E5EAF2;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 8px rgba(15, 26, 44, 0.05);
    --shadow-md: 0 8px 24px rgba(15, 26, 44, 0.07);
    --shadow-lg: 0 16px 40px rgba(15, 26, 44, 0.12);
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--navy-900);
    font-weight: 700;
    letter-spacing: -0.015em;
}

a {
    text-decoration: none;
    transition: all 0.2s ease;
}

/* --------------------------------------------------------------------------
   PUBLIC NAVBAR (Dark Navy + Gold CTA)
   -------------------------------------------------------------------------- */
.navbar-wcrental {
    background-color: var(--navy-900);
    padding: 0.9rem 0;
    box-shadow: 0 4px 20px rgba(15, 26, 44, 0.2);
}

.navbar-wcrental .navbar-brand {
    font-size: 1.35rem;
    font-weight: 800;
    color: #FFFFFF !important;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.navbar-wcrental .brand-icon {
    color: var(--gold-500);
    font-size: 1.55rem;
    line-height: 1;
}

.navbar-wcrental .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
}

.navbar-wcrental .nav-link:hover,
.navbar-wcrental .nav-link.active {
    color: var(--gold-500) !important;
}

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */
.btn-gold {
    background-color: var(--gold-500);
    color: var(--navy-900);
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.62rem 1.35rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(245, 184, 0, 0.25);
}

.btn-gold:hover, .btn-gold:focus {
    background-color: var(--gold-600);
    color: var(--navy-900);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245, 184, 0, 0.35);
}

.btn-navy {
    background-color: var(--navy-900);
    color: #FFFFFF;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.62rem 1.35rem;
}

.btn-navy:hover, .btn-navy:focus {
    background-color: var(--navy-800);
    color: #FFFFFF;
}

.btn-outline-navy {
    border: 1.5px solid #CBD5E1;
    color: var(--navy-900);
    background-color: #FFFFFF;
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 0.6rem 1.25rem;
}

.btn-outline-navy:hover {
    border-color: var(--navy-900);
    background-color: var(--navy-900);
    color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   HERO SECTION & SEARCH CARD (Matched to Mockup)
   -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    background-color: var(--navy-900);
    background-size: cover;
    background-position: center right;
    min-height: 470px;
    padding: 4.5rem 0 6.5rem;
    color: #FFFFFF;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 26, 44, 0.94) 0%, rgba(15, 26, 44, 0.78) 48%, rgba(15, 26, 44, 0.25) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 800;
    line-height: 1.18;
    color: #FFFFFF;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-title .accent-gold {
    color: var(--gold-500);
    text-transform: none;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.08rem;
    max-width: 520px;
    margin-bottom: 1.75rem;
}

/* Overlapping Search Box */
.search-box-wrapper {
    position: relative;
    z-index: 10;
    margin-top: -4.25rem;
    margin-bottom: 2.5rem;
}

.search-tabs {
    display: inline-flex;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    overflow: hidden;
}

.search-tab-btn {
    border: none;
    padding: 0.75rem 1.75rem;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    background-color: rgba(15, 26, 44, 0.88);
    color: #FFFFFF;
    transition: all 0.2s ease;
}

.search-tab-btn.active {
    background-color: #FFFFFF;
    color: var(--navy-900);
}

.search-tab-btn.active i {
    color: var(--navy-900);
}

.search-card-body {
    background-color: #FFFFFF;
    border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg);
    padding: 1.5rem 1.75rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.search-field-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 0.4rem;
    display: block;
}

.input-icon-group {
    position: relative;
}

.input-icon-group i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
}

.input-icon-group .form-control,
.input-icon-group .form-select {
    padding-left: 2.5rem;
    height: 46px;
    border-radius: var(--radius-sm);
    border: 1px solid #CBD5E1;
    font-size: 0.92rem;
}

.input-icon-group .form-control:focus,
.input-icon-group .form-select:focus {
    border-color: var(--gold-500);
    box-shadow: 0 0 0 3px rgba(245, 184, 0, 0.18);
}

/* --------------------------------------------------------------------------
   FEATURE ADVANTAGES STRIP
   -------------------------------------------------------------------------- */
.advantage-card {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    padding: 1.2rem 1.25rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-start;
    gap: 0.95rem;
    height: 100%;
}

.advantage-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: #EEF4FF;
    color: #1D4ED8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   VEHICLE CARDS (Matched to Mockup)
   -------------------------------------------------------------------------- */
.vehicle-card {
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.vehicle-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #CBD5E1;
}

.vehicle-card-img-wrap {
    background-color: #FFFFFF;
    padding: 1.1rem 1.1rem 0.5rem;
    height: 185px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.vehicle-card-img-wrap img {
    max-height: 155px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.vehicle-card:hover .vehicle-card-img-wrap img {
    transform: scale(1.04);
}

.vehicle-card-body {
    padding: 1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.vehicle-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 0.25rem;
}

.vehicle-card-price {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: 0.75rem;
}

.vehicle-card-price span {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
}

.vehicle-specs-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    padding-top: 0.65rem;
    border-top: 1px solid #F1F5F9;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.vehicle-specs-row span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* --------------------------------------------------------------------------
   PROMO BANNER & HOW TO RENT (Matched to Mockup)
   -------------------------------------------------------------------------- */
.promo-banner-box {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: var(--navy-900);
    background-size: cover;
    background-position: center right;
    padding: 3rem 2.75rem;
    color: #FFFFFF;
    box-shadow: var(--shadow-md);
}

.promo-banner-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 26, 44, 0.95) 0%, rgba(15, 26, 44, 0.82) 52%, rgba(15, 26, 44, 0.2) 100%);
    z-index: 1;
}

.promo-banner-content {
    position: relative;
    z-index: 2;
    max-width: 520px;
}

.step-circle-item {
    text-align: center;
    position: relative;
    padding: 0 0.75rem;
}

.step-circle-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #1D4ED8;
    color: #FFFFFF;
    font-weight: 800;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    box-shadow: 0 6px 16px rgba(29, 78, 216, 0.25);
}

/* --------------------------------------------------------------------------
   BOOKING 4-STEP STEPPER (Matched to Mockup)
   -------------------------------------------------------------------------- */
.booking-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stepper-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.stepper-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
    background-color: #E2E8F0;
    color: #475569;
}

.stepper-item.completed .stepper-circle {
    background-color: #1D4ED8;
    color: #FFFFFF;
}

.stepper-item.completed {
    color: var(--navy-900);
}

.stepper-item.active .stepper-circle {
    background-color: var(--gold-500);
    color: var(--navy-900);
    box-shadow: 0 0 0 4px rgba(245, 184, 0, 0.25);
}

.stepper-item.active {
    color: var(--navy-900);
    font-weight: 800;
}

.stepper-line {
    width: 48px;
    height: 2px;
    background-color: #CBD5E1;
}

/* --------------------------------------------------------------------------
   PAYMENT METHOD CARDS (Matched to Mockup)
   -------------------------------------------------------------------------- */
.payment-method-card {
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.95rem 1.15rem;
    margin-bottom: 0.75rem;
    background-color: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.95rem;
}

.payment-method-card:hover,
.payment-method-card.active {
    border-color: #2563EB;
    background-color: #F0F7FF;
}

.payment-method-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background-color: #EFF6FF;
    color: #1D4ED8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   STATUS BADGES
   -------------------------------------------------------------------------- */
.badge-status {
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 999px;
}

.badge-success {
    background-color: #DCFCE7;
    color: #15803D;
}

.badge-warning {
    background-color: #FEF3C7;
    color: #B45309;
}

.badge-info {
    background-color: #DBEAFE;
    color: #1D4ED8;
}

.badge-primary {
    background-color: #E0E7FF;
    color: #4338CA;
}

.badge-danger {
    background-color: #FEE2E2;
    color: #B91C1C;
}

.badge-secondary {
    background-color: #E2E8F0;
    color: #334155;
}

.badge-dark {
    background-color: #CBD5E1;
    color: #1E293B;
}

/* --------------------------------------------------------------------------
   ADMIN DASHBOARD LAYOUT (Matched to Mockup Bottom-Right)
   -------------------------------------------------------------------------- */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-light);
}

.admin-sidebar {
    width: 250px;
    background-color: var(--navy-900);
    color: #FFFFFF;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.admin-sidebar-brand {
    padding: 1.15rem 1.35rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: #FFFFFF;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.admin-nav-list {
    list-style: none;
    padding: 1rem 0.85rem;
    margin: 0;
    flex-grow: 1;
}

.admin-nav-item {
    margin-bottom: 0.3rem;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.76);
    font-weight: 500;
    font-size: 0.92rem;
}

.admin-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
}

.admin-nav-link.active {
    background-color: #1E3A8A;
    color: #FFFFFF;
    font-weight: 700;
    box-shadow: inset 3px 0 0 var(--gold-500);
}

.admin-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-topbar {
    background-color: var(--navy-900);
    color: #FFFFFF;
    padding: 0.85rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-content {
    padding: 1.75rem;
    flex-grow: 1;
}

.kpi-card {
    background-color: #FFFFFF;
    border-radius: var(--radius-md);
    padding: 1.25rem 1.35rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.kpi-value {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--navy-900);
    line-height: 1.2;
}

.kpi-icon-badge {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Footer */
.public-footer {
    background-color: var(--navy-900);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.public-footer h5 {
    color: #FFFFFF;
    font-size: 1.05rem;
    margin-bottom: 1.1rem;
}

.public-footer a {
    color: rgba(255, 255, 255, 0.75);
}

.public-footer a:hover {
    color: var(--gold-500);
}

@media (max-width: 991.98px) {
    .admin-sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        bottom: 0;
        z-index: 1050;
        transition: left 0.25s ease;
    }
    .admin-sidebar.show {
        left: 0;
    }
    .search-box-wrapper {
        margin-top: -2rem;
    }
    .search-card-body {
        border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md);
        padding: 1.25rem;
    }
}

