/* ============================================================
   BersihBersih.co.id - Design System
   Premium UI dengan Glassmorphism & Animasi 3D
   ============================================================ */

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

/* ============================================================
   CSS Custom Properties (Design Tokens)
   ============================================================ */
:root {
    /* Brand Colors */
    --primary:       #0ea5e9;
    --primary-dark:  #0284c7;
    --primary-light: #38bdf8;
    --secondary:     #8b5cf6;
    --accent:        #06d6a0;
    --rose:          #f43f5e;
    --amber:         #f59e0b;

    /* Gradients */
    --grad-hero:    linear-gradient(135deg, #0c1a3a 0%, #0f2d5e 40%, #1a0a3e 100%);
    --grad-blue:    linear-gradient(135deg, #0ea5e9, #8b5cf6);
    --grad-teal:    linear-gradient(135deg, #06b6d4, #06d6a0);
    --grad-rose:    linear-gradient(135deg, #f43f5e, #f97316);
    --grad-purple:  linear-gradient(135deg, #8b5cf6, #ec4899);
    --grad-glass:   linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));

    /* Glass */
    --glass-bg:      rgba(255, 255, 255, 0.08);
    --glass-border:  rgba(255, 255, 255, 0.15);
    --glass-shadow:  0 8px 32px rgba(0, 0, 0, 0.3);

    /* Text */
    --text-white:    #ffffff;
    --text-light:    rgba(255, 255, 255, 0.85);
    --text-muted:    rgba(255, 255, 255, 0.5);

    /* Autocomplete */
    --suggestions-bg: #142650;
    --suggestions-border: rgba(255, 255, 255, 0.15);
    --suggestions-color: #ffffff;
    --suggestions-hover-bg: rgba(255, 255, 255, 0.1);

    /* Spacing */
    --radius-sm:  8px;
    --radius-md:  16px;
    --radius-lg:  24px;
    --radius-xl:  32px;
    --radius-full: 9999px;

    /* Transitions */
    --trans-fast:   all 0.2s ease;
    --trans-med:    all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --trans-slow:   all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--grad-hero);
    color: var(--text-white);
    min-height: 100vh;
    max-width: 100%;
    overflow-x: hidden;
    line-height: 1.6;
    padding-top: 80px; /* Push down content under fixed navbar */
}

/* ============================================================
   Background Particles / Blobs
   ============================================================ */
.bg-blobs {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    animation: blobFloat 8s ease-in-out infinite;
}

.blob-1 {
    width: 500px; height: 500px;
    background: var(--primary);
    top: -150px; left: -100px;
    animation-delay: 0s;
}
.blob-2 {
    width: 400px; height: 400px;
    background: var(--secondary);
    top: 40%; right: -120px;
    animation-delay: 2s;
}
.blob-3 {
    width: 350px; height: 350px;
    background: var(--accent);
    bottom: -100px; left: 30%;
    animation-delay: 4s;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(30px, -20px) scale(1.05); }
    66%       { transform: translate(-20px, 20px) scale(0.95); }
}

/* ============================================================
   Layout Wrapper
   ============================================================ */
.app-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(12, 26, 58, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    transition: var(--trans-med);
}

.navbar.scrolled {
    background: rgba(12, 26, 58, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--grad-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
    transition: var(--trans-med);
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    transition: var(--trans-med);
}

.logo:hover .logo-img {
    transform: rotate(-3deg) scale(1.05);
}

.logo:hover .logo-icon {
    transform: rotate(-5deg) scale(1.05);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.6);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text strong {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    background: var(--grad-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text span {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 400;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--trans-fast);
}

.nav-links a:hover {
    color: var(--text-white);
    background: var(--glass-bg);
}

.btn-nav-cta {
    background: var(--grad-blue) !important;
    color: white !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: var(--radius-full) !important;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.35);
}

.btn-nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5) !important;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: white;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    padding: 5rem 0 4rem;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(14, 165, 233, 0.3);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.6s ease;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.7s ease 0.1s both;
}

.hero-title .highlight {
    background: var(--grad-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .highlight-blue {
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%); /* Warna utama biru gradasi */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 580px;
    margin: 0 auto 2.5rem;
    animation: fadeInUp 0.7s ease 0.2s both;
}

/* ============================================================
   WA LOOKUP FORM (Hero Card)
   ============================================================ */
.wa-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    max-width: 520px;
    margin: 0 auto 4rem;
    box-shadow: var(--glass-shadow), 0 0 60px rgba(14, 165, 233, 0.1);
    animation: fadeInUp 0.7s ease 0.3s both;
    transition: var(--trans-med);
}

.wa-card:hover {
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: var(--glass-shadow), 0 0 80px rgba(14, 165, 233, 0.15);
}

.wa-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.wa-card-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.input-wa-group {
    position: relative;
    margin-bottom: 1.25rem;
}

.input-wa-prefix {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.input-wa {
    width: 100%;
    background: var(--input-bg, rgba(255, 255, 255, 0.06));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1rem 1rem 1rem 4.5rem;
    color: var(--input-color, white);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: var(--trans-fast);
    outline: none;
}

.input-wa::placeholder { color: var(--text-muted); }
.input-wa:focus {
    border-color: var(--primary);
    background: rgba(14, 165, 233, 0.08);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: var(--trans-med);
    white-space: nowrap;
}

.btn-primary {
    background: var(--grad-blue);
    color: white;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.55);
}

.btn-primary:active { transform: translateY(0); }

.btn-wa {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

.btn-wa:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.55);
}

.btn-ghost {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, #f43f5e, #dc2626);
    color: white;
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-full { width: 100%; }

/* ============================================================
   3D SERVICE CARDS (Mobile Icons)
   ============================================================ */
.services-section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

/* 3D Card Effect */
.service-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    transition: var(--trans-med);
    transform-style: preserve-3d;
    animation: fadeInUp 0.6s ease both;
    text-decoration: none;
    color: var(--text-white);
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-glass);
    opacity: 0;
    transition: var(--trans-med);
    border-radius: inherit;
}

.service-card:hover::before { opacity: 1; }

.service-card:hover {
    transform: translateY(-8px) rotateX(3deg);
    border-color: rgba(255,255,255,0.25);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px var(--card-glow, rgba(14,165,233,0.2));
}

.service-card.blue  { --card-glow: rgba(14, 165, 233, 0.25); }
.service-card.purple{ --card-glow: rgba(139, 92, 246, 0.25); }
.service-card.teal  { --card-glow: rgba(6, 214, 160, 0.25); }
.service-card.rose  { --card-glow: rgba(244, 63, 94, 0.25); }

/* 3D Icon */
.service-icon-3d {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.25rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border-radius: 20px;
    background: var(--card-icon-bg, var(--grad-blue));
    box-shadow: 0 8px 25px var(--card-glow, rgba(14,165,233,0.4)),
                0 0 0 8px var(--card-ring, rgba(14,165,233,0.1)),
                inset 0 1px 0 rgba(255,255,255,0.3);
    transition: var(--trans-med);
    transform: perspective(300px) rotateX(15deg);
}

.service-card:hover .service-icon-3d {
    transform: perspective(300px) rotateX(0deg) scale(1.1);
    box-shadow: 0 15px 40px var(--card-glow, rgba(14,165,233,0.5)),
                0 0 0 12px var(--card-ring, rgba(14,165,233,0.12)),
                inset 0 1px 0 rgba(255,255,255,0.3);
}

.service-card.blue   .service-icon-3d { --card-icon-bg: linear-gradient(135deg, #0ea5e9, #6366f1); --card-ring: rgba(14,165,233,0.15); }
.service-card.purple .service-icon-3d { --card-icon-bg: linear-gradient(135deg, #8b5cf6, #ec4899); --card-ring: rgba(139,92,246,0.15); }
.service-card.teal   .service-icon-3d { --card-icon-bg: linear-gradient(135deg, #06b6d4, #06d6a0); --card-ring: rgba(6,214,160,0.15); }
.service-card.rose   .service-icon-3d { --card-icon-bg: linear-gradient(135deg, #f43f5e, #f97316); --card-ring: rgba(244,63,94,0.15); }

.service-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.service-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.service-price {
    display: inline-block;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-full);
    padding: 0.3rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary-light);
}

/* ============================================================
   FORM STYLES
   ============================================================ */
.form-section {
    padding: 4rem 0;
}

.form-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    max-width: 680px;
    margin: 0 auto;
    box-shadow: var(--glass-shadow);
}

.form-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.form-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.form-label .req { color: var(--rose); }

.form-control {
    width: 100%;
    background: var(--input-bg, rgba(255,255,255,0.06));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    color: var(--input-color, white);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: var(--trans-fast);
}

.form-control::placeholder { color: rgba(255,255,255,0.3); }
.form-control:focus {
    border-color: var(--primary);
    background: rgba(14, 165, 233, 0.08);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.form-control option { background: #0f2d5e; color: white; }

select.form-control { cursor: pointer; }

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ============================================================
   ALERT / FLASH MESSAGES
   ============================================================ */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: fadeInDown 0.4s ease;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.alert-error {
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.3);
    color: #fda4af;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fde68a;
}

.alert-info {
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: #7dd3fc;
}

/* ============================================================
   ORDER CARDS (Riwayat)
   ============================================================ */
.order-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--trans-med);
}

.order-card:hover {
    border-color: rgba(14, 165, 233, 0.3);
    background: rgba(14, 165, 233, 0.05);
    transform: translateX(4px);
}

.order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.order-kode {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-light);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
}

.badge-success { background: rgba(16,185,129,0.2); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.3); }
.badge-warning { background: rgba(245,158,11,0.2); color: #fde68a; border: 1px solid rgba(245,158,11,0.3); }
.badge-info    { background: rgba(14,165,233,0.2); color: #7dd3fc; border: 1px solid rgba(14,165,233,0.3); }
.badge-primary { background: rgba(99,102,241,0.2); color: #c7d2fe; border: 1px solid rgba(99,102,241,0.3); }
.badge-danger  { background: rgba(244,63,94,0.2);  color: #fda4af; border: 1px solid rgba(244,63,94,0.3); }
.badge-light   { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.15); }

.order-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.order-info-item label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.order-info-item span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
}

/* ============================================================
   LAYANAN ICON GRID (Mobile Bottom Nav Style)
   ============================================================ */
.hero-services-grid {
    display: none; /* Sembunyikan di desktop */
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-light);
    transition: var(--trans-med);
    padding: 1rem 0.5rem;
    border-radius: var(--radius-lg);
}

.menu-item:hover {
    color: white;
    transform: translateY(-4px);
    background: var(--glass-bg);
}

.menu-icon-3d {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3),
                0 2px 8px rgba(255,255,255,0.1),
                inset 0 1px 0 rgba(255,255,255,0.25);
    transform: perspective(200px) rotateX(10deg);
    transition: var(--trans-med);
    background: var(--icon-grad, var(--grad-blue));
}

.menu-item:hover .menu-icon-3d {
    transform: perspective(200px) rotateX(0deg) scale(1.15);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4),
                0 0 20px var(--icon-glow, rgba(14,165,233,0.4)),
                inset 0 1px 0 rgba(255,255,255,0.25);
}

.menu-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

/* ============================================================
   STATISTICS SECTION (Home)
   ============================================================ */
.stats-section {
    padding: 3rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: var(--trans-med);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(14, 165, 233, 0.3);
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    background: var(--grad-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    margin-top: auto;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--glass-border);
    padding: 2.5rem 0 1.5rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-col ul a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: var(--trans-fast);
}

.footer-col ul a:hover { color: var(--primary-light); }

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 1.25rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.05); }
}

@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Page transition */
.page-enter {
    animation: fadeInUp 0.5s ease both;
}

/* ============================================================
   FORM SECTION BLOCK (sub-section dalam form card)
   ============================================================ */
.form-section-block {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.form-section-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 1.25rem;
}

/* ============================================================
   DESA GRID — Enhanced Multi-Select
   ============================================================ */
.desa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem;
    max-height: 320px;
    overflow-y: auto;
    padding: 0.25rem 0.25rem 0.25rem 0;
    margin-top: 0.75rem;
}

.desa-grid-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.desa-item {
    position: relative;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.18s ease;
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    text-align: center;
    line-height: 1.3;
    user-select: none;
}

.desa-nama { display: block; }

.desa-item:hover:not(.taken):not(.existing) {
    background: rgba(14,165,233,0.15);
    border-color: var(--primary);
    color: white;
    transform: translateY(-1px);
}

.desa-item.selected {
    background: var(--grad-blue);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(14,165,233,0.35);
}

.desa-item.taken {
    background: rgba(244,63,94,0.06);
    border-color: rgba(244,63,94,0.15);
    color: rgba(244,63,94,0.5);
    cursor: not-allowed;
    text-decoration: line-through;
}

.desa-item.existing {
    background: rgba(63,185,80,0.08);
    border-color: rgba(63,185,80,0.2);
    color: rgba(63,185,80,0.7);
    cursor: not-allowed;
}

.desa-taken-badge {
    display: block;
    font-size: 0.68rem;
    margin-top: 0.2rem;
    background: rgba(244,63,94,0.12);
    border-radius: 4px;
    padding: 0.1rem 0.3rem;
    color: rgba(244,63,94,0.8);
}

/* Shake animation (max desa tercapai) */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-4px); }
    40%       { transform: translateX(4px); }
    60%       { transform: translateX(-3px); }
    80%       { transform: translateX(3px); }
}

.desa-item.shake {
    animation: shake 0.45s ease;
    border-color: rgba(244,63,94,0.5);
    background: rgba(244,63,94,0.1);
}

/* Scrollbar desa grid */
.desa-grid::-webkit-scrollbar { width: 4px; }
.desa-grid::-webkit-scrollbar-track { background: rgba(255,255,255,0.04); border-radius: 2px; }
.desa-grid::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 2px; }

/* ============================================================
   SUCCESS PAGE
   ============================================================ */
.success-card {
    background: var(--glass-bg);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    text-align: center;
    max-width: 520px;
    margin: 4rem auto;
    animation: fadeInUp 0.6s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981, #06d6a0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.4);
    animation: pulse 2s ease infinite;
}

/* ============================================================
   DIVIDER
   ============================================================ */
.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

/* ============================================================
   RESPONSIVE (Mobile Compact & Density Optimization)
   ============================================================ */
@media (max-width: 768px) {
    body { padding-top: 60px; }
    /* Hide descriptions to keep it compact */
    .service-desc, 
    .hero-subtitle, 
    .section-subtitle, 
    .wa-card-title,
    .wa-card-subtitle,
    .form-subtitle,
    .services-section,
    footer .footer-brand p {
        display: none !important;
    }

    .navbar { padding: 0.5rem 0; }
    .navbar .nav-links { display: none; }
    .navbar .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(12, 26, 58, 0.95); backdrop-filter: blur(20px); padding: 1rem; border-bottom: 1px solid var(--glass-border); }
    .theme-light .navbar .nav-links.open { background: rgba(255, 255, 255, 0.95); }
    .hamburger { display: flex; }

    .hero { padding: 1rem 0 0.5rem; }
    
    /* Mobile Hero Reordering & Density */
    .hero .container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
        order: 1;
    }
    .hero-services-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.4rem !important;
        margin-top: 0.5rem !important;
        margin-bottom: 0.75rem !important;
        width: 100%;
        order: 2;
    }

    .hero-badge {
        padding: 0.25rem 0.6rem;
        font-size: 0.72rem;
        margin-bottom: 0.75rem !important;
        order: 3;
    }
    
    .wa-card {
        padding: 1rem 0.75rem;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        border-radius: var(--radius-md);
        margin-bottom: 1rem;
        width: 100%;
        order: 4;
        margin-top: 0 !important;
    }
    .input-wa-group { margin-bottom: 0.75rem; }
    .input-wa { padding: 0.75rem 0.75rem 0.75rem 4.75rem; font-size: 0.9rem; }
    .divider { margin: 0.6rem 0; }

    /* Services grid forced 2-columns (Very compact) */
    .services-section { padding: 1.5rem 0; }
    .section-title { margin-bottom: 1rem; }
    .services-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 0.4rem !important; }
    
    .service-card { padding: 0.75rem 0.4rem !important; border-radius: var(--radius-md); }
    .service-icon-3d {
        width: 44px; height: 44px; font-size: 1.5rem; border-radius: 10px; margin-bottom: 0.3rem;
        box-shadow: 0 4px 10px var(--card-glow, rgba(14,165,233,0.3)),
                    0 0 0 3px var(--card-ring, rgba(14,165,233,0.08));
    }
    .service-name { font-size: 0.8rem; margin-bottom: 0.2rem; }
    .service-price { font-size: 0.7rem; padding: 0.15rem 0.5rem; }

    .stats-section { padding: 2rem 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
    .stat-card { padding: 0.75rem 0.5rem; border-radius: var(--radius-md); }
    .stat-number { font-size: 1.4rem; }
    .stat-label { font-size: 0.72rem; }

    /* Agency CTA */
    section[aria-labelledby="agen-cta-title"] { padding: 2rem 0 !important; }
    section[aria-labelledby="agen-cta-title"] > .container > div { padding: 1.5rem 1rem !important; border-radius: var(--radius-md) !important; }
    #agen-cta-title { font-size: 1.25rem !important; margin-bottom: 0.5rem !important; }
    section[aria-labelledby="agen-cta-title"] p { font-size: 0.82rem !important; margin-bottom: 1.25rem !important; }
    .btn-lg { padding: 0.75rem 1.25rem !important; font-size: 0.85rem !important; }

    .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 1rem; }
    .form-row { grid-template-columns: 1fr; }
    .form-section { padding: 2rem 0; }
    .form-card { padding: 1.25rem !important; margin: 0 0.5rem; border-radius: var(--radius-md); }
    .form-title { font-size: 1.25rem; }
    .form-control { padding: 0.65rem 0.85rem; font-size: 0.88rem; border-radius: var(--radius-sm); }
    .form-label { font-size: 0.8rem; margin-bottom: 0.3rem; }
    .form-section-block { padding: 1rem; }

    .desa-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}

@media (max-width: 576px) {
    /* Kept 2 columns instead of dropping to 1 */
    .services-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 380px) {
    .mobile-menu-grid { gap: 0.25rem; }
    .menu-icon-3d { width: 38px; height: 38px; font-size: 1.1rem; }
    .menu-label { font-size: 0.6rem; }
}

/* ============================================================
   FRONTEND LIGHT THEME OVERRIDES (Dasar Putih + Warna Air + Emas/Pelangi)
   ============================================================ */
body.theme-light {
    /* Dasar putih elegan & bersih (Putih Murni) */
    --grad-hero: #ffffff;
    
    /* Latar card agak biru dengan pencahayaan 3D (3D Lighting & Frosted Blue) */
    --grad-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 249, 255, 0.85) 50%, rgba(215, 238, 255, 0.75) 100%);
    --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 249, 255, 0.85) 50%, rgba(215, 238, 255, 0.75) 100%);

    /* Efek 3D Shadow (Rim Light + Deep Shadow) */
    --glass-border: rgba(14, 165, 233, 0.25);
    --glass-shadow: 
        0 20px 40px rgba(15, 23, 42, 0.06), 
        0 10px 15px rgba(2, 132, 199, 0.05),
        inset 0 2px 3px rgba(255, 255, 255, 1),
        inset 0 -2px 6px rgba(2, 132, 199, 0.1);

    /* Teks premium elegan (Deep Sapphire / Slate) */
    --text-white: #0f172a;
    --text-light: #334155;
    --text-muted: #64748b;

    /* Input elegan */
    --input-bg: rgba(255, 255, 255, 0.8);
    --input-color: #0f172a;

    /* Warna Air Identitas (Luxurious Ocean Blue / Cyan) */
    --primary: #0284c7;
    --primary-dark: #0369a1;
    --primary-light: #0ea5e9;

    /* Autocomplete */
    --suggestions-bg: #ffffff;
    --suggestions-border: rgba(148, 163, 184, 0.3);
    --suggestions-color: #0f172a;
    --suggestions-hover-bg: rgba(2, 132, 199, 0.05);
}

/* Kustomisasi Blobs untuk Tema Terang (Efek Gelembung Sabun Melayang Ke Atas Looping) */
body.theme-light .blob { 
    display: block !important;
    opacity: 0.6 !important;
    filter: none !important;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 0 25px rgba(148, 163, 184, 0.2), inset 10px 0 20px rgba(255, 255, 255, 0.8), 0 10px 20px rgba(15, 23, 42, 0.03);
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(241, 245, 249, 0.1) 60%, rgba(203, 213, 225, 0.25) 100%) !important;
    animation: floatUpBubble 20s infinite linear;
}
body.theme-light .blob-1 { width: 120px; height: 120px; top: auto; bottom: -200px; left: 10%; animation-duration: 25s; animation-delay: -8s; }
body.theme-light .blob-2 { width: 70px; height: 70px; top: auto; bottom: -200px; right: 15%; animation-duration: 18s; animation-delay: -14s; }
body.theme-light .blob-3 { width: 180px; height: 180px; top: auto; bottom: -200px; left: 45%; animation-duration: 30s; animation-delay: -24s; }

/* Menambahkan gelembung ekstra (pseudo-elements) agar tidak pernah kosong */
body.theme-light .blob::before,
body.theme-light .blob::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 0 25px rgba(148, 163, 184, 0.2), inset 10px 0 20px rgba(255, 255, 255, 0.8), 0 10px 20px rgba(15, 23, 42, 0.03);
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(241, 245, 249, 0.1) 60%, rgba(203, 213, 225, 0.25) 100%) !important;
}

body.theme-light .blob-1::before { width: 80px; height: 80px; top: 60vh; left: 30vw; }
body.theme-light .blob-1::after { width: 50px; height: 50px; top: 120vh; left: -10vw; }

body.theme-light .blob-2::before { width: 100px; height: 100px; top: 70vh; left: -40vw; }
body.theme-light .blob-2::after { width: 60px; height: 60px; top: 130vh; left: 20vw; }

body.theme-light .blob-3::before { width: 140px; height: 140px; top: 80vh; left: 30vw; }
body.theme-light .blob-3::after { width: 70px; height: 70px; top: 150vh; left: -20vw; }

@keyframes floatUpBubble {
    0% { transform: translateY(20vh) translateX(0) scale(1); opacity: 0; }
    5% { opacity: 0.6; }
    50% { transform: translateY(-80vh) translateX(30px) scale(1.05); }
    95% { opacity: 0.6; }
    100% { transform: translateY(-180vh) translateX(-20px) scale(0.95); opacity: 0; }
}

/* Kustomisasi Khusus untuk Tema Terang */
body.theme-light .navbar {
    background: rgba(255, 255, 255, 0.75);
    border-bottom: 1px solid var(--glass-border);
}

body.theme-light .navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

body.theme-light .navbar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0284c7, #0ea5e9, #38bdf8, #0ea5e9, #0284c7);
    z-index: 10;
}

body.theme-light .hamburger {
    color: #0f172a;
}

body.theme-light .navbar .nav-links a {
    color: #334155;
}

body.theme-light .navbar .nav-links a:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #0f172a;
}

body.theme-light .navbar .nav-links.open {
    background: rgba(255, 255, 255, 0.96);
}

body.theme-light .hero-title .highlight {
    background: linear-gradient(135deg, #0369a1, #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.theme-light .hero-badge {
    background: rgba(2, 132, 199, 0.05);
    border: 1px solid rgba(2, 132, 199, 0.2);
    color: #0369a1;
}

body.theme-light .service-card:hover,
body.theme-light .wa-card:hover,
body.theme-light .form-card:hover {
    border-color: rgba(2, 132, 199, 0.4);
    box-shadow: var(--glass-shadow), 0 10px 25px rgba(2, 132, 199, 0.15);
}

body.theme-light .btn-wa {
    border: 2px solid #0284c7;
}

body.theme-light .form-control option {
    background: white;
    color: #0f172a;
}

body.theme-light footer {
    background: rgba(0, 0, 0, 0.03);
    border-top: 1px solid var(--glass-border);
}

body.theme-light .footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Alerts */
body.theme-light .alert-success { background: rgba(16, 185, 129, 0.08); border-color: rgba(16, 185, 129, 0.25); color: #065f46; }
body.theme-light .alert-error   { background: rgba(244, 63, 94, 0.08); border-color: rgba(244, 63, 94, 0.25); color: #9f1239; }
body.theme-light .alert-warning { background: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.25); color: #92400e; }
body.theme-light .alert-info    { background: rgba(14, 165, 233, 0.08); border-color: rgba(14, 165, 233, 0.25); color: #075985; }

/* Badges */
body.theme-light .badge-success { background: rgba(16, 185, 129, 0.12); color: #065f46; border-color: rgba(16, 185, 129, 0.2); }
body.theme-light .badge-warning { background: rgba(245, 158, 11, 0.12); color: #92400e; border-color: rgba(245, 158, 11, 0.2); }
body.theme-light .badge-info    { background: rgba(14, 165, 233, 0.12); color: #075985; border-color: rgba(14, 165, 233, 0.2); }
body.theme-light .badge-primary { background: rgba(99, 102, 241, 0.12); color: #3730a3; border-color: rgba(99, 102, 241, 0.2); }
body.theme-light .badge-danger  { background: rgba(244, 63, 94, 0.12); color: #9f1239; border-color: rgba(244, 63, 94, 0.2); }
body.theme-light .badge-light   { background: rgba(0, 0, 0, 0.05); color: #334155; border-color: rgba(0, 0, 0, 0.08); }

/* Divider */
body.theme-light .divider::before,
body.theme-light .divider::after {
    background: rgba(0, 0, 0, 0.08);
}

/* Highlight-blue for light theme (water sky blue to cyan gradient) */
body.theme-light .hero-title .highlight-blue {
    background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
/* ============================================================
   Floating WA Button & Autocomplete Suggestion Styles
   ============================================================ */
/* Floating WA Button */
.floating-wa-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: waPulse 2s infinite;
}

.floating-wa-btn:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
    background: #20ba5a;
    color: #ffffff;
}

@keyframes waPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Adjust floating WA button position on mobile */
@media (max-width: 768px) {
    .floating-wa-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
    }
    .floating-wa-btn svg {
        width: 26px;
        height: 26px;
    }
}

/* Autocomplete Dropdown Styling */
.autocomplete-wrapper {
    position: relative;
    width: 100%;
}

.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--suggestions-bg);
    border: 1px solid var(--suggestions-border);
    border-radius: 0.75rem;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    margin-top: 0.25rem;
    backdrop-filter: blur(10px);
}

.autocomplete-suggestion {
    padding: 0.75rem 1rem;
    cursor: pointer;
    color: var(--suggestions-color);
    transition: background 0.2s ease;
    font-size: 0.9rem;
    text-align: left;
}

.autocomplete-suggestion:hover,
.autocomplete-suggestion.active {
    background: var(--suggestions-hover-bg);
    color: var(--primary-light);
}

.autocomplete-suggestion:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Scrollbar for suggestions */
.autocomplete-suggestions::-webkit-scrollbar {
    width: 6px;
}
.autocomplete-suggestions::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
}
.autocomplete-suggestions::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}
