/* หน้าบริการ ตรวจเอกสารก่อนเซ็นลาออก (svc-resign-review.php) 23 พ.ย. 2569
   ธีมมืดโทนกรมท่าม่วงตามแบบอ้างอิงที่เจ้าของส่ง: พื้น #171721 การ์ด #1e1e2a ตัวอักษรงาช้าง
   สีน้ำเงินโคบอลต์ใช้กับปุ่มหลักปุ่มเดียวต่อจอ ปุ่มทรงแคปซูล ไม่มีเงา แยกชั้นด้วยค่าสีของพื้น
   ฟอนต์ Noto Sans Thai น้ำหนัก 480 (หัวข้อ) Sarabun (เนื้อหา) · ทุกกฎอยู่ใต้ .tt-rs / .rs-dock / .tt-rs-body */

.tt-rs,
.rs-dock {
  --onyx: #171721;
  --graphite: #1e1e2a;
  --obsidian: #272735;
  --slate: #70707d;
  --line: rgba(226, 227, 237, 0.14);
  --line-2: rgba(226, 227, 237, 0.28);
  --mist: #e2e3ed;
  --ash: #c3c3cc;
  --muted: #a4a4b2;
  --ivory: #ededf3;
  --cobalt: #5266eb;
  --cobalt-hi: #6577f0;
  --f-display: "Noto Sans Thai", "Prompt", sans-serif;
  --f-ui: "Noto Sans Thai", "Prompt", sans-serif;
  --f-body: "Sarabun", "Noto Sans Thai", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1200px;
}

/* ---------------------------------------------------------------- ล้างค่าธีม */
.tt-rs {
  display: block;
  color: var(--ivory);
  background: var(--onyx);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.75;
  overflow-x: clip;
}
.tt-rs ::selection {
  background: var(--cobalt);
  color: #fff;
}
:where(.tt-rs) section,
:where(.tt-rs) figure,
:where(.tt-rs) fieldset,
:where(.tt-rs) dl,
:where(.tt-rs) dd,
:where(.tt-rs) ol,
:where(.tt-rs) ul {
  margin: 0;
  padding: 0;
  border: 0;
}
:where(.tt-rs) li {
  list-style: none;
}
:where(.tt-rs) p {
  margin: 0;
}
.tt-rs h1,
.tt-rs h2,
.tt-rs h3 {
  margin: 0;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ivory);
}
.tt-rs a {
  color: var(--ivory);
  transition: color 0.25s, background-color 0.25s, border-color 0.25s, transform 0.35s var(--ease);
}
.tt-rs :focus-visible,
.rs-dock :focus-visible {
  outline: 2px solid var(--mist);
  outline-offset: 3px;
  border-radius: 8px;
}
.rs-nw {
  white-space: nowrap;
}
.rs-wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 40px);
  padding-right: clamp(20px, 4vw, 40px);
}
.rs-sec {
  padding: clamp(72px, 8vw, 120px) 0;
}
.rs-head {
  max-width: 780px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.tt-rs .rs-h2 {
  font-family: var(--f-display);
  font-weight: 480;
  font-size: clamp(30px, 1.8vw + 18px, 48px);
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
.tt-rs .rs-h3 {
  font-family: var(--f-display);
  font-weight: 480;
  font-size: clamp(20px, 0.5vw + 17px, 24px);
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
.tt-rs .rs-sub {
  margin-top: 16px;
  max-width: 62ch;
  font-size: 18px;
  line-height: 1.75;
  color: var(--ash);
  text-wrap: pretty;
}
.rs-ic {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rs-card {
  padding: clamp(24px, 2.6vw, 32px);
  border-radius: 12px;
  background: var(--graphite);
}
.tt-rs .rs-card__p {
  margin: 10px 0 18px;
  color: var(--ash);
}
.rs-ticks {
  display: grid;
  gap: 10px;
}
.rs-ticks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ivory);
}
.rs-ticks .rs-ic {
  width: 19px;
  height: 19px;
  margin-top: 4px;
  color: var(--mist);
}
.rs-ticks--minus li {
  color: var(--ash);
}
.rs-ticks--minus .rs-ic {
  color: var(--slate);
}

/* ---------------------------------------------------------------- ปุ่ม: โคบอลต์ปุ่มเดียว นอกนั้นแคปซูลกรอบงาช้าง */
.rs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.rs-actions--center {
  justify-content: center;
}
.tt-rs .rs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 24px;
  border: 1px solid var(--ivory);
  border-radius: 40px;
  background: transparent;
  color: var(--ivory);
  font-family: var(--f-ui);
  font-size: 16px;
  font-weight: 420;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.tt-rs .rs-btn:hover {
  background: rgba(237, 237, 243, 0.08);
  color: var(--ivory);
}
.tt-rs .rs-btn--primary {
  border-color: var(--cobalt);
  background: var(--cobalt);
  color: #fff;
}
.tt-rs .rs-btn--primary:hover {
  border-color: var(--cobalt-hi);
  background: var(--cobalt-hi);
  color: #fff;
}
.tt-rs .rs-btn--line {
  border-color: var(--ivory);
  background: var(--ivory);
  color: var(--onyx);
}
.tt-rs .rs-btn--line:hover {
  background: #fff;
  color: var(--onyx);
}

/* ---------------------------------------------------------------- จอแรก: ภาพเต็มจอ แสงสีครามยามพลบค่ำ */
.tt-rs .rs-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(640px, 92vh, 920px);
  padding: clamp(32px, 5vw, 64px) 0 clamp(56px, 7vw, 96px);
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 88%, rgba(255, 214, 160, 0.10), rgba(255, 214, 160, 0) 70%),
    radial-gradient(ellipse 90% 70% at 50% 10%, rgba(82, 102, 235, 0.10), rgba(82, 102, 235, 0) 70%),
    linear-gradient(180deg, #12121b 0%, #1a1a27 60%, #171721 100%);
}
.rs-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.rs-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}
.rs-hero.has-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 46% 34% at 50% 44%, rgba(23, 23, 33, 0.5), rgba(23, 23, 33, 0) 100%),
    linear-gradient(180deg, rgba(23, 23, 33, 0.7) 0%, rgba(23, 23, 33, 0.22) 36%, rgba(23, 23, 33, 0.18) 66%, rgba(23, 23, 33, 0.8) 92%, var(--onyx) 100%);
}
.rs-hero__in {
  position: relative;
}
.tt-rs .rs-crumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 10px;
  margin-bottom: clamp(28px, 4vw, 48px);
  font-family: var(--f-ui);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ash);
}
.tt-rs .rs-crumbs a {
  color: var(--ash);
  text-decoration: none;
}
.tt-rs .rs-crumbs a:hover {
  color: var(--ivory);
}
.tt-rs .rs-h1 {
  max-width: 980px;
  margin: 0 auto;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(42px, 4.6vw + 16px, 84px);
  line-height: 1.14;
  letter-spacing: 0.012em;
  color: #fff;
  text-wrap: balance;
}
.tt-rs .rs-promise {
  max-width: 640px;
  margin: clamp(20px, 2.2vw, 28px) auto 0;
  font-family: var(--f-ui);
  font-size: clamp(17px, 0.4vw + 15.5px, 20px);
  font-weight: 420;
  line-height: 1.7;
  color: var(--ivory);
  text-wrap: pretty;
}
.rs-gets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: clamp(26px, 3vw, 36px) auto clamp(28px, 3vw, 40px);
}
.rs-gets li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--line-2);
  border-radius: 40px;
  background: rgba(23, 23, 33, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--f-ui);
  font-size: 15px;
  font-weight: 420;
  line-height: 1.4;
  color: var(--ivory);
}
.rs-gets .rs-ic {
  width: 17px;
  height: 17px;
}
.rs-hero .rs-actions {
  justify-content: center;
}
.tt-rs .rs-trust {
  display: block;
  text-align: center;
  max-width: 720px;
  margin: 18px auto 0;
  font-family: var(--f-ui);
  font-size: 14px;
  font-weight: 420;
  line-height: 1.6;
  color: var(--ash);
  text-wrap: balance;
}
.rs-trust .rs-ic {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: -3px;
  color: var(--mist);
}
.tt-rs .rs-trust--left {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  max-width: none;
  margin: 0 0 28px;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--graphite);
  text-align: left;
}
.tt-rs .rs-lens__note {
  margin-top: 20px;
  font-family: var(--f-ui);
  font-size: 13.5px;
  color: var(--muted);
}
.tt-rs .rs-by {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(28px, 3vw, 40px);
  padding: 6px 18px 6px 6px;
  border-radius: 40px;
  background: rgba(30, 30, 42, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  text-align: left;
  text-decoration: none;
  font-family: var(--f-ui);
  font-size: 15px;
  font-weight: 480;
  line-height: 1.35;
}
.tt-rs .rs-by:hover {
  background: rgba(39, 39, 53, 0.9);
}
.rs-by img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 18%;
}
.rs-by__k {
  display: block;
  font-size: 12.5px;
  font-weight: 420;
  color: var(--ash);
}
.rs-by__r {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--ash);
}

/* ---------------------------------------------------------------- คำตอบสั้น */
.rs-answer__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 24px clamp(32px, 6vw, 96px);
}
.rs-answer__list > div {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.rs-answer__list > div:first-child {
  padding-top: 0;
  border-top: 0;
}
.tt-rs .rs-answer__list dt {
  font-family: var(--f-display);
  font-size: clamp(20px, 0.5vw + 17px, 24px);
  font-weight: 480;
  line-height: 1.4;
  color: var(--ivory);
}
.tt-rs .rs-answer__list dd {
  margin-top: 8px;
  font-size: 17.5px;
  line-height: 1.8;
  color: var(--ash);
  text-wrap: pretty;
}

/* ---------------------------------------------------------------- เหมาะกับใคร */
.rs-who {
  padding-top: 0;
}
.rs-who__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.tt-rs .rs-who__other {
  margin-top: 24px;
  font-size: 16px;
  color: var(--ash);
}
.tt-rs .rs-who__other a {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--slate);
}

/* ---------------------------------------------------------------- เอกสารที่รับตรวจ / เอกสารที่ควรเตรียม */
.rs-docs,
.rs-prep {
  background: var(--graphite);
}
.rs-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px clamp(32px, 6vw, 96px);
  align-items: start;
}
.rs-docs__list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.rs-docs__list li:first-child {
  border-top: 0;
  padding-top: 4px;
}
.rs-docs__n {
  font-family: var(--f-ui);
  font-size: 14px;
  font-weight: 480;
  line-height: 1.9;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.rs-docs__list strong {
  display: block;
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 480;
  line-height: 1.5;
  color: var(--ivory);
}
.rs-docs__list strong + span {
  display: block;
  margin-top: 2px;
  font-size: 16px;
  color: var(--ash);
}
.rs-prep__list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
}

/* ---------------------------------------------------------------- สิ่งที่ได้รับ: ภาพตัวอย่างหน้าสรุป */
.rs-get {
  position: relative;
  isolation: isolate;
}
.rs-get::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: -1;
  width: min(1100px, 120vw);
  height: 620px;
  transform: translate(-50%, -30%);
  background: radial-gradient(ellipse at center, rgba(82, 102, 235, 0.16), rgba(82, 102, 235, 0.04) 45%, rgba(82, 102, 235, 0) 70%);
  pointer-events: none;
}
.tt-rs .rs-report {
  max-width: 980px;
  margin: 0 auto;
  perspective: 1600px;
}
.rs-report__sheet {
  padding: clamp(20px, 3vw, 40px);
  border-radius: 12px;
  background: linear-gradient(180deg, #232332 0%, var(--graphite) 40%);
  border: 1px solid var(--line);
  transform: rotateX(4deg);
  transform-origin: 50% 100%;
}
.rs-report__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.rs-report__brand {
  font-family: var(--f-ui);
  font-size: 13px;
  font-weight: 480;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.rs-report__title {
  flex: 1;
  font-family: var(--f-display);
  font-size: clamp(18px, 0.6vw + 15px, 22px);
  font-weight: 480;
  color: var(--ivory);
}
.rs-report__tag {
  padding: 3px 12px;
  border: 1px solid var(--line-2);
  border-radius: 40px;
  font-family: var(--f-ui);
  font-size: 12.5px;
  color: var(--ash);
}
.tt-rs .rs-report__meta {
  margin: 14px 0 18px;
  font-family: var(--f-ui);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ash);
}
.rs-report__tablewrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.rs-report__table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-family: var(--f-ui);
  font-size: 15px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.rs-report__table th,
.rs-report__table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}
.rs-report__table thead th {
  font-size: 13px;
  font-weight: 420;
  color: var(--muted);
}
.rs-report__table th[scope="row"],
.rs-report__table thead th:first-child {
  text-align: left;
  white-space: normal;
  font-weight: 420;
  color: var(--ivory);
}
.rs-report__table td {
  color: var(--ash);
}
.rs-report__table td.is-gap {
  color: #fff;
  font-weight: 560;
}
.rs-report__table td.is-ok {
  color: var(--muted);
}
.rs-report__table tfoot th,
.rs-report__table tfoot td {
  border-bottom: 0;
  padding-top: 16px;
  font-size: 16.5px;
  font-weight: 560;
  color: var(--ivory);
}
.rs-report__table tfoot td.is-gap {
  font-size: 20px;
}
.tt-rs .rs-report__k {
  margin: 26px 0 12px;
  font-family: var(--f-ui);
  font-size: 13px;
  font-weight: 480;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.rs-report__fix {
  display: grid;
  gap: 12px;
  counter-reset: fx;
}
.rs-report__fix li {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 14px 16px 14px 48px;
  border-radius: 12px;
  background: var(--obsidian);
  counter-increment: fx;
}
.rs-report__fix li::before {
  content: counter(fx);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  font-family: var(--f-ui);
  font-size: 12px;
  line-height: 20px;
  text-align: center;
  color: var(--ash);
}
.rs-report__fix del {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  text-decoration-color: rgba(195, 195, 204, 0.7);
}
.rs-report__fix ins {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ivory);
  text-decoration: none;
}
.rs-report__fix ins::before {
  content: "แก้เป็น  ";
  font-family: var(--f-ui);
  font-size: 12.5px;
  color: var(--muted);
}
.tt-rs .rs-report figcaption {
  margin-top: 22px;
  font-family: var(--f-ui);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}

/* ---------------------------------------------------------------- 7 จุดที่ต้องดู */
.rs-checks__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(32px, 5vw, 72px);
}
.rs-checks__list li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 8px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.rs-checks__n {
  grid-row: 1 / 3;
  font-family: var(--f-ui);
  font-size: 14px;
  font-weight: 480;
  line-height: 2;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.tt-rs .rs-checks__list p {
  margin-top: 8px;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ash);
  text-wrap: pretty;
}

/* ---------------------------------------------------------------- เลนส์ทนายไทยธนา */
.rs-lens {
  background: var(--graphite);
}
.rs-lens__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.rs-lens__list li {
  padding: clamp(24px, 2.6vw, 32px);
  border-radius: 12px;
  background: var(--onyx);
}
.rs-lens__k {
  display: block;
  margin-bottom: 10px;
  font-family: var(--f-ui);
  font-size: 14px;
  font-weight: 480;
  color: var(--muted);
}
.tt-rs .rs-lens__list p {
  font-family: var(--f-display);
  font-size: clamp(18px, 0.4vw + 16px, 21px);
  font-weight: 420;
  line-height: 1.65;
  color: var(--ivory);
  text-wrap: pretty;
}

/* ---------------------------------------------------------------- ขั้นตอน */
.rs-steps__list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.rs-steps__list::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 20px;
  height: 1px;
  background: var(--line-2);
}
.rs-steps__list li {
  position: relative;
  padding-top: 56px;
}
.rs-steps__n {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--onyx);
  font-family: var(--f-ui);
  font-size: 14px;
  font-weight: 480;
  color: var(--ivory);
  font-variant-numeric: tabular-nums;
}
.tt-rs .rs-steps__list p {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ash);
}

/* ---------------------------------------------------------------- ขอบเขตงาน / เจรจาต่อ */
.rs-scope__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.rs-scope__grid .rs-h3 {
  margin-bottom: 18px;
}
.rs-nego {
  padding-top: 0;
}
.rs-nego__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.rs-nego__n {
  display: inline-block;
  margin-bottom: 14px;
  padding: 3px 12px;
  border: 1px solid var(--line-2);
  border-radius: 40px;
  font-family: var(--f-ui);
  font-size: 13px;
  color: var(--ash);
}
.tt-rs .rs-nego__list p {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ash);
}

/* ---------------------------------------------------------------- คำถามที่พบบ่อย */
.rs-faq__list {
  max-width: 900px;
}
.rs-faq__item {
  border-top: 1px solid var(--line);
}
.rs-faq__item:last-child {
  border-bottom: 1px solid var(--line);
}
.rs-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
}
.rs-faq__item summary::-webkit-details-marker {
  display: none;
}
.tt-rs .rs-faq__item h3 {
  font-family: var(--f-display);
  font-size: clamp(18px, 0.4vw + 16px, 21px);
  font-weight: 480;
  line-height: 1.55;
}
.rs-faq__item summary .rs-ic {
  color: var(--ash);
  transition: transform 0.35s var(--ease);
}
.rs-faq__item[open] summary .rs-ic {
  transform: rotate(45deg);
}
.tt-rs .rs-faq__item p {
  max-width: 72ch;
  padding: 0 0 24px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--ash);
}
.rs-more {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 900px;
  margin-top: clamp(40px, 5vw, 64px);
}
.tt-rs .rs-more a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "k i"
    "t i";
  align-items: center;
  gap: 2px 14px;
  padding: 18px 22px;
  border-radius: 12px;
  background: var(--graphite);
  text-decoration: none;
}
.tt-rs .rs-more a:hover {
  background: var(--obsidian);
}
.rs-more__k {
  grid-area: k;
  font-family: var(--f-ui);
  font-size: 13px;
  color: var(--muted);
}
.rs-more a > span:nth-child(2) {
  grid-area: t;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ivory);
}
.rs-more .rs-ic {
  grid-area: i;
  color: var(--ash);
}

/* ---------------------------------------------------------------- ปิดท้าย + ฟอร์ม */
.tt-rs .rs-close {
  background:
    radial-gradient(ellipse 60% 45% at 50% 0%, rgba(82, 102, 235, 0.12), rgba(82, 102, 235, 0) 70%),
    var(--onyx);
}
.rs-close .rs-head {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.rs-close .rs-sub {
  margin-left: auto;
  margin-right: auto;
}
.rs-close .rs-actions {
  margin-bottom: clamp(40px, 5vw, 64px);
}
.rs-form {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(24px, 3.4vw, 44px);
  border-radius: 12px;
  background: var(--graphite);
}
.tt-rs .rs-form__h {
  margin-bottom: 22px;
  font-family: var(--f-display);
  font-size: clamp(22px, 0.6vw + 18px, 27px);
  font-weight: 480;
  text-align: center;
}
.rs-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.rs-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.rs-field {
  display: grid;
  gap: 6px;
  margin: 0 0 16px;
}
.rs-form__row .rs-field {
  margin-bottom: 0;
}
.rs-field > span,
.rs-opts legend {
  padding-left: 4px;
  font-family: var(--f-ui);
  font-size: 14px;
  font-weight: 480;
  color: var(--ivory);
}
.tt-rs .rs-field input,
.tt-rs .rs-field select,
.tt-rs .rs-field textarea {
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 12px 20px;
  border: 1px solid var(--line-2);
  border-radius: 32px;
  background: var(--onyx);
  color: var(--ivory);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  box-shadow: none;
  color-scheme: dark;
}
.tt-rs .rs-field textarea {
  min-height: 116px;
  border-radius: 20px;
  resize: vertical;
}
.tt-rs .rs-field input:focus,
.tt-rs .rs-field select:focus,
.tt-rs .rs-field textarea:focus {
  border-color: var(--mist);
  outline: none;
}
.tt-rs .rs-field input:focus-visible,
.tt-rs .rs-field select:focus-visible,
.tt-rs .rs-field textarea:focus-visible {
  outline: 2px solid var(--mist);
  outline-offset: 1px;
}
.tt-rs .rs-field input[aria-invalid="true"] {
  border-color: #f0b4b4;
}
.tt-rs .rs-opts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 4px 0 18px;
}
.rs-opts legend {
  grid-column: 1 / -1;
  float: left;
  width: 100%;
  margin-bottom: 4px;
}
.rs-opts label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  margin: 0;
  padding: 10px 18px;
  border: 1px solid var(--line-2);
  border-radius: 40px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ash);
  cursor: pointer;
}
.rs-opts label:hover {
  border-color: var(--mist);
}
.tt-rs .rs-opts input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--cobalt);
}
.rs-opts label:has(input:checked) {
  border-color: var(--ivory);
  color: var(--ivory);
  background: rgba(237, 237, 243, 0.05);
}
.tt-rs .rs-form__fine {
  margin: 4px 0 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ash);
}
.tt-rs .rs-form__fine a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tt-rs .rs-form__send {
  width: 100%;
}
.tt-rs .rs-form__send[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.tt-rs .rs-form__msg {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ivory);
  text-align: center;
}
.tt-rs .rs-form__msg.is-error {
  color: #f0b4b4;
}
.tt-rs .rs-note {
  max-width: 760px;
  margin: clamp(40px, 5vw, 64px) auto 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
  text-align: center;
}

/* ---------------------------------------------------------------- แถบติดต่อบนมือถือ */
.rs-dock {
  display: none;
}

/* ---------------------------------------------------------------- จอเล็ก */
@media (max-width: 991.98px) {
  .rs-steps__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 40px;
  }
  .rs-steps__list::before {
    display: none;
  }
  .rs-nego__list,
  .rs-who__grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 640px;
  }
}
@media (max-width: 767.98px) {
  .tt-rs {
    font-size: 16.5px;
  }
  .tt-rs .rs-hero {
    min-height: 0;
    padding-top: 28px;
  }
  .rs-answer__grid,
  .rs-who__grid,
  .rs-split,
  .rs-checks__list,
  .rs-lens__list,
  .rs-steps__list,
  .rs-scope__grid,
  .rs-prep__list,
  .rs-more,
  .rs-form__row,
  .tt-rs .rs-opts {
    grid-template-columns: minmax(0, 1fr);
  }
  .rs-gets {
    flex-direction: column;
    align-items: stretch;
  }
  .rs-gets li {
    justify-content: center;
  }
  .tt-rs .rs-btn {
    width: 100%;
  }
  .rs-report__sheet {
    transform: none;
  }
  .rs-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 990;
    display: grid;
    grid-template-columns: 1fr 1.7fr 1fr;
    gap: 6px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(23, 23, 33, 0.94);
    border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: transform 0.4s var(--ease);
  }
  .rs-dock.is-hidden {
    transform: translateY(110%);
  }
  .rs-dock__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 48px;
    border: 1px solid var(--line-2);
    border-radius: 40px;
    color: var(--ivory);
    font-family: var(--f-ui);
    font-size: 14px;
    font-weight: 480;
    text-decoration: none;
  }
  .rs-dock__btn:hover,
  .rs-dock__btn:focus {
    color: var(--ivory);
    text-decoration: none;
  }
  .rs-dock__btn--main {
    border-color: var(--cobalt);
    background: var(--cobalt);
    color: #fff;
  }
  .rs-dock__btn--main:hover,
  .rs-dock__btn--main:focus {
    color: #fff;
  }
  .rs-dock .rs-ic {
    width: 18px;
    height: 18px;
  }
  .tt-rs-body {
    padding-bottom: calc(66px + env(safe-area-inset-bottom));
  }
}

/* ---------------------------------------------------------------- จังหวะเดียวของหน้า: ภาพจอแรกค่อยเข้าใกล้ แล้วข้อความขึ้นตาม */
@media (prefers-reduced-motion: no-preference) {
  .rs-hero__bg img {
    animation: rs-drift 2.4s var(--ease) both;
  }
  .rs-hero__in > * {
    animation: rs-rise 0.9s var(--ease) both;
  }
  .rs-hero__in > :nth-child(2) { animation-delay: 0.08s; }
  .rs-hero__in > :nth-child(3) { animation-delay: 0.16s; }
  .rs-hero__in > :nth-child(4) { animation-delay: 0.24s; }
  .rs-hero__in > :nth-child(5) { animation-delay: 0.32s; }
  .rs-hero__in > :nth-child(6) { animation-delay: 0.4s; }
}
@keyframes rs-drift {
  from { transform: scale(1.07); }
  to { transform: scale(1); }
}
@keyframes rs-rise {
  from { opacity: 0.001; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@media print {
  .rs-dock {
    display: none !important;
  }
}

/* ตารางสรุปบนมือถือ: แสดงทีละรายการ ไม่ต้องเลื่อนข้าง */
@media (max-width: 767.98px) {
  .rs-report__top {
    flex-direction: column;
    align-items: flex-start;
  }
  .rs-report__table {
    min-width: 0;
  }
  .rs-report__table thead {
    display: none;
  }
  .rs-report__table tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px 8px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .rs-report__table th[scope="row"] {
    grid-column: 1 / -1;
    padding: 0 0 6px;
    border: 0;
  }
  .rs-report__table td {
    padding: 0;
    border: 0;
    text-align: left;
  }
  .rs-report__table td::before {
    content: attr(data-k);
    display: block;
    font-size: 11.5px;
    color: var(--muted);
  }
  .rs-report__table tfoot tr {
    border-bottom: 0;
  }
}
