/* Rumahati: "Informasi sebelum sesi" (shared/js/rh-prasesi.js).
   Self-contained so it works on the public pages and the client dashboard. */

.rhp-overlay{
  --rhp-blue:#4090CD;--rhp-blue-d:#2F78B3;--rhp-alice:#E6F4FF;--rhp-cyan:#00B4D8;--rhp-cobalt:#00258B;
  --rhp-body:#4A5563;--rhp-muted:#5F6B7A;--rhp-line:#D5E4F2;--rhp-carbon:#1D1D1D;
  --rhp-ease:cubic-bezier(.32,.72,0,1);
  position:fixed;inset:0;z-index:3300;display:flex;align-items:center;justify-content:center;padding:24px;
  background:rgba(16,42,74,.42);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  opacity:0;transition:opacity .32s var(--rhp-ease);
  font-family:'Open Sans',system-ui,sans-serif;color:var(--rhp-body);
}
.rhp-overlay[hidden]{display:none;}
.rhp-overlay.open{opacity:1;}
.rhp-overlay *,.rhp-overlay *::before,.rhp-overlay *::after{box-sizing:border-box;}
.rhp-ic{width:18px;height:18px;flex:none;}

.rhp-card{
  position:relative;width:100%;max-width:560px;max-height:min(860px,calc(100dvh - 48px));
  display:flex;flex-direction:column;background:#fff;border-radius:28px;outline:none;overflow:hidden;
  box-shadow:0 0 0 1px rgba(64,144,205,.16),0 40px 90px -30px rgba(16,42,74,.45);
  transform:translateY(20px) scale(.985);transition:transform .5s var(--rhp-ease);
}
.rhp-overlay.open .rhp-card{transform:none;}
.rhp-x{
  position:absolute;top:16px;right:16px;z-index:2;width:38px;height:38px;border-radius:50%;border:0;background:#fff;
  color:var(--rhp-muted);cursor:pointer;display:grid;place-items:center;box-shadow:0 0 0 1px var(--rhp-line);
}
.rhp-x:hover{color:var(--rhp-carbon);}
.rhp-x:focus-visible,.rhp-btn:focus-visible,.rhp-link:focus-visible{outline:2px solid var(--rhp-blue);outline-offset:2px;}
.rhp-scroll{flex:1;overflow-y:auto;padding:34px 30px 8px;-webkit-overflow-scrolling:touch;}
.rhp-ring{
  width:58px;height:58px;margin:0 auto;border-radius:50%;background:var(--rhp-alice);color:var(--rhp-blue-d);
  display:grid;place-items:center;box-shadow:0 0 0 6px rgba(64,144,205,.1);
}
.rhp-ring .rhp-ic{width:30px;height:30px;}
.rhp-title{margin:18px 0 0;text-align:center;font:800 21px/1.3 'Nunito',system-ui,sans-serif;letter-spacing:-.01em;color:var(--rhp-carbon);}
.rhp-kicker{display:block;margin:8px 0 0;text-align:center;font:700 11px/1 'Open Sans',system-ui,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:var(--rhp-blue-d);}
.rhp-body{margin-top:20px;text-align:left;}
.rhp-intro{margin:0 0 14px;font-size:14px;line-height:1.65;}
.rhp-sec{margin:0 0 22px;padding:0;min-height:0;background:none;}
.rhp-sec h3{margin:0 0 12px;font:800 15px/1.3 'Nunito',system-ui,sans-serif;color:var(--rhp-cobalt);}
.rhp-terms{margin:0;padding:0;list-style:none;counter-reset:rhp;display:flex;flex-direction:column;gap:12px;}
.rhp-terms li{counter-increment:rhp;position:relative;padding-left:36px;font-size:13.5px;line-height:1.6;}
.rhp-terms li::before{
  content:counter(rhp);position:absolute;left:0;top:1px;width:24px;height:24px;border-radius:50%;
  background:var(--rhp-alice);color:var(--rhp-blue-d);font:700 12px/24px 'Open Sans',system-ui,sans-serif;text-align:center;
}
.rhp-terms strong{display:block;color:var(--rhp-carbon);font-weight:700;}
.rhp-terms span{display:block;}
.rhp-places,.rhp-learn{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:10px;}
.rhp-place,.rhp-learn li{display:flex;gap:10px;align-items:flex-start;font-size:13.5px;line-height:1.6;}
.rhp-place{padding:12px 14px;border-radius:16px;background:var(--rhp-alice);}
.rhp-place .rhp-ic,.rhp-learn .rhp-ic{color:var(--rhp-blue-d);margin-top:2px;}
.rhp-place strong{display:block;color:var(--rhp-carbon);}
.rhp-place span{display:block;}
.rhp-link{display:inline-block;margin-top:2px;color:var(--rhp-blue-d);font-weight:600;text-decoration:underline;text-underline-offset:3px;word-break:break-word;}
.rhp-link:hover{color:var(--rhp-cobalt);}
.rhp-note{margin:12px 0 0;font-size:13.5px;line-height:1.65;font-weight:600;color:var(--rhp-carbon);}
.rhp-close{margin:4px 0 16px;font-size:13.5px;line-height:1.7;color:var(--rhp-muted);}
.rhp-foot{flex:none;padding:14px 30px 24px;background:linear-gradient(180deg,rgba(255,255,255,0),#fff 30%);}
.rhp-btn{
  width:100%;min-height:50px;border:0;border-radius:100px;cursor:pointer;background:var(--rhp-blue);color:#fff;
  font:600 14.5px/1 'Open Sans',system-ui,sans-serif;display:flex;align-items:center;justify-content:center;gap:8px;
  transition:background .2s,transform .2s;
}
.rhp-btn:hover{background:var(--rhp-blue-d);}
.rhp-btn:active{transform:scale(.99);}
.rhp-btn.is-ghost{background:#fff;color:var(--rhp-blue-d);box-shadow:inset 0 0 0 1.5px var(--rhp-blue);}
.rhp-btn.is-ghost:hover{background:var(--rhp-alice);}

@media (max-width:640px){
  .rhp-overlay{padding:0;align-items:flex-end;}
  .rhp-card{max-width:none;max-height:94dvh;border-radius:26px 26px 0 0;}
  .rhp-scroll{padding:30px 20px 8px;}
  .rhp-foot{padding:12px 20px 20px;}
}
@media (prefers-reduced-motion:reduce){
  .rhp-overlay,.rhp-card{transition:none;}
}
