/* ================================================================
   ช.ที.เอ็ม ลิสซิ่ง — ระบบดีไซน์เว็บไซต์
   สีม่วงตาม CI: ม่วง 60% / ขาว-ม่วงอ่อน 25% / เหลือง-แดง 15%
   หัวข้อ Kanit · เนื้อความ Sarabun
   ================================================================ */

:root {
  /* ── สีหลัก ── */
  --purple-deep:    #200553;
  --purple-navy:    #2E0C75;
  --purple-mid:     #5A2F9B;
  --purple-bright:  #6E19D6;
  --purple-soft:    #AF74E1;
  --lavender:       #B890EA;
  --lavender-pale:  #E9DBF9;
  --lavender-mist:  #E1D4EE;

  /* ── สีเน้น ── */
  --yellow:         #F6E123;
  --red:            #F0343A;

  /* ── กลาง ── */
  --white:          #FFFFFF;
  --ink:            #1C1330;
  --ink-soft:       #4A4162;
  --ink-mute:       #7A7192;
  --line:           #EAE4F2;
  --bg-soft:        #F8F6FC;

  /* ── ตัวอักษร ── */
  --font-head: 'Kanit', 'Noto Sans Thai', sans-serif;
  --font-body: 'Sarabun', 'Noto Sans Thai', sans-serif;

  /* ── ระยะ / มุมโค้ง / เงา ── */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-sm: 0 2px 8px rgba(32, 5, 83, .06);
  --shadow-md: 0 8px 28px rgba(32, 5, 83, .10);
  --shadow-lg: 0 20px 56px rgba(32, 5, 83, .16);
  --wrap: 1180px;
  --nav-h: 72px;
}

/* ── รีเซ็ต ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--purple-bright); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--purple-bright); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.25;
  color: var(--purple-deep);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 1.35rem + 2.7vw, 3.25rem); }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.35rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); font-weight: 500; }
h4 { font-size: 1.1rem; font-weight: 500; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

/* ── โครงหน้า ── */
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(56px, 7vw, 104px) 0; }
.section--tight { padding: clamp(40px, 5vw, 68px) 0; }
.section--soft { background: var(--bg-soft); }
.section--lav { background: linear-gradient(180deg, var(--lavender-pale), var(--white)); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(32px, 4vw, 56px); }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; margin: 0; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 500;
  font-size: .875rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--purple-bright); background: var(--lavender-pale);
  padding: 6px 16px; border-radius: 999px; margin-bottom: 14px;
}

/* ── ปุ่ม ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 500; font-size: 1rem;
  padding: 14px 30px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--purple-bright); color: var(--white); box-shadow: 0 6px 20px rgba(110, 25, 214, .3); }
.btn--primary:hover { background: #7d2ae8; box-shadow: 0 10px 28px rgba(110, 25, 214, .4); }
.btn--accent  { background: var(--red); color: var(--white); box-shadow: 0 6px 20px rgba(240, 52, 58, .3); }
.btn--accent:hover { background: #ff4a50; box-shadow: 0 10px 28px rgba(240, 52, 58, .4); }
.btn--ghost   { background: var(--white); color: var(--purple-bright); border-color: var(--lavender-mist); }
.btn--ghost:hover { border-color: var(--purple-bright); background: var(--lavender-pale); }
.btn--onDark  { background: rgba(255,255,255,.14); color: var(--white); border-color: rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn--onDark:hover { background: rgba(255,255,255,.24); }
.btn--sm { padding: 10px 22px; font-size: .95rem; }
.btn--lg { padding: 17px 38px; font-size: 1.08rem; }

/* ================================================================
   หัวเว็บ
   ================================================================ */
.topbar {
  background: var(--purple-deep); color: rgba(255,255,255,.85);
  font-size: .875rem; padding: 7px 0;
}
.topbar .wrap { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.topbar a { color: rgba(255,255,255,.85); display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: var(--yellow); text-decoration: none; }
.topbar .spacer { margin-inline-start: auto; }

.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 18px; height: var(--nav-h); }
.nav__logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.nav__logo img { height: 40px; width: auto; }
.nav__logo span { font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; color: var(--purple-deep); }
.nav__links { display: flex; gap: 4px; margin-inline-start: auto; align-items: center; }
.nav__links > li { position: relative; list-style: none; }
.nav__links a {
  display: block; padding: 10px 15px; border-radius: var(--r-sm);
  font-family: var(--font-head); font-weight: 400; font-size: .98rem; color: var(--ink);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { background: var(--lavender-pale); color: var(--purple-bright); text-decoration: none; }
.nav__list { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; align-items: center; }

.has-sub > a::after {
  content: ''; display: inline-block; width: 6px; height: 6px; margin-inline-start: 7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); opacity: .55;
}
.sub {
  position: absolute; top: calc(100% + 6px); inset-inline-start: 0; min-width: 250px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-md); padding: 8px; margin: 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: translateY(0); }
.sub a { font-size: .95rem; padding: 10px 14px; }

.nav__cta { display: flex; gap: 10px; flex-shrink: 0; }
.nav__burger {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line);
  background: var(--white); border-radius: var(--r-sm); cursor: pointer;
  align-items: center; justify-content: center; margin-inline-start: auto;
}
.nav__burger span { display: block; width: 20px; height: 2px; background: var(--purple-deep); position: relative; }
.nav__burger span::before, .nav__burger span::after {
  content: ''; position: absolute; left: 0; width: 20px; height: 2px; background: var(--purple-deep);
}
.nav__burger span::before { top: -6px; } .nav__burger span::after { top: 6px; }

/* ================================================================
   ฮีโร่หน้าแรก
   ================================================================ */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(1100px 620px at 82% -12%, rgba(175,116,225,.55), transparent 62%),
    radial-gradient(760px 520px at 8% 110%, rgba(110,25,214,.60), transparent 64%),
    radial-gradient(420px 320px at 62% 96%, rgba(246,225,35,.12), transparent 70%),
    linear-gradient(150deg, #1B0448 0%, #2E0C75 44%, #4A1C93 100%);
}
/* เส้นตารางจางๆ ให้พื้นม่วงมีเนื้อ ไม่แบน */
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 78%);
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(32px, 4vw, 64px); align-items: center;
  padding: clamp(52px, 6.5vw, 96px) 0;
}
.hero h1 { color: var(--white); margin-bottom: .38em; letter-spacing: -.02em; }
.hero__tag {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.24);
  color: rgba(255,255,255,.94); font-family: var(--font-head); font-size: .9rem;
  padding: 8px 18px; border-radius: 999px; margin-bottom: 22px; backdrop-filter: blur(8px);
}
.hero__tag svg { color: var(--yellow); }
.hero__lead { font-size: 1.1rem; color: rgba(255,255,255,.82); max-width: 36ch; margin-bottom: 28px; }
.hero__pills { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 32px; padding: 0; list-style: none; }
.hero__pills li {
  display: flex; align-items: center; gap: 8px; font-size: .92rem; color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  padding: 8px 15px; border-radius: 999px;
}
.hero__pills svg { flex-shrink: 0; color: var(--yellow); }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* กล่องเลือกประเภทสินเชื่อในหัวเว็บ — ให้ลูกค้าเริ่มได้ทันที */
.picker {
  background: rgba(255,255,255,.97); border-radius: var(--r-xl);
  box-shadow: 0 30px 70px rgba(12,2,40,.42); padding: 26px;
  border: 1px solid rgba(255,255,255,.5);
}
.picker__head { font-family: var(--font-head); font-weight: 500; font-size: 1.06rem; color: var(--purple-deep); margin-bottom: 4px; }
.picker__sub { font-size: .92rem; color: var(--ink-mute); margin-bottom: 18px; }
.picker__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.picker__item {
  display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center;
  padding: 16px 8px; border-radius: var(--r-md); border: 1px solid var(--line);
  background: var(--white); color: var(--ink); text-decoration: none;
  font-size: .84rem; line-height: 1.35; transition: all .18s ease;
}
.picker__item:hover {
  text-decoration: none; border-color: var(--purple-bright); background: var(--lavender-pale);
  transform: translateY(-2px); box-shadow: var(--shadow-sm);
}
.picker__item i {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px;
  background: linear-gradient(140deg, var(--lavender-pale), var(--lavender-mist)); color: var(--purple-bright);
}
.picker__item:hover i { background: linear-gradient(140deg, var(--purple-bright), var(--purple-mid)); color: var(--white); }
.picker__foot { margin-top: 16px; font-size: .86rem; color: var(--ink-mute); text-align: center; }

/* แถบตัวเลขความน่าเชื่อถือ */
.trust { background: var(--white); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: 34px 28px; margin-top: -52px; position: relative; z-index: 5; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.trust__num { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); color: var(--purple-bright); line-height: 1.1; }
.trust__lbl { font-size: .95rem; color: var(--ink-soft); }
.trust__item + .trust__item { border-inline-start: 1px solid var(--line); }

/* ================================================================
   การ์ด
   ================================================================ */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column; height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--lavender-mist); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--ink-soft); font-size: .98rem; }
.card__icon {
  width: 56px; height: 56px; border-radius: var(--r-md); margin-bottom: 18px;
  background: linear-gradient(135deg, var(--lavender-pale), var(--lavender-mist));
  display: grid; place-items: center; color: var(--purple-bright);
}
.card__more { margin-top: auto; padding-top: 16px; font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--purple-bright); display: inline-flex; align-items: center; gap: 6px; }
.card--link { text-decoration: none; color: inherit; }
.card--link:hover { text-decoration: none; }
.card--link:hover .card__more { gap: 11px; }

/* การ์ดสินเชื่อ — ไอคอน + ไล่สี ไม่ใช้ภาพถ่าย (ภาพเดิมเป็นแบนเนอร์โซเชียลคนละอารมณ์) */
.prod {
  position: relative; overflow: hidden; padding: 30px 28px 26px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.prod::after {
  content: ''; position: absolute; inset-inline-end: -70px; top: -70px;
  width: 190px; height: 190px; border-radius: 50%;
  background: radial-gradient(circle, var(--lavender-pale), transparent 68%);
  transition: opacity .22s ease; opacity: .9; pointer-events: none;
}
.prod:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--lavender-mist); text-decoration: none; }
.prod:hover::after { opacity: 1; }
.prod > * { position: relative; z-index: 1; }
.prod__icon {
  width: 58px; height: 58px; border-radius: 17px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--purple-bright), var(--purple-mid));
  color: var(--white); margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(110, 25, 214, .26);
}
.prod h3 { margin-bottom: .4em; font-weight: 600; }
.prod > p { color: var(--ink-soft); font-size: .97rem; margin-bottom: 18px; }
.prod__specs { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.prod__specs li { display: flex; gap: 9px; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); }
.prod__specs svg { flex-shrink: 0; margin-top: 4px; color: var(--purple-soft); width: 15px; height: 15px; }
.prod__more { margin-top: auto; font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--purple-bright); display: inline-flex; align-items: center; gap: 7px; }
.prod:hover .prod__more { gap: 12px; }
.prod__flag {
  position: absolute; top: 18px; inset-inline-end: 18px; z-index: 2;
  background: var(--yellow); color: var(--purple-deep); font-family: var(--font-head);
  font-size: .76rem; font-weight: 500; padding: 4px 12px; border-radius: 999px;
}

/* ไอคอนหัวข้อในการ์ดทั่วไป — ใช้สีม่วงอ่อนไล่เฉด */
.card__icon svg { width: 26px; height: 26px; }

/* ภาพประกอบ "เอกสารที่ต้องใช้" — วาดด้วย CSS ไม่ใช้รูปถ่าย */
.docviz {
  position: relative; border-radius: var(--r-xl); padding: clamp(26px, 3vw, 40px);
  background: linear-gradient(150deg, #2E0C75, #6E19D6);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.docviz::after {
  content: ''; position: absolute; width: 340px; height: 340px; top: -150px; inset-inline-end: -110px;
  background: radial-gradient(circle, rgba(246,225,35,.18), transparent 68%); border-radius: 50%;
}
.docviz__grid { position: relative; z-index: 1; display: grid; gap: 12px; }
.docviz__item {
  display: flex; align-items: center; gap: 15px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-md); padding: 16px 18px; color: var(--white);
  backdrop-filter: blur(8px);
}
.docviz__item i {
  display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 12px; background: rgba(255,255,255,.16); color: var(--yellow);
}
.docviz__item b { font-family: var(--font-head); font-weight: 500; font-size: 1rem; display: block; }
.docviz__item span { font-size: .88rem; color: rgba(255,255,255,.72); }
.docviz__note {
  position: relative; z-index: 1; margin-top: 18px; text-align: center;
  font-size: .9rem; color: rgba(255,255,255,.75);
}

/* ข้อความสำหรับโปรแกรมอ่านหน้าจอ (คนทั่วไปมองไม่เห็น) */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* การ์ดบทความ (มีรูปจริง) */
.pcard { overflow: hidden; padding: 0; }
.pcard__img { aspect-ratio: 16/10; overflow: hidden; background: var(--lavender-pale); }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pcard:hover .pcard__img img { transform: scale(1.06); }
.pcard__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }

/* ================================================================
   ขั้นตอน
   ================================================================ */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; counter-reset: s; }
.step { position: relative; padding: 32px 26px; background: var(--white); border-radius: var(--r-lg); border: 1px solid var(--line); }
.step__n {
  font-family: var(--font-head); font-weight: 600; font-size: 2.6rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 2px var(--lavender); margin-bottom: 12px;
}
.step h3 { margin-bottom: .35em; }
.step p { color: var(--ink-soft); font-size: .98rem; margin: 0; }

/* ================================================================
   รายการติ๊กถูก
   ================================================================ */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { flex-shrink: 0; margin-top: 5px; color: var(--purple-bright); }
.checks--onDark svg { color: var(--yellow); }

/* ================================================================
   หีบเพลง (คำถามที่พบบ่อย)
   ================================================================ */
.acc { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--white); }
.acc + .acc { margin-top: 12px; }
.acc summary {
  cursor: pointer; padding: 20px 56px 20px 24px; position: relative; list-style: none;
  font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; color: var(--purple-deep);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: ''; position: absolute; inset-inline-end: 24px; top: 50%;
  width: 9px; height: 9px; border-right: 2px solid var(--purple-bright); border-bottom: 2px solid var(--purple-bright);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.acc[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.acc[open] summary { background: var(--lavender-pale); }
.acc__body { padding: 20px 24px 24px; color: var(--ink-soft); border-top: 1px solid var(--line); }

/* ================================================================
   สาขา
   ================================================================ */
.branch-search { position: relative; max-width: 640px; margin: 0 auto 12px; }
.branch-search input {
  width: 100%; padding: 17px 22px 17px 54px; font-family: var(--font-body); font-size: 1.02rem;
  border: 2px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.branch-search input:focus { outline: none; border-color: var(--purple-bright); box-shadow: 0 0 0 4px rgba(110,25,214,.12); }
.branch-search svg { position: absolute; inset-inline-start: 20px; top: 50%; transform: translateY(-50%); color: var(--ink-mute); pointer-events: none; }
.branch-count { text-align: center; color: var(--ink-soft); margin-bottom: 28px; font-size: .98rem; }
.branch-count b { color: var(--purple-bright); font-size: 1.15rem; font-family: var(--font-head); }

.bcard { padding: 24px; }
.bcard__prov { display: inline-block; background: var(--lavender-pale); color: var(--purple-bright); font-size: .82rem; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
.bcard h3 { font-size: 1.12rem; margin-bottom: .5em; }
.bcard__rows { display: grid; gap: 9px; font-size: .94rem; color: var(--ink-soft); margin-bottom: 18px; }
.bcard__row { display: flex; gap: 10px; align-items: flex-start; }
.bcard__row svg { flex-shrink: 0; margin-top: 4px; color: var(--purple-soft); }
.bcard__acts { margin-top: auto; display: flex; gap: 9px; flex-wrap: wrap; }
.empty-note { text-align: center; padding: 56px 20px; color: var(--ink-mute); }

/* ── หน้ารายละเอียดสาขา ── */
.binfo { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.binfo__map { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; }
.binfo__map iframe { width: 100%; height: 100%; border: 0; }

/* ================================================================
   บทความ
   ================================================================ */
.post-body { font-size: 1.05rem; color: var(--ink-soft); }
.post-body h2, .post-body h3, .post-body h4 { margin-top: 1.8em; color: var(--purple-deep); }
.post-body img { border-radius: var(--r-md); margin: 1.6em 0; }
.post-body ul, .post-body ol { padding-inline-start: 1.4em; }
.post-body li { margin-bottom: .5em; }
.post-body a { text-decoration: underline; }
.post-meta { display: flex; gap: 14px; align-items: center; color: var(--ink-mute); font-size: .92rem; margin-bottom: 8px; }
.tag { display: inline-block; background: var(--lavender-pale); color: var(--purple-bright); font-size: .82rem; padding: 4px 13px; border-radius: 999px; }

/* ── หัวหน้าใน (page hero) ── */
.phero {
  background: linear-gradient(135deg, var(--purple-navy), var(--purple-bright));
  color: var(--white); padding: clamp(40px, 5vw, 68px) 0; position: relative; overflow: hidden;
}
.phero::after {
  content: ''; position: absolute; width: 480px; height: 480px; top: -260px; inset-inline-end: -140px;
  background: radial-gradient(circle, rgba(184,144,234,.42), transparent 66%); border-radius: 50%;
}
.phero .wrap { position: relative; z-index: 1; }
.phero h1 { color: var(--white); margin-bottom: .25em; }
.phero p { color: rgba(255,255,255,.88); max-width: 62ch; margin: 0; }
.crumbs { font-size: .9rem; color: rgba(255,255,255,.75); margin-bottom: 14px; }
.crumbs a { color: rgba(255,255,255,.9); }
.crumbs span { opacity: .55; margin: 0 7px; }

/* ================================================================
   แถบชวนสมัคร
   ================================================================ */
.cta-band {
  background: linear-gradient(120deg, var(--purple-deep), var(--purple-bright));
  border-radius: var(--r-xl); padding: clamp(34px, 4vw, 56px); color: var(--white);
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ''; position: absolute; width: 420px; height: 420px; top: -200px; inset-inline-end: -110px;
  background: radial-gradient(circle, rgba(246,225,35,.18), transparent 66%); border-radius: 50%;
}
.cta-band__inner { position: relative; z-index: 1; display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin-bottom: .3em; }
.cta-band p { color: rgba(255,255,255,.88); margin: 0; }

/* ================================================================
   ฟอร์ม
   ================================================================ */
.form-card { background: var(--white); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: clamp(26px, 3.5vw, 44px); }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--font-head); font-weight: 500; font-size: .96rem; color: var(--purple-deep); margin-bottom: 8px; }
.field .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 17px; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  border: 2px solid var(--line); border-radius: var(--r-sm); background: var(--white);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--purple-bright); box-shadow: 0 0 0 4px rgba(110,25,214,.12);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.consent { display: flex; gap: 11px; align-items: flex-start; font-size: .94rem; color: var(--ink-soft); margin-bottom: 22px; }
.consent input { width: 20px; height: 20px; margin-top: 3px; flex-shrink: 0; accent-color: var(--purple-bright); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { padding: 15px 20px; border-radius: var(--r-sm); margin-top: 18px; font-size: .98rem; }
.form-msg--ok  { background: #E8F7EE; color: #17663A; border: 1px solid #B7E4C8; }
.form-msg--err { background: #FDECEC; color: #A32126; border: 1px solid #F6C6C8; }

/* ================================================================
   ท้ายเว็บ
   ================================================================ */
.footer { background: var(--purple-deep); color: rgba(255,255,255,.76); padding: clamp(48px, 5vw, 72px) 0 0; }
.footer h4 { color: var(--white); font-size: 1.05rem; margin-bottom: 1em; }
.footer a { color: rgba(255,255,255,.76); }
.footer a:hover { color: var(--yellow); text-decoration: none; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 44px; }
.footer__logo img { height: 54px; background: var(--white); border-radius: var(--r-sm); padding: 7px 11px; margin-bottom: 16px; }
.footer__tag { font-family: var(--font-head); color: var(--yellow); font-size: 1.05rem; margin-bottom: 10px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .96rem; }
.footer__contact li { display: flex; gap: 11px; align-items: flex-start; }
.footer__contact svg { flex-shrink: 0; margin-top: 4px; opacity: .7; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.13); padding: 20px 0; font-size: .9rem;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.social { display: flex; gap: 10px; }
.social a {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1);
  display: grid; place-items: center; transition: background .18s ease, transform .18s ease;
}
.social a:hover { background: var(--purple-bright); transform: translateY(-2px); }

/* ── ปุ่มลอยติดต่อ (มือถือ) ── */
.float-cta { display: none; }

/* ================================================================
   จอเล็ก
   ================================================================ */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .hero__lead { max-width: 50ch; }
  .picker { max-width: 560px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .binfo { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav[data-open="true"] .nav__links {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: var(--nav-h); inset-inline: 0; background: var(--white);
    border-bottom: 1px solid var(--line); padding: 12px 20px 20px; box-shadow: var(--shadow-md);
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  .nav[data-open="true"] .nav__list { flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
  .nav[data-open="true"] .sub {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; border-inline-start: 2px solid var(--lavender-mist); border-radius: 0;
    margin: 2px 0 6px 14px; padding: 0 0 0 8px; min-width: 0;
  }
  .nav[data-open="true"] .nav__cta { display: flex; padding: 6px 20px 20px; background: var(--white); position: absolute; top: calc(var(--nav-h) + 100%); inset-inline: 0; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .trust__item:nth-child(odd) { border-inline-start: 0; }
  .trust__item:nth-child(3) { border-inline-start: 0; }
  .field-row { grid-template-columns: 1fr; }
  .float-cta {
    display: flex; position: fixed; bottom: 0; inset-inline: 0; z-index: 70;
    background: var(--white); border-top: 1px solid var(--line); padding: 10px 14px;
    gap: 10px; box-shadow: 0 -4px 20px rgba(32,5,83,.1);
  }
  .float-cta .btn { flex: 1; padding: 13px 12px; font-size: .96rem; }
  body { padding-bottom: 72px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .picker { padding: 20px 16px; }
  .picker__grid { grid-template-columns: repeat(2, 1fr); }
  .picker__item { font-size: .8rem; padding: 14px 6px; }
  .topbar .wrap { justify-content: center; gap: 14px; font-size: .82rem; }
  .topbar .spacer { margin-inline-start: 0; }
  .trust { margin-top: -32px; padding: 26px 18px; }
  .trust__grid { gap: 20px; }
  .footer__grid { grid-template-columns: 1fr; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
