/* ===== 3) TOMBOL FAQ CTA + REVEAL (.faq-cta-btn, .reveal-up) ===== */
.faq-cta-wrap {
    text-align: center;
    margin: 26px 0;
}

/* state awal: tersembunyi + agak turun (buat efek naik) */
.reveal-up {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 1.5s ease,
        transform 1.5s ease;
}
/* state muncul (di-set oleh JS saat masuk layar) */
.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Tombol */
.faq-cta-btn {
    display: inline-block;
    padding: 13px 26px;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-decoration: none;
    text-transform: uppercase;
    color: #1a1208; /* teks gelap di atas emas */
    background: linear-gradient(135deg, #ffe896, #f5c542, #c8901a);
    border: 1px solid #8a5e0b;
    border-radius: 999px;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.45),
        0 0 14px rgba(245, 197, 66, 0.35);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}
.faq-cta-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.06);
    box-shadow:
        0 7px 22px rgba(0, 0, 0, 0.5),
        0 0 22px rgba(245, 197, 66, 0.6);
}
.faq-cta-btn:active {
    transform: translateY(-1px) scale(1.2);
}

@media (max-width: 520px) {
    .faq-cta-btn {
        font-size: 13.5px;
        padding: 12px 18px;
    }
}

.fab {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 60px;
    height: 60px;
    z-index: 9999;
  }

  /* ===== Tombol utama ===== */
  .fab-main {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #8a5e0b;
    cursor: pointer;
    background: radial-gradient(circle at 50% 35%, #ffe45c, #f5b400);
    color: #3a2a00;
    display: grid;
    place-items: center;
    z-index: 3;
    box-shadow: 0 0 0 0 rgba(245, 197, 66, 0.6),
                0 6px 18px rgba(0, 0, 0, 0.5);
    will-change: transform;
    /* easing GLIDING (ease-in-out) → mulus, gak nyentak kayak roket */
    transition: transform 0.65s cubic-bezier(0.65, 0, 0.35, 1),
                box-shadow 0.35s ease;
    animation: fabPulse 2.6s ease-in-out infinite;
  }
  .fab-main .fab-ic {
    grid-area: 1 / 1;                 /* dua icon numpuk di tengah */
    width: 28px;
    height: 28px;
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.3s ease;
  }
  .fab-ic-close { opacity: 0; transform: rotate(-90deg) scale(0.5); }
  .fab-main:hover { box-shadow: 0 0 22px rgba(245,197,66,.5), 0 6px 18px rgba(0,0,0,.5); }
  .fab-main:active { transform: scale(0.94); }   /* feedback saat ditekan */

  /* SAAT DIBUKA: main meluncur NAIK (jarak = tinggi menu) */
  .fab.open .fab-main {
    transform: translateY(-192px);
    animation: none;
    box-shadow: 0 0 24px rgba(245, 197, 66, 0.55),
                0 6px 18px rgba(0, 0, 0, 0.5);
  }
  /* icon chat memudar keluar, icon X masuk berputar halus (gak jungkir) */
  .fab.open .fab-ic-chat  { opacity: 0; transform: rotate(90deg) scale(0.5); }
  .fab.open .fab-ic-close { opacity: 1; transform: rotate(0deg) scale(1); }
  .fab.open .fab-main:active { transform: translateY(-192px) scale(0.94); }

  @keyframes fabPulse {
    0%   { box-shadow: 0 0 0 0 rgba(245, 197, 66, 0.5), 0 6px 18px rgba(0,0,0,0.5); }
    70%  { box-shadow: 0 0 0 14px rgba(245, 197, 66, 0), 0 6px 18px rgba(0,0,0,0.5); }
    100% { box-shadow: 0 0 0 0 rgba(245, 197, 66, 0),    0 6px 18px rgba(0,0,0,0.5); }
  }

  /* ===== Menu channel (absolute, di bawah posisi main yg sudah naik) ===== */
  .fab-menu {
    position: absolute;
    left: 6px;                 /* (60-48)/2 = 6, biar center sama main */
    bottom: 6px;
    width: 48px;
    display: flex;
    flex-direction: column;    /* item pertama di ATAS (dekat main), turun ke bawah */
    align-items: center;
    gap: 14px;
    pointer-events: none;
  }
  .fab.open .fab-menu { pointer-events: auto; }

  /* tiap tombol channel */
  .fab-item {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: linear-gradient(180deg, #2a1414, #180b0b);
    color: #f5c542;
    border: 1px solid rgba(201, 162, 75, 0.55);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
    position: relative;

    /* awal: ngumpet di atas (di balik main), transparan, mengecil */
    opacity: 0;
    transform: translateY(-46px) scale(0.5);
    will-change: transform, opacity;
    /* turun lembut dgn sedikit "settle" halus */
    transition: opacity 0.45s ease,
                transform 0.6s cubic-bezier(0.22, 1, 0.32, 1),
                background 0.25s ease, color 0.25s ease;
  }
  .fab-item svg { width: 24px; height: 24px; }

  /* SAAT DIBUKA: turun ke posisi masing-masing */
  .fab.open .fab-item {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  /* MULAI setelah main naik (~0.4s), jarak 0.13s = mengalir lembut satu-satu */
  .fab.open .fab-item:nth-child(1) { transition-delay: 0.40s; }
  .fab.open .fab-item:nth-child(2) { transition-delay: 0.53s; }
  .fab.open .fab-item:nth-child(3) { transition-delay: 0.66s; }
  .fab.open .fab-item:nth-child(4) { transition-delay: 0.79s; }
  .fab.open .fab-item:nth-child(5) { transition-delay: 0.92s; }

  /* hover channel: jadi gold */
  .fab-item:hover {
    transform: translateY(0) scale(1.14);
    background: linear-gradient(180deg, #f5c542, #c8901a);
    color: #1a1208;
    box-shadow: 0 0 18px rgba(245, 197, 66, 0.6);
  }

  /* tooltip label */
  .fab-item::after {
    content: attr(data-label);
    position: absolute;
    right: 58px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(180deg, #2a1414, #180b0b);
    color: #f0e6cf;
    border: 1px solid rgba(201, 162, 75, 0.4);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  .fab-item:hover::after { opacity: 1; }

  @media (prefers-reduced-motion: reduce) {
    .fab-main, .fab-main .fab-ic { animation: none; transition: none; }
    .fab.open .fab-main { transform: translateY(-192px); }
    .fab-item { transition: opacity 0.2s ease; transform: translateY(0) scale(1); opacity: 0; }
    .fab.open .fab-item { opacity: 1; }
  }