/* =========================================================
   Suriya9 — แบบฟอร์มบริจาคโลงศพ (template-donate-form.php) — คลาส .df-*
   ตามดีไซน์ Figma "Create 100% HTML Form" — 3 ขั้นตอน
   โหลดต่อจาก donate.css (ใช้ .dn-divider / .dn-tabs ร่วม)
   ========================================================= */

/* หน้านี้ไม่มี hero รูปเข้ม → เมนูต้องเป็นสีเข้ม (donate.css ตั้งเมนูขาวไว้สำหรับหน้าที่มี hero เข้ม) */
body:has(main.df) .s9-header:not(.is-past-hero) .s9-nav__menu > li > a { color: var(--ink); }
body:has(main.df) .s9-header:not(.is-past-hero) .s9-nav__menu > li > a:hover,
body:has(main.df) .s9-header:not(.is-past-hero) .s9-nav__menu > li > a.is-active { color: var(--gold-deep); }

.df { padding-bottom: 96px; }
.dn.df { overflow: visible; } /* donate.css ตั้ง overflow:hidden → ปฏิทินเลือกวันถูกตัด */

/* ── หัวข้อหน้า ── */
.df-hero { padding-top: 150px; text-align: center; }
.df-hero__h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 48px;
  line-height: 1.2;
  color: #8c0e0f;
}
.df-hero .dn-divider { padding-top: 14px; }

.df-title { margin:40px 0; text-align: center; }
.df-title h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 38px;
  line-height: 1.2;
  color: #111;
}
.df-title p { margin: 0; font-size: 17px; font-weight: 600; color: #111; }

/* ── ขั้นตอน ── */
.df-stepper {
  width: min(500px, calc(100% - 40px));
  margin: 30px auto 42px;
  padding: 0;
  display: flex;
  list-style: none;
}
.df-stepper li { position: relative; flex: 1; text-align: center; color: #b7aa98; }
.df-stepper li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 15px;
  left: calc(50% + 17px);
  width: calc(100% - 34px);
  height: 1px;
  background: #dfd6c8;
}
.df-stepper span {
  position: relative;
  z-index: 1;
  width: 31px;
  height: 31px;
  margin: auto;
  display: grid;
  place-items: center;
  border: 1px solid #d8ccb9;
  border-radius: 50%;
  background: #fff;
  font-size: 14px;
}
.df-stepper small { display: block; margin-top: 5px; font-size: 12px; }
.df-stepper .is-done { color: #a67c1e; }
.df-stepper .is-done span { color: #fff; border-color: #b78c26; background: linear-gradient(135deg, #a67c1e, #d4af37); }
.df-stepper .is-done:not(:last-child)::after { background: #c49b3b; }

/* ── โครงหลัก ── */
.df-wrap { width: min(1172px, calc(100% - 48px)); margin: 0 auto; }
.df-step { display: flex; flex-direction: column; gap: 16px; }
.df-step[hidden] { display: none; }

.df-card {
  padding: 28px 24px;
  border: 1px solid rgba(209, 209, 209, 0.55);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(210, 199, 154, 0.3);
}
.df-head { margin-bottom: 18px; }
.df-head h3 {
  margin: 0;
  font-family: var(--font-display); /* ฟอนต์แบบที่ 2 (ลูกค้าเลือก): Sao Chingcha ตัวหนา */
  font-weight: 700;
  font-size: 24px;
  line-height: 1.35;
  color: #1f1f1f;
}
.df-head p { margin: 4px 0 0; font-size: 15px; font-weight: 500; color: #6b6b6b; }
.df-head--plain h3 { font-size: 24px; }
.df-head--plain p { font-size: 15px; font-weight: 500; color: #6b6b6b; }

/* ── ช่องกรอก ── */
.df input[type="text"],
.df input[type="tel"],
.df input[type="email"],
.df input[type="number"],
.df input[type="date"],
.df textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  border: 1px solid rgba(166, 124, 30, 0.4);
  border-radius: 9px;
  outline: none;
  background: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: #212529;
}
.df input:focus, .df textarea:focus { border-color: #a67c1e; box-shadow: 0 0 0 3px rgba(166, 124, 30, 0.1); }
.df input::placeholder, .df textarea::placeholder { color: rgba(117, 117, 117, 0.6); }
.df-label { margin: 0 0 7px; font-size: 15px; font-weight: 700; }
.df-cols { display: grid; gap: 24px; }
.df-cols--2 { grid-template-columns: repeat(2, 1fr); }
.df-cols--3 { grid-template-columns: repeat(3, 1fr); }
.df-cols label { font-size: 15px; font-weight: 700; }
.df-cols label input { margin-top: 7px; }
/* ไม่ประสงค์ออกนาม — ปุ่มแคปซูลครีม (ตามรูปที่ลูกค้าเลือก) */
.df-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 8px 16px;
  border: 1px solid rgba(166, 124, 30, 0.35);
  border-radius: 8px;
  background: #f5ecdc;
  font-size: 14px;
  font-weight: 700;
  color: #5b2a1a;
  cursor: pointer;
  user-select: none;
}
.df-check input { width: 16px; height: 16px; margin: 0; accent-color: #a67c1e; }
.df-note { display: block; margin-top: 16px; font-size: 15px; }
.df-note textarea { display: block; margin-top: 7px; min-height: 100px; resize: vertical; line-height: 1.6; }

/* ── 1. รายการบริจาค ── */
.df-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.df-option {
  position: relative;
  min-height: 116px;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: #a67c1e;
  border: 1px solid rgba(166, 124, 30, 0.4);
  border-radius: 18px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.df-option input, .df-amounts input { position: absolute; opacity: 0; pointer-events: none; }
.df-option.is-selected { color: #fff; border-color: transparent; background: linear-gradient(80deg, #a67c1e, #d4af37); }
.df-option__ic {
  flex-shrink: 0;
  width: 54px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 208, 102, 0.5);
  font-size: 25px;
}
.df-option__ic svg { display: block; }
.df-option.is-selected .df-option__ic { background: rgba(255, 255, 255, 0.28); }
.df-option strong { display: block; font-size: 21px; }
.df-option small { display: block; margin-top: 7px; font-size: 14px; font-weight: 600;}

/* ── 2. จำนวนเงิน ── */
.df-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.df-amounts label {
  position: relative;
  font-weight: 700;
  height: 55px;
  display: grid;
  place-items: center;
  color: #a67c1e;
  border: 1px solid rgba(166, 124, 30, 0.4);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.df-amounts label.is-selected { color: #fff; border-color: transparent; background: linear-gradient(93deg, #a67c1e, #d4af37); }
.df-custom { font-weight: 600; margin-top: 12px; display: flex; justify-content: flex-end; align-items: center; gap: 20px; color: #a67c1e; }
.df-custom input { max-width: 267px; }
/* ซ่อนปุ่มลูกศรขึ้น-ลงของช่องตัวเลข */
.df input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.df input[type="number"]::-webkit-inner-spin-button,
.df input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* ── ปุ่ม ── */
.df-btn {
  min-width: 335px;
  padding: 8px 28px; /* padding บน/ล่าง 8px ตามกติกาปุ่มทั้งเว็บ */
  display: inline-grid;
  place-items: center;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.df-btn--gold {
  align-self: center;
  color: #fff;
  border: 1px solid #fff;
  background: linear-gradient(93deg, #a67c1e, #d4af37);
  box-shadow: 0 10px 12px rgba(166, 124, 30, 0.35);
}
.df-btn--outline { color: #a67c1e; border: 1px solid #a67c1e; background: #fff; }
.df-btn--sm { min-width: 180px; font-size: 13px; }
.df-required { margin: 2px 0 0; text-align: center; color: #7d1d2a; font-size: 14px; font-weight: 700; }
.df-privacy { margin: -6px 0 0; text-align: center; color: #6e7b5b; font-size: 14px; font-weight: 700; }
.df-error { margin: 4px auto 0; color: #a4161a; text-align: center; font-weight: 600; }
.df-actions { display: flex; justify-content: center; gap: 18px; margin-top: 8px; }

/* ── ใบอนุโมทนาบุญ ── */
.df-summary { padding: 32px 24px; text-align: center; border-color: #e4d9c4; }
.df-summary h3 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.35; color: #1f1f1f; }
.df-summary > small { display: block; margin-top: 4px; color: #6b6b6b; font-size: 15px; font-weight: 500; }
.df-summary dl { margin: 26px 0 0; border-top: 1px solid #eee5d9; text-align: left; }
.df-summary dl div {
  min-height: 46px;
  padding: 12px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #eee5d9;
}
.df-summary dt { color: #6b6055; }
.df-summary dd { margin: 0; font-weight: 600; text-align: right; }
.df-summary__total { color: #8c0e0f; font-size: 28px; }
.df-summary__total small { font-size: 12px; color: #6b6055; }

/* ── ช่องทางการชำระ ── */
.df-pay { padding: 16px 0; }
/* ตามดีไซน์: คอลัมน์ QR แคบ / ขอบล่างรูป QR ตรงกับขอบล่างการ์ดบัญชี / ปุ่มดาวน์โหลดอยู่ใต้รูป */
.df-pay__grid {
  display: grid;
  grid-template-columns: 330px 1fr;
  grid-template-rows: auto auto;
  column-gap: 30px;
  align-items: stretch;
}
.df-qr { display: contents; }
.df-qr > img { grid-column: 1; grid-row: 1; width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.df-qr .df-btn { grid-column: 1; grid-row: 2; justify-self: center; }
.df-bank { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; }
.df-bank .df-account { flex: 1; }
.df-qr .df-btn { margin: 16px auto 0; }
.df-bank h3 { margin: 0 0 18px; font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.35; color: #1f1f1f; }
.df-bank__tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.df-bank__tabs button {
  height: 100px;
  padding: 0;
  overflow: hidden;
  border: 3px solid transparent;
  border-radius: 11px;
  background: transparent;
  cursor: pointer;
}
.df-bank__tabs button { position: relative; }
.df-bank__tabs button.is-selected { border-color: #d4af37; }
.df-bank__tabs button.is-selected::after {
  content: "✓";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1.5px solid #fff;
  border-radius: 50%;
  background: #d4af37;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
/* โลโก้อยู่ครบไม่โดนครอป + พื้นสีประจำธนาคาร (ตามดีไซน์) */
.df-bank__tabs button { height: 112px; padding: 18px 22px; }
.df-bank__tabs button[data-bank="scb"]   { background: #4f2a81; }
.df-bank__tabs button[data-bank="kbank"] { background: #00a94e; }
.df-bank__tabs button[data-bank="bbl"]   { background: #00339d; }
.df-bank__tabs img { width: 100%; height: 100%; object-fit: contain; }
.df-account {
  position: relative;
  min-height: 164px;
  margin-top: 24px;
  padding: 28px;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 20px;
  border: 1px dashed #a67c1e;
  border-radius: 12px;
  background: #fffdf7;
}
.df-account__ic { width: 52px; height: 52px; display: grid; place-items: center; }
.df-account__ic img { width: 52px; height: 52px; object-fit: cover; border-radius: 50%; display: none; }
/* ไอคอนเปลี่ยนตามธนาคารที่เลือก (data-bank ตั้งโดย donate-form.js) */
.df-account[data-bank="scb"] .df-account__ic .is-scb,
.df-account[data-bank="kbank"] .df-account__ic .is-kbank,
.df-account[data-bank="bbl"] .df-account__ic .is-bbl { display: block; }
.df-account p { margin: 0; line-height: 1.5; }
.df-account p span { display: block; font-weight: 600; }
.df-account strong { font-size: 30px; font-weight: 700; letter-spacing: 0.02em; }
.df-account__copy {
  position: absolute;
  right: 24px;
  bottom: 16px;
  padding: 5px 22px;
  color: #fff;
  border: 0;
  border-radius: 50px;
  background: linear-gradient(90deg, #a67c1e, #d4af37);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
}

/* ── แนบสลิป + วันที่โอน ── */
.df-upload__head { margin: 24px 0 0; }
.df-upload { padding: 30px; }
.df-upload__grid { display: grid; grid-template-columns: 1.4fr 0.7fr; gap: 0; }
.df-drop { padding-right: 28px; }
.df-date { padding-left: 28px; border-left: 1px dashed #d8ccb9; }
.df-drop, .df-date { position: relative; display: block; }
.df-drop strong, .df-date strong { display: block; font-size: 15px; font-weight: 700; }
.df-drop small, .df-date small { display: block; margin: 4px 0 12px; color: #6b6b6b; font-size: 15px; font-weight: 500; }
.df-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.df-drop__box {
  min-height: 160px;
  padding: 16px;
  display: grid;
  place-items: center;
  border: 1px dashed #a67c1e;
  border-radius: 8px;
  background: #fffaf0;
  font-size: 20px;
  text-align: center;
  cursor: pointer;
  word-break: break-all;
}
.df-drop__box { gap: 8px; align-content: center; font-size: 14px; color: #a67c1e; }
.df-drop__box img { max-width: 100%; max-height: 560px; width: auto; height: auto; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14); } /* แสดงสลิปเต็มใบ */
.df-date input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.df-date__box {
  min-height: 66px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  border: 1px dashed #a67c1e;
  border-radius: 8px;
  background: #fffaf0;
  font-family: var(--font-display);
  font-size: 26px;
  color: #111;
  cursor: pointer;
}

/* ── ปฏิทินเลือกวันโอน (donate-form.js สร้าง) ── */
.df-date__box::after {
  content: "";
  width: 22px;
  height: 22px;
  margin-left: auto;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a67c1e' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.df-date__box { width: 100%; gap: 12px; text-align: left; line-height: 1.2; }
.df-date.has-date .df-date__box { color: #8c0e0f; }
/* กดปุ่ม "เลือกวันโอน" → ปุ่มกลายเป็นกล่องปฏิทินในช่องเดิม (ไม่ลอยทับหน้า) */
.df-cal {
  width: 100%;
  padding: 16px;
  border: 1px dashed #a67c1e;
  border-radius: 8px;
  background: #fffaf0;
  font-family: var(--font-body);
}
.df-date.is-open .df-date__box { display: none; }
.df-cal[hidden] { display: none; }
.df-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.df-cal__title { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: #1f1f1f; }
.df-cal__nav {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(166, 124, 30, 0.35);
  border-radius: 50%;
  background: #fff;
  color: #a67c1e;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.df-cal__nav:hover:not(:disabled) { background: #fbf4e4; }
.df-cal__nav:disabled { opacity: 0.3; cursor: default; }
.df-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.df-cal__wd { padding: 4px 0; font-size: 13px; font-weight: 700; color: #a67c1e; }
.df-cal__day {
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 15px;
  color: #212529;
  cursor: pointer;
}
.df-cal__day:hover:not(:disabled) { background: #f3e6c8; }
.df-cal__day.is-other { color: #c9c0b2; }
.df-cal__day.is-today { box-shadow: inset 0 0 0 1.5px #d4af37; font-weight: 700; }
.df-cal__day.is-selected { background: linear-gradient(135deg, #a67c1e, #d4af37); color: #fff; font-weight: 700; box-shadow: 0 4px 10px rgba(166, 124, 30, 0.35); }
.df-cal__day:disabled { color: #ddd5c8; cursor: default; }
.df-cal__foot { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 10px; border-top: 1px solid #f0e8d8; }
.df-cal__foot button { border: 0; background: none; font-family: var(--font-body); font-size: 14px; font-weight: 700; color: #a67c1e; cursor: pointer; }

/* ── สำเร็จ ── */
.df-success {
  min-height: 296px;
  display: grid;
  place-items: center;
  border: 1px dashed #57c02e;
  border-radius: 8px;
  background: #f2fff1;
}
.df-success h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 48px; color: #0c5800; }
.df-blessing { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 8px; }
.df-blessing img { width: 100%; height: auto; display: block; }

/* ── จอเล็ก (ตามดีไซน์ export — มือถือจะปรับละเอียดอีกรอบ) ── */
@media (max-width: 1100px) {
  .df-options { grid-template-columns: 1fr; }
  .df-pay__grid { grid-template-columns: 290px 1fr; }
}
@media (max-width: 767px) {
  .df-hero { padding-top: 110px; }
  .df-hero__h1 { font-size: 30px; }
  .df-title h2 { font-size: 28px; }
  .df-title p { padding: 0 20px; font-size: 14px; }
  .df-stepper { margin-bottom: 26px; }
  .df-wrap { width: calc(100% - 32px); }
  .df-card { padding: 22px 16px; }
  .df-head h3 { font-size: 20px; }
  .df-head p { font-size: 14px; }
  .df-amounts { grid-template-columns: repeat(2, 1fr); }
  .df-custom { flex-direction: column; align-items: stretch; gap: 8px; }
  .df-custom input { max-width: none; }
  .df-btn { width: 100%; min-width: 0; }
  .df-cols--2, .df-cols--3, .df-pay__grid, .df-upload__grid, .df-blessing { grid-template-columns: 1fr; }
  .df-cols--3 { gap: 12px; }
  .df-pay__grid, .df-upload__grid { gap: 28px; }
  .df-drop { padding-right: 0; }
  .df-date { padding: 24px 0 0; border-left: 0; border-top: 1px dashed #d8ccb9; }
  .df-pay__grid { grid-template-columns: 1fr; grid-template-rows: auto; row-gap: 0; }
  .df-qr > img { grid-row: 1; justify-self: center; width: 100%; max-width: 340px; height: auto; }
  .df-qr .df-btn { grid-row: 2; }
  .df-bank { grid-column: 1; grid-row: 3; margin-top: 28px; }
  .df-bank__tabs { gap: 7px; }
  .df-bank__tabs button { height: 72px; }
  .df-account { grid-template-columns: 44px 1fr; padding: 20px 16px 56px; }
  .df-account img { width: 42px; height: 42px; }
  .df-account strong { grid-column: 1 / -1; font-size: 24px; text-align: center; }
  .df-actions { flex-direction: column-reverse; }
  .df-success { min-height: 200px; }
  .df-success h2 { font-size: 38px; }
}

/* =========================================================
   TABLET (768–1100) — ออกแบบเอง: เลย์เอาต์ desktop แบบย่อ
   ========================================================= */
.df-substeps { display: none; }
@media (min-width: 768px) and (max-width: 1100px) {
  .df-hero { padding-top: 130px; }
  .df-hero__h1 { font-size: 42px; }
  .df-wrap { width: calc(100% - 64px); }
  /* รายการบริจาค 3 ใบเรียงแถว — ไอคอนอยู่บน ข้อความจัดกลาง */
  .df-options { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .df-option { flex-direction: column; justify-content: center; gap: 12px; padding: 20px 14px; text-align: center; }
  .df-option strong { font-size: 19px; }
  .df-option small br { display: none; }
  .df-amounts { gap: 12px; }
  .df-cols { gap: 16px; }
  .df-btn { min-width: 300px; }
  .df-btn--sm { min-width: 0; padding-left: 22px; padding-right: 22px; }
  /* ช่องทางการชำระ: QR แคบลง */
  .df-pay__grid { grid-template-columns: 250px 1fr; column-gap: 22px; }
  .df-bank__tabs { gap: 10px; }
  .df-bank__tabs button { height: 84px; padding: 12px 14px; }
  .df-account { padding: 22px; gap: 14px; grid-template-columns: 52px 1fr; }
  .df-account strong { grid-column: 1 / -1; font-size: 26px; }
  .df-upload__grid { grid-template-columns: 1.2fr 1fr; }
  .df-drop { padding-right: 20px; }
  .df-date { padding-left: 20px; }
}

/* =========================================================
   MOBILE (≤767) — ตามดีไซน์มือถือ
   ========================================================= */
@media (max-width: 767px) {
  .df-hero { padding-top: 104px; }
  .df-hero__h1 { font-size: 30px; }
  .df-title h2 { font-size: 24px; }
  .df-title p { font-size: 16px; line-height: 1.5; color: #6b6b6b; }

  /* หัวข้อการ์ดจัดกลาง */
  .df-head { text-align: center; }
  .df-head h3 { font-size: 22px; }

  /* ── ขั้นกรอกข้อมูล: 5 หน้าย่อย (donate-form.js ใส่ .is-wizard) ── */
  .is-wizard .df-card { display: none; }
  .is-wizard .df-card.is-current { display: block; }
  .df-substeps {
    display: flex;
    align-items: center;
    margin: 4px 4px 4px;
    padding: 0;
    list-style: none;
  }
  .df-substeps li { position: relative; flex: 1; display: flex; align-items: center; }
  .df-substeps li:last-child { flex: 0 0 auto; }
  .df-substeps li:not(:last-child)::after {
    content: "";
    flex: 1;
    height: 2px;
    margin: 0 4px;
    background: #d9d4cc;
  }
  .df-substeps li.is-done::after { background: #d4a017; }
  .df-substeps button {
    position: relative;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 2px solid #c9c4bd;
    border-radius: 50%;
    background: #fff;
    cursor: default;
  }
  .df-substeps button::before {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: #c9c4bd;
  }
  .df-substeps li:last-child:not(.is-current):not(.is-done) button::before { display: none; }
  .df-substeps .is-current button { border-color: #d4a017; }
  .df-substeps .is-current button::before { background: #d4a017; }
  .df-substeps .is-done button { border-color: #d4a017; background: #d4a017; cursor: pointer; }
  .df-substeps .is-done button::before {
    content: "✓";
    inset: 0;
    display: grid;
    place-items: center;
    background: none;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
  }

  /* จำนวนเงิน: ปุ่มเรียงลงทีละแถว */
  .df-amounts { grid-template-columns: 1fr; gap: 12px; }
  .df-amounts label { height: 52px; font-size: 20px; }
  .df-custom { align-items: center; margin-top: 16px; font-size: 20px; }
  .df-custom input { text-align: center; font-size: 18px; }
  .df-cols label { font-size: 17px; }

  /* ปุ่มกลางจอ ไม่เต็มความกว้าง */
  .df-btn { width: auto; min-width: 72%; justify-self: center; }
  .df-btn--sm { min-width: 0; padding-left: 24px; padding-right: 24px; }
  /* ข้อความใต้ปุ่มไม่มีในดีไซน์มือถือ */
  .df-required, .df-privacy { display: none; }

  /* ── ขั้นชำระเงิน ── */
  .df-pay .df-head--plain, .df-upload__head { text-align: center; }
  .df-qr > img { max-width: 220px; }
  .df-bank h3 { display: none; }
  .df-bank__tabs { gap: 8px; }
  .df-bank__tabs button { height: 54px; padding: 6px 8px; border-radius: 8px; border-width: 2px; }
  .df-bank__tabs button.is-selected::after { top: 3px; right: 3px; width: 16px; height: 16px; font-size: 10px; }
  .df-account {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
    padding: 28px 16px;
    text-align: center;
  }
  .df-account__ic { display: none; }
  .df-account p { font-size: 18px; }
  .df-account strong { font-size: 28px; }
  .df-account__copy { position: static; padding: 8px 28px; }
  .df-drop__box { min-height: 200px; }
}

/* ── ข้อ 6 ยอมรับเงื่อนไข ── */
.df-req { color: #b3261e; }
.df-terms__box { max-height: 240px; overflow-y: auto; padding: 16px 20px; border: 1px solid rgba(166, 124, 30, 0.3); border-radius: 9px; background: #fbf8f2; font-size: 14px; line-height: 1.75; color: #4a4a4a; overscroll-behavior: contain; }
.df-terms__box:focus { outline: 2px solid rgba(166, 124, 30, 0.35); outline-offset: 2px; }
.df-terms__box p { margin: 0 0 12px; }
.df-terms__box p:last-child { margin: 0; }
.df-terms__box strong { color: #1f1f1f; }
.df-terms__box::-webkit-scrollbar { width: 8px; }
.df-terms__box::-webkit-scrollbar-thumb { border-radius: 8px; background: #d9c79a; }
.df-accept { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px 18px; border: 1px solid rgba(166, 124, 30, 0.35); border-radius: 8px; background: #f5ecdc; font-size: 15px; font-weight: 700; color: #5b2a1a; cursor: pointer; user-select: none; }
.df-accept input { width: 20px; height: 20px; margin: 0; accent-color: #a67c1e; cursor: pointer; }
.df-accept.is-invalid { border-color: #b3261e; box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.12); }
.df-terms__more { display: inline-block; margin: 14px 0 0 16px; font-size: 14px; font-weight: 600; color: #94641e; }
@media (max-width: 767px) {
  .df-terms__box { max-height: 280px; padding: 14px 16px; }
  .df-accept { display: flex; width: 100%; }
  .df-terms__more { display: block; margin: 12px 0 0; }
}

/* ── หมายเลขอ้างอิงหลังส่งสำเร็จ ── */
.df-ref { margin: 14px 0 0; font-size: 17px; color: #4a4a4a; }
.df-ref b { display: inline-block; margin-left: 6px; padding: 4px 16px; border-radius: 100px; background: #f5ecdc; font-size: 20px; letter-spacing: 0.04em; color: #94641e; }
.df-ref-note { margin: 12px auto 0; font-size: 15px; line-height: 1.7; color: #6b6b6b; }
.df-ref-note a { color: #94641e; font-weight: 600; }
.df-btn:disabled { opacity: 0.7; cursor: wait; }
.df-turnstile { display: flex; justify-content: center; margin: 4px 0 12px; }
@media (max-width: 767px) { .df-drop__box img { max-height: 480px; } }
