/**
 * PADAIDI RENT CAR - DESIGN SYSTEM TOKENS & COMPONENTS (FASE 1)
 * Visual Language inspired by the Prima Motor reference:
 * Dark canvas (#0b1220, #111827), Bold Padaidi Gold Accent (#F5A623),
 * Sharp geometry (4px buttons, 8px cards), High Contrast (WCAG AAA compliant text).
 */

:root {
    /* --- COLOR PALETTE --- */
    --color-canvas: #0b1220;
    /* Latar utama */
    --color-canvas-alt: #111827;
    /* Latar seksi selang-seling */
    --color-surface: #0b1220;
    /* Kartu di atas seksi selang-seling */
    --color-surface-elevated: #111827;
    /* Kartu di atas latar utama */
    --color-surface-hover: #1e293b;
    /* Hover kartu */

    --color-border: #1e293b;
    /* Garis pembatas halus */
    --color-border-strong: #334155;
    /* Garis pembatas tegas */

    /* Aksen Emas Murni (Sampled dari Logo Padaidi) */
    --color-accent: #F5A623;
    /* Emas Primer */
    --color-accent-hover: #FDBA4D;
    /* Emas Terang Hover */
    --color-accent-dark: #C77F14;
    /* Emas Gelap Active */
    --color-accent-10: rgba(245, 166, 35, 0.10);
    /* Latar lencana aksen */
    --color-accent-20: rgba(245, 166, 35, 0.20);
    /* Latar hover halus */
    --color-accent-30: rgba(245, 166, 35, 0.30);
    /* Garis batas lencana */

    /* Tipografi Teks */
    --color-text: #f8fafc;
    /* Teks utama (slate-50) */
    --color-text-muted: #94a3b8;
    /* Teks redup/keterangan (slate-400) */
    --color-text-faint: #64748b;
    /* Teks footer/subtle (slate-500) */
    --color-text-on-accent: #0b1220;
    /* Teks di atas warna emas (Dark navy - 9.28:1 contrast, AAA) */

    /* Warna Semantik / Status (Harmonis dengan Tema Gelap) */
    --color-success: #10b981;
    --color-success-bg: rgba(16, 185, 129, 0.12);
    --color-success-border: rgba(16, 185, 129, 0.30);

    --color-warning: #f59e0b;
    --color-warning-bg: rgba(245, 158, 11, 0.12);
    --color-warning-border: rgba(245, 158, 11, 0.30);

    --color-danger: #ef4444;
    --color-danger-bg: rgba(239, 68, 68, 0.12);
    --color-danger-border: rgba(239, 68, 68, 0.30);

    --color-info: #38bdf8;
    --color-info-bg: rgba(56, 189, 248, 0.12);
    --color-info-border: rgba(56, 189, 248, 0.30);

    /* --- TYPOGRAPHY SCALES --- */
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    --font-size-display: clamp(2rem, 5vw + 1rem, 3.25rem);
    /* 32px -> 52px */
    --font-size-h1: clamp(1.75rem, 3.5vw + 1rem, 2.375rem);
    /* 28px -> 38px */
    --font-size-h2: clamp(1.375rem, 2vw + 1rem, 1.875rem);
    /* 22px -> 30px */
    --font-size-h3: 1.25rem;
    /* 20px */
    --font-size-kicker: 0.75rem;
    /* 12px */
    --font-size-body: 0.9375rem;
    /* 15px */
    --font-size-small: 0.8125rem;
    /* 13px */

    /* --- GEOMETRY & RADIUS --- */
    --radius-btn: 4px;
    --radius-card: 8px;
    --radius-pill: 9999px;
    --radius-badge: 4px;

    /* --- SHADOWS & OFFSET HIGHLIGHTS --- */
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.25);
    --shadow-offset-hero: -15px 15px 0px var(--color-accent);
    --shadow-offset-hero-sm: -8px 8px 0px var(--color-accent);
    --focus-ring: 0 0 0 2px var(--color-canvas), 0 0 0 4px var(--color-accent);

    /* --- LAYOUT & SPACING --- */
    --container-max: 1200px;
    --spacing-section-y: clamp(4rem, 7vw, 6.25rem);
    /* 64px -> 100px */
    --spacing-container-x: 5%;

    /* --- SAFE AREA INSETS (iOS & Notched Displays) --- */
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-left: env(safe-area-inset-left, 0px);
    --safe-area-right: env(safe-area-inset-right, 0px);
}

/* ==========================================================================
   BASE RESET & GLOBAL ELEM FOR DARK THEME
   ========================================================================== */
html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body.theme-padaidi {
    background-color: var(--color-canvas);
    color: var(--color-text);
    font-family: var(--font-main);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    min-height: 100dvh;
    padding-left: var(--safe-area-left, 0px);
    padding-right: var(--safe-area-right, 0px);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Accessibility: Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    z-index: 9999;
    background-color: var(--color-accent);
    color: var(--color-text-on-accent);
    padding: 12px 20px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 13px;
    border-radius: var(--radius-btn);
    text-decoration: none;
    transition: top 150ms ease;
}

.skip-link:focus {
    top: 20px;
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.4);
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {

    *,
    ::before,
    ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   LAYOUT CONTAINERS & SECTIONS
   ========================================================================== */
.site-container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-container-x);
    padding-right: var(--spacing-container-x);
    box-sizing: border-box;
}

.section-dark {
    background-color: var(--color-canvas);
    padding-top: var(--spacing-section-y);
    padding-bottom: var(--spacing-section-y);
    position: relative;
}

.section-alt {
    background-color: var(--color-canvas-alt);
    padding-top: var(--spacing-section-y);
    padding-bottom: var(--spacing-section-y);
    position: relative;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

/* ==========================================================================
   TYPOGRAPHY HEADINGS & KICKERS
   ========================================================================== */
.section-kicker {
    display: inline-block;
    color: #b45309 !important; /* Rich amber-gold (WCAG AA 4.8:1 on white canvas) */
    font-size: var(--font-size-kicker);
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-title {
    font-size: var(--font-size-h1);
    font-weight: 900;
    line-height: 1.15;
    margin: 0 0 16px 0;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-desc {
    color: var(--color-text-muted);
    font-size: 16px;
    line-height: 1.6;
    max-width: 65ch;
    margin-top: 0;
    margin-bottom: 32px;
}

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

/* ==========================================================================
   BUTTON SYSTEM (Strict 4px Radius, Accessible Text-on-Accent)
   ========================================================================== */
.btn-padaidi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-btn);
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
    min-height: 44px;
    /* Touch target minimum */
    padding: 10px 24px;
    box-sizing: border-box;
    white-space: nowrap;
}

.btn-padaidi:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.btn-padaidi:disabled,
.btn-padaidi[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Primary Button: Bold Gold with dark navy text */
.btn-padaidi-primary,
.btn-primary {
    background-color: var(--color-accent) !important;
    color: var(--color-text-on-accent) !important;
    border-color: var(--color-accent) !important;
    font-weight: 800 !important;
}

.btn-padaidi-primary:hover,
.btn-primary:hover {
    background-color: var(--color-accent-hover) !important;
    border-color: var(--color-accent-hover) !important;
    color: var(--color-text-on-accent) !important;
}

/* Secondary Button: Dark surface with subtle border */
.btn-padaidi-secondary,
.btn-outline,
.btn-secondary {
    background-color: #1e293b !important;
    color: var(--color-text) !important;
    border: 1px solid var(--color-border-strong) !important;
}

.btn-padaidi-secondary:hover,
.btn-outline:hover,
.btn-secondary:hover {
    background-color: #27354a !important;
    border-color: var(--color-accent) !important;
    color: var(--color-text) !important;
}

/* Dark Button (used inside gold CTA band) */
.btn-padaidi-dark {
    background-color: var(--color-canvas) !important;
    color: #ffffff !important;
    border: 1px solid #1e293b !important;
}

.btn-padaidi-dark:hover {
    background-color: #111827 !important;
    border-color: #334155 !important;
    color: #ffffff !important;
}

/* Button Sizes */
.btn-sm {
    min-height: 36px !important;
    padding: 6px 16px !important;
    font-size: 12px !important;
}

.btn-lg {
    min-height: 52px !important;
    padding: 16px 36px !important;
    font-size: 16px !important;
}

/* ==========================================================================
   CARDS & PANELS
   ========================================================================== */
.card-padaidi,
.card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 28px;
    box-sizing: border-box;
    transition: border-color 180ms ease, transform 180ms ease;
}

.card-padaidi-alt {
    background-color: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 28px;
}

/* Featured card with 4px top gold line */
.card-accent-top {
    border-top: 4px solid var(--color-accent) !important;
}

.card-hover:hover {
    border-color: var(--color-border-strong);
    transform: translateY(-2px);
}

/* ==========================================================================
   BADGES & LABELS
   ========================================================================== */
.badge-padaidi,
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-badge);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.badge-accent {
    background-color: #fef3c7 !important;
    color: #92400e !important;
    border: 1px solid #fde68a !important;
    font-weight: 800 !important;
}

.badge-success {
    background-color: #ecfdf5 !important;
    color: #065f46 !important;
    border: 1px solid #a7f3d0 !important;
    font-weight: 800 !important;
}

.badge-warning {
    background-color: #fffbeb !important;
    color: #92400e !important;
    border: 1px solid #fde68a !important;
    font-weight: 800 !important;
}

.badge-danger {
    background-color: #fef2f2 !important;
    color: #991b1b !important;
    border: 1px solid #fecaca !important;
    font-weight: 800 !important;
}

.badge-info {
    background-color: #f0f9ff !important;
    color: #075985 !important;
    border: 1px solid #bae6fd !important;
    font-weight: 800 !important;
}

/* ==========================================================================
   PRICING ROWS & STATS BLOCK
   ========================================================================== */
.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    padding-top: 14px;
    padding-bottom: 14px;
}

.price-row:last-child {
    border-bottom: none;
}

.price-row-name {
    color: var(--color-text);
    font-weight: 700;
    font-size: 15px;
}

.price-row-price {
    color: var(--color-accent);
    font-weight: 800;
    font-size: 16px;
}

.stats-grid {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.stats-number {
    color: #0f172a !important;
    font-size: 26px;
    font-weight: 900;
    margin: 0 0 4px 0;
    line-height: 1.1;
}

.stats-label {
    color: #475569 !important;
    font-size: 12px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   CTA BAND (Full Gold Background + Dark Button)
   ========================================================================== */
.cta-band {
    background-color: var(--color-accent);
    padding: clamp(60px, 8vw, 90px) var(--spacing-container-x);
    text-align: center;
    box-sizing: border-box;
}

.cta-band-title {
    font-size: clamp(28px, 4.5vw, 42px);
    font-weight: 900;
    margin: 0 0 16px 0;
    color: var(--color-text-on-accent);
    text-transform: uppercase;
    line-height: 1.15;
}

.cta-band-desc {
    color: var(--color-text-on-accent);
    opacity: 0.90;
    font-size: 17px;
    line-height: 1.6;
    margin: 0 auto 36px auto;
    max-width: 650px;
    font-weight: 500;
}

/* ==========================================================================
   HERO OFFSET VISUALS & AMBIENT CIRCLE
   ========================================================================== */
.hero-offset-frame {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-card);
    border: 4px solid var(--color-border);
    box-shadow: var(--shadow-offset-hero);
    overflow: hidden;
    position: relative;
    background-color: var(--color-surface-elevated);
}

@media (max-width: 768px) {
    .hero-offset-frame {
        box-shadow: var(--shadow-offset-hero-sm);
    }
}

.ambient-circle-bg {
    position: absolute;
    top: -120px;
    right: -120px;
    width: 600px;
    height: 600px;
    background-color: var(--color-canvas-alt);
    border-radius: 50%;
    border: 40px solid var(--color-border);
    z-index: 0;
    pointer-events: none;
}

/* ==========================================================================
   FORM CONTROLS (Adapted to Dark Theme)
   ========================================================================== */
.input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
    display: block;
    width: 100%;
    background-color: #111827 !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-btn) !important;
    color: var(--color-text) !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    box-sizing: border-box;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.input:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: var(--color-accent) !important;
    outline: none !important;
    box-shadow: 0 0 0 2px var(--color-accent-20) !important;
}

.label {
    display: block;
    color: var(--color-text);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

/* ==========================================================================
   TABLES & DATA
   ========================================================================== */
.table-base {
    min-width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    color: var(--color-text-muted);
}

.table-base th {
    background-color: var(--color-surface-elevated);
    padding: 12px 14px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent);
    border-bottom: 1px solid var(--color-border);
}

.table-base td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}

.table-base tr:hover td {
    background-color: rgba(30, 41, 59, 0.4);
}



/* ==========================================================================
   ICON & SIZING UTILITIES (Bulletproof SVG & Layout Dimensions)
   ========================================================================== */
.w-3 {
    width: 0.75rem !important;
}

.h-3 {
    height: 0.75rem !important;
}

.w-3\.5 {
    width: 0.875rem !important;
}

.h-3\.5 {
    height: 0.875rem !important;
}

.w-4 {
    width: 1rem !important;
}

.h-4 {
    height: 1rem !important;
}

.w-5 {
    width: 1.25rem !important;
}

.h-5 {
    height: 1.25rem !important;
}

.w-6 {
    width: 1.5rem !important;
}

.h-6 {
    height: 1.5rem !important;
}

.w-7 {
    width: 1.75rem !important;
}

.h-7 {
    height: 1.75rem !important;
}

.w-8 {
    width: 2rem !important;
}

.h-8 {
    height: 2rem !important;
}

.w-9 {
    width: 2.25rem !important;
}

.h-9 {
    height: 2.25rem !important;
}

.w-10 {
    width: 2.5rem !important;
}

.h-10 {
    height: 2.5rem !important;
}

.w-11 {
    width: 2.75rem !important;
}

.h-11 {
    height: 2.75rem !important;
}

.w-12 {
    width: 3rem !important;
}

.h-12 {
    height: 3rem !important;
}

.w-14 {
    width: 3.5rem !important;
}

.h-14 {
    height: 3.5rem !important;
}

.w-16 {
    width: 4rem !important;
}

.h-16 {
    height: 4rem !important;
}

.w-20 {
    width: 5rem !important;
}

.h-20 {
    height: 5rem !important;
}

.w-24 {
    width: 6rem !important;
}

.h-24 {
    height: 6rem !important;
}

.w-56 {
    width: 14rem !important;
}

.h-56 {
    height: 14rem !important;
}

.w-auto {
    width: auto !important;
}

.h-auto {
    height: auto !important;
}

.w-full {
    width: 100% !important;
}

.h-full {
    height: 100% !important;
}

.shrink-0 {
    flex-shrink: 0 !important;
}

.object-contain {
    object-fit: contain !important;
}

.object-cover {
    object-fit: cover !important;
}

.whitespace-nowrap {
    white-space: nowrap !important;
}

/* SVG explicit constraints to prevent any UA stylesheet expansion */
svg.w-3,
svg.h-3 {
    width: 12px !important;
    height: 12px !important;
    max-width: 12px !important;
    max-height: 12px !important;
}

svg.w-3\.5,
svg.h-3\.5 {
    width: 14px !important;
    height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
}

svg.w-4,
svg.h-4 {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
}

svg.w-5,
svg.h-5 {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
}

svg.w-6,
svg.h-6 {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
}

svg.w-7,
svg.h-7 {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
}

svg.w-8,
svg.h-8 {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
}

svg.w-9,
svg.h-9 {
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
}

svg.w-10,
svg.h-10 {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
}

svg.w-12,
svg.h-12 {
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
}

svg.w-14,
svg.h-14 {
    width: 56px !important;
    height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
}

svg.w-16,
svg.h-16 {
    width: 64px !important;
    height: 64px !important;
    max-width: 64px !important;
    max-height: 64px !important;
}

svg.w-20,
svg.h-20 {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
}


/* ==========================================================================
   PADAIDI RENT CAR - LAYOUT, Z-INDEX STACKING & SPACING ROBUSTNESS (FIXES)
   ========================================================================== */

/* --- 1. GLOBAL HEADER STACKING & STICKY POSITIONING --- */
header,
.site-header,
header.sticky,
header[class*="sticky"] {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    background-color: rgba(11, 18, 32, 0.98) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border-bottom: 1px solid #1e293b !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

/* Ensure header children stay inside and aligned */
header .site-container {
    position: relative !important;
    z-index: 1001 !important;
}

/* --- 2. MAIN CONTENT STACKING & CONTAINMENT --- */
main,
main#main-content,
#main-content {
    position: relative !important;
    z-index: 1 !important;
}

/* Hero section must strictly isolate its stacking context and clip background shapes */
.hero-section,
section.hero-section {
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate !important;
    z-index: 1 !important;
}

/* Ambient background circle must never poke above section nor overlap header or text */
.ambient-circle-bg {
    position: absolute !important;
    top: -80px !important;
    right: -80px !important;
    width: 550px !important;
    height: 550px !important;
    background-color: #111827 !important;
    border-radius: 50% !important;
    border: 36px solid #1e293b !important;
    z-index: -1 !important; /* Strictly behind all section text and cards */
    pointer-events: none !important;
}

/* --- 3. DESKTOP NAVIGATION MENU SPACING & LINKS (Desktop >= 768px only) --- */
@media (min-width: 768px) {
    nav[aria-label="Menu Utama"],
    .site-nav-menu {
        display: flex !important;
        align-items: center !important;
        gap: 1.75rem !important; /* 28px separation */
    }

    nav[aria-label="Menu Utama"] > a,
    .site-nav-link {
        display: inline-flex !important;
        align-items: center !important;
        padding: 0.375rem 0.625rem !important; /* 6px 10px */
        white-space: nowrap !important;
        font-size: 0.75rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.05em !important;
        text-transform: uppercase !important;
        transition: color 0.15s ease-in-out !important;
    }
}

/* Prevent brand text from ever wrapping */
header a[aria-label*="Padaidi"] {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

header a[aria-label*="Padaidi"] span {
    white-space: nowrap !important;
}

/* --- 4. Z-INDEX HIERARCHY SPECIFICATION --- */
.z-0 { z-index: 0 !important; }
.z-10 { z-index: 10 !important; }
.z-20 { z-index: 20 !important; }
.z-30 { z-index: 30 !important; }
.z-40 { z-index: 40 !important; }
.z-50 { z-index: 50 !important; }
.z-sticky { z-index: 1000 !important; }
.z-modal { z-index: 2000 !important; }
.z-toast { z-index: 2500 !important; }
.z-skip { z-index: 3000 !important; }

/* Sticky cards on car detail and booking checkout */
.top-0 { top: 0 !important; }
.top-16 { top: 4rem !important; }
.top-20 { top: 5rem !important; }
.top-24 { top: 6rem !important; }
.sticky.top-24,
div.sticky.top-24 {
    position: sticky !important;
    top: 6rem !important;
    z-index: 20 !important; /* Below 1000 header, above standard background */
}

/* --- 5. FLEX & GRID UTILITIES FALLBACK --- */
.gap-1 { gap: 0.25rem !important; }
.gap-1\.5 { gap: 0.375rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-2\.5 { gap: 0.625rem !important; }
.gap-3 { gap: 0.75rem !important; }
.gap-3\.5 { gap: 0.875rem !important; }
.gap-4 { gap: 1rem !important; }
.gap-5 { gap: 1.25rem !important; }
.gap-6 { gap: 1.5rem !important; }
.gap-7 { gap: 1.75rem !important; }
.gap-8 { gap: 2rem !important; }
.gap-10 { gap: 2.5rem !important; }
.gap-12 { gap: 3rem !important; }

/* Responsive Grid columns fallback */
@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
    .md\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
    .md\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
    .md\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; }
    .md\:col-span-1 { grid-column: span 1 / span 1 !important; }
    .md\:col-span-2 { grid-column: span 2 / span 2 !important; }
    .md\:col-span-3 { grid-column: span 3 / span 3 !important; }
    .md\:col-span-4 { grid-column: span 4 / span 4 !important; }
    .md\:col-span-5 { grid-column: span 5 / span 5 !important; }
    .md\:col-span-6 { grid-column: span 6 / span 6 !important; }
    .md\:col-span-7 { grid-column: span 7 / span 7 !important; }
    .md\:col-span-8 { grid-column: span 8 / span 8 !important; }
    .md\:col-span-9 { grid-column: span 9 / span 9 !important; }
    .md\:col-span-12 { grid-column: span 12 / span 12 !important; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
    .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
    .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
    .lg\:col-span-1 { grid-column: span 1 / span 1 !important; }
    .lg\:col-span-2 { grid-column: span 2 / span 2 !important; }
    .lg\:col-span-3 { grid-column: span 3 / span 3 !important; }
    .lg\:col-span-4 { grid-column: span 4 / span 4 !important; }
}



/* ==========================================================================
   PADAIDI RENT CAR - WHITE CANVAS (LIGHT THEME) OVERRIDES
   ========================================================================== */

/* 1. Canvas and Surface tokens */
body.theme-padaidi,
body {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

/* 2. Strictly hide all ambient background circles */
.ambient-circle-bg {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* 3. Cards on white background */
.card-padaidi,
.card {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05) !important;
}

.card-hover:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05) !important;
    transform: translateY(-2px);
}

.card-accent-top {
    border-top: 4px solid #F5A623 !important;
}

/* 4. Form inputs on white canvas */
.input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

.input:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: #F5A623 !important;
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.25) !important;
}

.label {
    color: #334155 !important;
    font-weight: 700 !important;
}

/* 5. Typography on white canvas */
.section-title {
    color: #0f172a !important;
}

.section-desc {
    color: #475569 !important;
}

.price-row {
    border-bottom: 1px solid #e2e8f0 !important;
}

.price-row-name {
    color: #0f172a !important;
}

.price-row-price {
    color: #b45309 !important; /* Rich amber-gold (WCAG AA 4.8:1 on white) */
    font-weight: 800 !important;
}

/* 6. Outline/Secondary buttons on white canvas */
.btn-padaidi-secondary,
.btn-outline,
.btn-secondary {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}

.btn-padaidi-secondary:hover,
.btn-outline:hover,
.btn-secondary:hover {
    background-color: #f8fafc !important;
    border-color: #F5A623 !important;
    color: #0f172a !important;
}

/* 7. Preserving strictly Dark Header & Dark Footer */
header,
.site-header,
header.sticky {
    background-color: rgba(11, 18, 32, 0.98) !important;
    border-bottom: 1px solid #1e293b !important;
    color: #f8fafc !important;
}

footer,
footer[role="contentinfo"] {
    background-color: #0b1220 !important;
    border-top: 1px solid #1e293b !important;
    color: #94a3b8 !important;
}

/* 8. Landing Page UI/UX Enhancements (Conversion & Trust) */
.destination-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.destination-card:hover {
    transform: translateY(-3px);
    border-color: #F5A623 !important;
    box-shadow: 0 10px 25px -5px rgba(245, 166, 35, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

/* VIP Member Loyalty Banner */
.member-vip-banner {
    background: linear-gradient(135deg, #070e1b 0%, #0b1325 50%, #152238 100%) !important;
    border: 1px solid #1e293b !important;
    border-top: 4px solid #F5A623 !important;
    color: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 25px -5px rgba(11, 18, 32, 0.25), 0 8px 10px -6px rgba(11, 18, 32, 0.2) !important;
    position: relative;
    overflow: hidden;
}

.member-vip-banner h2 {
    color: #ffffff !important;
}

.member-tier-card {
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s ease-in-out;
}

.member-tier-regular {
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(51, 65, 85, 0.7) !important;
}

.member-tier-silver {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%) !important;
    border: 1px solid rgba(148, 163, 184, 0.4) !important;
}

.member-tier-gold {
    background: linear-gradient(145deg, rgba(30, 27, 20, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
    border: 2px solid #F5A623 !important;
    box-shadow: 0 0 15px rgba(245, 166, 35, 0.15) !important;
}

/* FAQ Accordion */
details.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #ffffff;
    transition: all 0.2s ease;
}
details.faq-item[open] {
    border-color: #F5A623;
    box-shadow: 0 4px 14px rgba(245, 166, 35, 0.10);
}
details.faq-item summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.125rem 1.25rem;
    font-weight: 800;
    font-size: 0.9375rem;
    color: #0f172a;
    user-select: none;
}
details.faq-item summary::-webkit-details-marker {
    display: none;
}
details.faq-item summary .faq-chevron {
    transition: transform 0.2s ease;
    color: #F5A623;
}
details.faq-item[open] summary .faq-chevron {
    transform: rotate(180deg);
}
details.faq-item .faq-body {
    padding: 0 1.25rem 1.25rem 1.25rem;
    color: #475569;
    font-size: 0.875rem;
    line-height: 1.65;
    border-top: 1px solid #f1f5f9;
    padding-top: 0.875rem;
}

/* Floating WhatsApp Quick Action Pill */
.floating-whatsapp-pill {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1.25rem;
    background-color: #0b1220;
    color: #f8fafc;
    border: 2px solid #F5A623;
    border-radius: 9999px;
    box-shadow: 0 10px 25px rgba(11, 18, 32, 0.4);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.8125rem;
    letter-spacing: 0.025em;
    transition: all 0.2s ease-in-out;
}
.floating-whatsapp-pill:hover {
    transform: translateY(-2px);
    background-color: #111827;
    border-color: #FDBA4D;
    color: #F5A623;
    box-shadow: 0 14px 28px rgba(245, 166, 35, 0.25);
}
.live-pulse-dot {
    position: relative;
    display: inline-flex;
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 9999px;
    background-color: #10b981;
}
.live-pulse-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    background-color: #10b981;
    animation: live-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes live-ping {
    75%, 100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

/* ==========================================================================
   FASE 2 - FONDASI SELULER & KOMPONEN GLOBAL (@media max-width: 767px)
   Additive rules strictly protecting desktop contracts (>= 768px untouched)
   ========================================================================== */
@media (max-width: 767px) {
    /* 1. Prevent accidental horizontal scroll & constrain max viewport width */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    /* 2. Responsive mobile container padding (16px) */
    .site-container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 3. Strict hidden state for desktop nav and desktop actions on mobile */
    .site-nav-menu,
    nav[aria-label="Menu Utama"],
    header .site-nav-menu,
    header div.hidden.md\:flex {
        display: none !important;
    }

    /* 4. Anti-Auto-Zoom on iOS: All form inputs MUST be >= 16px */
    .input,
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="number"],
    input[type="date"],
    select,
    textarea {
        font-size: 16px !important; /* Prevents iOS Safari auto-zoom */
        min-height: 44px !important; /* 44px touch ergonomics */
        padding: 10px 12px !important;
        box-sizing: border-box !important;
    }

    .label {
        font-size: 13px !important;
        margin-bottom: 6px !important;
    }

    /* 5. Mobile Ergonomics: Touch Targets >= 44px for buttons & interactive elements */
    .btn,
    .btn-padaidi,
    .btn-primary,
    .btn-outline,
    .btn-secondary {
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        font-size: 13px !important;
        touch-action: manipulation;
    }

    /* 6. Mobile Drawer Nav Items */
    #nav-mobile a {
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
    }

    /* 7. Responsive Hero adjustments */
    .hero-section {
        padding-top: 2rem !important;
        padding-bottom: 2.5rem !important;
    }

    .hero-section h1 {
        font-size: 1.875rem !important; /* 30px */
        line-height: 1.15 !important;
    }

    .stats-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
        margin-top: 1.5rem !important;
    }

    .stats-number {
        font-size: 22px !important;
    }

    .stats-label {
        font-size: 11px !important;
    }

    /* 8. Safe area padding for footers and fixed bars */
    footer,
    .site-footer {
        padding-bottom: max(2rem, calc(2rem + env(safe-area-inset-bottom, 0px))) !important;
    }

    /* 9. Floating WhatsApp pill safe area on mobile */
    .floating-whatsapp-pill {
        bottom: max(1rem, calc(1rem + env(safe-area-inset-bottom, 0px))) !important;
        right: 1rem !important;
        padding: 0.625rem 1rem !important;
        font-size: 0.75rem !important;
    }

    /* 10. Smooth Momentum Scrolling on Tables */
    .overflow-x-auto {
        -webkit-overflow-scrolling: touch !important;
    }

    /* 11. Touch-friendly badges & filters on mobile */
    .badge {
        min-height: 32px !important;
        display: inline-flex !important;
        align-items: center !important;
        padding-left: 0.625rem !important;
        padding-right: 0.625rem !important;
        touch-action: manipulation;
    }
}

/* ==========================================================================
   ADMIN PORTAL THEME (Matching Padaidi Dark Canvas & Gold Nuance)
   ========================================================================== */
body.theme-admin {
    background-color: #0b1220 !important;
    color: #f8fafc !important;
}

body.theme-admin aside,
body.theme-admin .admin-sidebar {
    background-color: #0b1220 !important;
    border-right: 1px solid #1e293b !important;
    color: #f8fafc !important;
}

body.theme-admin aside .border-b,
body.theme-admin aside .border-t {
    border-color: #1e293b !important;
}

body.theme-admin aside nav a {
    color: #cbd5e1 !important;
    font-size: 12px !important;
}

body.theme-admin aside nav a:hover {
    background-color: #1e293b !important;
    color: #F5A623 !important;
}

body.theme-admin aside nav a[class*="bg-[#F5A623]"] {
    background-color: #F5A623 !important;
    color: #0b1220 !important;
    font-weight: 900 !important;
}

body.theme-admin main {
    background-color: #0b1220 !important;
    color: #f8fafc !important;
}

body.theme-admin h1,
body.theme-admin h2,
body.theme-admin h3 {
    color: #ffffff !important;
}

body.theme-admin .card {
    background-color: #111827 !important;
    border-color: #1e293b !important;
    color: #f8fafc !important;
}

body.theme-admin .card.card-accent-top {
    border-top: 3px solid #F5A623 !important;
}

/* Form Controls & Inputs */
body.theme-admin .input,
body.theme-admin input[type="text"],
body.theme-admin input[type="email"],
body.theme-admin input[type="password"],
body.theme-admin input[type="number"],
body.theme-admin input[type="tel"],
body.theme-admin input[type="date"],
body.theme-admin select,
body.theme-admin textarea {
    background-color: #0b1220 !important;
    border-color: #334155 !important;
    color: #ffffff !important;
}

body.theme-admin .input::placeholder,
body.theme-admin input::placeholder,
body.theme-admin textarea::placeholder {
    color: #64748b !important;
}

body.theme-admin .input:focus,
body.theme-admin input:focus,
body.theme-admin select:focus,
body.theme-admin textarea:focus {
    border-color: #F5A623 !important;
    box-shadow: 0 0 0 2px rgba(245, 166, 35, 0.25) !important;
    outline: none !important;
}

body.theme-admin .label {
    color: #cbd5e1 !important;
    font-weight: 700 !important;
}

/* Tables */
body.theme-admin .table-base {
    width: 100% !important;
    color: #e2e8f0 !important;
}

body.theme-admin .table-base th {
    background-color: #0b1220 !important;
    color: #F5A623 !important;
    border-bottom: 2px solid #1e293b !important;
    font-weight: 800 !important;
    letter-spacing: 0.05em !important;
}

body.theme-admin .table-base td {
    border-bottom: 1px solid #1e293b !important;
    color: #cbd5e1 !important;
}

body.theme-admin .table-base tr:hover td {
    background-color: rgba(30, 41, 59, 0.45) !important;
}

/* Buttons */
body.theme-admin .btn-outline {
    background-color: transparent !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

body.theme-admin .btn-outline:hover {
    border-color: #F5A623 !important;
    color: #F5A623 !important;
    background-color: rgba(245, 166, 35, 0.08) !important;
}

body.theme-admin .btn-primary {
    background-color: #F5A623 !important;
    color: #0b1220 !important;
    border-color: #F5A623 !important;
    font-weight: 900 !important;
}

body.theme-admin .btn-primary:hover {
    background-color: #FDBA4D !important;
    border-color: #FDBA4D !important;
}

/* High-Contrast Color Normalization inside Admin */
body.theme-admin .text-slate-900,
body.theme-admin .text-slate-800,
body.theme-admin .text-slate-700 {
    color: #f8fafc !important;
}

body.theme-admin .text-slate-600,
body.theme-admin .text-slate-500 {
    color: #94a3b8 !important;
}

body.theme-admin .text-slate-400 {
    color: #cbd5e1 !important;
}

body.theme-admin .border-slate-100,
body.theme-admin .border-slate-200,
body.theme-admin .border-slate-300 {
    border-color: #1e293b !important;
}

body.theme-admin .bg-white {
    background-color: #111827 !important;
}

body.theme-admin .bg-slate-50,
body.theme-admin .bg-slate-100 {
    background-color: #0b1220 !important;
}

body.theme-admin .divide-slate-100 > :not([hidden]) ~ :not([hidden]),
body.theme-admin .divide-slate-200 > :not([hidden]) ~ :not([hidden]) {
    border-color: #1e293b !important;
}
