/* ============================================================
   NEW-DASHBOARD.CSS  –  MANDALA
   Kementerian Pekerjaan Umum · Ditjen Bina Marga
   Faithful to PDF design
============================================================ */

/* ===================================================
   1. VARIABLES
=================================================== */
:root {
  --navy: #1c2b6a;
  --navy-dark: #10193e;
  --navy-mid: #243580;
  --orange: #f5a623;
  --orange-dk: #d4891a;
  --white: #ffffff;
  --gray-bg: #f4f6fa;
  --gray-200: #e4e8f0;
  --gray-400: #9ba5b4;
  --gray-600: #5a6478;
  --font: "Plus Jakarta Sans", sans-serif;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 4px 20px rgba(28, 43, 106, 0.1);
  --shadow-lg: 0 8px 40px rgba(28, 43, 106, 0.18);
}

/* ===================================================
   2. BASE
=================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font);
  color: var(--navy-dark);
  background: var(--white);
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

/* ===================================================
   3. NAVBAR
=================================================== */
.navbar-mandala {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
}
.navbar-mandala .container {
  display: flex;
  align-items: center;
  padding: 5px;
  justify-content: space-between;
  position: relative;
}

/* center nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0 auto;
}

/* desktop login */
.btn-nav-login {
  margin-left: auto;
}

/* mobile login hidden desktop */
.btn-login-mobile {
  display: none;
}
/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-brand img {
  width: auto;
  max-height: 70px;
  object-fit: contain;
}

.nav-links a {
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition:
    color 0.2s,
    background 0.2s;
  position: relative;
}
.nav-links a:not(.btn-nav-login):hover,
.nav-links a.active {
  color: var(--orange);
  background: rgba(255, 255, 255, 0.08);
}
/* Login button */
.btn-nav-login {
  background: var(--navy);
  color: var(--white) !important;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 50px;
  padding: 0.5rem 1.6rem !important;
  transition:
    background 0.2s,
    transform 0.15s;
  margin-left: 0.5rem;
}
.btn-nav-login:hover {
  background: var(--orange);
  transform: translateY(-1px);
  text-decoration: none;
}
/* Hamburger */
.nav-toggle {
  display: none;
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
  color: var(--white);
  font-size: 1.2rem;
}

@media (max-width: 991px) {
  .nav-toggle {
    display: flex;
    align-items: center;
    margin-left: auto;
    z-index: 9999;
  }

  .btn-nav-login {
    display: none;
  }

  .nav-links {
    display: none !important;

    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    flex-direction: column;
    align-items: stretch;

    gap: 0.5rem; /* override desktop */

    background: var(--navy);
    padding: 1rem 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);

    text-align: center;

    z-index: 999;
  }

  .nav-links a {
    color: var(--orange);
  }

  .nav-links.open {
    display: flex !important;
  }

  .btn-login-mobile {
    display: block;
    background: var(--orange);
    color: var(--white) !important;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 50px;
    padding: 0.5rem 1.6rem !important;
    transition:
      background 0.2s,
      transform 0.15s;
    margin-left: 0.5rem;
  }
}

/* ===================================================
   4. FOOTER
=================================================== */
/* top footer layout */
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
}

.footer-mandala {
  background: var(--navy);
  padding: 3rem 0 1.25rem;
}
.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 1rem;
}
.footer-brand img {
  width: 50px;
  filter: brightness(0) invert(1);
  margin-top: 2px;
}
.footer-brand .brand-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
}
.footer-brand .brand-sub {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
  display: block;
}
.footer-addr {
  font-size: 0.8rem;
  line-height: 1.75;
  color: var(--white);
}
.footer-contact-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.85rem;
}
.footer-contact-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-contact-list a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.1rem;
  color: var(--white);
  transition: color 0.2s;
}
.footer-contact-list a:hover {
  color: var(--orange);
}
.footer-contact-list i {
  color: var(--orange);
  font-size: 0.9rem;
  width: 16px;
}
.footer-bottom {
  width: 100%;
  background: var(--orange);

  margin-top: 2rem;
  padding: 0.5rem;

  text-align: center;
  font-size: 0.8rem;
  color: var(--white);
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-contact-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* ===================================================
   5. SHARED UTILITIES
=================================================== */
.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  margin-bottom: 1rem;
}
.btn-primary-navy {
  display: block;
  width: 100%;

  background: var(--navy);
  color: var(--white);

  font-weight: 700;
  font-size: 0.875rem;

  border-radius: 50px;
  padding: 0.65rem 2rem;

  text-align: center;

  transition:
    background 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
}
.btn-primary-navy:hover {
  background: var(--navy-mid);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(28, 43, 106, 0.3);
}
.btn-outline-orange {
  display: inline-block;
  background: transparent;
  color: var(--white);
  font-weight: 700;
  font-size: 0.875rem;
  border: 2px solid var(--orange);
  border-radius: 50px;
  padding: 0.55rem 1.8rem;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.15s;
}
.btn-outline-orange:hover {
  background: var(--orange);
  color: var(--navy-dark);
  transform: translateY(-2px);
}

/* ===================================================
   6. HERO
=================================================== */
.hero {
  background: var(--navy);
  padding: 3.5rem 0 0;
  overflow: hidden;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  right: -100px;
  top: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2.5rem;
}
/* Kiri: foto */
.hero-photo {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  align-self: flex-end;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.35);
}
.hero-photo img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center top;
}
/* Kanan: teks */
.hero-content {
  padding-bottom: 3.5rem;
}
.hero-kemen {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}
.hero-kemen img {
  max-width: 200px;
}
.hero-kemen span {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
}
.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  letter-spacing: -1px;
  margin-bottom: 1.25rem;
}
.hero-desc {
  font-size: 1rem;
  text-align: justify;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.85;
  margin-bottom: 2rem;
  max-width: 440px;
}
@media (max-width: 991px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-photo {
    border-radius: var(--radius-lg);
  }
  .hero-photo img {
    height: 260px;
  }
  .hero-content {
    padding-bottom: 2rem;
    order: -1;
  }
  .hero-title {
    font-size: 2.4rem;
  }
}

/* ===================================================
   7. LAYANAN CARDS (4 ICON CARDS)
=================================================== */
.layanan-section {
  position: relative;
  padding: 4rem 0;
  overflow: hidden;
}

/* split background */
.layanan-bg-split {
  position: absolute;
  inset: 0;
  z-index: 0;

  background: linear-gradient(
    to bottom,
    var(--navy) 0%,
    var(--navy) 50%,
    var(--white) 50%,
    var(--white) 100%
  );
}

.layanan-section .container {
  position: relative;
  z-index: 2;
}

/* grid */
.layanan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* card */
.layanan-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;

  min-height: 260px;

  display: flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.layanan-card:hover {
  transform: translateY(-8px);
}

/* background image */
.lc-bg {
  position: absolute;
  inset: 0;
}

.lc-bg img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

/* overlay */
.layanan-card::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* content */
.lc-content {
  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;

  padding: 2rem;
  text-align: center;
}

/* icon */
.lc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lc-icon img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

/* label */
.lc-label {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

/* tablet */
@media (max-width: 991px) {
  .layanan-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* mobile */
@media (max-width: 767px) {
  .layanan-section {
    padding: 3rem 0;
  }

  .layanan-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .layanan-card {
    width: 50%;
    min-height: 100px;

    margin: 0 auto;
  }

  .lc-icon {
    width: 72px;
    height: 72px;
  }

  .lc-icon img {
    width: 50px;
    height: 50px;
  }

  .lc-label {
    font-size: 0.92rem;
  }
}
/* ===================================================
   8. INFORMASI LABORATORIUM
=================================================== */
.infolab-section {
  background: var(--white);
  padding: 5rem 0;
}
.infolab-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}
/* Donut charts */
.donut-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.donut-item {
  text-align: center;
}
.donut-wrap {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 0.75rem;
}
.donut-wrap svg {
  transform: rotate(-90deg);
  display: block;
}
.donut-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  font-weight: 800;
}
.donut-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-600);
}
/* Kanan */
.infolab-desc {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.85;
  margin-bottom: 1.75rem;
}
@media (max-width: 767px) {
  .infolab-inner {
    grid-template-columns: 1fr;
  }
  .donut-row {
    gap: 1.5rem;
  }
  .donut-wrap {
    width: 120px;
    height: 120px;
  }
  .donut-pct {
    font-size: 1.3rem;
  }
}

/* ===================================================
   9. ALUR PROSES
=================================================== */
.alur-section {
  background: var(--white);
  padding: 5rem 0;
}
.alur-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem 1.5rem;
  overflow-x: auto;
}
.alur-group {
  margin-bottom: 1.75rem;
}
.alur-group-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--gray-400);
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-left: 0.25rem;
}
.alur-row {
  display: flex;
  align-items: flex-start;
  min-width: 680px;
  position: relative;
}
/* garis penghubung */
.alur-row::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 28px;
  right: 28px;
  height: 2px;
  background: var(--gray-200);
  z-index: 0;
}
.alur-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 0 0.25rem;
}
.alur-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.alur-circle.orange {
  background: var(--orange);
  color: var(--navy-dark);
}
.alur-circle.navy {
  background: var(--navy);
  color: var(--white);
}
.alur-step-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  line-height: 1.3;
  max-width: 78px;
}
.alur-step-desc {
  font-size: 0.62rem;
  color: var(--gray-400);
  text-align: center;
  line-height: 1.55;
  max-width: 82px;
  margin-top: 0.3rem;
}
/* spacer invisible agar kolom tetap rata */
.alur-step.ghost {
  visibility: hidden;
  pointer-events: none;
}
/* legend */
.alur-legend {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
  margin-top: 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray-400);
}
.alur-legend span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.dot.orange {
  background: var(--orange);
}
.dot.navy {
  background: var(--navy);
}

/* ===================================================
   10. FEATURE (Permohonan & Konsultasi)
=================================================== */
.feature-section {
  padding: 5rem 0;
  background: var(--white);
}
.feature-section.alt {
  background: var(--white);
}
.feature-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3.5rem;
}
.feature-inner.reverse {
  direction: rtl;
}
.feature-inner.reverse > * {
  direction: ltr;
}
.feat-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(245, 166, 35, 0.12);
  border-radius: 50px;
  padding: 0.28rem 0.9rem;
  margin-bottom: 0.85rem;
}
.feat-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 1rem;
}
.feat-desc {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.85;
  margin-bottom: 1.75rem;
}
/* Ilustrasi box */
.feat-illus {
  border-radius: var(--radius-lg);
  min-height: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.feat-illus img {
  width: 80%;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.3));
}
.feat-illus-icon {
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.15);
  position: relative;
  z-index: 1;
}
@media (max-width: 767px) {
  .feature-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .feature-inner.reverse {
    direction: ltr;
  }
  .feat-illus {
    min-height: 200px;
  }
  .nav-brand img {
    max-height: 45px;
  }
}

/* ===================================================
   11. RESPONSIVE MISC
=================================================== */
@media (max-width: 575px) {
  .section-title {
    font-size: 1.3rem;
  }
  .feat-title {
    font-size: 1.2rem;
  }
  .hero-title {
    font-size: 2rem;
  }
}

/* ===================================================
   12. TRACKING PERMOHONAN
=================================================== */
#tracking {
  background: var(--navy);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

/* dekorasi lingkaran bg */
#tracking::before,
#tracking::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
#tracking::before {
  width: 320px;
  height: 320px;
  background: rgba(255, 255, 255, 0.04);
  top: -80px;
  left: -80px;
}
#tracking::after {
  width: 220px;
  height: 220px;
  background: rgba(245, 166, 35, 0.08);
  bottom: -60px;
  right: -40px;
}

/* Judul */
#tracking h4 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.6rem;
}

/* Sub teks */
#tracking p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.75rem;
}

/* Input group wrapper */
#tracking .input-group {
  border-radius: 50px;
  overflow: hidden;
}

/* Input field */
#tracking .form-control {
  border: none;
  border-radius: 0;
  padding: 0.8rem 1.4rem;
  font-size: 0.875rem;
  font-family: var(--font);
  color: var(--navy-dark);
  background: var(--white);
  box-shadow: none;
  outline: none;
}

#tracking .form-control::placeholder {
  color: var(--gray-400);
  font-size: 0.82rem;
}

#tracking .form-control:focus {
  box-shadow: none;
  border: none;
  outline: none;
}

/* Tombol Track */
#tracking #btn_track {
  background: var(--orange);
  color: var(--navy-dark);
  border: none;
  border-radius: 0;
  font-weight: 700;
  font-size: 0.875rem;
  font-family: var(--font);
  padding: 0.8rem 1.6rem;
  white-space: nowrap;
  transition: background 0.2s;
  cursor: pointer;
}

#tracking #btn_track:hover {
  background: var(--orange-dk);
}

#tracking #btn_track i {
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 575px) {
  #tracking {
    padding: 3rem 0;
  }
  #tracking h4 {
    font-size: 1.25rem;
  }
  #tracking .form-control {
    font-size: 0.78rem;
  }
  #tracking #btn_track {
    padding: 0.8rem 1.1rem;
    font-size: 0.8rem;
  }
}

/* ===================================================
   13. FLOAT WHATSAPP CHAT
=================================================== */

/* Wrapper posisi fixed */
.wa-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

/* ── Tombol bulat utama ── */
.wa-float-btn {
  position: relative;
  width: 70px;
  height: 70px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  border: none;
  text-decoration: none;
  flex-shrink: 0;
}
.wa-float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 36px rgba(37, 211, 102, 0.6);
  color: var(--white);
}

/* Pulse ring */
.wa-float-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.4);
  animation: wa-pulse 2.2s ease-out infinite;
  z-index: -1;
}
@keyframes wa-pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* ── Notif badge ── */
.wa-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 22px;
  height: 22px;
  background: #ff3b30;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid var(--white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* ── Popup chat box ── */
.wa-popup {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.22);
  width: 340px;
  overflow: hidden;
  display: none;
  flex-direction: column;
  transform-origin: bottom right;
}
.wa-popup.open {
  display: flex;
  animation: wa-pop 0.28s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes wa-pop {
  from {
    opacity: 0;
    transform: scale(0.88) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ── Header ── */
.wa-popup-head {
  background: #075e54;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.wa-popup-head .wa-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--white);
  flex-shrink: 0;
}
.wa-popup-head .wa-info .wa-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  display: block;
}
.wa-popup-head .wa-info .wa-status {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
  display: block;
  margin-top: 2px;
}
.wa-popup-head .wa-close {
  margin-left: auto;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}
.wa-popup-head .wa-close:hover {
  color: var(--white);
}

/* ── Body bubble ── */
.wa-popup-body {
  background: #ece5dd;
  padding: 1.25rem 1rem;
  min-height: 110px;
  display: flex;
  align-items: flex-start;
}
.wa-bubble {
  background: var(--white);
  border-radius: 0 12px 12px 12px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--navy-dark);
  line-height: 1.65;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  max-width: 92%;
  position: relative;
}
.wa-bubble::before {
  content: "";
  position: absolute;
  top: 0;
  left: -9px;
  border-width: 0 9px 9px 0;
  border-style: solid;
  border-color: transparent var(--white) transparent transparent;
}
.wa-bubble .wa-time {
  font-size: 0.68rem;
  color: var(--gray-400);
  display: block;
  text-align: right;
  margin-top: 0.4rem;
}

/* ── Footer input ── */
.wa-popup-footer {
  padding: 0.85rem;
  background: #f0f0f0;
  display: flex;
  gap: 0.55rem;
  align-items: center;
}
.wa-popup-footer input {
  flex: 1;
  border: none;
  border-radius: 50px;
  padding: 0.65rem 1.1rem;
  font-size: 0.875rem;
  font-family: var(--font);
  background: var(--white);
  outline: none;
  color: var(--navy-dark);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
.wa-popup-footer input::placeholder {
  color: var(--gray-400);
}

/* Tombol kirim */
.wa-send-btn {
  width: 44px;
  height: 44px;
  background: #25d366;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--white);
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background 0.2s,
    transform 0.15s;
  text-decoration: none;
}
.wa-send-btn:hover {
  background: #1ead54;
  transform: scale(1.08);
  color: var(--white);
}

/* Dropdown pilih balai di popup WA */
.wa-select-wrap {
  width: 100%;
}
.wa-select-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gray-600);
  margin-bottom: 0.35rem;
}
.wa-select {
  width: 100%;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  font-size: 0.82rem;
  font-family: var(--font);
  color: var(--navy-dark);
  background: var(--white);
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}
.wa-select:focus {
  border-color: #25d366;
}

/* ── Responsive TABLET ── */
@media (max-width: 767px) {
  .wa-float {
    bottom: 24px;
    right: 24px;
  }
  .wa-popup {
    width: 310px;
  }
}

/* ── Responsive MOBILE ── */
@media (max-width: 480px) {
  .wa-float {
    bottom: 16px;
    right: 16px;
    /* popup full width di mobile */
    left: 16px;
    align-items: flex-end;
  }
  .wa-float-btn {
    width: 64px;
    height: 64px;
    font-size: 1.75rem;
  }
  .wa-popup {
    width: 100%;
    border-radius: 14px;
  }
  .wa-popup-footer input {
    font-size: 0.82rem;
  }
}

/* ===================================================
   CARD JENIS PENGUJIAN — 3 per baris (col-md-4)
=================================================== */
.section-subtitle {
  text-align: center;
  font-size: 0.88rem;
  color: #6c757d;
  margin-top: -0.5rem;
  margin-bottom: 2rem;
}

#list-pengujian {
  gap: 1.25rem 0;
}

#list-pengujian .product-card {
  border: none;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
  box-shadow: 0 2px 16px rgba(28, 43, 106, 0.09);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  background: #fff;
}
#list-pengujian .product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 32px rgba(28, 43, 106, 0.16);
}

/* Gambar */
#list-pengujian .card-img-top {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* Body */
#list-pengujian .card-body {
  padding: 1rem 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Judul */
#list-pengujian .card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1c2b6a;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Balai */
#list-pengujian .balai-info {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #6c757d;
  margin: 0;
}
#list-pengujian .balai-info i {
  color: #1c2b6a;
  font-size: 0.78rem;
  flex-shrink: 0;
}
#list-pengujian .balai-link {
  color: #1c2b6a;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}
#list-pengujian .balai-link:hover {
  color: #f5a623;
}

/* Badge ISO */
#list-pengujian .balai-iso .badge {
  font-size: 0.68rem;
  padding: 0.28rem 0.75rem;
  border-radius: 50px;
  letter-spacing: 0.2px;
}

/* Harga */
#list-pengujian .price {
  font-size: 1.05rem;
  font-weight: 800;
  color: #d4891a;
  margin: 0;
  padding: 0.4rem 0;
  border-top: 1px dashed #e4e8f0;
  border-bottom: 1px dashed #e4e8f0;
}

/* Info rows */
#list-pengujian .product-info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.5rem;
}
#list-pengujian .product-info div {
  font-size: 0.78rem;
  color: #5a6478;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.5;
}
#list-pengujian .product-info i {
  color: #1c2b6a;
  flex-shrink: 0;
  margin-top: 2px;
  width: 14px;
  text-align: center;
}
#list-pengujian .product-info strong {
  color: #10193e;
}

/* Responsive */
@media (max-width: 767px) {
  #list-pengujian .card-img-top {
    height: 140px;
  }
  #list-pengujian .card-title {
    font-size: 0.88rem;
  }
  #list-pengujian .price {
    font-size: 0.95rem;
  }
  #list-pengujian .product-info div {
    font-size: 0.72rem;
  }
}

@media (max-width: 575px) {
  #list-pengujian .card-img-top {
    height: 120px;
  }
  #list-pengujian .card-body {
    padding: 0.85rem;
  }
}

/* ===================================================
   14. FILTER SIDEBAR
=================================================== */
.filter-sidebar {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  box-shadow: var(--shadow);
  border: 0.5px solid var(--gray-200);
  position: sticky;
  top: 1rem;
  height: fit-content;
  top: calc(70px + 1rem);
}

.filter-sidebar h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.filter-sidebar hr {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin-bottom: 1rem;
}

.filter-group {
  margin-bottom: 1rem;
}

.filter-group h5 {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 0.45rem;
}

.filter-group .form-select {
  width: 100%;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 0.45rem 2rem 0.45rem 0.75rem;
  font-size: 0.8rem;
  font-family: var(--font);
  color: var(--navy-dark);
  background-color: var(--gray-bg);
  appearance: none;
  outline: none;
  cursor: pointer;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}

.filter-group .form-select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
}

/* Tombol filter & reset */
#filter,
#reset {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--orange);
  background: transparent;
  color: var(--orange-dk);
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.18s,
    color 0.18s;
  padding: 0;
}

#filter:hover,
#reset:hover {
  background: var(--orange);
  color: var(--white);
}

/* ===================================================
   15. PRODUCT HEADER (search + sort)
=================================================== */
.product-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow);
  border: 0.5px solid var(--gray-200);
  margin-bottom: 1.25rem;
}

/* Search */
.search-form {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--gray-bg);
  border: 1.5px solid var(--gray-200);
  border-radius: 50px;
  overflow: hidden;
  padding: 0 0.4rem 0 1rem;
  transition: border-color 0.18s;
}

.search-form:focus-within {
  border-color: var(--orange);
}

.search-form .form-control {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.82rem;
  font-family: var(--font);
  color: var(--navy-dark);
  outline: none;
  box-shadow: none;
  padding: 0.5rem 0;
}

.search-form .form-control::placeholder {
  color: var(--gray-400);
  font-size: 0.8rem;
}

.btn-search {
  width: 34px;
  height: 34px;
  background: var(--navy);
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.18s;
}

.btn-search:hover {
  background: var(--orange-dk);
}

/* Sort */
#sorting {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 0.4rem 1.8rem 0.4rem 0.65rem;
  font-size: 0.75rem;
  font-family: var(--font);
  color: var(--navy-dark);
  background-color: var(--gray-bg);
  appearance: none;
  outline: none;
  cursor: pointer;
  transition: border-color 0.18s;
}

#sorting:focus {
  border-color: var(--orange);
}

/* ===================================================
   16. INFO HALAMAN
=================================================== */
#info-page {
  font-size: 0.78rem;
  color: var(--gray-400);
  margin-bottom: 0.75rem;
}

#info-page span {
  font-weight: 700;
  color: var(--navy);
}

/* ===================================================
   17. PAGINATION
=================================================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.pagination .page-item .page-link {
  min-width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  padding: 0 8px;
  transition:
    border-color 0.18s,
    background 0.18s,
    color 0.18s;
}

.pagination .page-item .page-link:hover {
  border-color: var(--orange);
  color: var(--orange-dk);
  background: #fff8ec;
}

.pagination .page-item.active .page-link {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.pagination .page-item.disabled .page-link {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}

/* ===================================================
   CUSTOM SELECT — Pure CSS, tanpa Bootstrap/Select2
=================================================== */

/* Wrapper wajib position: relative agar arrow bisa absolute */
.custom-select-wrap {
  position: relative;
  width: 100%;
}

/* Native <select> — sembunyikan panah bawaan browser */
.custom-select-wrap select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background: var(--gray-bg);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);

  padding: 0.5rem 2.2rem 0.5rem 0.8rem; /* kanan lebih lebar buat arrow */
  font-size: 0.8rem;
  font-family: var(--font);
  color: var(--navy-dark);

  cursor: pointer;
  outline: none;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;

  /* Penting: z-index agar klik tidak terhalang arrow */
  position: relative;
  z-index: 1;
}

.custom-select-wrap select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.12);
}

.custom-select-wrap select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Ikon panah custom — pointer-events: none agar klik tembus ke select */
.custom-select-arrow {
  position: absolute;
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none; /* ← krusial, jangan dihapus */
  z-index: 2;
  color: var(--gray-400);
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  transition:
    color 0.18s,
    transform 0.2s;
}

/* Putar arrow saat select open (trick: focus parent) */
.custom-select-wrap select:focus + .custom-select-arrow {
  color: var(--orange-dk);
  transform: translateY(-50%) rotate(180deg);
}

/* ===================================================
   VARIAN SORT (lebih kecil di product-header)
=================================================== */
.sort-select-wrap {
  min-width: 130px;
}

.sort-select-wrap select {
  font-size: 0.75rem;
  padding: 0.38rem 2rem 0.38rem 0.65rem;
  background: var(--gray-bg);
}

.sort-label {
  font-size: 0.75rem;
  color: var(--gray-600);
  font-weight: 600;
  white-space: nowrap;
  margin-bottom: 0;
}

/* ===================================================
   SKELETON LOADING
=================================================== */
.skeleton {
  background: linear-gradient(90deg, #e4e8f0 25%, #f4f6fa 50%, #e4e8f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: var(--radius);
}

.skeleton-card {
  height: 340px;
  width: 100%;
}

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

/* ===================================================
   FILTER SIDEBAR — fix overflow agar tidak clip konten
=================================================== */
.filter-sidebar {
  overflow: visible;
}

/* ===================================================
   FILTER HEADER
=================================================== */
.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.filter-header h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.filter-actions {
  display: flex;
  gap: 6px;
}

.filter-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--orange);
  background: transparent;
  color: var(--orange-dk);
  font-size: 0.75rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.18s,
    color 0.18s;
  padding: 0;
  line-height: 1;
}

.filter-btn:hover {
  background: var(--orange);
  color: var(--white);
}

.filter-divider {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 0 0 1rem;
}

/* ===================================================
   FILTER GROUP LABEL
=================================================== */
.filter-group {
  margin-bottom: 1rem;
}

.filter-group h5 {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 0.45rem;
}

/* ===================================================
   TABEL LABORATORIUM
=================================================== */

/* Card wrapper */
.card {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--white);
}

.card-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 1rem 1.25rem;
  border-radius: var(--radius) var(--radius) 0 0;
}

.card-header h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
}

.card-body {
  padding: 1.25rem;
}

/* Search input */
.search-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--gray-200);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  background: var(--white);
  transition: border-color 0.2s;
}
.search-wrap:focus-within {
  border-color: var(--navy);
}
.search-wrap i {
  font-size: 0.85rem;
  color: var(--gray-400);
  flex-shrink: 0;
}
.search-wrap input {
  border: none;
  outline: none;
  font-size: 0.82rem;
  font-family: var(--font);
  color: var(--navy-dark);
  width: 220px;
  background: transparent;
}
.search-wrap input::placeholder {
  color: var(--gray-400);
}

/* Table */
#labTable {
  font-size: 0.82rem;
  margin-bottom: 0;
}

#labTable thead th {
  background: var(--gray-100);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 2px solid var(--gray-200);
  padding: 0.75rem 1rem;
  white-space: nowrap;
}

#labTable thead th[data-col] {
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}
#labTable thead th[data-col]:hover {
  background: var(--gray-200);
}
#labTable thead th i {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-left: 4px;
}

#labTable tbody tr {
  transition: background 0.15s;
}
#labTable tbody tr:hover {
  background: rgba(28, 43, 106, 0.03);
}

#labTable tbody td {
  padding: 0.85rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-600);
  font-size: 0.82rem;
}

/* Nama lab */
.lab-nama {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.85rem;
  line-height: 1.35;
}

/* Badge akreditasi */
.badge-akreditasi {
  display: inline-block;
  background: rgba(245, 166, 35, 0.15);
  color: var(--orange-dk);
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 50px;
  padding: 0.22rem 0.7rem;
  white-space: nowrap;
}
.badge-tidak {
  background: var(--gray-100);
  color: var(--gray-400);
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: 50px;
  padding: 0.22rem 0.7rem;
  display: inline-block;
}

/* Info akreditasi */
.info-akreditasi {
  font-size: 0.75rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin-top: 3px;
}

/* Kategori uji — tampil sebagai pills */
.kategori-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.kategori-pill {
  background: rgba(28, 43, 106, 0.08);
  color: var(--navy);
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: 50px;
  padding: 0.18rem 0.6rem;
  white-space: nowrap;
}

/* Alamat */
.lab-alamat {
  font-size: 0.75rem;
  color: var(--gray-500);
  line-height: 1.6;
  max-width: 260px;
}

/* Pagination */
.pagination .page-link {
  border: 1px solid var(--gray-200);
  color: var(--navy);
  font-size: 0.78rem;
  padding: 0.35rem 0.65rem;
  border-radius: 8px !important;
  margin: 0 2px;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.pagination .page-link:hover {
  background: var(--gray-100);
  border-color: var(--gray-200);
  color: var(--navy);
}
.pagination .page-item.active .page-link {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.pagination .page-item.disabled .page-link {
  color: var(--gray-400);
  background: var(--white);
}

/* Spinner loading */
.spinner-border-sm {
  width: 14px;
  height: 14px;
  border-width: 2px;
  color: var(--navy);
}

/* Responsive */
@media (max-width: 767px) {
  .search-wrap input {
    width: 160px;
  }
  #labTable thead th,
  #labTable tbody td {
    padding: 0.65rem 0.75rem;
  }
  .lab-alamat {
    max-width: 180px;
  }
}

/* ===================================================
   TOOLBAR FILTER
=================================================== */

/* Wrapper toolbar */
.toolbar-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

/* Kiri: tampilkan N data */
.toolbar-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.toolbar-left span {
  font-size: 0.8rem;
  color: var(--gray-500);
  white-space: nowrap;
}
.toolbar-left .form-select {
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  color: var(--navy);
  width: auto;
  cursor: pointer;
  transition: border-color 0.2s;
  outline: none;
}
.toolbar-left .form-select:focus {
  border-color: var(--navy);
  box-shadow: none;
}

/* Kanan: filter selects + search */
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  flex: 1;
  justify-content: flex-end;
}

/* Select provinsi & kota */
.toolbar-right .form-select {
  font-size: 0.8rem;
  padding: 0.38rem 0.85rem;
  border: 1px solid var(--gray-200);
  border-radius: 50px;
  color: var(--navy);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.2s;
  outline: none;
  min-width: 150px;
  max-width: 180px;
}
.toolbar-right .form-select:focus {
  border-color: var(--navy);
  box-shadow: none;
}

/* Search input */
.search-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--gray-200);
  border-radius: 50px;
  padding: 0.38rem 1rem;
  background: var(--white);
  transition: border-color 0.2s;
}
.search-wrap:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(28, 43, 106, 0.07);
}
.search-wrap i {
  font-size: 0.82rem;
  color: var(--gray-400);
  flex-shrink: 0;
}
.search-wrap input {
  border: none;
  outline: none;
  font-size: 0.82rem;
  font-family: var(--font);
  color: var(--navy-dark);
  width: 200px;
  background: transparent;
}
.search-wrap input::placeholder {
  color: var(--gray-400);
}

/* Divider antar filter */
.toolbar-divider {
  width: 1px;
  height: 20px;
  background: var(--gray-200);
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 767px) {
  .toolbar-wrap {
    flex-direction: column;
    align-items: stretch;
  }
  .toolbar-right {
    flex-direction: column;
  }
  .toolbar-right .form-select {
    max-width: 100%;
    min-width: 100%;
  }
  .search-wrap {
    width: 100%;
  }
  .search-wrap input {
    width: 100%;
  }
  .toolbar-divider {
    display: none;
  }
}
