/* Customer pages (/bproid and the Web Chat): teal "sales desk" frame, WhatsApp-style chat, system fonts only. */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Helvetica, Arial, sans-serif;
  font-size: 15px; line-height: 1.4; color: #111b21; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  background:
    radial-gradient(70rem 45rem at 85% 0%, rgba(20, 140, 125, .75), transparent 60%),
    radial-gradient(50rem 40rem at 0% 100%, rgba(15, 110, 100, .55), transparent 60%),
    linear-gradient(135deg, #0b4f49 0%, #0d6157 45%, #0b2c3a 100%);
  background-attachment: fixed;
}
a { color: #027eb5; }
.ur { font-family: var(--wa-urdu); direction: rtl; line-height: 2; }
.naskh { font-family: "Noto Naskh Arabic", "Segoe UI", Tahoma, "Arial", sans-serif; direction: rtl; }

/* Frame: full screen on phones, a phone-sized card on bigger screens */
.wa { height: 100dvh; max-width: 440px; margin: 0 auto; display: flex; flex-direction: column; background: var(--wa-bg); position: relative; overflow: hidden; }
.wa.page { height: auto; min-height: 100dvh; overflow: visible; }
@media (min-width: 480px) {
  .wa { height: calc(100dvh - 32px); margin-top: 16px; border-radius: 20px; box-shadow: 0 18px 50px rgba(0, 0, 0, .4); border: 1px solid rgba(255, 255, 255, .45); }
  .wa.page { height: auto; min-height: 0; margin: 16px auto; }
}

/* Header: photo, title, "Name - Online", logo, Online pill */
.wa-head { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 8px 12px; background: #0c5c52; color: #fff; flex: none; }
.wa-head .av { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none; background: #dfe5e7; color: #54656f; display: grid; place-items: center; font-weight: 800; font-size: 17px; box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .25); }
.wa-head .who { min-width: 0; }
.wa-head .name { font-size: 15px; font-weight: 800; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wa-head .status { font-size: 12.5px; opacity: .85; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-head .brand { width: 32px; height: 32px; border-radius: 9px; flex: none; padding: 2px; background: #1d7a6e; border: 1px solid rgba(255, 255, 255, .35); object-fit: cover; }
.online-pill { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: #0a4a41; border: 1px solid rgba(37, 211, 102, .45); font-weight: 800; font-size: 12px; }
.online-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #25d366; box-shadow: 0 0 0 0 rgba(37, 211, 102, .7); animation: wa-online 2s infinite; }
@keyframes wa-online { 70% { box-shadow: 0 0 0 6px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
@media (max-width: 360px) { .wa-head .brand { display: none; } }

/* Scrolls like a phone app: no scrollbar track */
.wa .chat-scroll { scrollbar-width: none; }
.wa .chat-scroll::-webkit-scrollbar { display: none; }

/* One-line progress under the header */
.wa-step { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 12px; background: #fff; border-bottom: 1px solid #e9edef; font-size: 12.5px; color: #54656f; }
.wa-step .dots { display: flex; gap: 4px; }
.wa-step .dots i { width: 18px; height: 4px; border-radius: 2px; background: #d1d7db; }
.wa-step .dots i.on { background: var(--wa-green); }
.wa-step b { color: #111b21; font-weight: 600; }

/* Bottom bars */
.slip-cta { display: flex; gap: 8px; align-items: center; background: #fff; border-radius: 12px; padding: 6px 6px 6px 12px; margin-bottom: 6px; box-shadow: var(--wa-shadow); font-size: 13.5px; }
.slip-cta span { flex: 1; }
.sheet { background: #fff; border-radius: 14px; padding: 12px; margin-bottom: 6px; box-shadow: var(--wa-shadow); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-weight: 600; }

/* Buttons and fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; background: var(--wa-green); color: #fff; }
.btn:disabled { opacity: .6; }
.btn-ghost { background: #f0f2f5; color: #111b21; }
.btn-block { width: 100%; padding: 12px; font-size: 15.5px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
label { display: block; font-size: 13px; font-weight: 600; color: #3b4a54; margin-bottom: 4px; }
.hint { font-weight: 400; color: #667781; font-size: 12px; }
input[type=text], input[type=tel], input[type=number], select {
  width: 100%; font: inherit; font-size: 16px; color: #111b21; background: #fff; border: 1px solid #d1d7db; border-radius: 10px; padding: 10px 12px; appearance: none;
}
input:focus, select:focus { outline: 2px solid rgba(0, 168, 132, .35); border-color: var(--wa-green); }
input.ph-ur::placeholder { font-family: var(--wa-urdu); }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2354656f' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.field + .field { margin-top: 10px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.error { color: #d93025; font-size: 12.5px; margin-top: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* /bproid: "Send Your Details" */
.fm-body { flex: 1; padding: 12px 10px 10px; background: #efe9e2; }
.fm-card { background: #fbfcf9; border-radius: 14px; padding: 12px 12px 12px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.fm-card h2 { margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid #e3e8e4; color: #0d6b5e; font-size: 16px; font-weight: 800; }
.fm-card .field + .field { margin-top: 10px; }
.fm-card label { font-size: 13.5px; font-weight: 800; color: #0f1d2b; margin-bottom: 5px; }
.fm-card input[type=text], .fm-card input[type=tel], .fm-card input[type=number], .fm-card select { height: 44px; border-radius: 11px; border-color: #cfd8dc; font-size: 16px; padding: 0 12px; }
.fm-card input.ph-ur::placeholder { font-family: "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif; font-size: 14.5px; color: #7d8a93; }
.fm-card select { padding-right: 34px; background-position: right 12px center; }
.fm-card .error { font-size: 12.5px; margin-top: 4px; }
.fm-btn { display: block; width: 100%; min-height: 46px; margin-top: 12px; padding: 8px 12px; border: 0; border-radius: 999px; background: linear-gradient(180deg, #2ed872, #22c55e); color: #fff; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; box-shadow: 0 6px 14px rgba(34, 197, 94, .28); }
.fm-btn:disabled { opacity: .7; }
.fm-note { margin-top: 10px; background: #e8f7ee; border: 1px solid #bfe8cf; border-radius: 12px; padding: 8px 10px; text-align: center; color: #0d5c53; font-weight: 700; }
.fm-note p { margin: 0 0 4px; font-size: 12.5px; line-height: 1.4; }
.fm-note p:first-child { font-size: 13px; }
.fm-note .naskh { display: block; border-top: 1px solid #bfe8cf; margin-top: 6px; padding-top: 6px; text-align: right; font-size: 12.5px; font-weight: 600; line-height: 1.8; }
.fm-foot { background: #f7f8fa; color: #6b7785; text-align: center; font-size: 11.5px; padding: 9px 12px; border-top: 1px solid #e6eaee; }
.fm-welcome { margin-bottom: 10px; padding: 8px 12px; border-radius: 10px; background: #d9fdd3; font-size: 13px; }
.alert { padding: 8px 12px; border-radius: 8px; font-size: 13.5px; background: #d9fdd3; box-shadow: var(--wa-shadow); }

/* Deposit amount: one tap instead of a dropdown */
.unit { font-weight: 600; color: #7d8a93; font-size: 12px; margin-left: 4px; }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.amt { position: relative; margin: 0; }
.amt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.amt span { display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 11px; border: 1px solid #cfd8dc; background: #fff; font-size: 14.5px; font-weight: 700; color: #0f1d2b; cursor: pointer; user-select: none; transition: background .12s, border-color .12s; }
.amt input:checked + span { background: #22c55e; border-color: #22c55e; color: #fff; box-shadow: 0 3px 8px rgba(34, 197, 94, .3); }
.amt input:focus-visible + span { outline: 2px solid rgba(0, 168, 132, .45); outline-offset: 1px; }
.error:empty { display: none; }
@media (max-width: 340px) { .amounts { gap: 5px; } .amt span { font-size: 13px; } }

/* Phones: notch / home-bar safe areas, no double-tap zoom on controls */
button, .amt span, a, input, select, textarea { touch-action: manipulation; }
.wa-head { padding-top: max(8px, env(safe-area-inset-top)); padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
.fm-foot { padding-bottom: max(9px, env(safe-area-inset-bottom)); }
@media (max-height: 480px) and (orientation: landscape) { .wa.chat .wa-step { display: none; } }

/* Fixes from the screen-size tests */
.copy { min-height: 28px; padding: 3px 10px; font-size: 12px; border-radius: 8px; }
.wa-step span:last-child, .slip-cta > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.slip-cta .btn { flex: none; }
@media (max-width: 360px) {
  .wa-step .dots i { width: 12px; }
  .lc-btn .m b { font-size: 15px; }
  .lc-btn .l { width: 44px; }
  .fm-btn { font-size: 14px; }
}
/* Landscape / short screens: use the full height, no floating card */
@media (max-height: 600px) {
  .wa, .wa.page { margin: 0 auto !important; border-radius: 0 !important; border: 0 !important; height: 100dvh; }
  .wa.page { height: auto; min-height: 100dvh; }
}
