/* การเปิดเผยเบอร์ติดต่อ + คำขอเบอร์ (th/inc/contact.lib.php) และหน้าบัญชีผู้ใช้ทั่วไป (th/inc/account.php) ; prefix lbq- / lbm- (lbc- เป็นของ footer th/css/contact.css) */

/* ---------- ฟอร์มลงประกาศ : สวิตช์แสดงเบอร์ ---------- */
.lbq-pref { margin: -4px 0 18px; padding: 14px 16px; border: 1.5px solid #e3e6fb; border-radius: 14px; background: #f8f8ff; }	/* สีม่วงตามธีมฟอร์ม */
.lbq-switch { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.lbq-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lbq-switch-ui { flex: none; position: relative; width: 46px; height: 26px; margin-top: 2px; border-radius: 999px; background: #c3ccd3; transition: background .2s; }
.lbq-switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.lbq-switch input:checked + .lbq-switch-ui { background: #6161ff; }
.lbq-switch input:checked + .lbq-switch-ui::after { transform: translateX(20px); }
.lbq-switch input:focus-visible + .lbq-switch-ui { outline: 3px solid #2385e9; outline-offset: 2px; }
.lbq-switch-txt { display: flex; flex-direction: column; gap: 2px; }
.lbq-switch-txt b { font-weight: 600; color: #14252b !important; }
.lbq-switch-txt small { color: #5d6e78 !important; font-size: 13.5px; }
.lbq-pref [data-off], .lbq-pref.is-off [data-on] { display: none; }
.lbq-pref.is-off [data-off] { display: inline; }
.lbq-reveal { margin: 12px 0 0; padding: 12px 0 0; border: 0; border-top: 1px dashed #d3dde3; display: grid; gap: 8px; }
.lbq-reveal[hidden] { display: none; }
.lbq-reveal legend { padding: 0; margin-bottom: 6px; font-weight: 600; color: #14252b; }
.lbq-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid #dfe7ec; border-radius: 12px; background: #fff; cursor: pointer; }
.lbq-opt:has(input:checked) { border-color: #6161ff; box-shadow: inset 0 0 0 1px #6161ff; background: #fbfbff; }
.lbq-opt input { margin-top: 4px; accent-color: #6161ff; }
.lbq-opt span { display: flex; flex-direction: column; gap: 2px; }
.lbq-opt small { color: #5d6e78; font-size: 13.5px; }

/* ---------- หน้าประกาศ : กล่องขอเบอร์ ---------- */
.lbq-box { display: grid; gap: 10px; padding: 14px; margin-bottom: 10px; border-radius: 14px; background: #f4f8fb; border: 1px solid #dfe7ec; scroll-margin-top: 110px; }
.lbq-head { display: flex; gap: 8px; margin: 0; color: #455c66; font-size: 14px; line-height: 1.5; }
.lbq-head .fa { margin-top: 3px; color: #0f8a74; }
.lbq-note { margin: 0; color: #5d6e78; font-size: 13.5px; line-height: 1.55; }
.lbq-msg { margin: 0; padding: 9px 12px; border-radius: 10px; font-size: 14px; }
.lbq-msg.is-ok { background: #e3f7ef; color: #0b6b4f; }
.lbq-msg.is-err { background: #fdecec; color: #a32020; }
.lbq-ok { margin: 0; color: #0b6b4f; font-weight: 600; }
.lbq-wait { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fff7e6; color: #7a4c00; font-size: 14px; }
.lbq-wait.is-off { background: #f1f3f5; color: #4a5d68; }
.lbq-link { padding: 0; border: 0; background: none; color: #1769aa; font-size: 13.5px; text-decoration: underline; cursor: pointer; justify-self: start; }
.lbq-form { display: grid; gap: 8px; }
.lbq-msgfield { display: grid; gap: 4px; font-size: 13.5px; color: #455c66; }
.lbq-msgfield textarea { width: 100%; padding: 8px 10px; border: 1px solid #cfd9e0; border-radius: 10px; font: inherit; resize: vertical; }
.lbq-owner-note { margin: 8px 0; padding: 9px 12px; border-radius: 10px; background: #eef6f4; color: #0b4f4a; font-size: 13.5px; }

/* ---------- เจ้าของ : อนุมัติจากอีเมล / รายการผู้ขอ ---------- */
.lbq-approve { max-width: 640px; margin: 0 auto; display: grid; gap: 14px; }
.lbq-approve h2 { margin: 0; }
.lbq-dl { display: grid; gap: 8px; margin: 0; }
.lbq-dl div { display: grid; grid-template-columns: 90px 1fr; gap: 10px; }
.lbq-dl dt { color: #5d6e78; }
.lbq-dl dd { margin: 0; }
.lbq-approve-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.lbq-oreq { display: flex; align-items: flex-start; gap: 12px; }
.lbq-oreq > div { flex: 1; min-width: 0; }
.lbq-oreq-acts { display: flex; gap: 6px; flex: none; }
.lbq-qmsg { margin: 6px 0 0; padding: 6px 10px; border-radius: 8px; background: #f4f7f9; font-size: 13.5px; }
@media (max-width: 640px) { .lbq-oreq { flex-wrap: wrap; } .lbq-oreq-acts { width: 100%; } .lbq-dl div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- บัญชีผู้ใช้ทั่วไป ---------- */
.lbm-hero { background: linear-gradient(135deg, #eef3ff 0%, #f6f9ff 100%); }
.lbm-ava { background: #6161ff; }
.lbm-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1180px) { .lbm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lbm-verify { font-size: 20px !important; }
.lbm-phones { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 6px 0 0; }
.lbm-phones a, .lbm-phones span { font-weight: 600; color: #0b6b4f; }
.lbm-side-ico { font-size: 54px; color: #6161ff; line-height: 1; }
.lbm-side-sub { color: #5d6e78; margin: 0 0 8px; }
.lbm-owner-link { margin-top: 14px; padding-top: 12px; border-top: 1px solid #e3e9ee; font-size: 14px; color: #455c66; }
@media (max-width: 760px) { .lbm-stats { grid-template-columns: 1fr; } }

/* กล่องชวนสมัคร (บัญชีเดียว 2026-11-28) : หัวกลุ่ม "เมื่อคุณกำลังหา" / "เมื่อคุณอยากลงประกาศ" + บรรทัดความเป็นส่วนตัว */
.lbm-why-grp { display: flex; align-items: center; gap: 8px; margin: 18px 0 8px !important; color: #3f3ab8; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.lbm-why-grp::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, #dfe2ff, transparent); }
.lbm-why-grp .fa { color: var(--lbd-accent); }
.lbm-why .lbp-why-list { margin-top: 0; }
.lbm-why-safe { display: flex; gap: 8px; margin: 14px 0 0 !important; padding: 10px 12px; border-radius: 12px; background: #f3fbf6; color: #0f6e4b; font-size: 13px; line-height: 1.5; }
