/* OnlineBank Popup Basic Form (v1) - clean UI/UX, centered CTA */
:root{
  --ob-brand:#0157FF;
  --ob-brand2:#0046C0;
  --ob-text:#0f172a;
  --ob-muted:#64748b;
  --ob-border:#e5e7eb;
  --ob-bg:#f6f7fb;
  --ob-card:#ffffff;
  --ob-radius:14px;
  --ob-shadow:0 18px 45px rgba(2,6,23,.16);
  --ob-okbg:#ecfdf5;
  --ob-okbd:#bbf7d0;
  --ob-oktx:#065f46;
  --ob-erbg:#fff1f2;
  --ob-erbd:#fecdd3;
  --ob-ertx:#b91c1c;
}

.obx, .obx *{ box-sizing:border-box; }
.obx{
  font-family: Inter, Arial, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ob-text);
}

/* ===== Popup / Overlay ===== */
.obx-overlay{
  position:fixed;
  inset:0;
  background: rgba(2,6,23,.55);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:14px;
  z-index:2147483646;
}
.obx-modal{
  width:min(520px, 96vw);
  max-height:92vh;
  overflow:auto;
  position:relative;
}
.obx-close{
  position:absolute;
  top:10px; right:12px;
  border:0;
  cursor:pointer;
  background: rgba(255,255,255,.92);
  color:#0f172a;
  border-radius:999px;
  padding:7px 11px;
  font-weight:900;
  box-shadow:0 10px 22px rgba(2,6,23,.16);
}

/* ===== Card ===== */
.obx-card{
  width:100%;
  background:var(--ob-card);
  border:1px solid var(--ob-border);
  border-radius:var(--ob-radius);
  box-shadow:var(--ob-shadow);
  padding:22px 18px 18px;
}
.obx-head{
  text-align:center;
  margin-bottom:14px;
}
.obx-title{
  margin:2px 0 6px;
  font-size:22px;
  font-weight:900;
  letter-spacing:.2px;
}
.obx-sub{
  margin:0;
  color:var(--ob-muted);
  font-size:13px;
  line-height:1.45;
}

.obx-error{
  display:none;
  margin:12px 0 0;
  padding:10px 12px;
  border-radius:12px;
  background:var(--ob-erbg);
  color:var(--ob-ertx);
  border:1px solid var(--ob-erbd);
  font-size:13px;
  line-height:1.45;
  text-align:left;
}
.obx-success{
  display:none;
  margin-top:14px;
  padding:14px 14px;
  border-radius:12px;
  background:var(--ob-okbg);
  border:1px solid var(--ob-okbd);
  color:var(--ob-oktx);
  font-weight:900;
  line-height:1.45;
  text-align:left;
}

.obx-label{
  display:block;
  font-size:13px;
  font-weight:900;
  margin:12px 0 8px;
  text-align:left;
}
.obx-input{
  width:100%;
  padding:12px 12px;
  border:1px solid #cbd5e1;
  border-radius:12px;
  font-size:15px;
  outline:none;
  background:#fff;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.obx-input:focus{
  border-color:var(--ob-brand);
  box-shadow:0 0 0 3px rgba(1,87,255,.14);
}

.obx-row{
  display:grid;
  grid-template-columns: 1fr 150px;
  gap:10px;
  align-items:end;
  margin-top:10px;
}
.obx-captchaBox{
  height:46px;
  border-radius:12px;
  border:1px solid var(--ob-border);
  background:#f8fafc;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  letter-spacing:.3px;
  user-select:none;
}
.obx-help{
  margin-top:6px;
  font-size:12px;
  color:var(--ob-muted);
  line-height:1.35;
}
.obx-link{
  color:var(--ob-brand);
  font-weight:900;
  text-decoration:none;
}
.obx-link:hover{ text-decoration:underline; }

.obx-consent{
  margin-top:12px;
  padding:10px 10px;
  border:1px solid var(--ob-border);
  border-radius:12px;
  background:#fbfdff;
  display:flex;
  gap:10px;
  align-items:flex-start;
  text-align:left;
}
.obx-consent input{
  width:18px;height:18px;
  margin-top:2px;
  accent-color: var(--ob-brand);
}
.obx-consent p{
  margin:0;
  font-size:12.5px;
  color:var(--ob-muted);
  line-height:1.45;
}

.obx-btn{
  width:100%;
  margin-top:14px;
  padding:14px 18px;
  border:0;
  border-radius:12px;
  cursor:pointer;
  font-weight:900;
  font-size:16px;
  color:#fff;
  background: linear-gradient(135deg, var(--ob-brand), var(--ob-brand2));
  box-shadow:0 14px 30px rgba(1,87,255,.22);
  transition: transform .15s ease, filter .15s ease;
}
.obx-btn:hover{ transform: translateY(-1px); filter:brightness(1.03); }
.obx-btn:disabled{ opacity:.75; cursor:default; transform:none; }

/* ===== Floating button ===== */
.obx-floatBtn{
  position:fixed;
  bottom:14px;
  right:16px;
  z-index:2147483645;
  border:0;
  cursor:pointer;
  font-family: Inter, Arial, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight:900;
  font-size:14px;
  padding:12px 14px;
  border-radius:999px;
  color:#fff;
  background: linear-gradient(135deg,var(--ob-brand),var(--ob-brand2));
  box-shadow:0 16px 36px rgba(1,87,255,.28);
  transition: transform .18s ease, filter .18s ease;
  max-width:92vw;
  white-space:nowrap;
}
.obx-floatBtn:hover{
  transform: translateY(-1px);
  filter:brightness(1.03);
}
.obx-floatBtn.left{ left:16px; right:auto; }

@media (max-width:420px){
  .obx-row{ grid-template-columns: 1fr 130px; }
}
