/* ======================================================
   JIU Enquiry & WhatsApp — v4.4.2 (theme-safe)
   All CSS is isolated under #jiu44-root
   ====================================================== */

:root {
  --jiu-wa-green-top: #60D66A;
  --jiu-wa-green-bottom: #20B038;
}

/* Global isolation container */
#jiu44-root { position: relative; z-index: 2147483640; }

/* Wrapper (fixed) */
#jiu44-root .jiu44-wrap {
  position: fixed;
  right: var(--r, 20px);
  bottom: var(--b, 20px);
  z-index: 2147483642;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

/* Card */
#jiu44-root .jiu44-card {
  width: var(--w, 360px);
  max-width: min(92vw, 420px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
#jiu44-root .jiu44-card.is-hidden { opacity: 0; transform: translateY(8px); pointer-events: none; }

/* Header */

#jiu44-root .jiu44-header{
    display:flex;
    justify-content:center;
    align-items:center;
    background:#00AA94;
    padding:18px 20px;
    position:relative;
}

#jiu44-root .jiu44-header img{
    background:#fff;
    border-radius:12px;
    padding:8px 18px;
    height:58px;
    width:auto;
    max-width:240px;
    object-fit:contain;
    box-shadow:0 3px 10px rgba(0,0,0,.12);
}
#jiu44-root .jiu44-min {
  position: absolute; top: 6px; right: 8px;
  width: 22px; height: 22px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: transparent; color: #fff; font-size: 16px; line-height: 16px; padding: 0; cursor: pointer;
}

/* Body */
/* Body */
#jiu44-root .jiu44-body {
    padding: 16px 18px 6px;
    text-align: center;
}

#jiu44-root .jiu44-title {
    display: block;
    width: 100%;
    text-align: center !important;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.35;
    color: #111827;
    margin: 0 0 8px;
}

#jiu44-root .jiu44-sub {
    display: block;
    width: 100%;
    text-align: center !important;
    font-size: 16px;
    line-height: 1.6;
    color: #6b7280;
    margin: 0 0 10px;
}

/* Actions */
#jiu44-root .jiu44-actions { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 14px }
#jiu44-root .jiu44-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  text-decoration: none; background: #fff; border: 1px solid #e5e7eb; border-radius: 999px;
  padding: 10px 14px; font-weight: 600; color: #111827; transition: all .2s
}
#jiu44-root .jiu44-btn:hover { box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08); transform: translateY(-1px) }

/* WhatsApp SVG sizing (balanced) */
#jiu44-root .jiu44-wa { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0 }
#jiu44-root .jiu44-whatsapp .jiu44-wa .jiu44-wa-svg { width: 20px; height: 20px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)) }
#jiu44-root .jiu44-bubble .jiu44-wa .jiu44-wa-svg { width: 22px; height: 22px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)) }

/* Apply button accent */
#jiu44-root .jiu44-apply { color: #0073e6 }

/* Floating bubble */
#jiu44-root .jiu44-bubble {
  position: fixed; right: var(--r, 20px); bottom: var(--b, 20px);
  width: 52px; height: 52px; border-radius: 999px; border: 0;
  background: linear-gradient(180deg, var(--jiu-wa-green-top), var(--jiu-wa-green-bottom));
  color: #fff; display: none; align-items: center; justify-content: center;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.28); cursor: pointer; transition: transform .25s, box-shadow .25s
}
#jiu44-root .jiu44-bubble:hover { transform: scale(1.08); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35) }

/* Hover label */
#jiu44-root .jiu44-bubble-label {
  position: absolute; right: 65px; bottom: 50%; transform: translateY(50%);
  background: rgba(17, 24, 39, 0.9); color: #fff; padding: 6px 10px; border-radius: 10px;
  font: 500 12px/1 system-ui; opacity: 0; pointer-events: none; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0,0,0,0.28); transition: all .25s
}
@media (hover:hover) {
  #jiu44-root .jiu44-bubble:hover .jiu44-bubble-label { opacity: 1; transform: translateY(50%) translateX(-2px) }
}

/* Modal */
#jiu44-root .jiu44-modal {
  position: fixed; inset: 0; background: rgba(17, 24, 39, 0.5);
  display: none; align-items: center; justify-content: center; z-index: 2147483646
}
#jiu44-root .jiu44-modal-inner {
  width: min(92vw, 520px); background: #fff; border-radius: 16px; padding: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.25)
}
#jiu44-root #jiu44-form label { display: block; margin: 10px 0; font-size: 14px; color: #374151 }
#jiu44-root #jiu44-form input, #jiu44-root #jiu44-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 8px; font: inherit
}
#jiu44-root .jiu44-form-actions { margin-top: 10px; display: flex; gap: 10px; justify-content: flex-end }
#jiu44-root .jiu44-success { margin-top: 10px; color: #065f46; background: #ecfdf5; border: 1px solid #a7f3d0; padding: 10px 12px; border-radius: 8px }

/* Responsive */
@media (max-width: 480px) {
  #jiu44-root .jiu44-card { width: min(var(--mw, 320px), calc(100vw - 20px)) }
  #jiu44-root .jiu44-header img { max-height: 30px }
  #jiu44-root .jiu44-btn { padding: 9px 12px }
}
