/* =========================================================
   PUBLIC WEBSITE — Rental Mobil
   Professional Blue Dashboard theme, consumer-friendly
   ========================================================= */

:root {
    --p-primary: #1565C0;
    --p-primary-dark: #0D47A1;
    --p-primary-darker: #1A237E;
    --p-primary-light: #42A5F5;
    --p-primary-bg: #E3F2FD;
    --p-accent: #FB8C00;
    --p-accent-dark: #EF6C00;
    --p-body: #F6F9FD;
    --p-card: #FFFFFF;
    --p-text: #1F2D3D;
    --p-muted: #6B7B8C;
    --p-border: #E3E8F0;
    --p-radius: 14px;
    --p-radius-lg: 20px;
    --p-shadow: 0 4px 16px rgba(21, 101, 192, .08);
    --p-shadow-lg: 0 12px 40px rgba(21, 101, 192, .15);
}

.public-body {
    background: var(--p-body);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--p-text);
    margin: 0;
}

/* ========== NAVBAR ========== */
.public-navbar {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}
.public-navbar .navbar-brand {
    font-weight: 700;
    color: var(--p-primary-dark);
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.public-navbar .navbar-brand img {
    height: 38px;
}
.public-navbar .navbar-brand .fa-car-side {
    color: var(--p-primary);
    font-size: 26px;
}
.public-navbar .nav-link {
    color: var(--p-text);
    font-weight: 500;
    padding: 8px 14px !important;
    border-radius: 8px;
    transition: all .2s;
}
.public-navbar .nav-link:hover,
.public-navbar .nav-link.active {
    color: var(--p-primary);
    background: var(--p-primary-bg);
}
.public-navbar .btn-login {
    background: var(--p-primary);
    color: #fff !important;
    padding: 8px 20px !important;
    border-radius: 8px;
    font-weight: 600;
}
.public-navbar .btn-login:hover {
    background: var(--p-primary-dark);
    color: #fff !important;
}
.public-navbar .btn-wa {
    background: #25D366;
    color: #fff !important;
    padding: 8px 16px !important;
    border-radius: 8px;
    font-weight: 600;
}
.public-navbar .btn-wa:hover { background: #128C7E; color: #fff !important; }

/* ========== HERO ========== */
.hero-section {
    background: linear-gradient(135deg, var(--p-primary-darker) 0%, var(--p-primary-dark) 50%, var(--p-primary) 100%);
    color: #fff;
    padding: 70px 0 120px;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="160" cy="40" r="120" fill="white" opacity="0.05"/><circle cx="140" cy="140" r="60" fill="white" opacity="0.05"/></svg>') no-repeat center / cover;
    pointer-events: none;
}
.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 18px;
    letter-spacing: -.5px;
}
.hero-subtitle {
    font-size: 18px;
    line-height: 1.6;
    opacity: .9;
    margin-bottom: 30px;
}
.hero-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}
.hero-stat {
    text-align: center;
    padding-right: 30px;
    border-right: 1px solid rgba(255, 255, 255, .2);
}
.hero-stat:last-child { border-right: 0; }
.hero-stat-num {
    font-size: 32px;
    font-weight: 800;
    color: #FFD54F;
}
.hero-stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: .85;
}

/* ========== SEARCH BOX (floats on hero) ========== */
.search-box {
    background: #fff;
    border-radius: var(--p-radius-lg);
    box-shadow: var(--p-shadow-lg);
    padding: 24px;
    position: relative;
    margin-top: -70px;
    z-index: 5;
}
.search-box h5 {
    color: var(--p-primary-dark);
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.search-box .form-label {
    font-weight: 600;
    font-size: 13px;
    color: var(--p-text);
    margin-bottom: 6px;
}
.search-box .form-control,
.search-box .form-select {
    border: 1px solid var(--p-border);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    transition: all .2s;
}
.search-box .form-control:focus,
.search-box .form-select:focus {
    border-color: var(--p-primary);
    box-shadow: 0 0 0 3px rgba(21, 101, 192, .15);
}
.search-box .btn-search {
    background: linear-gradient(135deg, var(--p-accent) 0%, var(--p-accent-dark) 100%);
    color: #fff;
    border: 0;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 10px;
    width: 100%;
    transition: all .25s;
    box-shadow: 0 4px 12px rgba(251, 140, 0, .3);
}
.search-box .btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(251, 140, 0, .4);
    color: #fff;
}

/* ========== SECTION ========== */
.section {
    padding: 70px 0;
}
.section-title {
    text-align: center;
    margin-bottom: 40px;
}
.section-title h2 {
    font-size: 34px;
    font-weight: 800;
    color: var(--p-primary-dark);
    margin-bottom: 8px;
}
.section-title p {
    font-size: 16px;
    color: var(--p-muted);
    max-width: 600px;
    margin: 0 auto;
}
.section-title .badge-label {
    display: inline-block;
    background: var(--p-primary-bg);
    color: var(--p-primary);
    font-weight: 600;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* ========== CAR CARD ========== */
.car-card {
    background: #fff;
    border-radius: var(--p-radius);
    overflow: hidden;
    box-shadow: var(--p-shadow);
    transition: all .25s;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--p-border);
}
.car-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--p-shadow-lg);
    border-color: var(--p-primary-light);
}
.car-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--p-primary-bg);
}
.car-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.car-card:hover .car-card-image img { transform: scale(1.08); }
.car-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.car-badge {
    background: rgba(255,255,255,.95);
    color: var(--p-primary-dark);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}
.car-badge-hot {
    background: var(--p-accent);
    color: #fff;
}
.car-badge-new {
    background: #43A047;
    color: #fff;
}
.car-card-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.car-card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--p-text);
    margin-bottom: 4px;
}
.car-card-cat {
    font-size: 12px;
    color: var(--p-muted);
    margin-bottom: 10px;
}
.car-specs {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.car-spec {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--p-muted);
    background: #F5F8FC;
    padding: 4px 9px;
    border-radius: 6px;
}
.car-spec i { color: var(--p-primary); }
.car-card-price {
    border-top: 1px dashed var(--p-border);
    padding-top: 12px;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.car-price-num {
    font-size: 20px;
    font-weight: 800;
    color: var(--p-primary-dark);
    line-height: 1;
}
.car-price-unit {
    font-size: 12px;
    color: var(--p-muted);
    margin-top: 2px;
}
.car-card-body .btn-book {
    background: var(--p-primary);
    color: #fff;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    text-decoration: none;
    transition: all .2s;
}
.car-card-body .btn-book:hover {
    background: var(--p-primary-dark);
    color: #fff;
}

/* ========== FEATURE BOX ========== */
.feature-box {
    background: #fff;
    border-radius: var(--p-radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--p-shadow);
    transition: all .25s;
    height: 100%;
    border: 1px solid var(--p-border);
}
.feature-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--p-shadow-lg);
}
.feature-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--p-primary-bg), #BBDEFB);
    color: var(--p-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 30px;
}
.feature-box h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--p-text);
    margin-bottom: 8px;
}
.feature-box p {
    font-size: 14px;
    color: var(--p-muted);
    line-height: 1.6;
    margin: 0;
}

/* ========== CATEGORY PILL ========== */
.cat-grid {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;
}
.cat-pill {
    background: #fff;
    border: 2px solid var(--p-border);
    color: var(--p-text);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.cat-pill:hover,
.cat-pill.active {
    background: var(--p-primary);
    border-color: var(--p-primary);
    color: #fff;
}

/* ========== TESTIMONI ========== */
.testi-card {
    background: #fff;
    border-radius: var(--p-radius);
    padding: 24px;
    box-shadow: var(--p-shadow);
    height: 100%;
    border: 1px solid var(--p-border);
    position: relative;
}
.testi-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 80px;
    line-height: 1;
    color: var(--p-primary-bg);
    font-family: Georgia, serif;
}
.testi-stars {
    color: #FFC107;
    margin-bottom: 12px;
}
.testi-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--p-text);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}
.testi-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--p-border);
    padding-top: 14px;
}
.testi-profile img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
}
.testi-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--p-text);
}
.testi-job {
    font-size: 12px;
    color: var(--p-muted);
}

/* ========== CTA BLOCK ========== */
.cta-block {
    background: linear-gradient(135deg, var(--p-primary-dark) 0%, var(--p-primary) 100%);
    border-radius: var(--p-radius-lg);
    padding: 50px;
    color: #fff;
    text-align: center;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}
.cta-block::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, .08);
    border-radius: 50%;
}
.cta-block h3 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}
.cta-block p {
    font-size: 16px;
    opacity: .9;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}
.cta-block .btn-cta-wa {
    background: #25D366;
    color: #fff !important;
    padding: 12px 28px;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 6px;
    position: relative;
    z-index: 1;
    transition: all .2s;
}
.cta-block .btn-cta-wa:hover { background: #128C7E; transform: translateY(-2px); }
.cta-block .btn-cta-book {
    background: #fff;
    color: var(--p-primary-dark) !important;
    padding: 12px 28px;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 6px;
    position: relative;
    z-index: 1;
    transition: all .2s;
}
.cta-block .btn-cta-book:hover { background: #FFD54F; color: var(--p-primary-dark) !important; transform: translateY(-2px); }

/* ========== FLOATING WA ========== */
.float-wa {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 6px 18px rgba(37, 211, 102, .4);
    z-index: 1050;
    text-decoration: none;
    animation: bounce 2s infinite;
}
.float-wa:hover { color: #fff; background: #128C7E; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ========== FOOTER ========== */
.public-footer {
    background: var(--p-primary-darker);
    color: #CFD8DC;
    padding: 50px 0 20px;
    margin-top: 60px;
}
.public-footer h5 {
    color: #fff;
    font-weight: 700;
    font-size: 17px;
    margin-bottom: 18px;
}
.public-footer a {
    color: #B0BEC5;
    text-decoration: none;
    display: block;
    padding: 5px 0;
    font-size: 14px;
    transition: color .2s;
}
.public-footer a:hover { color: #FFD54F; }
.public-footer .brand-footer {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.public-footer .brand-footer i { color: var(--p-primary-light); }
.public-footer .brand-desc {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 14px;
}
.public-footer .social {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}
.public-footer .social a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.08);
    border-radius: 8px;
    padding: 0;
    transition: all .2s;
}
.public-footer .social a:hover { background: var(--p-primary); color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #78909C;
}

/* ========== PAGE HEADER (non-home pages) ========== */
.page-banner {
    background: linear-gradient(135deg, var(--p-primary-dark), var(--p-primary));
    color: #fff;
    padding: 60px 0 50px;
    text-align: center;
}
.page-banner h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 8px;
}
.page-banner p {
    font-size: 15px;
    opacity: .9;
    margin: 0;
}

/* ========== FILTER SIDEBAR ========== */
.filter-card {
    background: #fff;
    border-radius: var(--p-radius);
    padding: 20px;
    box-shadow: var(--p-shadow);
    border: 1px solid var(--p-border);
    position: sticky;
    top: 80px;
}
.filter-card h6 {
    color: var(--p-primary-dark);
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--p-primary-bg);
}
.filter-group {
    margin-bottom: 18px;
}
.filter-group label {
    font-size: 13px;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    color: var(--p-text);
}
.filter-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 14px;
    color: var(--p-text);
    cursor: pointer;
}

/* ========== STEP WIZARD ========== */
.step-wizard {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 30px;
    position: relative;
}
.step-wizard::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: var(--p-border);
    z-index: 0;
}
.step-item {
    flex: 1;
    max-width: 200px;
    text-align: center;
    position: relative;
    z-index: 1;
}
.step-num {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--p-border);
    color: var(--p-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-weight: 700;
    font-size: 16px;
}
.step-item.active .step-num {
    background: var(--p-primary);
    border-color: var(--p-primary);
    color: #fff;
    box-shadow: 0 0 0 5px rgba(21, 101, 192, .15);
}
.step-item.done .step-num {
    background: #43A047;
    border-color: #43A047;
    color: #fff;
}
.step-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--p-muted);
}
.step-item.active .step-label { color: var(--p-primary); }
.step-item.done .step-label { color: #43A047; }

/* ========== GALLERY ========== */
.gallery-main {
    aspect-ratio: 16/10;
    border-radius: var(--p-radius);
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: var(--p-shadow);
    background: var(--p-primary-bg);
}
.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.gallery-thumb {
    aspect-ratio: 16/10;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: .65;
    transition: opacity .2s;
    border: 2px solid transparent;
}
.gallery-thumb:hover, .gallery-thumb.active { opacity: 1; border-color: var(--p-primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ========== PRICING BOX ========== */
.pricing-box {
    background: #fff;
    border-radius: var(--p-radius);
    padding: 20px;
    box-shadow: var(--p-shadow);
    border: 1px solid var(--p-border);
    position: sticky;
    top: 80px;
}
.pricing-box .price-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
}
.pricing-box .price-row.total {
    border-top: 2px solid var(--p-primary-bg);
    padding-top: 12px;
    margin-top: 6px;
    font-size: 16px;
    font-weight: 700;
    color: var(--p-primary-dark);
}

/* ========== ACCORDION FAQ ========== */
.faq-accordion .accordion-item {
    border: 1px solid var(--p-border);
    margin-bottom: 10px;
    border-radius: var(--p-radius) !important;
    overflow: hidden;
    box-shadow: var(--p-shadow);
}
.faq-accordion .accordion-button {
    font-weight: 600;
    color: var(--p-text);
    padding: 16px 20px;
}
.faq-accordion .accordion-button:not(.collapsed) {
    background: var(--p-primary-bg);
    color: var(--p-primary-dark);
}
.faq-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: var(--p-primary-light);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
    .hero-section { padding: 50px 0 100px; }
    .hero-title { font-size: 36px; }
    .search-box { margin-top: -60px; }
    .section { padding: 50px 0; }
    .section-title h2 { font-size: 28px; }
    .cta-block { padding: 36px 20px; }
    .cta-block h3 { font-size: 24px; }
    .hero-stats { gap: 18px; }
    .hero-stat { padding-right: 18px; }
    .hero-stat-num { font-size: 26px; }
}
@media (max-width: 575px) {
    .hero-title { font-size: 28px; }
    .hero-subtitle { font-size: 15px; }
    .step-wizard::before { left: 10%; right: 10%; }
    .step-label { font-size: 11px; }
    .float-wa { width: 54px; height: 54px; font-size: 24px; }
    .gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
}
