/* หน้าเลือกของ chatbot รับสมัคร ออกแบบสำหรับมือถือ ตัวอักษรใหญ่ แตะง่าย */
:root {
  --green: #06c755;
  --text: #1f2933;
  --muted: #52606d;
  --line: #d9e2ec;
  --bg: #f5f7fa;
  --danger: #b42318;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Sukhumvit Set", "Noto Sans Thai", sans-serif;
  font-size: 18px;
  line-height: 1.5;
}

main {
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 16px 120px;
}

h1 {
  margin: 0 0 4px;
  font-size: 24px;
}

h2 {
  margin: 24px 0 8px;
  font-size: 18px;
}

.hint,
.status {
  margin: 0 0 16px;
  color: var(--muted);
}

.error {
  margin: 16px 0 0;
  color: var(--danger);
  font-weight: 600;
}

/* ตัวเลือกแบบติ๊ก หนึ่งแถวต่อหนึ่งตัวเลือก */
.option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 14px;
  margin-bottom: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.option input {
  flex: none;
  width: 24px;
  height: 24px;
  accent-color: var(--green);
}

.option.whole {
  font-weight: 600;
}

select {
  width: 100%;
  min-height: 52px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
}

/* รายการพื้นที่ที่เลือกแล้ว */
.chosen {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 8px;
  background: #e9f9ef;
  border-radius: 10px;
}

.chosen button {
  flex: none;
  padding: 4px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--danger);
  font: inherit;
}

.empty {
  color: var(--muted);
}

.actions {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
}

.actions button {
  display: block;
  width: 100%;
  max-width: 528px;
  min-height: 52px;
  margin: 0 auto;
  background: var(--green);
  border: 0;
  border-radius: 10px;
  color: #fff;
  font: inherit;
  font-weight: 600;
}

.actions button:disabled {
  opacity: 0.5;
}

/* แบบฟอร์มขั้นที่ 2: แบ่งเป็นส่วน ๆ ให้ไล่กรอกจากบนลงล่าง */
.section {
  margin-top: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

h3 {
  margin: 16px 0 8px;
  font-size: 16px;
  color: var(--muted);
}

.gap {
  height: 8px;
}

input.text {
  width: 100%;
  min-height: 52px;
  padding: 8px 12px;
  margin-bottom: 8px;
  font: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.status {
  white-space: pre-line;
}

button.close {
  width: 100%;
  min-height: 52px;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--green);
  border: 0;
  border-radius: 10px;
}


/* โลโก้พร้อมพ์พาบนหัวหน้าเว็บ (เจ้าของเลือกใช้แบรนด์พร้อมพ์พา 25 พ.ย. 2026) */
.brand {
  display: block;
  width: auto;
  height: 56px;
  margin: 0 0 8px;
}
