/* Popup Liên hệ theo "Popup 26.11.psd" (canvas 1920x1080) + CTA "Báo giá quỹ căn đẹp nhất" */
/* Nền mới: phối cảnh dự án bên trái (thay khối logo + thông tin dự án + MXH) */
.ct-overlay .ct-panel.ct-v2611 { background: #001f11 url('/assets/contact/popup-bg-2611.jpg') center / 100% 100% no-repeat !important; }
.ct-panel.ct-v2611 .cl-dev, .ct-panel.ct-v2611 .cl-htitle, .ct-panel.ct-v2611 > span.cl-sub, .ct-panel.ct-v2611 > span.cl-lbl,
.ct-panel.ct-v2611 > span.cl-val, .ct-panel.ct-v2611 .cl-social { display: none !important; }

/* CTA box cố định góc dưới phải — cùng ngôn ngữ nút sidebar (nền xanh thương hiệu, viền kem, chữ in hoa) */
/* góc dưới bên TRÁI: lề trái = lề phải của nút sidebar (53.1u), đáy thẳng hàng nút sidebar cuối (91u) */
.rm-cta-quote { position: fixed; z-index: 80; bottom: calc(91 * var(--u)); left: calc(53.1 * var(--u));
  height: calc(57.1 * var(--u)); min-height: 44px; box-sizing: border-box; display: flex; align-items: center; gap: calc(14 * var(--u));
  padding: 0 calc(30 * var(--u)); border: 1px solid #fdf6c2; border-radius: 999px; background: rgba(2, 51, 0, .85);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35); text-decoration: none; cursor: pointer;
  font-family: 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 400; font-size: max(12px, calc(17 * var(--u)));
  letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; color: #fff7cf; -webkit-text-fill-color: #fff7cf; transition: filter .2s, transform .2s; }
.rm-cta-quote:hover { filter: brightness(1.15); transform: translateY(-2px); }
/* Popup co vào giữa, chiếm ~50% màn hình (desktop) */
@media (min-width: 769px) {
  .ct-overlay .ct-panel.ct-v2611 { width: max(900px, min(50vw, calc(80vh * 16 / 9))) !important; max-width: 94vw !important; }
}

/* ===== MOBILE (<=768px): popup thu thành thẻ giữa màn (ảnh phối cảnh trên + form dưới), CTA góc dưới trái ===== */
@media (max-width: 768px) {
  body > .rm-cta-quote { display: flex !important; }
  body > .ct-overlay:has(.ct-v2611):not([hidden]) { display: flex !important; }
  .ct-overlay:has(.ct-v2611) { z-index: 10000 !important; display: flex; align-items: center; justify-content: center; background: rgba(0, 12, 6, .72); }
  .ct-overlay:has(.ct-v2611)[hidden] { display: none; }
  .ct-overlay .ct-panel.ct-v2611 { --mw: min(92vw, 440px); width: var(--mw) !important; max-width: var(--mw) !important; height: auto !important;
    max-height: 88dvh !important; padding: calc(var(--mw) * .6633 + 14px) 16px 26px !important; border: 1px solid rgba(253, 246, 194, .28) !important;
    background: #04291a url('/assets/contact/popup-bg-2611-m.jpg') top center / 100% auto no-repeat !important; overflow-y: auto !important; }
  .ct-overlay .ct-panel.ct-v2611 .ct-x { position: absolute !important; top: 6px !important; right: 8px !important; }
  .rm-cta-quote { left: calc(34 * var(--mu)); bottom: calc(130 * var(--mu)); height: calc(96 * var(--mu)); min-height: 0;
    padding: 0 calc(40 * var(--mu)); gap: 8px; font-size: 12px; letter-spacing: .04em; }
  }
/* Hiệu ứng popup mới: zoom out mượt (to -> vừa) + mờ dần nền; đóng: thu nhỏ + mờ */
@keyframes rmPopZoomIn { from { opacity: 0; transform: scale(1.14); } to { opacity: 1; transform: scale(1); } }
@keyframes rmPopFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes rmPopZoomOut { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(.94); } }
.ct-overlay:not([hidden]):has(.ct-v2611) { animation: rmPopFadeIn .5s ease both; }
.ct-overlay:not([hidden]) .ct-panel.ct-v2611 { animation: rmPopZoomIn .9s cubic-bezier(.22, 1, .36, 1) both; transform-origin: 50% 50%; will-change: transform, opacity; }
.ct-overlay.rm-pop-closing { animation: rmPopFadeIn .38s ease reverse both !important; }
.ct-overlay.rm-pop-closing .ct-panel.ct-v2611 { animation: rmPopZoomOut .38s cubic-bezier(.4, 0, .2, 1) both !important; }
@media (prefers-reduced-motion: reduce) { .ct-overlay .ct-panel.ct-v2611, .ct-overlay:has(.ct-v2611) { animation: none !important; } }
