:root {
  --primary-color: #007bff; /* Biru Laut */
  --secondary-color: #ffffff; /* Putih */
  --success-color: #28a745; /* Hijau */
  --error-color: #dc3545; /* Merah */
  --border-radius: 8px;
  --spacing-unit: 16px;
  --text-color: #595959;
  --selected-text-color: #333;
  --selected-link-bg: #e5f1ff; /* Latar belakang link aktif/hover (biru muda) */
  --cta-gradient-start: #6187f5; /* Biru Awal Gradien CTA */
  --cta-gradient-end: #9e75f4; /* Ungu Akhir Gradien CTA */
  --text-dark: #333;
  --text-light: #595959;
  --blue-highlight: #6187f5;
}

/* Reset dan Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Arial", sans-serif;
  background-color: #f4f7f9;
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
/* Navbar Styles */

/* ================= NAVBAR DESKTOP ================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  /* Padding besar untuk replikasi jarak di desktop */
  padding: 10px 140px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1100;
  /* Shadow tipis agar sesuai gambar */
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

/* Logo kiri */
.navbar-logo img {
  width: 120px;
  height: auto;
}

/* Menu tengah */
.nav-links {
  display: flex;
  gap: 10px;
  flex: 1;
  justify-content: center;
  align-items: center;
  margin-left: 0;
}

.nav-links a {
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 8px 14px; /* Padding untuk link */
  border-radius: 8px;
}

/* Link yang sedang dipilih (Home) */
.nav-links .selected-page {
  color: var(--selected-text-color);
  background-color: var(--selected-link-bg);
  font-weight: 600;
}

/* Efek Hover: Sama dengan tampilan selected-page */
.nav-links a:not(.selected-page):hover {
  color: var(--selected-text-color);
  background-color: var(--selected-link-bg);
}

/* Tombol kanan (CTA) */
.navbar-cta {
  display: flex;
  align-items: center;
}

.btn-cta {
  padding: 10px 22px;
  /* Gradien modern */
  background: linear-gradient(
    135deg,
    var(--cta-gradient-start) 0%,
    var(--cta-gradient-end) 100%
  );
  color: #fff !important;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(97, 135, 245, 0.2);
}

.btn-cta:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

/* Kelas utility */
.mobile-only {
  display: none;
}
.desktop-only {
  /* Tidak perlu disetel di sini karena ini adalah default desktop */
}

/* ================= Hamburger ================= */
.hamburger {
  display: none; /* Sembunyikan di desktop */
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  z-index: 1200;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animasi jadi X */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ================= Overlay ================= */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ================= MOBILE MENU (max-width: 768px) ================= */
@media (max-width: 768px) {
  /* Header/Navbar */
  .navbar {
    padding: 12px 20px;
  }

  /* Logo */
  .navbar-logo img {
    width: 120px;
  }

  /* Sembunyikan menu desktop dan tombol CTA */
  .nav-links,
  .navbar-cta {
    /* Kami akan menampilkan nav-links lagi saat hamburger diklik */
    display: none;
  }

  /* Tombol CTA versi desktop */
  .desktop-only {
    display: none;
  }

  /* Hamburger tampil */
  .hamburger {
    display: flex;
  }

  /* Menu geser jadi sidebar dropdown */
  .nav-links {
    position: fixed;
    top: 65px; /* Sesuaikan dengan tinggi navbar mobile */
    right: 20px;
    left: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 20px;
    display: flex; /* Override display: none; */
    flex-direction: column;
    gap: 15px;
    min-width: 200px;
    opacity: 0;
    transform: translateY(-15px);
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1200;
  }

  /* Menu aktif */
  .nav-links.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* Link menu mobile */
  .nav-links a {
    font-size: 16px;
    width: 100%;
    padding: 10px 14px;
    /* Nonaktifkan efek hover link desktop di mobile */
    background: transparent !important;
  }

  /* Tombol CTA mobile */
  .mobile-only {
    display: block; /* Tampilkan tombol mobile */
    margin-top: 20px;
    width: 100%;
    /* Mengambil semua styling dari .btn-cta global */
  }

  /* Animasi muncul link satu per satu */
  .nav-links a {
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.3s ease;
  }

  .nav-links.active a {
    opacity: 1;
    transform: translateY(0);
  }

  /* Animasi delay */
  .nav-links.active a:nth-child(1) {
    transition-delay: 0.1s;
  }
  .nav-links.active a:nth-child(2) {
    transition-delay: 0.2s;
  }
  .nav-links.active a:nth-child(3) {
    transition-delay: 0.3s;
  }
  .nav-links.active a:nth-child(4) {
    transition-delay: 0.4s;
  }
  .nav-links.active a:nth-child(5) {
    transition-delay: 0.5s;
  }
  .nav-links.active a:nth-child(6) {
    transition-delay: 0.6s;
  } /* Tambahan */
  .nav-links.active a:nth-child(7) {
    transition-delay: 0.7s;
  } /* Tambahan (untuk tombol CTA mobile) */
}

/* Layout Utama */
.container {
  width: 100%;
  padding: var(--spacing-unit);
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center; /* Konten di atas */
  /* padding-top: 5rem; */
  margin-top: 9rem;
}

.verification-card {
  background: var(--secondary-color);
  padding: var(--spacing-unit) calc(var(--spacing-unit) * 1.5);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 450px; /* Ukuran maksimal untuk desktop */
}

h2 {
  color: var(--primary-color);
  margin-bottom: 5px;
  font-size: 1.5rem;
}

.subtitle {
  color: #6c757d;
  margin-bottom: calc(var(--spacing-unit) * 1.5);
  font-size: 0.9rem;
}

/* Form Styling */
.form-group {
  margin-bottom: var(--spacing-unit);
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  font-size: 0.9rem;
}

input[type="text"] {
  width: 100%;
  padding: 10px;
  margin-bottom: var(--spacing-unit);
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: border-color 0.3s;
}

input[type="text"]:focus {
  border-color: var(--primary-color);
  outline: none;
}

button {
  width: 100%;
  padding: 10px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

button:hover:not(:disabled) {
  background-color: #0056b3; /* Warna lebih gelap saat hover */
}

button:disabled {
  background-color: #a0c4e8;
  cursor: not-allowed;
}

/* Area Hasil Verifikasi */
.result-area {
  margin-top: var(--spacing-unit);
  padding: var(--spacing-unit);
  border-radius: var(--border-radius);
  border: 1px solid #ddd;
}

.result-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed #eee;
}

.result-item:last-child {
  border-bottom: none;
}

.result-item span:first-child {
  font-weight: bold;
}

/* Badge Status */
.badge {
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: bold;
  color: var(--secondary-color);
  font-size: 0.9rem;
  display: inline-block;
}

.badge-success {
  background-color: var(--success-color);
}

.badge-danger {
  background-color: var(--error-color);
}

.not-found-advice {
  margin-top: var(--spacing-unit);
  padding: 10px;
  background-color: #fff3cd;
  color: #856404;
  border-radius: 5px;
  font-size: 0.9rem;
}

/* Small Print & Trust */
.small-print-area {
  margin-top: var(--spacing-unit);
  padding-top: var(--spacing-unit);
  border-top: 1px solid #eee;
}

.small-print {
  font-size: 0.75rem;
  color: #6c757d;
  text-align: center;
}

.trust-indicator {
  text-align: center;
  margin-top: 5px;
  font-size: 0.8rem;
  color: #495057;
}

/* Spinner */
.spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid var(--secondary-color);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  display: none;
}

.spinner.visible {
  display: inline-block;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.hidden {
  display: none !important;
}

/* Responsif (Desktop) */
@media (min-width: 600px) {
  .container {
    padding: 50px 0;
  }
  h2 {
    font-size: 1.75rem;
  }
}

/* Utility Class untuk Tombol Kontak/Cetak */
.action-buttons {
  margin-top: var(--spacing-unit);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.action-buttons button {
  width: auto;
  padding: 8px 15px;
  font-size: 0.9rem;
  background-color: #6c757d;
}

.action-buttons button:hover {
  background-color: #5a6268;
}

/* FOOTER START */
footer {
  background: linear-gradient(135deg, #f9fbff 0%, #edf2fb 50%, #f1f5ff 100%);
  color: #111827;
  padding: 60px 20px 30px;
  font-family: "Poppins", sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

/* Kolom */
.footer-col {
  flex: 1 1 220px;
  min-width: 200px;
}

.footer-col h2.footer-brand {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 18px;
  background: linear-gradient(90deg, #2563eb, #9333ea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-col h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #1e3a8a;
  position: relative;
}

.footer-col h4::after {
  content: "";
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #9333ea);
  position: absolute;
  left: 0;
  bottom: -6px;
  border-radius: 2px;
}

.footer-col p {
  font-size: 15px;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 20px;
}

/* Links */
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 12px;
  font-size: 15px;
  color: #374151;
}

.footer-col ul li a {
  text-decoration: none;
  color: #374151;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: #2563eb;
}

/* Ikon Sosial */
.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  font-size: 20px;
  color: #374151;
  transition: color 0.3s ease;
}

.footer-socials a:hover {
  color: #2563eb;
}

/* Ikon dalam kontak */
.footer-col ul li i {
  margin-right: 8px;
  color: #2563eb;
  font-size: 16px;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid #e5ebf7;
  margin-top: 40px;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: #6b7280;
}

.footer-bottom .footer-links {
  display: flex;
  gap: 20px;
}

.footer-bottom .footer-links a {
  text-decoration: none;
  color: #6b7280;
  transition: color 0.3s ease;
}

.footer-bottom .footer-links a:hover {
  color: #2563eb;
}

/* Responsive Tablet */
@media (max-width: 992px) {
  .footer-container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 30px;
  }
  .footer-col {
    flex: 1 1 45%;
  }
}

/* Responsive Mobile */
@media (max-width: 600px) {
  footer {
    padding: 40px 16px 20px;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .footer-col {
    flex: 1 1 100%;
  }
  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .footer-socials {
    justify-content: center;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}
