/* ===========================================================
   RESET DASAR
   =========================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===========================================================
   HTML & BODY — VERSI RINGAN ANDROID
   =========================================================== */
html,
body {
  min-height: 100%;
  width: 100%;

  font-family: Arial, sans-serif;
  color: #ffffff;
  text-align: center;

  /* HAPUS background fixed (penyebab lag) */
  background:
    linear-gradient(rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.15)),
    url("img/klinik.jpg") no-repeat center center;

  background-size: cover;
  background-attachment: scroll;
}

/* ===========================================================
   HERO SECTION (SUDAH DIPERBAIKI)
   =========================================================== */
.hero {
  width: 100%;
  min-height: auto; /* HAPUS 100vh */
  padding-top: 80px; /* Lebih proporsional */
  padding-bottom: 40px; /* Supaya tidak mepet bawah */
}

/* ===========================================================
   LOGO
   =========================================================== */
.logo-kecil,
.logo-header {
  width: 55px;
  height: 55px;

  border-radius: 50%;
  object-fit: cover;

  background: white;
  padding: 5px;

  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);

  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 999;
}

/* ===========================================================
   SECTION
   =========================================================== */
.section {
  padding: 40px 20px; /* Tambah jarak atas bawah */
}

.section h2 {
  font-size: 26px;
  margin-bottom: 20px;
}

/* ===========================================================
   CARD (DENGAN OVERLAY GELAP AGAR TEKS JELAS)
   =========================================================== */
.card-blur {
  position: relative;
  background: rgba(255, 255, 255, 0.85);
  padding: 25px;
  border-radius: 16px;

  max-width: 900px;
  margin: 25px auto;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);

  overflow: hidden; /* penting agar overlay ikut rounded */
}

/* OVERLAY HITAM */
.card-blur::before {
  content: "";
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.45); /* atur tingkat gelap di sini */
  border-radius: 16px;

  z-index: 0;
}

/* Pastikan semua isi card di atas overlay */
.card-blur * {
  position: relative;
  z-index: 1;
  color: white; /* teks jadi putih agar kontras */
}

/* ===========================================================
   MENU BUTTON
   =========================================================== */
.menu-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;

  margin-bottom: 40px; /* Supaya tidak mepet ke lokasi */
}

.btn-menu {
  background: #1568d8;
  color: white;

  padding: 14px 25px;
  border-radius: 12px;

  text-decoration: none;
  font-weight: bold;

  width: 220px;
  min-height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: 0.2s;
}

.btn-menu:hover {
  background: #0f4fa8;
}

/* ===========================================================
   FOTO DOKTER
   =========================================================== */
.foto-dokter {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  overflow: hidden;

  margin: auto;
  border: 3px solid white;
}

.foto-dokter img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===========================================================
   TABEL
   =========================================================== */
table {
  margin: auto;
  border-collapse: collapse;
}

td,
th {
  padding: 10px;
  color: #333; /* Karena card sekarang putih */
}

/* ===========================================================
   TEXT GLOBAL
   =========================================================== */
h1,
h2,
h3,
h4,
h5,
h6,
p,
li,
a,
span {
  color: white;
}

/* ===========================================================
   FOOTER
   =========================================================== */
footer {
  width: 100%;
  text-align: center;
  color: white;
  padding: 20px;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.35);
}

/* ===========================================================
   RESPONSIVE TABLET
   =========================================================== */
@media (max-width: 768px) {
  .logo-kecil {
    width: 45px;
    height: 45px;
  }

  .card-blur {
    margin: 15px;
    padding: 18px;
  }

  .section h2 {
    font-size: 22px;
  }
}

/* ===========================================================
   RESPONSIVE MOBILE
   =========================================================== */
@media (max-width: 480px) {
  .hero {
    padding-top: 70px;
  }

  .btn-menu {
    width: 90%;
  }

  .section h2 {
    font-size: 20px;
  }
}
/* ===========================================================
   TAMBAHAN CSS — HALAMAN PENDAFTARAN
   (tidak mengubah style lama)
   =========================================================== */

/* container tombol pendaftaran */
.daftar-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  margin-top: 20px;
}

/* tombol umum */
.btn-umum {
  background: #1568d8;
  color: white;

  padding: 14px 22px;
  border-radius: 12px;

  text-decoration: none;
  font-weight: bold;

  width: 240px;
  min-height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: 0.2s;
}

.btn-umum:hover {
  background: #0f4fa8;
  transform: translateY(-2px);
}

/* tombol bpjs */
.btn-bpjs {
  background: #00a859;
  color: white;

  padding: 14px 22px;
  border-radius: 12px;

  text-decoration: none;
  font-weight: bold;

  width: 240px;
  min-height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: 0.2s;
}

.btn-bpjs:hover {
  background: #008a49;
  transform: translateY(-2px);
}

/* tombol whatsapp */
.btn-wa {
  background: #25d366;
  color: white;

  padding: 14px 22px;
  border-radius: 12px;

  text-decoration: none;
  font-weight: bold;

  width: 240px;
  min-height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: 0.2s;
}

.btn-wa:hover {
  background: #1eb255;
  transform: translateY(-2px);
}

/* catatan kecil */
.note-kecil {
  font-size: 13px;
  opacity: 0.9;
  margin-top: 4px;
}

/* mobile full width */
@media (max-width: 480px) {
  .btn-umum,
  .btn-bpjs,
  .btn-wa {
    width: 92%;
  }
}
/* ===========================================================
   POPUP IVA TANPA JAVASCRIPT (CSS ONLY)
   =========================================================== */

.iva-item {
  position: relative;
  text-align: center;
}

/* tombol IVA tetap seperti card lain */
.iva-btn {
  display: block;
  cursor: pointer;
}

/* popup box */
.iva-popup {
  display: none;

  position: absolute;
  top: 110%;
  left: 50%;
  transform: translateX(-50%);

  width: 260px;
  padding: 14px;

  background: white;
  color: #0d47a1;

  border-radius: 14px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);

  font-size: 14px;
  line-height: 1.5;
  z-index: 50;
}

/* kalau checkbox aktif → tampil */
#ivaToggle:checked ~ .iva-popup {
  display: block;
}
/* ==============================
   POPUP BACKGROUND
============================== */
.popup-content {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;

  transition: opacity 0.3s ease;
  z-index: 9999;
}

/* ==============================
   POPUP BOX (ANIMASI ZOOM)
============================== */
.popup-box {
  background: white;
  color: #333;

  padding: 28px;
  border-radius: 18px;

  max-width: 380px;
  width: 90%;

  text-align: center;
  position: relative;

  transform: scale(0.7);
  opacity: 0;

  transition: all 0.3s ease;
}

/* ==============================
   CLOSE BUTTON
============================== */
.close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 20px;
  cursor: pointer;
  font-weight: bold;
}

/* ==============================
   SAAT POPUP AKTIF
============================== */
.popup-item input:checked + .popup-btn + .popup-content {
  opacity: 1;
  visibility: visible;
}

.popup-item input:checked + .popup-btn + .popup-content .popup-box {
  transform: scale(1);
  opacity: 1;
}
