/* BEER-REQ1 / BEER-FORM2 — หน้าขอใบเสนอราคา/นัดคุยงานเบียร์สด (ไฟล์ของหน้านี้เอง ไม่พึ่ง site.css · สีชุดเดียวกับเว็บขาว–ฟ้า)
 * ช่องกรอกทุกชนิดใช้ตัวเลือกแบบรวม (input:not(checkbox/radio/hidden)) — เดิมเลือกแค่ input[type=text] ⇒ ช่องที่ไม่มี type ตัวเล็ก/ไม่มีกรอบ
 * ⛔ ตัวอักษรในช่องกรอกห้ามต่ำกว่า 16px (iOS ซูมหน้าเองเมื่อแตะช่อง) · ⛔ ไม่อ้างไฟล์/ฟอนต์ภายนอก */
:root { --rq-brand:#006cac; --rq-brand2:#23a7df; --rq-deep:#073b6b; --rq-bg:#edf7fc; --rq-sky2:#dcecf6; --rq-text:#073b6b; --rq-muted:#526a7e; --rq-line:#c8dfeb; --rq-field:#b3cfe0; --rq-err:#b91c1c; --rq-errbg:#fef2f2; --rq-ok:#047857; }
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
html, body { margin:0; padding:0; }
body { display:flex; flex-direction:column; min-height:100vh; background:linear-gradient(180deg, var(--rq-bg) 0%, #f6fbfe 420px, #f6fbfe 100%); color:var(--rq-text); font-family:Tahoma,'Leelawadee UI',sans-serif; font-size:16px; line-height:1.65; overflow-wrap:break-word; }
[hidden] { display:none !important; }

/* ── หัวหน้า ── */
.rq-top { background:#fff; border-top:4px solid var(--rq-brand2); box-shadow:0 1px 0 #e3eff6; }
.rq-top-in { max-width:680px; margin:0 auto; display:flex; align-items:center; gap:12px; padding:8px 16px; }
.rq-logo img { display:block; width:36px; height:44px; object-fit:contain; }
.rq-brand { color:var(--rq-brand); text-decoration:none; font-weight:700; font-size:.95rem; padding:10px 0; }
.rq-brand:hover { color:var(--rq-deep); }

/* ── ส่วนหัวฟอร์ม ── */
.rq-wrap { flex:1 0 auto; width:100%; max-width:680px; margin:0 auto; padding:24px 16px 48px; }
.rq-intro { margin:0 0 18px; }
h1 { font-size:1.6rem; line-height:1.45; margin:0 0 6px; color:var(--rq-deep); }
h2 { font-size:1.3rem; margin:0 0 8px; }
.rq-lead { margin:0 0 6px; font-size:1.05rem; color:var(--rq-deep); }
.rq-legal { margin:0 0 10px; font-size:.9rem; color:var(--rq-muted); }
.rq-legal b { font-weight:700; }
.rq-age { display:inline-block; background:#fff; border:1px solid var(--rq-line); border-radius:999px; padding:2px 12px; font-size:.85rem; color:var(--rq-muted); margin:0; }

/* ── การ์ดฟอร์ม ── */
.rq-card { background:#fff; border:1px solid var(--rq-line); border-radius:16px; padding:20px 16px 18px; }
.rq-muted, .rq-hint { color:var(--rq-muted); font-size:.88rem; }
.rq-hint { margin:6px 0 0; }
.rq-center { text-align:center; }
.rq-loading { padding:24px 0; text-align:center; }
.rq-reqnote { margin:0 0 6px; font-size:.85rem; color:var(--rq-muted); }
.rq-group { border:0; padding:0; margin:0 0 6px; min-width:0; }
.rq-group legend { padding:0; margin:0 0 10px; font-weight:700; font-size:1.02rem; color:var(--rq-brand); }
.rq-group + .rq-group { margin-top:10px; }
.rq-row { display:grid; grid-template-columns:1fr; gap:0 14px; }
.rq-field { margin:0 0 16px; min-width:0; }
.rq-form label, .rq-label { display:block; font-weight:700; font-size:.95rem; margin:0 0 6px; color:var(--rq-deep); }
.rq-opt { font-weight:400; color:var(--rq-muted); font-size:.85rem; }
.rq-req { color:var(--rq-err); }

/* ช่องกรอก: ทุกชนิดสูงเท่ากัน 48px · ตัวอักษร 16px · กว้างเต็ม */
.rq-form input:not([type=checkbox]):not([type=radio]):not([type=hidden]), .rq-form select, .rq-form textarea {
  display:block; width:100%; min-height:48px; margin:0; padding:10px 14px; font-family:inherit; font-size:16px; line-height:1.4; color:var(--rq-text);
  background:#fff; border:1px solid var(--rq-field); border-radius:10px; -webkit-appearance:none; appearance:none;
  transition:border-color .15s, box-shadow .15s; }
.rq-form input[type=date], .rq-form input[type=time] { height:48px; }
.rq-form input::-webkit-date-and-time-value { text-align:left; }
.rq-form textarea { min-height:96px; resize:vertical; }
.rq-form input::placeholder, .rq-form textarea::placeholder { color:#8aa3b5; }
.rq-form input:hover, .rq-form select:hover, .rq-form textarea:hover { border-color:#8fb7cf; }
.rq-form input:focus, .rq-form select:focus, .rq-form textarea:focus { outline:none; border-color:var(--rq-brand); box-shadow:0 0 0 3px rgba(35,167,223,.28); }
.rq-form input:disabled { background:#f3f7fa; color:#8aa3b5; }
.rq-form [aria-invalid=true] { border-color:var(--rq-err) !important; }
.rq-form [aria-invalid=true]:focus { box-shadow:0 0 0 3px rgba(185,28,28,.18); }
.rq-select { position:relative; }
.rq-select select { padding-right:40px; cursor:pointer; }
.rq-select::after { content:''; position:absolute; right:16px; top:50%; width:8px; height:8px; margin-top:-6px; border-right:2px solid var(--rq-brand); border-bottom:2px solid var(--rq-brand); transform:rotate(45deg); pointer-events:none; }
.rq-narrow { max-width:140px; }
.rq-inline { margin-top:8px; }
.rq-inline label { font-weight:400; }

/* เช็กบ็อกซ์/ตัวเลือก */
.rq-form .rq-check { display:flex; gap:10px; align-items:flex-start; font-weight:400; margin:0 0 8px; cursor:pointer; }
.rq-check input { width:22px; height:22px; margin:2px 0 0; flex:0 0 auto; accent-color:var(--rq-brand); cursor:pointer; }
.rq-chips { display:flex; flex-wrap:wrap; gap:8px; }
.rq-form .rq-chip { display:inline-flex; align-items:center; gap:8px; margin:0; min-height:44px; padding:8px 16px; border:1px solid var(--rq-field); border-radius:999px; font-weight:400; cursor:pointer; background:#fff; }
.rq-chip input { width:18px; height:18px; margin:0; accent-color:var(--rq-brand); }
.rq-chip:has(input:checked) { border-color:var(--rq-brand); background:var(--rq-bg); color:var(--rq-deep); }
.rq-chip:has(input:focus-visible) { box-shadow:0 0 0 3px rgba(35,167,223,.28); }

/* ข้อความผิด (ใต้ช่อง) */
.rq-err { color:var(--rq-err); font-size:.88rem; margin-top:6px; }
.rq-err:empty { display:none; }

/* ── รายละเอียดเพิ่มเติม (พับไว้) ── */
.rq-more { margin:4px 0 18px; border:1px solid var(--rq-line); border-radius:12px; background:#f8fbfd; }
.rq-more summary { list-style:none; display:flex; align-items:center; gap:10px; min-height:52px; padding:12px 16px; cursor:pointer; font-weight:700; color:var(--rq-brand); border-radius:12px; }
.rq-more summary::-webkit-details-marker { display:none; }
.rq-more summary::before { content:'+'; display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; border-radius:50%; background:var(--rq-brand); color:#fff; font-size:18px; line-height:1; flex:0 0 auto; }
.rq-more[open] summary::before { content:'\2212'; }
.rq-more summary:hover { background:var(--rq-bg); }
.rq-more summary:focus-visible { outline:3px solid var(--rq-brand2); outline-offset:2px; }
.rq-more-body { padding:4px 16px 4px; border-top:1px solid #e6f0f6; }
.rq-more-body > .rq-row:first-child { margin-top:14px; }

.rq-note { background:#fff; border:1px dashed var(--rq-line); border-radius:10px; padding:8px 12px; margin:0 0 16px; font-size:.9rem; color:var(--rq-muted); }
.rq-consent { background:var(--rq-bg); border:1px solid var(--rq-line); border-radius:12px; padding:14px 14px 10px; }
.rq-consent .rq-check { margin:0; }
.rq-consent .rq-hint { margin:6px 0 0 32px; }
.rq-consent .rq-err { margin-left:32px; }

/* ── ปุ่ม ── */
.rq-btn { display:inline-flex; align-items:center; justify-content:center; font-family:inherit; font-weight:700; font-size:16px; border-radius:10px; min-height:48px; padding:10px 22px; border:1px solid var(--rq-brand); cursor:pointer; text-decoration:none; }
.rq-btn-primary { width:100%; min-height:54px; margin-top:4px; background:var(--rq-brand); color:#fff; font-size:17px; box-shadow:0 6px 16px rgba(0,108,172,.22); transition:background .15s; }
.rq-btn-primary:hover { background:var(--rq-deep); border-color:var(--rq-deep); }
.rq-btn-primary[disabled] { opacity:.65; cursor:progress; box-shadow:none; }
.rq-btn-ghost { background:#fff; color:var(--rq-brand); }
.rq-btn-ghost:hover { background:var(--rq-bg); }
.rq-btn-sm { min-height:44px; padding:8px 16px; font-size:15px; }
.rq-btn:focus-visible, .rq-link:focus-visible { outline:3px solid var(--rq-brand2); outline-offset:2px; }
.rq-link { background:none; border:0; color:var(--rq-brand); text-decoration:underline; cursor:pointer; font:inherit; padding:0; }

.rq-alert { border-radius:10px; padding:10px 14px; margin:0 0 14px; }
.rq-alert-warn { background:#fff8e1; border:1px solid #f0dca0; }
.rq-alert-err { background:var(--rq-errbg); border:1px solid #fecaca; color:var(--rq-err); }

#rqMap { height:280px; border-radius:10px; border:1px solid var(--rq-line); margin:10px 0 4px; }
.rq-hp { position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; }

.rq-avail { margin-top:8px; padding:4px 10px; border-radius:8px; font-size:.88rem; background:#f3f4f6; border:1px solid var(--rq-line); }
.rq-avail[data-s="free"] { background:#ecfdf5; border-color:#a7f3d0; }
.rq-avail[data-s="busy"] { background:#fff8e1; border-color:#f0dca0; }
.rq-avail[data-s="full"] { background:#fef2f2; border-color:#fecaca; }

/* ── ส่งสำเร็จ ── */
.rq-done { text-align:center; padding:8px 4px; }
.rq-done h2 { outline:none; color:var(--rq-deep); }
.rq-done-mark { width:56px; height:56px; margin:4px auto 10px; border-radius:50%; background:#ecfdf5; border:2px solid #a7f3d0; color:var(--rq-ok); font-size:28px; line-height:52px; font-weight:700; }
.rq-ref { display:inline-block; margin:4px 0 14px; padding:10px 18px; background:var(--rq-bg); border:1px dashed var(--rq-brand2); border-radius:12px; font-size:1.05rem; }
.rq-ref b { display:block; font-size:1.7rem; color:var(--rq-brand); letter-spacing:.08em; line-height:1.3; }
.rq-next { text-align:left; max-width:440px; margin:0 auto 12px; padding-left:22px; color:var(--rq-deep); }
.rq-next li { margin:0 0 4px; }

.rq-foot { text-align:center; background:var(--rq-deep); color:#d2eaf8; font-size:.85rem; padding:20px 16px; }

/* ── จอกว้าง: การ์ดมีเงา · 2 คอลัมน์เฉพาะคู่ที่สั้น ── */
@media (min-width:600px) {
  .rq-wrap { padding:36px 20px 64px; }
  h1 { font-size:1.9rem; }
  .rq-card { padding:28px 32px 24px; border-radius:18px; box-shadow:0 10px 30px rgba(7,59,107,.10); }
  .rq-row { grid-template-columns:1fr 1fr; }
}
