/* ============================================================
   RejekiTelco — theme-independent overlay UI (lead modal, cart
   drawer, checkout modal, skip link). Loaded on EVERY page so
   "Daftar Sekarang" / "Jadi Ejen" CTAs work the same whether
   you're on the dark homepage or a light-themed blog post.
   Colors are hardcoded (not the page's CSS vars) so the modal
   always renders with the same purple/blue brand gradient.
   ============================================================ */
.skip-link{
  position:absolute; top:-60px; left:12px; z-index:300;
  background:#F4F4FB; color:#0A0B1D; padding:12px 20px; border-radius:9px;
  font-weight:600; font-size:14px; transition:top .2s ease; font-family:'Inter',sans-serif;
}
.skip-link:focus{top:12px;}

.rt-btn,.lead-box .btn,.modal-box .btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 22px; border-radius:12px; font-weight:700; font-size:14px; cursor:pointer; border:none;
  transition:transform .15s ease, box-shadow .15s ease; font-family:'Inter',sans-serif;
}
.rt-btn-primary,.btn-primary,.btn-signal{background:linear-gradient(90deg,#A78BFA 0%,#60A5FA 100%); color:#fff;}
.rt-btn-primary:hover,.btn-primary:hover,.btn-signal:hover{transform:translateY(-1px); box-shadow:0 10px 24px -6px rgba(124,58,237,0.45);}
.rt-btn-ghost{background:transparent; border:1.5px solid #2A2B4A; color:#F4F4FB;}
.rt-btn-block,.btn-block{width:100%;}

/* ---------- LEAD FORM MODAL ---------- */
.lead-overlay{
  position:fixed; inset:0; background:rgba(10,11,29,0.65); z-index:200; opacity:0; pointer-events:none; transition:opacity .25s ease;
}
.lead-overlay.show{opacity:1; pointer-events:auto;}
.lead-modal{
  position:fixed; inset:0; z-index:201; display:flex; align-items:center; justify-content:center;
  opacity:0; pointer-events:none; transition:opacity .25s ease; padding:20px;
}
.lead-modal.show{opacity:1; pointer-events:auto;}
.lead-box{
  background:#14152B; border:1px solid #2A2B4A; border-radius:18px; width:460px; max-width:100%;
  max-height:90vh; overflow-y:auto; padding:32px; transform:translateY(14px); transition:transform .25s ease;
  color:#F4F4FB; font-family:'Inter',sans-serif;
}
.lead-modal.show .lead-box{transform:translateY(0);}
.lead-box h3{font-size:20px; margin-bottom:6px; font-family:'Plus Jakarta Sans',sans-serif; font-weight:800;}
.lead-box .lead-sub{font-size:13.5px; color:#9294BE; margin-bottom:22px;}
.lead-close{
  float:right; width:32px; height:32px; border-radius:9px; border:1px solid #2A2B4A; background:transparent;
  color:#F4F4FB; cursor:pointer; font-size:15px;
}
.lead-field{margin-bottom:16px;}
.lead-field label{display:block; font-size:12.5px; font-weight:600; margin-bottom:6px; color:#C6C8E4;}
.lead-field input[type="text"],
.lead-field input[type="tel"],
.lead-field input[type="email"],
.lead-field select{
  width:100%; padding:11px 14px; border:1px solid #2A2B4A; border-radius:9px; font-size:14px; font-family:'Inter',sans-serif;
  background:#0A0B1D; color:#F4F4FB;
}
.lead-field select{appearance:none; -webkit-appearance:none;}
.lead-field input:focus, .lead-field select:focus{outline:2px solid #A78BFA; outline-offset:1px; border-color:transparent;}
.lead-field .lead-error{display:none; font-size:12px; color:#F472B6; margin-top:6px;}
.lead-field.invalid input, .lead-field.invalid select{border-color:#F472B6;}
.lead-field.invalid .lead-error{display:block;}
.lead-radio-row{display:flex; gap:10px; flex-wrap:wrap;}
.lead-radio-pill{
  flex:1; min-width:140px; border:1px solid #2A2B4A; border-radius:10px; padding:11px 12px; text-align:center;
  font-size:13px; font-weight:600; cursor:pointer; color:#C6C8E4; background:#0A0B1D;
}
.lead-radio-pill.active{border-color:transparent; background:linear-gradient(90deg,#A78BFA 0%,#60A5FA 100%); color:#fff;}
.lead-field-row{display:grid; grid-template-columns:1fr 1fr; gap:12px;}
.lead-submit-btn{position:relative;}
.lead-submit-btn[disabled]{opacity:0.7; cursor:not-allowed;}
.lead-spinner{
  display:inline-block; width:15px; height:15px; border-radius:50%;
  border:2px solid rgba(255,255,255,0.4); border-top-color:#fff; animation:leadSpin .7s linear infinite; margin-right:8px;
}
@keyframes leadSpin{to{transform:rotate(360deg);}}
.lead-success{text-align:center; padding:16px 0 6px;}
.lead-success-icon{
  width:64px; height:64px; border-radius:50%; background:rgba(167,139,250,0.15); color:#C4B5FD;
  display:flex; align-items:center; justify-content:center; font-size:28px; margin:0 auto 18px;
}
.lead-success h3{margin-bottom:10px;}
.lead-success p{font-size:14px; color:#C6C8E4; margin-bottom:6px;}
.lead-success .lead-countdown{font-size:12.5px; color:#9294BE; margin-top:16px; font-family:'IBM Plex Mono',monospace;}
.lead-banner{font-size:12.5px; padding:10px 14px; border-radius:9px; margin-bottom:18px; display:none;}
.lead-banner.show{display:block;}
.lead-banner.err{background:rgba(244,114,182,0.12); color:#F472B6;}
.lead-banner.info{background:rgba(167,139,250,0.12); color:#C4B5FD;}

@media (max-width:640px){ .lead-field-row{grid-template-columns:1fr;} }

/* ---------- CART DRAWER ---------- */
.overlay{position:fixed; inset:0; background:rgba(11,18,32,0.5); z-index:100; opacity:0; pointer-events:none; transition:opacity .25s ease;}
.overlay.show{opacity:1; pointer-events:auto;}
.drawer{
  position:fixed; top:0; right:0; bottom:0; width:420px; max-width:92vw; background:#0A0B1D; z-index:101;
  transform:translateX(100%); transition:transform .3s ease; display:flex; flex-direction:column;
  color:#F4F4FB; font-family:'Inter',sans-serif;
}
.drawer.show{transform:translateX(0);}
.drawer-head{display:flex; justify-content:space-between; align-items:center; padding:22px 24px; border-bottom:1px solid #2A2B4A;}
.drawer-head h3{font-size:18px; font-family:'Plus Jakarta Sans',sans-serif;}
.close-btn{width:34px; height:34px; border-radius:9px; border:1px solid #2A2B4A; background:#14152B; color:#F4F4FB; cursor:pointer; font-size:16px;}
.drawer-body{flex:1; overflow-y:auto; padding:20px 24px;}
.cart-item{display:flex; gap:14px; padding:16px 0; border-bottom:1px solid #2A2B4A;}
.cart-item .ci-icon{width:48px; height:48px; border-radius:10px; background:linear-gradient(90deg,#A78BFA 0%,#60A5FA 100%); color:#fff; display:flex; align-items:center; justify-content:center; font-family:'IBM Plex Mono',monospace; font-size:11px; font-weight:700; flex-shrink:0;}
.cart-item .ci-info{flex:1;}
.cart-item .ci-info strong{display:block; font-size:14.5px; margin-bottom:2px;}
.cart-item .ci-info span{font-size:12.5px; color:#9294BE;}
.qty-ctrl{display:flex; align-items:center; gap:10px; margin-top:8px;}
.qty-ctrl button{width:24px; height:24px; border-radius:6px; border:1px solid #2A2B4A; background:#14152B; color:#F4F4FB; cursor:pointer; font-size:13px;}
.qty-ctrl span{font-family:'IBM Plex Mono',monospace; font-size:13px; min-width:14px; text-align:center;}
.ci-remove{font-size:12px; color:#F472B6; cursor:pointer; margin-top:8px; display:inline-block;}
.ci-price{font-family:'IBM Plex Mono',monospace; font-size:14px; font-weight:600; white-space:nowrap;}
.empty-cart{text-align:center; padding:60px 20px; color:#9294BE;}
.empty-cart .eicon{font-size:38px; margin-bottom:14px;}
.drawer-foot{padding:22px 24px; border-top:1px solid #2A2B4A;}
.sum-row{display:flex; justify-content:space-between; font-size:14px; color:#C6C8E4; margin-bottom:8px;}
.sum-row.total{font-size:17px; font-weight:700; color:#F4F4FB; margin:14px 0;}

/* ---------- CHECKOUT MODAL ---------- */
.modal{position:fixed; inset:0; z-index:110; display:flex; align-items:center; justify-content:center; opacity:0; pointer-events:none; transition:opacity .25s ease; padding:20px;}
.modal.show{opacity:1; pointer-events:auto;}
.modal-box{
  background:#14152B; border-radius:18px; width:460px; max-width:100%; max-height:88vh; overflow-y:auto;
  padding:32px; transform:translateY(14px); transition:transform .25s ease; color:#F4F4FB; font-family:'Inter',sans-serif;
}
.modal.show .modal-box{transform:translateY(0);}
.modal-box h3{font-size:20px; margin-bottom:6px; font-family:'Plus Jakarta Sans',sans-serif;}
.modal-box .sub{font-size:13.5px; color:#9294BE; margin-bottom:24px;}
.modal-box .field{margin-bottom:16px;}
.modal-box .field label{display:block; font-size:12.5px; font-weight:600; margin-bottom:6px; color:#C6C8E4;}
.modal-box .field input{
  width:100%; padding:11px 14px; border:1px solid #2A2B4A; border-radius:9px; font-size:14px; font-family:'Inter',sans-serif;
  background:#0A0B1D; color:#F4F4FB;
}
.modal-box .field input::placeholder{color:#9294BE;}
.modal-box .field input:focus{outline:2px solid #A78BFA; outline-offset:1px; border-color:transparent;}
.field-row{display:grid; grid-template-columns:1fr 1fr; gap:12px;}
.pay-methods{display:flex; gap:10px; margin-bottom:20px;}
.pay-method{flex:1; border:1px solid #2A2B4A; border-radius:9px; padding:12px 10px; text-align:center; font-size:12.5px; font-weight:600; cursor:pointer; color:#C6C8E4;}
.pay-method.active{border-color:transparent; background:linear-gradient(90deg,#A78BFA 0%,#60A5FA 100%); color:#fff;}
.demo-tag{background:rgba(236,72,153,0.1); color:#F472B6; font-size:11.5px; font-weight:600; padding:9px 12px; border-radius:8px; margin-bottom:20px; font-family:'IBM Plex Mono',monospace;}
.success-box{text-align:center; padding:14px 0 6px;}
.success-icon{width:64px; height:64px; border-radius:50%; background:rgba(124,58,237,0.12); color:#C4B5FD; display:flex; align-items:center; justify-content:center; font-size:28px; margin:0 auto 18px;}
