
/* Atribut [hidden] selalu menang atas display eksplisit (pop & modal CTA) */
[hidden] { display: none !important; }

/* =====================================================================
 * TOMBOL CTA BANTUAN (floating) — TEMA TERANG (file terpisah)
 * Dimuat oleh: header.php (publik), tenant-booking.php, mitra_header.php
 * Dipisahkan dari style.css agar bisa dipakai juga di Panel Mitra
 * (panel memuat admin.css, bukan style.css). Prefix: .hcta-
 * ===================================================================== */


/* =====================================================================
 * TOMBOL CTA BANTUAN (floating) — TEMA TERANG
 * Tombol melayang kanan-bawah + kartu bantuan terang (putih / pastel).
 * Dipakai semua halaman publik & tenant-booking.php. Prefix: .hcta-
 * ===================================================================== */
.hcta-wrap { position: fixed; right: 18px; bottom: calc(78px + env(safe-area-inset-bottom, 0px)); z-index: 1200; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
@media (min-width: 861px) { .hcta-wrap { right: 24px; bottom: 24px; } }

.hcta-fab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px 10px 12px; border: 1px solid rgba(46, 125, 50, 0.25); border-radius: 999px;
  background: linear-gradient(135deg, #ffffff 0%, #f2faf0 100%);
  color: var(--accent, #2e7d32); font-weight: 700; font-size: 13.5px;
  box-shadow: 0 6px 22px rgba(46, 125, 50, 0.22); cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, color .2s ease;
}
.hcta-fab:hover, .hcta-fab:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(46, 125, 50, 0.3); color: var(--accent-dark, #1b5e20); }
.hcta-fab.is-open { color: #fff; background: linear-gradient(135deg, var(--accent, #2e7d32) 0%, var(--accent-dark, #1b5e20) 100%); border-color: transparent; }
.hcta-fab-ico { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; }
.hcta-fab-ico svg { width: 100%; height: 100%; }
.hcta-fab-label { letter-spacing: .2px; }

/* Kartu popover TERANG */
.hcta-pop {
  width: min(330px, calc(100vw - 36px));
  background: #ffffff; border: 1px solid #e6efe2; border-radius: 18px;
  box-shadow: 0 18px 48px rgba(38, 50, 40, 0.18); overflow: hidden;
  transform-origin: bottom right; animation: hctaPopIn .22s ease both;
}
@keyframes hctaPopIn { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.hcta-pop-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px; border-bottom: 1px solid #eef4ea; background: linear-gradient(135deg, #f6fbf4 0%, #ffffff 70%); }
.hcta-pop-badge { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; background: #e7f2e3; color: var(--accent, #2e7d32); }
.hcta-pop-badge svg { width: 20px; height: 20px; }
.hcta-pop-headtxt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hcta-pop-headtxt b { font-size: 14.5px; color: #274031; }
.hcta-pop-headtxt small { font-size: 11.5px; color: #7f8f83; }
.hcta-close { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: none; border-radius: 9px; background: #f1f5ee; color: #6d7f70; cursor: pointer; transition: background .2s ease, color .2s ease; }
.hcta-close:hover { background: #e4ecdf; color: #34493a; }
.hcta-close svg { width: 15px; height: 15px; }

/* Item kartu terang */
.hcta-item {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  margin: 10px; padding: 12px; border-radius: 14px; cursor: pointer;
  border: 1px solid transparent; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.hcta-item:hover, .hcta-item:focus-visible { transform: translateY(-1px); border-color: rgba(46, 125, 50, .3); box-shadow: 0 8px 20px rgba(46, 125, 50, .12); }
.hcta-item-wa { background: linear-gradient(135deg, #effaec 0%, #ffffff 80%); border-color: #d8ecd2; }
.hcta-item-guide { background: linear-gradient(135deg, #fff7e8 0%, #ffffff 80%); border-color: #f3e4c4; font: inherit; }
.hcta-item-ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; }
.hcta-item-wa .hcta-item-ico { background: #e0f2db; color: #237e33; }
.hcta-item-guide .hcta-item-ico { background: #fdeecb; color: #a4700f; }
.hcta-item-ico svg { width: 21px; height: 21px; }
.hcta-item-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hcta-item-txt b { font-size: 13.5px; color: #29352c; }
.hcta-item-txt small { font-size: 11.5px; color: #7f8b80; line-height: 1.45; }
.hcta-item-arrow { flex: none; display: inline-flex; color: #9db2a1; }
.hcta-item-arrow svg { width: 16px; height: 16px; }
.hcta-item-guide + .hcta-item, .hcta-item-wa + .hcta-item { margin-top: 0; }
.hcta-pop .hcta-item:last-child { margin-bottom: 14px; }
.hcta-pop .hcta-item:first-of-type { margin-top: 12px; }

/* Modal panduan TERANG */
.hcta-modal { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 18px; }
.hcta-modal-overlay { position: absolute; inset: 0; background: rgba(30, 42, 32, 0.45); backdrop-filter: blur(2px); }
.hcta-modal-card {
  position: relative; width: min(440px, 100%); max-height: min(86vh, 640px); overflow-y: auto;
  background: #ffffff; border-radius: 20px; box-shadow: 0 24px 64px rgba(20, 32, 24, 0.28);
  animation: hctaPopIn .22s ease both;
}
.hcta-modal-head { display: flex; align-items: center; gap: 11px; padding: 16px 16px 13px; border-bottom: 1px solid #eef4ea; background: linear-gradient(135deg, #f6fbf4 0%, #ffffff 70%); position: sticky; top: 0; z-index: 2; }
.hcta-modal-badge { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 13px; background: #e7f2e3; color: var(--accent, #2e7d32); }
.hcta-modal-badge svg { width: 21px; height: 21px; }
.hcta-modal-head h3 { flex: 1; min-width: 0; margin: 0; font-size: 16px; color: #274031; }
.hcta-modal-body { padding: 14px 16px 4px; }
.hcta-modal-sub { margin: 0 0 12px; font-size: 13px; color: #71806f; }
.hcta-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hcta-step { display: flex; gap: 11px; align-items: flex-start; padding: 11px 12px; background: linear-gradient(135deg, #f8fcf6 0%, #ffffff 85%); border: 1px solid #e8f1e3; border-radius: 13px; }
.hcta-step-no { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent, #2e7d32); color: #fff; font-weight: 800; font-size: 12.5px; }
.hcta-step-txt { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: #5c6b5e; line-height: 1.55; }
.hcta-step-txt b { font-size: 13.5px; color: #2a3c2e; }
.hcta-modal-note { display: flex; gap: 9px; align-items: flex-start; margin: 13px 0 14px; padding: 11px 12px; background: #fff8e9; border: 1px dashed #f0dfb4; border-radius: 12px; font-size: 12.5px; color: #7c6a3f; line-height: 1.55; }
.hcta-modal-note svg { flex: none; width: 16px; height: 16px; margin-top: 1px; color: #c09a3e; }
.hcta-modal-foot { display: flex; gap: 10px; padding: 13px 16px 16px; border-top: 1px solid #eef4ea; }
.hcta-btn-ghost { flex: 1; display: inline-flex; align-items: center; justify-content: center; padding: 11px 14px; border-radius: 12px; border: 1px solid #dbe6d6; background: #fff; color: #4a5b4d; font-weight: 600; font-size: 13px; cursor: pointer; transition: background .2s ease; }
.hcta-btn-ghost:hover { background: #f3f8f1; }
.hcta-btn-primary { flex: 1.4; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 11px 14px; border-radius: 12px; background: linear-gradient(135deg, var(--accent, #2e7d32) 0%, var(--accent-dark, #1b5e20) 100%); color: #fff; font-weight: 700; font-size: 13px; text-decoration: none; transition: filter .2s ease; }
.hcta-btn-primary:hover { filter: brightness(1.07); color: #fff; }
.hcta-btn-primary svg { width: 16px; height: 16px; }
body.hcta-no-scroll { overflow: hidden; }
