/* ============================================================
   REE Contact Popup (desktop + modal form)
   Palette: Navy + Cream + Soft Blue — NO gold
   ============================================================ */

.ree-float-cta{
  position:fixed; bottom:24px; display:flex; flex-direction:column; gap:12px;
  z-index:9998; opacity:0; pointer-events:none; transform:translateY(12px);
  transition:opacity .35s ease, transform .35s ease;
}
html[dir="rtl"] .ree-float-cta{ left:24px; }
html[dir="ltr"] .ree-float-cta{ right:24px; }
.ree-float-cta.is-visible{ opacity:1; pointer-events:auto; transform:translateY(0); }

.ree-float-btn{
  position:relative; width:54px; height:54px; border-radius:16px; border:none;
  display:flex; align-items:center; justify-content:center; font-size:22px;
  cursor:pointer; text-decoration:none; color:#fff;
  box-shadow:0 10px 28px rgba(15,27,44,.18), 0 2px 6px rgba(15,27,44,.08);
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.ree-float-btn:hover{ transform:translateY(-3px); box-shadow:0 14px 36px rgba(15,27,44,.24); }
.ree-float-btn--wa   { background:linear-gradient(135deg,#25D366 0%,#128C7E 100%); }
.ree-float-btn--call { background:linear-gradient(135deg,#0F1B2C 0%,#1E3A5F 100%); }
.ree-float-btn--mail { background:linear-gradient(135deg,#3B82F6 0%,#1D4ED8 100%); }

.ree-float-btn__tip{
  position:absolute; top:50%; transform:translateY(-50%); white-space:nowrap;
  background:#0F1B2C; color:#fff; font-size:12px; font-weight:600;
  padding:6px 10px; border-radius:8px; opacity:0; pointer-events:none;
  transition:opacity .2s ease, transform .2s ease; font-family:inherit;
}
html[dir="rtl"] .ree-float-btn__tip{ right:calc(100% + 10px); }
html[dir="ltr"] .ree-float-btn__tip{ left:calc(100% + 10px); }
.ree-float-btn:hover .ree-float-btn__tip{ opacity:1; }

/* Overlay */
.ree-popup-overlay{
  display:none; position:fixed; inset:0; background:rgba(15,27,44,.55);
  -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
  z-index:10000; opacity:0; transition:opacity .3s ease;
}
.ree-popup-overlay.is-active{ display:block; opacity:1; }

/* Popup card */
.ree-popup{
  display:none; position:fixed; top:50%; left:50%;
  transform:translate(-50%,-50%) scale(.94);
  width:480px; max-width:calc(100vw - 32px); max-height:calc(100vh - 32px);
  overflow:hidden; background:#fff; border-radius:22px;
  box-shadow:0 30px 90px rgba(15,27,44,.28), 0 0 0 1px rgba(15,27,44,.04);
  z-index:10001; opacity:0;
  transition:opacity .35s ease, transform .35s cubic-bezier(.34,1.56,.64,1);
  font-family:inherit;
}
.ree-popup.is-active{
  display:flex; flex-direction:column; opacity:1;
  transform:translate(-50%,-50%) scale(1);
}

.ree-popup__close{
  position:absolute; top:14px; width:36px; height:36px; border-radius:50%;
  border:none; background:rgba(255,255,255,.16); color:#fff; font-size:14px;
  cursor:pointer; display:flex; align-items:center; justify-content:center;
  transition:background .2s ease, transform .3s ease; z-index:3;
}
html[dir="rtl"] .ree-popup__close{ left:14px; }
html[dir="ltr"] .ree-popup__close{ right:14px; }
.ree-popup__close:hover{ background:rgba(255,255,255,.28); transform:rotate(90deg); }

.ree-popup__head{
  position:relative; text-align:center; padding:30px 24px 22px; color:#fff;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(59,130,246,.35), transparent 55%),
    linear-gradient(135deg,#0F1B2C 0%,#1E3A5F 100%);
}
.ree-popup__head::after{
  content:""; position:absolute; left:0; right:0; bottom:-1px; height:14px;
  background:linear-gradient(180deg,transparent,#fff); pointer-events:none;
}
.ree-popup__icon{
  width:56px; height:56px; border-radius:16px;
  background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.18);
  display:flex; align-items:center; justify-content:center; margin:0 auto 14px;
}
.ree-popup__icon i{ font-size:22px; color:#93C5FD; }
.ree-popup__head h3{ font-size:20px; font-weight:800; margin:0 0 6px; letter-spacing:-.2px; }
.ree-popup__head p{ font-size:13px; color:rgba(241,245,249,.78); margin:0; }

.ree-popup__form{
  padding:22px 24px 24px; background:#fff; overflow-y:auto;
}
.ree-popup__row{ display:flex; gap:12px; margin-bottom:12px; }
.ree-popup__row--2 > *{ flex:1; min-width:0; }
.ree-popup__field{ display:block; margin-bottom:12px; }
.ree-popup__label{
  display:block; font-size:12.5px; font-weight:700; color:#0F1B2C;
  margin-bottom:6px; letter-spacing:.1px;
}
.ree-popup__label em{ color:#EF4444; font-style:normal; }
.ree-popup__field input,
.ree-popup__field textarea{
  width:100%; padding:12px 14px; border:1.5px solid #E2E8F0; border-radius:12px;
  font-size:14.5px; font-family:inherit; background:#F8FAFC; color:#0F1B2C;
  transition:border-color .2s ease, box-shadow .2s ease, background .2s ease;
  box-sizing:border-box;
}
.ree-popup__field textarea{ min-height:76px; resize:vertical; }
.ree-popup__field input::placeholder,
.ree-popup__field textarea::placeholder{ color:#94A3B8; opacity:1; }
.ree-popup__field input:focus,
.ree-popup__field textarea:focus{
  outline:none; border-color:#3B82F6; background:#fff;
  box-shadow:0 0 0 4px rgba(59,130,246,.12);
}

.ree-popup__submit{
  width:100%; padding:14px 18px; margin-top:4px;
  background:linear-gradient(135deg,#0F1B2C 0%,#1E3A5F 100%); color:#fff;
  border:none; border-radius:14px; font-size:15.5px; font-weight:800;
  cursor:pointer; display:flex; align-items:center; justify-content:center;
  gap:10px; font-family:inherit; letter-spacing:.2px;
  box-shadow:0 8px 20px rgba(15,27,44,.22);
  transition:transform .2s ease, box-shadow .25s ease, background .25s ease;
}
.ree-popup__submit:hover{
  transform:translateY(-1px);
  background:linear-gradient(135deg,#1E3A5F 0%,#2E5490 100%);
  box-shadow:0 12px 28px rgba(15,27,44,.28);
}
.ree-popup__submit:disabled{ opacity:.7; cursor:wait; transform:none; }
.ree-popup__submit i{ font-size:14px; }

.ree-popup__promise{
  margin-top:12px; font-size:12px; color:#64748B; text-align:center;
  display:flex; align-items:center; justify-content:center; gap:6px;
}
.ree-popup__promise i{ color:#16A34A; font-size:12px; }

/* Mobile: hide the desktop Floating CTA — mobile bottom nav has its own contact */
@media (max-width:991px){
  .ree-float-cta{ display:none !important; }
  .ree-popup{ width:calc(100vw - 24px); border-radius:18px; }
  .ree-popup__head{ padding:24px 20px 18px; }
  .ree-popup__form{ padding:18px 20px 22px; }
  .ree-popup__row{ flex-direction:column; gap:0; }
}
