/* ฟอร์มฝากทรัพย์ (sellwithus.php · ระบบรับทรัพย์ใหม่) · v4 2026-10-13 เจ้าของอยากได้ "เรียบง่าย สมูท เป็นขั้นเป็นตอน"
   คอลัมน์เดียวตรงกลาง (≤ 760px) · แถบขั้นมีชื่อด้านบน · ถามทีละคำถาม (JS โชว์ข้อถัดไปเมื่อตอบ) · การ์ดตัวเลือกมีไอคอน · ช่องกรอก 2 คอลัมน์ มีไอคอน · ช่องไฟ 22px
   มือถือ (< 992px): การ์ดเต็มจอ ไม่มีกรอบ · ช่องเรียงแถวละช่อง ยกเว้น .rhi-keep2 · ปุ่มถัดไปติดล่างจอ · ปุ่ม "ติดต่อเรา" ของเว็บยกขึ้นไม่ทับ
   ไม่มี JS (html ไม่มี .rhi-js): ทุกขั้น/ทุกคำถามโชว์ต่อกัน + ปุ่มส่งอย่างเดียว · ตัวเลือก = radio/checkbox/select จริง
   สีชุดเดียวกับการ์ด/หน้าห้อง (rh_room.css --rhn-*) */
/* 🔴 ไฟล์ร่วม: contactus.php ใช้ .rhi (กล่องนอก style inline) + .rhi-fld .rhi-inp .rhi-row2 .rhi-nav .rhi-btn .rhi-alert .rhi-hint .rhi-ok .rhi-trap .rhi-req .rhi-fe
   → โครงหน้าของฟอร์มฝากทรัพย์อยู่ที่ .rhi-wiz (ไม่ใช่ .rhi) · แก้คลาสในรายการนี้ต้องเทส contact_ui.mjs ด้วย */
.rhi { --rhi-ink: #17213A; --rhi-muted: #5B6578; --rhi-line: #DCE1EC; --rhi-line2: #C9D0DF; --rhi-blue: #1F4FB5; --rhi-blue-soft: #EEF2FB; --rhi-navy: #1A2577; --rhi-red: #D7141A; --rhi-bg: #F5F6FA; --rhi-ok: #1E8E4E; --rhi-ok-soft: #E5F5EC; --rhi-warn: #B86E00;
  color: var(--rhi-ink); font-size: 15px; line-height: 1.5; }
.rhi-wiz { display: flex; flex-direction: column; gap: 18px; max-width: 760px; margin: 8px -15px 28px; }
@media (min-width: 992px) { .rhi-wiz { margin: 20px auto 40px; gap: 22px; } }
.rhi *, .rhi *::before, .rhi *::after { box-sizing: border-box; }
.rhi [hidden] { display: none !important; } /* JS ซ่อนด้วย hidden · ต้องชนะ display:flex/grid ของคลาสอื่น */
.rhi fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.rhi legend { padding: 0; margin: 0 0 22px; width: 100%; border: 0; font-size: inherit; line-height: inherit; color: inherit; } /* ล้างสไตล์ legend ของ Bootstrap เดิม (เส้นเทา · ตัวใหญ่) */
.rhi h1, .rhi h2 { margin: 0; line-height: 1.3; font-family: inherit; }
.rhi h2 { font-size: 20px; font-weight: 700; color: var(--rhi-ink); }
.rhi h2:focus { outline: none; } /* JS โฟกัสหัวขั้นตอนเปลี่ยนขั้น (โปรแกรมอ่านจอ) · ไม่ต้องโชว์กรอบ */
.rhi-lead { margin: 4px 0 0; color: var(--rhi-muted); font-size: 14px; }
.rhi-hint { font-size: 13px; color: var(--rhi-muted); margin: 0; }

/* หัวหน้า + แถบขั้น */
.rhi-head { padding: 0 16px; }
.rhi-title { font-size: 24px; font-weight: 700; color: var(--rhi-navy); }
.rhi-sub { margin: 4px 0 0; color: var(--rhi-muted); font-size: 15px; }
@media (min-width: 992px) { .rhi-head { padding: 0; } .rhi-title { font-size: 28px; } }
.rhi-prog { list-style: none; margin: 0; padding: 0 16px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 992px) { .rhi-prog { padding: 0; gap: 8px; } }
.rhi-stepbtn { width: 100%; display: flex; flex-direction: column; gap: 7px; background: none; border: 0; padding: 4px 0; margin: 0; text-align: left; font: inherit; font-size: 13px; color: var(--rhi-muted); cursor: default; }
.rhi-stepbtn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rhi-stepbtn i { display: block; height: 5px; border-radius: 99px; background: var(--rhi-line); }
.rhi-stepbtn.is-done, .rhi-stepbtn.is-cur { color: var(--rhi-blue); cursor: pointer; }
.rhi-stepbtn.is-done i, .rhi-stepbtn.is-cur i { background: var(--rhi-blue); }
.rhi-stepbtn.is-cur { font-weight: 700; }
html:not(.rhi-js) .rhi-prog { display: none; }

/* การ์ดฟอร์ม */
.rhi-card { background: #fff; padding: 22px 16px 24px; margin: 0; display: block; border-top: 1px solid var(--rhi-line); }
@media (min-width: 992px) { .rhi-card { border: 1px solid var(--rhi-line); border-radius: 18px; padding: 30px 34px 28px; box-shadow: 0 1px 2px rgba(23, 33, 58, .04); } }
.rhi-body { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.rhi-alert { margin: 0 16px; background: #FDEAEA; color: #8B1A1A; border: 1px solid #F3C2C2; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
@media (min-width: 992px) { .rhi-alert { margin: 0; } }
.rhi-from { font-size: 13px; background: var(--rhi-blue-soft); color: var(--rhi-blue); border-radius: 8px; padding: 7px 11px; }

/* ขั้น: JS โชว์ทีละขั้น · ไม่มี JS โชว์หมด */
html.rhi-js .rhi-step:not(.is-cur) { display: none; }
html:not(.rhi-js) .rhi-step + .rhi-step { margin-top: 28px; padding-top: 24px; border-top: 1px dashed var(--rhi-line); }
html:not(.rhi-js) #rhiNext, html:not(.rhi-js) #rhiBack { display: none !important; }
.rhi-when[hidden] { display: none !important; }
/* คำถามที่โผล่ทีหลัง (JS) */
.rhi-reveal.is-in { animation: rhiIn .28s ease-out; }
@keyframes rhiIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rhi-reveal.is-in { animation: none; } }

/* ช่องกรอก */
.rhi-fld { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.rhi-fld > label, .rhi-lb { font-weight: 600; font-size: 14px; margin: 0; }
.rhi-q { font-weight: 700; font-size: 16px; margin: 0 0 3px; }
.rhi-lbrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.rhi-req::after { content: " *"; color: var(--rhi-red); }
.rhi-inp { border: 1.5px solid var(--rhi-line2); border-radius: 12px; padding: 11px 14px; background: #fff; width: 100%; min-width: 0; min-height: 48px; font: inherit; font-size: 16px; color: var(--rhi-ink); height: auto; box-shadow: none; transition: border-color .15s, box-shadow .15s; }
.rhi-inp::placeholder { color: #9AA2B5; }
.rhi-inp:focus { border-color: var(--rhi-blue); outline: none; box-shadow: 0 0 0 3px rgba(31, 79, 181, .15); }
textarea.rhi-inp { min-height: 104px; resize: vertical; line-height: 1.55; }
select.rhi-inp { -webkit-appearance: none; -moz-appearance: none; appearance: none; padding-right: 38px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6578' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 13px center / 16px 16px; }
select.rhi-inp::-ms-expand { display: none; }
input[type="date"].rhi-inp { -webkit-appearance: none; appearance: none; } /* iOS: ช่องวันที่สูงเท่าช่องอื่น */
/* ไอคอนในช่อง */
.rhi-ic { position: relative; }
.rhi-ic > .rhi-ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: #8A93A8; pointer-events: none; }
.rhi-ic > .rhi-ico-t { font-size: 17px; line-height: 19px; text-align: center; font-weight: 600; }
.rhi-ic > .rhi-inp { padding-left: 42px; }
.rhi-ic > .rhi-inp:focus ~ .rhi-ico, .rhi-ic:focus-within > .rhi-ico { color: var(--rhi-blue); }
.rhi-unit > .rhi-inp { padding-right: 66px; }
.rhi-unit > span:not(.rhi-ico) { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--rhi-muted); pointer-events: none; }
.rhi-fe { font-size: 13px; color: var(--rhi-red); font-weight: 600; }
.rhi-mini { font-weight: 400 !important; font-size: 14px !important; color: var(--rhi-muted); display: flex; align-items: center; gap: 7px; margin: 2px 0 0; cursor: pointer; }
.rhi-mini input { margin: 0; width: 17px; height: 17px; }
/* ตาราง 2 คอลัมน์ (คอม) · มือถือแถวละช่อง ยกเว้น keep2 · ช่องที่ซ่อนตามเงื่อนไขหายไปแล้วช่องถัดไปเลื่อนขึ้นเอง */
.rhi-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px 14px; }
.rhi-keep2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 600px) { .rhi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; } .rhi-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rhi-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 10px; } /* คอลัมน์ชิด 10 (3 ช่องบนมือถือ) · แถว 20 (จอ ≤ 360 เรียงลง) */
@media (max-width: 360px) { .rhi-keep2, .rhi-grid-3 { grid-template-columns: minmax(0, 1fr); } }
.rhi-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } /* contactus.php (เบอร์ | อีเมล) · ฟอร์มฝากทรัพย์ใช้ .rhi-grid */
@media (max-width: 380px) { .rhi-row2 { grid-template-columns: 1fr; } }
.rhi-sec { font-weight: 700; font-size: 16px; padding-top: 22px; border-top: 1px solid var(--rhi-line); margin: 0; } /* หัวคั่น "ข้อมูลเพิ่มเติม" */

/* การ์ดตัวเลือก (radio ซ่อน · กดได้ทั้งแป้น/จอ) */
.rhi-opt { position: relative; display: block; margin: 0; font-weight: 400; cursor: pointer; min-width: 0; }
.rhi-opt > input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.rhi-opt-in { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; height: 100%; border: 1.5px solid var(--rhi-line); border-radius: 14px; background: #fff; padding: 14px 16px; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.rhi-opt-in > .rhi-ico { width: 28px; height: 28px; color: #7A8399; margin-bottom: 8px; flex: none; }
.rhi-opt-tx { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rhi-opt-tx b { font-size: 16px; font-weight: 600; line-height: 1.35; }
.rhi-opt-tx small { font-size: 13px; color: var(--rhi-muted); line-height: 1.4; }
.rhi-opt:hover .rhi-opt-in { border-color: #AEB8D0; }
.rhi-opt > input:checked + .rhi-opt-in, .rhi-more-btn.is-on .rhi-opt-in { border-color: var(--rhi-blue); background: var(--rhi-blue-soft); box-shadow: inset 0 0 0 1px var(--rhi-blue); }
.rhi-opt > input:checked + .rhi-opt-in > .rhi-ico, .rhi-opt > input:checked + .rhi-opt-in .rhi-icobox .rhi-ico, .rhi-more-btn.is-on .rhi-ico { color: var(--rhi-blue); }
.rhi-opt > input:checked + .rhi-opt-in .rhi-opt-tx b, .rhi-more-btn.is-on .rhi-opt-tx b { color: var(--rhi-blue); }
.rhi-opt > input:focus-visible + .rhi-opt-in, .rhi-more-btn:focus-visible .rhi-opt-in { outline: 3px solid #F2B705; outline-offset: 2px; }
.rhi-cards { display: grid; gap: 10px; }
.rhi-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rhi-cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 992px) { .rhi-cards { gap: 12px; } .rhi-cards-3 .rhi-opt-in { padding: 18px 18px 16px; } }
@media (max-width: 400px) { .rhi-cards-3 .rhi-opt-in { padding: 12px 11px; } .rhi-cards-3 .rhi-opt-tx b { font-size: 15px; } }
/* แนวนอน: ไอคอนซ้าย ชื่อขวา (ประเภททรัพย์) */
.rhi-opt-h .rhi-opt-in { flex-direction: row; align-items: center; gap: 11px; padding: 14px; }
.rhi-opt-h .rhi-opt-in > .rhi-ico { width: 24px; height: 24px; margin: 0; }
.rhi-opt-h .rhi-opt-tx b { font-size: 15px; }
/* ปุ่ม "แบบอื่น" (เต็มแถว) + รายการประเภทที่เหลือ */
.rhi-more-btn { grid-column: 1 / -1; width: 100%; background: none; border: 0; padding: 0; text-align: left; font: inherit; color: inherit; }
.rhi-more-btn .rhi-opt-tx small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rhi-more { padding: 2px 0 0; }
html:not(.rhi-js) .rhi-more-btn { display: none; }
/* แถว: กล่องไอคอน + ชื่อ/คำอธิบาย + จุดเลือก (คุณเป็นใคร) */
.rhi-rows { display: flex; flex-direction: column; gap: 10px; }
.rhi-opt-row .rhi-opt-in { flex-direction: row; align-items: center; gap: 13px; padding: 12px 14px; }
.rhi-icobox { width: 42px; height: 42px; border-radius: 11px; background: var(--rhi-bg); display: grid; place-items: center; flex: none; }
.rhi-icobox .rhi-ico { width: 22px; height: 22px; color: #6B748A; }
.rhi-opt > input:checked + .rhi-opt-in .rhi-icobox { background: #fff; }
.rhi-dot { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #C5CBDA; background: #fff; flex: none; transition: border-color .15s, box-shadow .15s; }
.rhi-opt > input:checked + .rhi-opt-in .rhi-dot { border-color: var(--rhi-blue); box-shadow: inset 0 0 0 4px #fff; background: var(--rhi-blue); }

/* ชิป (เลือกหลายอัน / ตัวเลือกสั้น) */
.rhi-chip { position: relative; display: block; margin: 0; font-weight: 400; cursor: pointer; }
.rhi-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.rhi-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rhi-chip > span { display: inline-block; border: 1.5px solid var(--rhi-line); background: #fff; border-radius: 999px; padding: 8px 15px; font-size: 14px; line-height: 1.3; transition: border-color .15s, background-color .15s; }
.rhi-chip:hover > span { border-color: #AEB8D0; }
.rhi-chip input:checked + span { border-color: var(--rhi-blue); background: var(--rhi-blue-soft); color: var(--rhi-blue); font-weight: 600; }
.rhi-chip input:focus-visible + span, .rhi-btn:focus-visible, .rhi-stepbtn:focus-visible, .rhi-res button:focus-visible, .rhi-drop:focus-within { outline: 3px solid #F2B705; outline-offset: 2px; }

/* ค้นหาโครงการ */
.rhi-res { border: 1.5px solid var(--rhi-line); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 6px 18px rgba(23, 33, 58, .08); }
.rhi-res button { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; background: #fff; border: 0; border-bottom: 1px solid var(--rhi-line); padding: 10px 12px; cursor: pointer; font: inherit; color: inherit; }
.rhi-res button:last-child { border-bottom: 0; }
.rhi-res button:hover { background: var(--rhi-blue-soft); }
.rhi-res mark { background: #FFF1A8; color: inherit; border-radius: 3px; padding: 0; }
.rhi-res small { display: block; color: var(--rhi-muted); font-size: 12px; }
.rhi-pin { min-width: 34px; height: 34px; padding: 0 6px; border-radius: 8px; background: var(--rhi-blue-soft); display: grid; place-items: center; flex: none; color: var(--rhi-blue); font-weight: 700; font-size: 12px; }
.rhi-picked { display: flex; gap: 12px; align-items: center; border: 1.5px solid var(--rhi-blue); background: var(--rhi-blue-soft); border-radius: 14px; padding: 11px 14px; }
.rhi-picked .rhi-icobox { background: #fff; }
.rhi-picked .rhi-icobox .rhi-ico { color: var(--rhi-blue); }
.rhi-picked b { display: block; }
.rhi-picked small { display: block; }
.rhi-link { margin-left: auto; border: 0; background: none; color: var(--rhi-blue); font-weight: 600; cursor: pointer; font: inherit; padding: 6px 4px; }
.rhi-gen { border: 1.5px solid var(--rhi-blue); color: var(--rhi-blue); background: #fff; border-radius: 999px; padding: 4px 13px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }
.rhi-gen:hover { background: var(--rhi-blue-soft); }
html:not(.rhi-js) .rhi-gen, html:not(.rhi-js) .rhi-mini { display: none; }

/* รูป: กล่องลากวาง/แตะเลือก + รูปย่อ */
.rhi-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; margin: 0; padding: 30px 16px; border: 2px dashed var(--rhi-line2); border-radius: 16px; background: #FBFCFE; text-align: center; cursor: pointer; font-weight: 400; transition: border-color .15s, background-color .15s; }
.rhi-drop:hover, .rhi-drop.is-over { border-color: var(--rhi-blue); background: var(--rhi-blue-soft); }
.rhi-drop > .rhi-ico { width: 40px; height: 40px; color: #8A93A8; margin-bottom: 6px; }
.rhi-drop b { font-size: 16px; font-weight: 600; }
.rhi-drop-d, .rhi-drop-or { display: none; }
.rhi-drop-or { font-size: 13px; color: var(--rhi-muted); }
.rhi-drop-btn { margin-top: 8px; display: inline-block; background: #fff; border: 1.5px solid var(--rhi-line2); border-radius: 10px; padding: 7px 16px; font-weight: 600; font-size: 14px; }
@media (hover: hover) and (pointer: fine) { .rhi-drop-d, .rhi-drop-or { display: block; } .rhi-drop-m { display: none; } }
.rhi-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; } /* ไม่ใช้ display:none (iOS เก่ากดผ่าน label ไม่เปิด) */
.rhi-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rhi-photos:empty { display: none; }
@media (min-width: 600px) { .rhi-photos { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.rhi-ph { position: relative; display: block; margin: 0; aspect-ratio: 4 / 3; max-width: 100%; border-radius: 10px; overflow: hidden; background: var(--rhi-bg); }
@supports not (aspect-ratio: 1) { .rhi-ph { padding-bottom: 75%; } }
.rhi-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.rhi-ph .x { position: absolute; right: 6px; top: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; font-size: 13px; line-height: 1; }
.rhi-ph .cap { position: absolute; left: 6px; bottom: 6px; font-size: 11px; background: rgba(0, 7, 58, .75); color: #fff; border-radius: 6px; padding: 1px 6px; max-width: calc(100% - 12px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rhi-photos.is-busy { opacity: .6; }

/* เงื่อนไข */
.rhi-consent { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; background: var(--rhi-blue-soft); border: 1px solid #CFDAF3; border-radius: 12px; padding: 13px 14px; margin: 0; font-weight: 400; cursor: pointer; }
.rhi-consent-plain { background: var(--rhi-bg); border-color: var(--rhi-line); }
.rhi-consent input { margin: 3px 0 0; width: 19px; height: 19px; flex: none; }
.rhi-consent ul { margin: 4px 0 0; padding-left: 18px; }
.rhi-consent a { text-decoration: underline; color: var(--rhi-blue); }

/* ปุ่มล่าง: ย้อนกลับ = ตัวหนังสือ (ซ้าย) · ถัดไป/ส่ง = ทึบ (ขวา) · มือถือติดล่างจอ */
.rhi-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--rhi-line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); margin: 0 -16px -24px; z-index: 4; }
@media (min-width: 992px) { .rhi-nav { position: static; border: 0; padding: 0; margin: 8px 0 0; background: none; justify-content: flex-end; } }
.rhi-card > .rhi-nav { margin-top: 26px; } /* ฟอร์มฝากทรัพย์ (contactus.php ใช้ระยะจาก gap ของการ์ดตัวเอง) */
@media (min-width: 992px) { .rhi-card > .rhi-nav { margin-top: 30px; } }
.rhi-btn { border: 0; border-radius: 12px; padding: 12px 20px; cursor: pointer; font: inherit; font-weight: 700; text-decoration: none; display: inline-block; text-align: center; min-height: 48px; }
.rhi-btn-pri { background: var(--rhi-blue); color: #fff; flex: 1; margin-left: auto; transition: background-color .15s, opacity .15s; }
.rhi-btn-pri:hover:not([disabled]) { background: #1A43A0; }
.rhi-btn-pri:hover, .rhi-btn-pri:focus { color: #fff; text-decoration: none; }
@media (min-width: 992px) { .rhi-btn-pri { flex: none; min-width: 160px; } }
.rhi-btn-back { background: none; color: var(--rhi-ink); padding: 12px 10px; font-weight: 600; }
.rhi-btn-back:hover { background: var(--rhi-bg); }
.rhi-btn-sec { background: var(--rhi-bg); color: var(--rhi-ink); }
.rhi-btn-sec:hover, .rhi-btn-sec:focus { color: var(--rhi-ink); text-decoration: none; }
.rhi-btn[disabled] { opacity: .4; cursor: not-allowed; }
.rhi-whyoff { flex-basis: 100%; font-size: 13px; color: var(--rhi-warn); text-align: right; min-height: 0; }
.rhi-whyoff:empty { display: none; }
html.rhi-js #rhiSend[hidden], html.rhi-js #rhiNext[hidden] { display: none; }
/* ปุ่มเขียว "ติดต่อเรา" ของเว็บ (#chat · index_footer.php) ลอยล่างขวา → ยกขึ้นเหนือแถบปุ่มถัดไปบนมือถือ (เฉพาะหน้านี้) */
@media (max-width: 991px) { html.rhi-js #chat { bottom: 104px; } }

/* แถบ 3 จุดใต้หัว (ไม่มีเวลาโทรกลับ · เจ้าของสั่ง) */
.rhi-trust { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--rhi-ink); }
.rhi-trust li { display: flex; align-items: center; gap: 6px; }
.rhi-trust .rhi-ico { width: 18px; height: 18px; color: var(--rhi-ok); flex: none; }

/* ใต้ฟอร์ม (rh_intake_info.php): ทีมทำอะไรให้ · ขั้นตอน · ค่าบริการ · คำถามที่พบบ่อย · ฝากทรัพย์ตามประเภท · ตัวหนังสือจริง (ไม่ใช่รูป) ให้ Google/AI อ่านได้
   คอมกว้างกว่าฟอร์ม (≤ 1000) · การ์ด 3 คอลัมน์ · คำถาม 2 คอลัมน์ · มือถือคอลัมน์เดียว */
.rhi-info { max-width: 1000px; margin: 8px auto 40px; display: flex; flex-direction: column; gap: 36px; padding: 0 1px; }
.rhif-sec { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rhi-info h2 { font-size: 22px; color: var(--rhi-navy); }
.rhi-info h3, .rhi-info h4 { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--rhi-ink); font-family: inherit; }
/* ฝากเช่า / ฝากขาย: ปุ่มสลับ (JS) · ไม่มี JS โชว์ทั้ง 2 แผง ไม่มีปุ่ม */
.rhif-tabs { display: inline-flex; align-self: flex-start; gap: 4px; background: var(--rhi-bg); border: 1px solid var(--rhi-line); border-radius: 999px; padding: 4px; }
.rhif-tabs button { border: 0; background: none; border-radius: 999px; padding: 8px 22px; font: inherit; font-size: 15px; font-weight: 600; color: var(--rhi-muted); cursor: pointer; transition: background-color .15s, color .15s; }
.rhif-tabs button[aria-selected="true"] { background: #fff; color: var(--rhi-blue); box-shadow: 0 1px 3px rgba(23, 33, 58, .12); }
.rhif-tabs button:focus-visible { outline: 3px solid #F2B705; outline-offset: 2px; }
html:not(.rhi-js) .rhif-tabs { display: none; }
.rhif-pane { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
html.rhi-js .rhif-pane-h:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } /* มีปุ่มสลับแล้ว หัวแผงซ้ำ → ซ่อนจากตา (โปรแกรมอ่านจอ/Google ยังอ่าน) */
.rhif-pane-h { font-size: 17px !important; margin-top: 6px !important; }
html:not(.rhi-js) .rhif-pane + .rhif-pane { margin-top: 18px; }
/* การ์ด "บริการเมื่อฝากทรัพย์กับเรา" + ขั้นตอน (คืนจากสำรอง 10-13: เคยถูกตัดทิ้งพร้อมกฎโซนเก่าโดยไม่ตั้งใจ) */
.rhi-info p { margin: 0; }
.rhif-lead { color: var(--rhi-muted); font-size: 14px; margin-top: -8px !important; }
.rhif-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 600px) { .rhif-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .rhif-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rhif-card { display: flex; gap: 13px; align-items: flex-start; background: #fff; border: 1px solid var(--rhi-line); border-radius: 14px; padding: 16px; min-width: 0; }
.rhif-card p { font-size: 14px; color: var(--rhi-muted); margin-top: 3px; }
.rhi-info .rhi-icobox { background: var(--rhi-blue-soft); }
.rhi-info .rhi-icobox .rhi-ico { color: var(--rhi-blue); }
.rhif-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; counter-reset: rhif; }
@media (min-width: 768px) { .rhif-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rhif-steps li { counter-increment: rhif; display: flex; flex-direction: column; gap: 3px; background: #fff; border: 1px solid var(--rhi-line); border-radius: 14px; padding: 14px 16px 16px; position: relative; min-width: 0; }
.rhif-steps li::before { content: counter(rhif); width: 30px; height: 30px; border-radius: 50%; background: var(--rhi-blue); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 14px; margin-bottom: 6px; }
@media (max-width: 767px) { .rhif-steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; align-items: center; } .rhif-steps li::before { grid-row: span 2; margin: 0; align-self: start; } } /* มือถือ: เลขซ้าย ข้อความขวา (ไม่สูงเปล่า) */
.rhif-steps b { font-size: 16px; }
.rhif-steps span { font-size: 14px; color: var(--rhi-muted); }
/* พื้นที่ให้บริการ: 2 การ์ด นนทบุรี (ก่อน + เด่น) · กรุงเทพฯ ครบทุกเขต (กว้างกว่า) · เจ้าของ 10-13 ไม่เอาวงกลม/ระดับ · มือถือเรียงลง */
.rhif-zonewrap { display: block; }
.rhif-tiers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
@media (min-width: 992px) { .rhif-tiers { grid-template-columns: 1fr 2fr; align-items: start; } }
.rhif-tiers > li { /* > = เฉพาะการ์ด ไม่โดนป้ายชื่อเขตข้างใน */ background: #fff; border: 1px solid var(--rhi-line); border-radius: 14px; padding: 13px 16px; min-width: 0; }
.rhif-tiers > li.t1 { border-color: #B9C6E6; background: var(--rhi-blue-soft); }
.rhif-tiers .lv { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--rhi-muted); }
.rhif-tiers .lv::before { content: ""; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.rhif-tiers .t1 .lv { color: var(--rhi-blue); }
.rhif-tiers .t1 .lv::before { background: var(--rhi-blue); }
.rhif-tiers .t2 .lv::before { background: #A9BCE8; } /* พื้นที่รอง = โทนฟ้าอ่อน (เจ้าของ 10-13: สีเขียวไม่เอา) */
.rhif-tiers h3 { margin-top: 2px !important; color: var(--rhi-navy) !important; }
.rhif-chips { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rhif-chip { border: 1px solid var(--rhi-line); background: #fff; border-radius: 999px; padding: 4px 12px; font-size: 13.5px; line-height: 1.4; color: var(--rhi-ink); white-space: nowrap; }
.rhif-tiers .t1 .rhif-chip { border-color: #C9D5F0; }
.rhif-chips.is-short .rhif-x { display: none; } /* JS ย่อเหลือชื่อแรกๆ · ปุ่ม "ดูครบ" กางที่เหลือ */
.rhif-morebtn { margin-top: 8px; border: 0; background: none; padding: 4px 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--rhi-blue); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.rhif-morebtn::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -4px; transition: transform .15s; }
.rhif-morebtn[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: 3px; }
.rhif-morebtn:hover { text-decoration: underline; }
.rhif-morebtn:focus-visible { outline: 3px solid #F2B705; outline-offset: 2px; border-radius: 6px; }
.rhif-fees { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 600px) { .rhif-fees { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rhif-fee { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--rhi-line); border-radius: 14px; padding: 16px 18px; min-width: 0; }
.rhif-fee span { font-size: 14px; color: var(--rhi-muted); font-weight: 600; }
.rhif-fee b { font-size: 26px; line-height: 1.25; color: var(--rhi-navy); }
.rhif-fee small { font-size: 14px; color: var(--rhi-muted); }
.rhif-note { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--rhi-ok); }
.rhif-note .rhi-ico { width: 18px; height: 18px; flex: none; }
.rhif-faq { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-items: start; }
@media (min-width: 992px) { .rhif-faq { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rhif-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; } /* คอลัมน์อิสระ: เปิดข้อหนึ่งไม่ดันอีกคอลัมน์ */
.rhif-faq details { background: #fff; border: 1px solid var(--rhi-line); border-radius: 14px; min-width: 0; transition: border-color .15s; }
.rhif-faq details[open] { border-color: #B9C6E6; }
.rhif-faq summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; font-weight: 600; font-size: 15px; }
.rhif-faq summary::-webkit-details-marker { display: none; }
.rhif-faq summary .q { flex: 1; min-width: 0; }
.rhif-faq summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--rhi-muted); border-bottom: 2px solid var(--rhi-muted); transform: rotate(45deg); margin: -4px 4px 0 0; flex: none; transition: transform .15s; }
.rhif-faq details[open]:not(.is-closing) summary::after { transform: rotate(-135deg); margin-top: 4px; } /* is-closing = JS กำลังหุบ (ลูกศรกลับตอนหุบเสร็จ) */
.rhif-faq summary:focus-visible { outline: 3px solid #F2B705; outline-offset: 2px; border-radius: 14px; }
.rhif-faq .a { overflow: hidden; } /* JS เลื่อนความสูงตอนเปิด/หุบ (rh_intake.js) */
.rhif-faq .a p { padding: 0 16px 14px 68px; font-size: 14px; color: #3D4659; line-height: 1.65; }
@media (max-width: 480px) { .rhif-faq .a p { padding-left: 16px; } }
.rhif-links { display: flex; flex-wrap: wrap; gap: 8px; }
.rhif-links a { border: 1.5px solid var(--rhi-line); background: #fff; border-radius: 999px; padding: 7px 14px; font-size: 14px; color: var(--rhi-blue); text-decoration: none; }
.rhif-links a:hover, .rhif-links a:focus { border-color: var(--rhi-blue); background: var(--rhi-blue-soft); text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .rhif-faq details, .rhif-faq summary::after { transition: none; } }

/* ช่องดักบอท: คนไม่เห็น ไม่ถูกแท็บ · อ่านด้วยโปรแกรมเท่านั้น */
.rhi-trap { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ส่งแล้ว */
.rhi-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding-top: 30px; }
.rhi-ok { width: 64px; height: 64px; border-radius: 50%; background: var(--rhi-ok-soft); display: grid; place-items: center; color: var(--rhi-ok); font-size: 32px; font-weight: 700; }
.rhi-done p { margin: 0; color: var(--rhi-muted); }
.rhi-ticket { font-family: ui-monospace, Consolas, monospace; background: var(--rhi-bg); border-radius: 8px; padding: 2px 10px; font-weight: 700; letter-spacing: .04em; color: var(--rhi-ink); }
/* กล่องแอดไลน์ (ไลน์จากตั้งค่าเว็บ → social) */
.rhi-line { width: 100%; max-width: 520px; display: flex; flex-direction: column; align-items: center; gap: 6px; background: #EAF8F0; border: 1px solid #BFE6CF; border-radius: 14px; padding: 16px 14px; }
.rhi-line b { font-size: 16px; color: var(--rhi-ink); }
.rhi-done .rhi-line p { color: var(--rhi-ink); font-size: 14px; }
.rhi-btn-line { background: #06C755; color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; max-width: 320px; margin-top: 6px; }
.rhi-btn-line:hover, .rhi-btn-line:focus { background: #05B14B; color: #fff; text-decoration: none; }
.rhi-btn-line .rhi-ico { width: 20px; height: 20px; flex: none; }
.rhi-sum { width: 100%; max-width: 520px; border: 1px solid var(--rhi-line); border-radius: 12px; text-align: left; font-size: 14px; margin: 0; }
.rhi-sum div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--rhi-line); }
.rhi-sum div:last-child { border-bottom: 0; }
.rhi-sum dt { color: var(--rhi-muted); font-weight: 400; flex: none; }
.rhi-sum dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
