:root {
  --primary: #004080;
  --primary-dark: #002b55;
  --secondary: #0284c7;
  --secondary-hover: #0369a1;
  --dark: #1e293b;
  --light: #f8fafc;
  --white: #ffffff;
  --gray-border: #e2e8f0;
  --text-muted: #64748b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #f1f5f9;
  color: var(--dark);
  line-height: 1.6;
}

/* Top Notification Bar */
.top-bar {
  background-color: var(--dark);
  color: var(--white);
  font-size: 0.8rem;
  padding: 8px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar i {
  color: var(--secondary);
  margin-right: 5px;
}

/* Navigation Header */
header {
  background-color: var(--white);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

.logo-icon {
  background-color: var(--primary);
  color: white;
  font-size: 1.4rem;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
}

.logo-text h1 {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.1;
}

.logo-text p {
  font-size: 0.72rem;
  color: var(--secondary);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Navigation Menu Links */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 10px;
}

.nav-link {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s;
  cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
  background-color: var(--primary);
  color: var(--white);
}

/* Mobile Hamburger Menu */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
}

/* Views (Page Containers) */
.page-view {
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  background:
    linear-gradient(135deg, rgba(0, 43, 85, 0.82), rgba(0, 64, 128, 0.82)),
    url("../images/kantor.webp") center 70%/cover no-repeat;
  color: var(--white);
  padding: 100px 5%;
  text-align: center;
}

.hero h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 15px;
}
.hero p {
  font-size: 1.05rem;
  max-width: 750px;
  margin: 0 auto 25px;
  color: #cbd5e1;
}

.btn {
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: 0.3s;
  font-size: 0.88rem;
}

.btn-primary {
  background-color: var(--secondary);
  color: var(--white);
}
.btn-primary:hover {
  background-color: var(--secondary-hover);
}
.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
}
.btn-outline:hover {
  background-color: var(--white);
  color: var(--primary);
}

/* General Section Styling */
.section {
  padding: 50px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h3 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Cards Layout */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.card {
  background: var(--white);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--gray-border);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.card-icon {
  font-size: 2.2rem;
  color: var(--secondary);
  margin-bottom: 15px;
}

.card h4 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.rate-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.rate-table th,
.rate-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--gray-border);
}

.rate-table th {
  background-color: var(--primary);
  color: var(--white);
}

/* Interactive Simulator Styling */
.sim-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  background: var(--white);
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--gray-border);
}

.sim-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
}

.sim-tab-btn {
  flex: 1;
  padding: 12px;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.sim-tab-btn.active {
  background: var(--primary);
  color: var(--white);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 8px;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--gray-border);
  border-radius: 6px;
  font-size: 0.95rem;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}

.result-box {
  background: #f8fafc;
  border: 2px dashed var(--primary);
  padding: 25px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-border);
}

.result-item:last-child {
  border-bottom: none;
}

.result-item span {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.result-item strong {
  font-size: 1.1rem;
  color: var(--primary);
}

/* Laporan / PDF Section Styles */
.report-filter {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 18px;
  border: 1px solid var(--gray-border);
  background: var(--white);
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.report-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
  transition: 0.3s;
}

.report-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.report-info {
  display: flex;
  align-items: center;
  gap: 18px;
}

.pdf-icon {
  font-size: 2.2rem;
  color: #dc2626;
  background: #fef2f2;
  padding: 12px 16px;
  border-radius: 8px;
}

.report-text h5 {
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: 4px;
}

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

.report-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* PDF Viewer Modal Pop-up */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

/* PDF Viewer Modal Pop-up */
.modal-content {
  background: var(--white);
  width: 95%;
  max-width: 1400px;
  height: 92vh;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  padding: 15px 20px;
  background: var(--primary);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h4 {
  font-size: 1.1rem;
}
.close-modal {
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--white);
}

.modal-body {
  flex: 1;
  background: #525659;
}

.modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Kontak & Location Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.contact-box {
  background: var(--white);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid var(--gray-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.contact-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.contact-item-icon {
  background: #e0f2fe;
  color: var(--primary);
  width: 45px;
  height: 45px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item-text h5 {
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 3px;
}

.contact-item-text p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.map-container {
  width: 100%;
  height: 380px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--gray-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 40px 5% 20px;
  margin-top: 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 30px;
}

.footer-col h5 {
  color: var(--secondary);
  font-size: 1.05rem;
  margin-bottom: 15px;
}

.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.85rem;
  cursor: pointer;
}
.footer-col ul li a:hover {
  color: var(--white);
}

.ojk-box {
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 8px;
  max-width: 1200px;
  margin: 0 auto 20px;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: #94a3b8;
  border-top: 1px solid #334155;
  padding-top: 20px;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 20px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .sim-container,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero h2 {
    font-size: 1.7rem;
  }
  .report-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .report-actions {
    width: 100%;
  }
  .report-actions .btn {
    flex: 1;
    justify-content: center;
  }
}

/* Layout Gambar & Teks tentang kami */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--gray-border);
  margin-bottom: 40px;
}

.about-image img {
  width: 100%;
  height: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 10px;
}

.about-text h4 {
  color: var(--primary);
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.about-text p {
  margin-bottom: 12px;
  color: var(--dark);
  font-size: 0.95rem;
}

/* Penyesuaian tampilan HP / Tablet */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.logo-img {
  height: 45px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Kartu Putih Gabungan Kontak + Maps */
.contact-card-combined {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--gray-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  align-items: stretch;
  margin-bottom: 40px;
}

/* Kolom Kanan Tempat Maps */
.contact-map-right {
  width: 100%;
  height: 100%;
  min-height: 350px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--gray-border);
}

.contact-map-right iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Penyesuaian Responsif Layar HP */
@media (max-width: 768px) {
  .contact-card-combined {
    grid-template-columns: 1fr;
  }
}

/* Kotak Pengumuman (Biru) */
.announcement-box {
  background: #e0f2fe;
  border-left: 5px solid var(--primary);
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 20px;
}

/* Kotak Keamanan Simpanan LPS (Diubah menjadi Hijau) */
.lps-box {
  background: #dcfce7;
  border-left: 5px solid #16a34a;
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 30px;
}

/* Styling Interaktif Kartu Produk */
.card-interactive {
    cursor: pointer;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.card-interactive:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: var(--primary);
}

.btn-detail {
    display: inline-block;
    margin-top: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary);
}

/* Styling Khusus Modal Produk */
.product-modal-content {
    max-width: 650px !important;
    height: auto !important;
    max-height: 85vh;
}

.product-modal-body {
    background: #fff !important;
    padding: 25px;
    overflow-y: auto;
}

.detail-section h5 {
    color: var(--primary);
    font-size: 1.05rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-section ul {
    list-style-type: disc;
    padding-left: 20px;
}

.detail-section ul li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--dark);
}

/* Floating WhatsApp Button */
.float-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

.float-wa:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

/* Penyesuaian jarak posisi untuk layar smartphone */
@media (max-width: 768px) {
    .float-wa {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
        font-size: 28px;
    }
}