/* หน้าบริการ บันทึกท้ายทะเบียนการหย่า (svc-divorce-memo.php) 16 พ.ย. 2569
   ธีมมืดโทนเทาถ่านตามแบบอ้างอิงที่เจ้าของส่ง (หัวข้อตัวมีเชิงจัดกลาง สีเทาสามระดับ เงานุ่ม จุดเด่นเดียวต่อจอ)
   สีแดงตราประทับใช้เฉพาะเครื่องหมายความเสี่ยง · ฟอนต์ Taviraj (หัวข้อ) Sarabun (เนื้อหา) Prompt (ปุ่ม ป้าย)
   ทุกกฎอยู่ใต้ .tt-dv / .dv-dock / .tt-dv-body เพื่อไม่กระทบหน้าอื่น */

.tt-dv,
.dv-dock {
  --canvas: #26272c;
  --inkwell: #1d1e22;
  --obsidian: #0a0a0a;
  --graphite: #3b3c3e;
  --pewter: #8a8c93;
  --slate: #62646a;
  --ash: #535355;
  --bone: #e0e0e0;
  --chalk: #c4c5c9;
  --muted: #a7a9af;
  --paper: #ffffff;
  --sheet: #f2efe7;
  --sheet-ink: #26252a;
  --sheet-line: #cfc9ba;
  --seal: #b8392e;
  --seal-soft: #e07a6f;
  --f-display: "Taviraj", "Prompt", serif;
  --f-body: "Sarabun", "Prompt", sans-serif;
  --f-ui: "Prompt", "Sarabun", sans-serif;
  --f-hand: "Sriracha", "Sarabun", cursive;
  --shadow-float: 0 2px 4px rgba(4, 4, 7, 0.25), 0 8px 24px rgba(4, 4, 7, 0.4);
  --shadow-card: 0 12px 12px rgba(0, 0, 0, 0.12);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1200px;
}

/* ---------------------------------------------------------------- ล้างค่าธีม */
.tt-dv {
  display: block;
  color: var(--chalk);
  background: var(--canvas);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.8;
  overflow-x: clip;
}
.tt-dv ::selection {
  background: var(--bone);
  color: var(--obsidian);
}
:where(.tt-dv) section,
:where(.tt-dv) figure,
:where(.tt-dv) blockquote,
:where(.tt-dv) fieldset,
:where(.tt-dv) ol,
:where(.tt-dv) ul {
  margin: 0;
  padding: 0;
  border: 0;
}
:where(.tt-dv) li {
  list-style: none;
}
:where(.tt-dv) p {
  margin: 0;
}
.tt-dv h1,
.tt-dv h2,
.tt-dv h3 {
  margin: 0;
  letter-spacing: 0;
  text-transform: none;
  color: var(--paper);
}
.tt-dv a {
  color: var(--paper);
  transition: color 0.25s, background-color 0.25s, border-color 0.25s, box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
.tt-dv :focus-visible,
.dv-dock :focus-visible {
  outline: 2px solid var(--bone);
  outline-offset: 3px;
  border-radius: 4px;
}
.dv-nw {
  white-space: nowrap;
}
.dv-wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 40px);
  padding-right: clamp(20px, 4vw, 40px);
}
.dv-sec {
  padding: clamp(72px, 9vw, 128px) 0;
}
.dv-head {
  max-width: 820px;
  margin: 0 auto clamp(36px, 4.5vw, 60px);
  text-align: center;
}
.tt-dv .dv-h2 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(30px, 1.9vw + 18px, 50px);
  line-height: 1.32;
  letter-spacing: 0.01em;
  color: var(--paper);
  text-wrap: balance;
}
.tt-dv .dv-sub {
  margin: 18px auto 0;
  max-width: 64ch;
  font-size: 18px;
  line-height: 1.8;
  color: var(--muted);
  text-wrap: pretty;
}
.dv-ic {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------------------------------------------------------------- ปุ่ม (ปุ่มกรอบบาง ปุ่มหลักพื้นกราไฟต์ ไม่ใช้สีสด) */
.dv-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.tt-dv .dv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 22px;
  border: 1px solid var(--slate);
  border-radius: 4px;
  background: transparent;
  color: var(--paper);
  font-family: var(--f-ui);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.tt-dv .dv-btn:hover {
  border-color: var(--bone);
  background: rgba(255, 255, 255, 0.04);
  color: var(--paper);
}
.tt-dv .dv-btn--primary {
  border-color: var(--bone);
  background: var(--graphite);
  box-shadow: var(--shadow-float);
}
.tt-dv .dv-btn--primary:hover {
  background: #47484b;
  transform: translateY(-1px);
}
.tt-dv .dv-btn .dv-ic {
  width: 19px;
  height: 19px;
}

/* ---------------------------------------------------------------- จอแรก */
.tt-dv .dv-hero {
  position: relative;
  padding: clamp(28px, 4vw, 48px) 0 clamp(72px, 8vw, 112px);
  text-align: center;
  background:
    radial-gradient(ellipse 52% 46% at 50% 74%, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0) 70%),
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0) 70%),
    var(--canvas);
}
.tt-dv .dv-crumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 10px;
  margin-bottom: clamp(36px, 5vw, 64px);
  font-family: var(--f-ui);
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.tt-dv .dv-crumbs a {
  color: var(--muted);
  text-decoration: none;
}
.tt-dv .dv-crumbs a:hover {
  color: var(--paper);
}
.tt-dv .dv-crumbs [aria-current] {
  color: var(--chalk);
}
.tt-dv .dv-h1 {
  display: block;
  max-width: 1000px;
  margin: 0 auto;
  font-family: var(--f-display);
  font-weight: 500;
  color: var(--paper);
}
.dv-h1__a {
  display: block;
  font-size: clamp(38px, 3.9vw + 14px, 76px);
  line-height: 1.22;
  letter-spacing: 0.012em;
  text-wrap: balance;
}
.dv-h1__b {
  display: block;
  margin-top: clamp(12px, 1.4vw, 20px);
  font-size: clamp(21px, 1.1vw + 14px, 32px);
  font-weight: 400;
  line-height: 1.45;
  color: var(--chalk);
  text-wrap: balance;
}
.tt-dv .dv-lede {
  max-width: 62ch;
  margin: clamp(22px, 2.4vw, 32px) auto clamp(28px, 3vw, 40px);
  font-size: clamp(17px, 0.3vw + 16px, 19px);
  line-height: 1.85;
  color: var(--muted);
  text-wrap: pretty;
}
.tt-dv .dv-call {
  margin-top: 16px;
  font-family: var(--f-ui);
  font-size: 15px;
  color: var(--muted);
}
.tt-dv .dv-call a {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--slate);
}
.tt-dv .dv-call a:hover {
  text-decoration-color: var(--bone);
}
.tt-dv .dv-trust {
  margin-top: clamp(28px, 3vw, 40px);
  font-family: var(--f-ui);
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* ภาพจำลองเอกสาร: แผ่นกระดาษลอยบนพื้นมืด มีแสงจากด้านบน ตราสีแดงประทับทับบรรทัดเสี่ยง */
.tt-dv .dv-doc {
  position: relative;
  max-width: 640px;
  margin: clamp(48px, 6vw, 80px) auto 0;
}
.dv-doc__sheet {
  position: relative;
  padding: clamp(22px, 3vw, 36px) clamp(20px, 3.4vw, 44px) clamp(24px, 3vw, 36px);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 28%),
    var(--sheet);
  color: var(--sheet-ink);
  text-align: left;
  box-shadow: 0 2px 4px rgba(4, 4, 7, 0.25), 0 24px 60px rgba(4, 4, 7, 0.55), 0 60px 120px rgba(4, 4, 7, 0.35);
  transform: rotate(-1.2deg);
}
.dv-doc__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--sheet-line);
}
.dv-doc__title {
  font-family: var(--f-display);
  font-size: clamp(20px, 1vw + 14px, 26px);
  font-weight: 500;
  color: var(--sheet-ink);
}
.dv-doc__tag {
  padding: 1px 9px;
  border: 1px solid #b7b1a2;
  border-radius: 4px;
  font-family: var(--f-ui);
  font-size: 12.5px;
  color: #6b675e;
}
.dv-doc__rows {
  display: grid;
  gap: 8px;
  margin: 14px 0 6px;
}
.dv-doc__row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  font-family: var(--f-ui);
  font-size: 13.5px;
  color: #6b675e;
}
.dv-doc__row i,
.dv-doc__sign i {
  flex: 1;
  min-width: 40px;
  height: 0;
  border-bottom: 1px dotted #a9a395;
  transform: translateY(-5px);
}
.tt-dv .dv-doc__label {
  margin-top: 14px;
  font-family: var(--f-ui);
  font-size: 13.5px;
  font-weight: 500;
  color: #6b675e;
}
.tt-dv .dv-doc__notes {
  margin: 4px 0 18px;
}
.dv-doc__notes li {
  position: relative;
  padding: 4px 0 4px 2px;
  border-bottom: 1px solid rgba(207, 201, 186, 0.7);
  font-family: var(--f-hand);
  font-size: clamp(15px, 0.6vw + 12px, 19px);
  line-height: 1.75;
  color: #2b3a67;
}
.dv-doc__notes li > span {
  margin-right: 4px;
  font-family: var(--f-hand);
}
.dv-doc__notes mark {
  padding: 0;
  background: none;
  color: inherit;
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-color: rgba(184, 57, 46, 0.85);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}
.dv-doc__sign {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  font-family: var(--f-ui);
  font-size: 13px;
  color: #6b675e;
}
.dv-doc__sign span {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.dv-stamp {
  position: absolute;
  right: clamp(-8px, 1vw, 22px);
  top: 54%;
  width: clamp(200px, 26vw + 60px, 330px);
  height: auto;
  color: var(--seal);
  transform: rotate(-9deg);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.dv-stamp__t {
  font-family: var(--f-ui);
  font-size: 37px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.dv-stamp__s {
  font-family: var(--f-ui);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.tt-dv .dv-doc figcaption {
  margin-top: 26px;
  font-family: var(--f-ui);
  font-size: 13px;
  line-height: 1.6;
  color: var(--pewter);
  text-align: center;
}

/* ---------------------------------------------------------------- คำเสี่ยง กับคำที่ทนายร่าง */
.dv-trap {
  background: var(--inkwell);
}
.dv-trap__list {
  display: grid;
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}
.dv-redline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  grid-template-areas:
    "t t t"
    "risk to fix";
  gap: 18px 8px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 8px;
  background: var(--canvas);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(138, 140, 147, 0.22);
}
.tt-dv .dv-redline__t {
  grid-area: t;
  font-family: var(--f-display);
  font-size: clamp(22px, 0.8vw + 17px, 28px);
  font-weight: 500;
  line-height: 1.4;
}
.dv-redline__risk { grid-area: risk; }
.dv-redline__fix { grid-area: fix; }
.dv-redline__to {
  grid-area: to;
  align-self: center;
  justify-self: center;
  color: var(--pewter);
}
.tt-dv .dv-redline__k {
  margin-bottom: 8px;
  font-family: var(--f-ui);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.tt-dv .dv-redline__risk .dv-redline__k {
  color: var(--seal-soft);
}
.tt-dv .dv-redline__q {
  font-family: var(--f-display);
  font-size: clamp(18px, 0.4vw + 16px, 21px);
  line-height: 1.7;
}
.dv-redline__q del {
  color: var(--chalk);
  text-decoration-line: line-through;
  text-decoration-color: rgba(224, 122, 111, 0.85);
  text-decoration-thickness: 2px;
}
.dv-redline__q ins {
  color: var(--paper);
  text-decoration: none;
}
.tt-dv .dv-redline__why,
.tt-dv .dv-redline__note {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}
.tt-dv .dv-redline__note {
  font-family: var(--f-ui);
  font-size: 13.5px;
  color: var(--pewter);
}

/* ---------------------------------------------------------------- 4 เรื่องที่ต้องเขียนให้ชัด */
.dv-matters__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 4vw, 56px) clamp(32px, 5vw, 80px);
  max-width: 1080px;
  margin: 0 auto;
}
.dv-matter {
  position: relative;
  padding-top: 24px;
  border-top: 1px solid var(--ash);
  scroll-margin-top: 120px;
}
.dv-matter__n {
  display: block;
  margin-bottom: 6px;
  font-family: var(--f-display);
  font-size: 30px;
  line-height: 1.2;
  color: var(--pewter);
}
.tt-dv .dv-matter__t {
  font-family: var(--f-display);
  font-size: clamp(22px, 0.8vw + 17px, 28px);
  font-weight: 500;
  line-height: 1.4;
}
.tt-dv .dv-matter__p {
  margin: 12px 0 16px;
  font-size: 17px;
  line-height: 1.85;
  color: var(--chalk);
  text-wrap: pretty;
}
.dv-ticks {
  display: grid;
  gap: 8px;
}
.dv-ticks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--chalk);
}
.dv-ticks .dv-ic {
  width: 18px;
  height: 18px;
  margin-top: 5px;
  color: var(--bone);
}

/* ---------------------------------------------------------------- เลนส์ทนายไทยธนา */
.dv-lens {
  background: var(--inkwell);
}
.dv-lens__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
  max-width: 1120px;
  margin: 0 auto;
  counter-reset: none;
}
.dv-lens__list li {
  padding-top: 20px;
  border-top: 1px solid var(--pewter);
}
.dv-lens__list li:last-child {
  border-top-color: var(--bone);
}
.dv-lens__k {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
  font-family: var(--f-ui);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--muted);
}
.dv-lens__k span {
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--pewter);
}
.tt-dv .dv-lens__list p {
  font-family: var(--f-display);
  font-size: clamp(18px, 0.3vw + 16px, 20px);
  line-height: 1.75;
  color: var(--paper);
  text-wrap: pretty;
}

/* ---------------------------------------------------------------- บริการ */
.dv-packs__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1140px;
  margin: 0 auto;
}
.dv-pack {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 2.6vw, 34px);
  border-radius: 8px;
  background: var(--graphite);
  box-shadow: var(--shadow-float);
}
.tt-dv .dv-pack__n {
  font-family: var(--f-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.tt-dv .dv-pack__t {
  margin: 8px 0 14px;
  font-family: var(--f-display);
  font-size: clamp(22px, 0.6vw + 18px, 27px);
  font-weight: 500;
  line-height: 1.4;
  text-wrap: balance;
}
.tt-dv .dv-pack__for {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(224, 224, 224, 0.16);
  font-size: 16px;
  line-height: 1.75;
  color: var(--chalk);
}
.dv-pack__for span {
  display: block;
  margin-bottom: 4px;
  font-family: var(--f-ui);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
}
.tt-dv .dv-pack__k {
  margin-bottom: 10px;
  font-family: var(--f-ui);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
}
.tt-dv .dv-pack .dv-ticks li {
  color: var(--bone);
}
.tt-dv .dv-pack__flag {
  margin-top: 18px;
  padding: 3px 10px;
  align-self: flex-start;
  border: 1px solid var(--ash);
  border-radius: 4px;
  font-family: var(--f-ui);
  font-size: 13.5px;
  color: var(--bone);
}
.tt-dv .dv-pack__btn {
  margin-top: auto;
  width: 100%;
}
.dv-pack .dv-ticks {
  margin-bottom: 26px;
}
.dv-pack__flag + .dv-pack__btn {
  margin-top: 22px;
}

/* ---------------------------------------------------------------- ขั้นตอน */
.dv-steps__list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}
.dv-steps__list::before {
  content: "";
  position: absolute;
  left: 16.6%;
  right: 16.6%;
  top: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--ash), var(--pewter), var(--ash));
}
.dv-steps__list li {
  position: relative;
}
.dv-steps__n {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border: 1px solid var(--pewter);
  border-radius: 50%;
  background: var(--canvas);
  font-family: var(--f-display);
  font-size: 26px;
  line-height: 1;
  color: var(--paper);
  box-shadow: 0 0 0 8px var(--canvas);
}
.tt-dv .dv-steps__list h3 {
  font-family: var(--f-display);
  font-size: clamp(20px, 0.5vw + 17px, 24px);
  font-weight: 500;
  line-height: 1.45;
  text-wrap: balance;
}
.tt-dv .dv-steps__list p {
  max-width: 34ch;
  margin: 10px auto 0;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------------------------------------------------------------- รู้ก่อนไปเขต */
.dv-know {
  background: var(--inkwell);
}
.dv-know__item {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 16px clamp(32px, 5vw, 72px);
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(28px, 3vw, 40px) 0;
  border-top: 1px solid var(--ash);
  scroll-margin-top: 120px;
}
.dv-know__item:last-child {
  border-bottom: 1px solid var(--ash);
}
.tt-dv .dv-know__item h3 {
  font-family: var(--f-display);
  font-size: clamp(21px, 0.6vw + 17px, 26px);
  font-weight: 500;
  line-height: 1.45;
  text-wrap: balance;
}
.tt-dv .dv-know__item p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--chalk);
  text-wrap: pretty;
}
.tt-dv .dv-know__item p + p,
.tt-dv .dv-know__item .dv-ticks + p {
  margin-top: 14px;
}

/* ---------------------------------------------------------------- คำถามที่พบบ่อย */
.dv-faq__list {
  max-width: 860px;
  margin: 0 auto;
}
.dv-faq__item {
  border-top: 1px solid var(--ash);
}
.dv-faq__item:last-child {
  border-bottom: 1px solid var(--ash);
}
.dv-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
}
.dv-faq__item summary::-webkit-details-marker {
  display: none;
}
.tt-dv .dv-faq__item h3 {
  font-family: var(--f-display);
  font-size: clamp(19px, 0.4vw + 17px, 22px);
  font-weight: 500;
  line-height: 1.55;
}
.dv-faq__item summary .dv-ic {
  color: var(--muted);
  transition: transform 0.35s var(--ease);
}
.dv-faq__item[open] summary .dv-ic {
  transform: rotate(45deg);
}
.dv-faq__item summary:hover h3 {
  color: var(--bone);
}
.tt-dv .dv-faq__item p {
  max-width: 70ch;
  padding: 0 0 24px;
  font-size: 17px;
  line-height: 1.85;
  color: var(--chalk);
}
.dv-more {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1080px;
  margin: clamp(48px, 5vw, 72px) auto 0;
}
.tt-dv .dv-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 20px;
  border: 1px solid var(--ash);
  border-radius: 8px;
  text-decoration: none;
}
.tt-dv .dv-more a:hover {
  border-color: var(--pewter);
  background: rgba(255, 255, 255, 0.03);
}
.dv-more__k {
  grid-area: k;
  font-family: var(--f-ui);
  font-size: 13px;
  color: var(--muted);
}
.dv-more a > span:nth-child(2) {
  grid-area: t;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--paper);
}
.dv-more .dv-ic {
  grid-area: i;
  color: var(--muted);
}

/* ---------------------------------------------------------------- ปิดท้าย + ฟอร์ม */
.tt-dv .dv-close {
  padding-bottom: clamp(88px, 10vw, 140px);
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 70%),
    var(--canvas);
}
.tt-dv .dv-close__h {
  font-size: clamp(28px, 1.7vw + 18px, 46px);
}
.dv-close__a {
  display: block;
}
.dv-close__b {
  display: block;
  margin-top: 10px;
  font-size: clamp(20px, 0.8vw + 15px, 28px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--chalk);
}
@media (min-width: 992px) {
  .dv-lens__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 960px;
    gap: 40px 64px;
  }
}
.dv-actions--center {
  margin-bottom: clamp(40px, 5vw, 64px);
}
.dv-form {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(24px, 3.4vw, 44px);
  border-radius: 12px;
  background: var(--graphite);
  box-shadow: var(--shadow-float);
}
.tt-dv .dv-form__h {
  margin-bottom: 22px;
  font-family: var(--f-display);
  font-size: clamp(21px, 0.6vw + 17px, 25px);
  font-weight: 500;
  color: var(--paper);
  text-align: center;
}
.dv-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.dv-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.dv-field {
  display: grid;
  gap: 6px;
  margin: 0;
}
.dv-field > span,
.dv-checks legend {
  font-family: var(--f-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--bone);
}
.tt-dv .dv-field input,
.tt-dv .dv-field select,
.tt-dv .dv-field textarea {
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 11px 14px;
  border: 1px solid var(--slate);
  border-radius: 8px;
  background: var(--inkwell);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  box-shadow: none;
  color-scheme: dark;
}
.tt-dv .dv-field textarea {
  min-height: 112px;
  resize: vertical;
}
.tt-dv .dv-field input:focus,
.tt-dv .dv-field select:focus,
.tt-dv .dv-field textarea:focus {
  border-color: var(--bone);
  outline: none;
}
.tt-dv .dv-field input:focus-visible,
.tt-dv .dv-field select:focus-visible,
.tt-dv .dv-field textarea:focus-visible {
  outline: 2px solid var(--bone);
  outline-offset: 1px;
}
.tt-dv .dv-field input[aria-invalid="true"] {
  border-color: var(--seal-soft);
}
.tt-dv .dv-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 4px 0 18px;
}
.dv-checks legend {
  grid-column: 1 / -1;
  float: left;
  width: 100%;
  margin-bottom: 4px;
}
.dv-checks label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--ash);
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--chalk);
  cursor: pointer;
}
.dv-checks label:hover {
  border-color: var(--pewter);
}
.tt-dv .dv-checks input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #d9d9d9;
}
.dv-checks label:has(input:checked) {
  border-color: var(--bone);
  color: var(--paper);
  background: rgba(255, 255, 255, 0.04);
}
.tt-dv .dv-form__fine {
  margin: 16px 0 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.tt-dv .dv-form__fine a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tt-dv .dv-form__send {
  width: 100%;
}
.tt-dv .dv-form__send[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.tt-dv .dv-form__msg {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--bone);
  text-align: center;
}
.tt-dv .dv-form__msg.is-error {
  color: var(--seal-soft);
}
.tt-dv .dv-note {
  max-width: 760px;
  margin: clamp(40px, 5vw, 64px) auto 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--pewter);
  text-align: center;
}

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

/* ---------------------------------------------------------------- จอเล็ก */
@media (max-width: 991.98px) {
  .dv-lens__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dv-packs__grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 640px;
  }
  .dv-more {
    grid-template-columns: minmax(0, 1fr);
    max-width: 640px;
  }
}
@media (max-width: 767.98px) {
  .tt-dv {
    font-size: 16.5px;
  }
  .dv-redline {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "t"
      "risk"
      "to"
      "fix";
    gap: 14px;
  }
  .dv-redline__to {
    transform: rotate(90deg);
  }
  .dv-matters__grid,
  .dv-lens__list,
  .dv-know__item,
  .dv-form__row,
  .tt-dv .dv-checks {
    grid-template-columns: minmax(0, 1fr);
  }
  .dv-steps__list {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    text-align: left;
  }
  .dv-steps__list::before {
    left: 28px;
    right: auto;
    top: 28px;
    bottom: 28px;
    width: 1px;
    height: auto;
    background: var(--ash);
  }
  .dv-steps__list li {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 18px;
    padding-bottom: 28px;
  }
  .dv-steps__n {
    grid-row: 1 / 3;
    margin: 0;
  }
  .tt-dv .dv-steps__list p {
    margin: 6px 0 0;
  }
  .tt-dv .dv-btn {
    width: 100%;
  }
  .dv-doc__sheet {
    transform: none;
  }
  .dv-stamp {
    right: -4px;
    top: 50%;
  }
  .dv-doc__sign {
    grid-template-columns: 1fr;
  }
  .dv-doc__sign span:nth-child(n + 3) {
    display: none;
  }

  .dv-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 990;
    display: grid;
    grid-template-columns: 1fr 1.6fr 1fr;
    gap: 6px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(26, 27, 31, 0.96);
    border-top: 1px solid var(--ash);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
  .dv-dock__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 48px;
    border: 1px solid var(--slate);
    border-radius: 4px;
    color: var(--paper);
    font-family: var(--f-ui);
    font-size: 14.5px;
    font-weight: 500;
    text-decoration: none;
  }
  .dv-dock__btn:hover,
  .dv-dock__btn:focus {
    color: var(--paper);
    text-decoration: none;
  }
  .dv-dock__btn--main {
    border-color: var(--bone);
    background: var(--graphite);
  }
  .dv-dock {
    transition: transform 0.4s var(--ease);
  }
  .dv-dock.is-hidden {
    transform: translateY(110%);
  }
  .dv-dock .dv-ic {
    width: 18px;
    height: 18px;
  }
  .tt-dv-body {
    padding-bottom: calc(66px + env(safe-area-inset-bottom));
  }
}

/* ---------------------------------------------------------------- จังหวะเดียวของหน้า: ตราประทับลงกระดาษ แล้วเส้นใต้บรรทัดเสี่ยงค่อยขึ้น */
@media (prefers-reduced-motion: no-preference) {
  .dv-anim .dv-doc__sheet {
    animation: dv-sheet 1.1s var(--ease) 0.1s both;
  }
  .dv-anim .dv-stamp {
    animation: dv-stamp 0.55s cubic-bezier(0.3, 1.4, 0.5, 1) 1.15s both;
  }
  .dv-anim .dv-doc__notes .is-risk mark {
    animation: dv-mark 0.6s ease-out both;
  }
  .dv-anim .dv-doc__notes .is-risk:nth-child(2) mark { animation-delay: 1.75s; }
  .dv-anim .dv-doc__notes .is-risk:nth-child(3) mark { animation-delay: 1.95s; }
  .dv-anim .dv-doc__notes .is-risk:nth-child(4) mark { animation-delay: 2.15s; }
}
@keyframes dv-sheet {
  from { opacity: 0.001; transform: translateY(28px) rotate(-1.2deg); }
  to { opacity: 1; transform: translateY(0) rotate(-1.2deg); }
}
@keyframes dv-stamp {
  0% { opacity: 0; transform: rotate(-14deg) scale(1.45); }
  70% { opacity: 1; transform: rotate(-9deg) scale(0.97); }
  100% { opacity: 1; transform: rotate(-9deg) scale(1); }
}
@keyframes dv-mark {
  from { text-decoration-color: rgba(184, 57, 46, 0); }
  to { text-decoration-color: rgba(184, 57, 46, 0.85); }
}
@media (max-width: 767.98px) {
  @keyframes dv-sheet {
    from { opacity: 0.001; transform: translateY(20px); }
    to { opacity: 1; transform: none; }
  }
}
@media print {
  .dv-dock {
    display: none !important;
  }
}
