/* ==========================================================================
   RAFLink — shared design system
   Source of truth: Figma "RAFLink" (file 8qOHtiPXwDaKTqLtSndUWQ)
   Desktop artboard = 1440px, content column = 1170px (135px side padding)
   Do not restyle these tokens per page — page-specific CSS goes in the page.
   ========================================================================== */

/* --- tokens (from Figma variables) --------------------------------------- */
:root {
  --primary: #ffcf1c;          /* Primary            */
  --secondary: #855c14;        /* Secondary          */
  --body: #898989;             /* body text grey     */
  --white: #ffffff;
  --black: #000000;

  --brand-gradient: linear-gradient(90deg, #855c14 0%, #ffcf1c 100%);
  --brand-gradient-v: linear-gradient(0deg, #ffcf1c 0%, #855c14 100%);

  --gold-deep: #c99c1a;        /* header CTA pill                 */
  --cream: #e7ded0;            /* muted cream text (footer LINE)  */
  --line-green: #00d900;

  /* type scale — IBM Plex Sans Thai */
  --h1-size: 48px; --h1-lh: 56px;
  --h2-size: 40px;
  --h3-size: 32px; --h3-lh: 40px;
  --h4-size: 24px;
  --body-size: 20px; --body-lh: 24px;

  --container: 1170px;
  --gutter: 135px;

  --shadow-m3-3: 0 1px 3px rgba(0,0,0,.30), 0 4px 8px 3px rgba(0,0,0,.15);
  --shadow-m3-4: 0 2px 3px rgba(0,0,0,.30), 0 6px 10px 4px rgba(0,0,0,.15);
  --shadow-drop-1: 0 8px 10px -6px rgba(0,0,0,.10), 0 20px 25px -5px rgba(0,0,0,.10);
  --shadow-cta: 0 25px 50px rgba(0,0,0,.25);
}

/* --- base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "IBM Plex Sans Thai", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: #1a1a1a;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

.raf-container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --- buttons ------------------------------------------------------------- */
.raf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 100px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.raf-btn img { width: 24px; height: 24px; flex: none; }   /* ไอคอน LINE ในปุ่มเมนูมือถือ */
.raf-btn:hover { transform: translateY(-2px); filter: brightness(1.03); }
.raf-btn:active { transform: translateY(0); }

.raf-btn--primary {
  height: 44px;
  padding-inline: 30px;
  font-size: 19px;
  line-height: 24px;
  background: var(--primary);
  color: var(--secondary);
  box-shadow: 0 4px 4px rgba(0,0,0,.15), 0 1px 1.5px rgba(0,0,0,.30);
}

/* --- header (Figma: Header/Default, 1440x122) ---------------------------- */
.raf-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 106px;
  background: var(--brand-gradient);
  border-bottom: 2px solid rgba(255,255,255,.35);
}
.raf-header__inner {
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* เมนูมี 4 รายการแล้ว ใช้ gutter 135 เต็ม ๆ จะเบียดกัน — ถอยขอบเข้ามาเฉพาะ header */
  padding-inline: 64px;
  max-width: 1440px;
  margin-inline: auto;
}
.raf-brand { display: flex; align-items: center; gap: 0; flex: none; }
.raf-brand__mark { width: 84px; height: 84px; object-fit: contain; flex: none; }
.raf-brand__name {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
}
.raf-header__right { display: flex; align-items: center; gap: 18px; }
.raf-nav { display: flex; align-items: center; gap: 24px; }
.raf-nav a {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  transition: opacity .15s ease;
}
.raf-nav a:hover { opacity: .78; }
.raf-nav a.is-active { text-decoration: underline; text-underline-offset: 6px; }

/* --- package dropdown (Figma: List menu 2178:1476, panel 258x224) --------- */
.raf-nav__group { position: relative; }
.raf-nav__trigger::after {                /* caret */
  content: "";
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
  border: 5px solid transparent;
  border-top-color: currentColor;
  transform: translateY(2px);
  transition: transform .2s ease;
}
.raf-nav__group.is-open .raf-nav__trigger::after { transform: translateY(-3px) rotate(180deg); }

.raf-dropdown {
  position: absolute;
  top: calc(100% + 22px);
  left: 50%;
  transform: translate(-50%, -8px);
  width: 258px;
  padding: 0;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 4px 4px rgba(12,12,13,.05), 0 4px 4px rgba(12,12,13,.10);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 120;
}
.raf-dropdown::before {                   /* Polygon 2 — 28x16 white arrow */
  content: "";
  position: absolute;
  top: -15px;
  left: 92px;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 16px solid var(--white);
}
.raf-dropdown::after {                    /* keeps hover alive across the gap */
  content: "";
  position: absolute;
  inset: -24px 0 auto 0;
  height: 24px;
}
.raf-nav__group:hover .raf-dropdown,
.raf-nav__group:focus-within .raf-dropdown,
.raf-nav__group.is-open .raf-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.raf-dropdown a {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 16px 24px;
  border-radius: 16px;
  font-size: 20px;
  font-weight: 400;
  line-height: 24px;
  color: var(--secondary);
  white-space: nowrap;
  transition: background .15s ease;
}
.raf-dropdown a:hover,
.raf-dropdown a:focus-visible { background: rgba(255, 207, 28, .22); }
.raf-dropdown a.is-active { background: rgba(255, 207, 28, .35); font-weight: 700; }
.raf-nav__quote {                        /* CTA ในเมนู — เด่นกว่าลิงก์ปกติเล็กน้อย */
  padding: 6px 18px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .75);
  font-size: 19px;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, opacity .15s ease;
}
.raf-nav__quote:hover {
  background: rgba(255, 255, 255, .16);
  border-color: var(--white);
  opacity: 1;
}
.raf-menu__list a.is-quote {
  margin-top: 8px;
  font-weight: 700;
  color: var(--secondary);
  background: rgba(255, 207, 28, .35);
}
.raf-header__divider { width: 3px; height: 32px; background: rgba(255,255,255,.3); }
.raf-header__cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
/* --- ปุ่ม "ติดต่อเรา" → กางช่องทางแชท ------------------------------------- */
.raf-contact { position: relative; }
.raf-contact__trigger::after {
  content: "";
  display: inline-block;
  margin-left: -4px;
  border: 5px solid transparent;
  border-top-color: currentColor;
  transform: translateY(3px);
  transition: transform .2s ease;
}
.raf-contact.is-open .raf-contact__trigger::after { transform: translateY(-2px) rotate(180deg); }
.raf-contact__menu {
  position: absolute;
  top: calc(100% + 18px);
  right: -14px;
  width: 232px;
  padding: 8px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 4px 4px rgba(12,12,13,.05), 0 12px 24px rgba(12,12,13,.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 120;
}
.raf-contact__menu::before {                /* หัวลูกศรชี้ขึ้นหาปุ่ม */
  content: "";
  position: absolute;
  top: -14px;
  right: 42px;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 15px solid var(--white);
}
.raf-contact.is-open .raf-contact__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.raf-contact__menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--secondary);
  white-space: nowrap;
  transition: background .15s ease;
}
.raf-contact__menu a:hover,
.raf-contact__menu a:focus-visible { background: rgba(255, 207, 28, .22); }
.raf-contact__menu img { width: 32px; height: 32px; flex: none; }

.raf-social { display: flex; align-items: center; gap: 10px; }
.raf-social a { display: block; width: 32px; height: 32px; transition: transform .18s ease; }
.raf-social a:hover { transform: translateY(-2px); }
.raf-social img { width: 32px; height: 32px; }
.raf-social a.is-round {
  background: var(--white);
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
}

/* burger — เดสก์ท็อปไม่มี burger; แสดงตั้งแต่ 1024px ลงมา (เส้นเดียวกับเนื้อหา) */
.raf-burger {
  display: none;
  width: 48px; height: 48px;
  border: 0; background: transparent; cursor: pointer;
  padding: 10px;
}
.raf-burger span {
  display: block; height: 3px; margin: 5px 0; border-radius: 3px;
  background: var(--white); transition: transform .2s ease, opacity .2s ease;
}
.raf-header.is-open .raf-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.raf-header.is-open .raf-burger span:nth-child(2) { opacity: 0; }
.raf-header.is-open .raf-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- footer (Figma: Footer, 1440x885 — includes the closing CTA band) ----- */
.raf-footer {
  background: var(--secondary);
  color: var(--white);
  padding: 100px var(--gutter) 40px;
}
.raf-footer__inner { max-width: 1440px; margin-inline: auto; }

.raf-cta {
  text-align: center;
  max-width: var(--container);
  margin-inline: auto;
}
.raf-cta__title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}
.raf-cta__sub {
  margin-top: 24px;
  font-size: 24px;
  color: var(--white);
}
.raf-cta__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  margin-top: 64px;
  flex-wrap: wrap;
}
.raf-cta-chat {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  width: 584px;
  height: 112px;
  padding: 16px 60px 16px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.8);
  box-shadow: var(--shadow-cta);
  transition: transform .18s ease, background .18s ease;
}
.raf-cta-chat:hover { transform: translateY(-3px); background: #fff; }
.raf-cta-chat__icon { width: 80px; height: 80px; flex: none; }
.raf-cta-chat__text { display: flex; flex-direction: column; text-align: center; }
.raf-cta-chat__title {
  display: block;
  font-size: 32px; font-weight: 700; line-height: 40px; color: var(--black);
  white-space: nowrap;
}
.raf-cta-chat__sub { display: block; font-size: 16px; line-height: 24px; color: var(--body); }
.raf-cta-chat__arrow {
  position: absolute; right: 32px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px;
}

.raf-footer__rule {
  height: 2px;
  background: rgba(255,255,255,.35);
  border: 0;
  margin: 60px 0 0;
}

.raf-footer__cols {
  display: flex;
  gap: 210px;
  padding: 60px 0;
}
.raf-footer__brand { width: 323px; }
.raf-footer__brand .raf-brand { height: 100px; }
.raf-footer__about {
  margin-top: 24px;
  font-size: 16px;
  line-height: 24px;
  color: var(--white);
}
.raf-footer__col { width: 213px; }
.raf-footer__col h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  color: var(--white);
  margin-bottom: 20px;
}
.raf-footer__col li + li { margin-top: 12px; }
.raf-footer__col a,
.raf-footer__col li {
  font-size: 16px;
  line-height: 24px;
  color: rgba(255,255,255,.7);
}
.raf-footer__col a:hover { color: var(--white); }
.raf-contact li { display: flex; gap: 8px; align-items: flex-start; color: rgba(255,255,255,.8); }
.raf-contact img { width: 20px; height: 20px; flex: none; margin-top: 2px; }

.raf-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 40px;
}
.raf-footer__copy { font-size: 14px; line-height: 20px; color: rgba(255,255,255,.6); }
.raf-footer__social { display: flex; align-items: center; gap: 16px; }
.raf-footer__social a {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  transition: background .18s ease, transform .18s ease;
}
.raf-footer__social a:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
.raf-footer__social img { width: 20px; height: 20px; }
.raf-footer__social a.is-bare { background: none; }
.raf-footer__social a.is-bare img { width: 40px; height: 40px; }

/* --- floating contact (Figma: Sticky 2178:1572 + CTA Sticky 2178:1593) ---- */
.raf-sticky {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.raf-sticky__group {                     /* Frame 39854 — gap 8 */
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.raf-sticky__btn {                       /* วงขาว 60px + ไอคอน 40px */
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 4px 4px rgba(0,0,0,.25);
  transition: transform .18s ease, box-shadow .18s ease;
}
.raf-sticky__btn:hover { transform: scale(1.08); box-shadow: 0 6px 12px rgba(0,0,0,.3); }
.raf-sticky__btn img { width: 40px; height: 40px; }
.raf-sticky__cta {                       /* ปุ่มเหลือง = ไอคอนฟอร์ม + ป้าย ให้รู้ว่ากดแล้วได้อะไร */
  width: 96px; min-height: 88px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  padding: 10px 4px;
  border-radius: 24px;
  background: var(--primary);
  box-shadow: var(--shadow-drop-1);
  transition: transform .18s ease, filter .18s ease;
}
.raf-sticky__cta:hover { transform: scale(1.06); filter: brightness(1.04); }
.raf-sticky__cta img { width: 34px; height: 34px; }
.raf-sticky__cta span {
  font-size: 11px;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
  color: var(--secondary);
}

/* --- shared section helpers --------------------------------------------- */
.raf-section { padding-block: clamp(56px, 7vw, 100px); }
.raf-section__head { text-align: center; margin-bottom: 56px; }
.raf-section__title {
  font-size: var(--h2-size);
  font-weight: 700;
  line-height: 1.3;
  color: var(--secondary);
}
.raf-section__sub {
  margin-top: 8px;
  font-size: var(--body-size);
  line-height: var(--body-lh);
  color: var(--body);
}

/* --- mobile menu overlay (Figma: Menu 2233:6641, 402x874) ---------------- */
.raf-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  flex-direction: column;
  background: linear-gradient(180deg, #f5efe6 0%, #ffffff 50%, #fff9e5 100%);
}
.raf-menu.is-open { display: flex; }
.raf-menu__bar {                          /* re-uses the 80px mobile header */
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 20px;
  background: var(--brand-gradient);
  border-bottom: 2px solid #d2a41b;
}
.raf-menu__brand { display: flex; align-items: center; gap: 0; }
.raf-menu__brand img { width: 40px; height: 40px; }
.raf-menu__brand span { font-size: 20px; font-weight: 700; line-height: 28px; color: var(--white); }
.raf-menu__close {                        /* close 40x40, glyph 23.3 white */
  position: relative;
  width: 40px; height: 40px;
  border: 0; padding: 0;
  background: none;
  cursor: pointer;
}
.raf-menu__close::before,
.raf-menu__close::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 23.3px; height: 3.5px;
  border-radius: 2px;
  background: var(--white);
}
.raf-menu__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.raf-menu__close::after  { transform: translate(-50%, -50%) rotate(-45deg); }

.raf-menu__list {                         /* List menu — items 56px, pad 16/24 */
  margin-top: 60px;
  display: flex;
  flex-direction: column;
}
.raf-menu__list a {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 16px 24px;
  border-radius: 16px;
  font-size: 20px;
  line-height: 24px;
  color: var(--secondary);
  transition: background .15s ease;
}
.raf-menu__list a:hover,
.raf-menu__list a.is-active { background: rgba(255, 207, 28, .22); }

.raf-menu__cta {                          /* Container 362x60 — pill #c99c1a */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
  margin: auto 20px 40px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--gold-deep);
}

/* --- responsive ---------------------------------------------------------- */
/* เมนูมี 3 รายการ + pill ติดต่อ พอจอแคบกว่า artboard 1440 ต้องย่อไม่ให้ชนกัน */
@media (max-width: 1439px) {
  .raf-header__inner { padding-inline: 40px; }
  .raf-header__right { gap: 20px; }
  .raf-nav { gap: 22px; }
  .raf-nav a { font-size: 19px; }
  .raf-nav__quote { padding: 5px 14px; font-size: 18px; }
  .raf-brand__mark { width: 72px; height: 72px; }
  .raf-brand__name { font-size: 30px; }
  .raf-header__cta { height: 52px; gap: 10px; padding-inline: 12px; }
  .raf-btn--primary { height: 36px; padding-inline: 20px; font-size: 17px; }
  .raf-social { gap: 10px; }
  .raf-social a, .raf-social img { width: 34px; height: 34px; }
  .raf-dropdown::before { left: 50%; margin-left: -14px; }
}

@media (max-width: 1180px) {
  .raf-header__inner { padding-inline: 24px; }
  .raf-nav { gap: 16px; }
  .raf-nav a { font-size: 17px; }
  .raf-brand__name { font-size: 26px; }
  .raf-header__divider { display: none; }
  .raf-header__cta .raf-social { display: none; }
}

@media (max-width: 1280px) {
  :root { --gutter: 64px; }
  .raf-footer__cols { gap: 80px; justify-content: space-between; }
}

@media (max-width: 1024px) {
  :root { --gutter: 32px; }
  .raf-footer__cols { flex-wrap: wrap; gap: 48px; }
  .raf-footer__brand { width: 100%; }
  .raf-cta__sub { font-size: 18px; }
}

/* ===== mobile — follows the 402px Figma artboard ========================= */
@media (max-width: 1024px) {
  :root { --gutter: 20px; }

  /* Mobile/Tablet - Header (2195:2019) — 402x80, pad 20, logo 40, brand 20/28 */
  .raf-header, .raf-header__inner { height: 80px; }
  .raf-header__inner { padding-inline: 20px; }
  .raf-brand__mark { width: 40px; height: 40px; }
  .raf-brand__name { font-size: 20px; line-height: 28px; }
  .raf-header__divider { display: none; }
  .raf-nav { display: none; }                    /* nav (and its dropdown) moves into the overlay */
  .raf-dropdown { display: none; }
  .raf-header__right {
    display: flex;
    align-items: center;
    gap: 16px;
    order: 2;
  }
  .raf-header__cta {
    height: auto;
    padding: 0;
    background: none;                            /* no gold pill on mobile */
    gap: 16px;
  }
  .raf-header__cta .raf-social { display: none; } /* socials live in the overlay */
  .raf-btn--primary { height: 40px; padding-inline: 20px; font-size: 18px; font-weight: 600; }
  .raf-burger {
    display: block;
    order: 3;
    width: 40px; height: 40px;
    padding: 10px 5px;
  }
  .raf-burger span { height: 3.5px; width: 30px; margin: 4.75px 0; }

  /* Mobile - Footer (2202:1836) — 402x1426, pad 100/20/40 */
  .raf-footer { padding: 100px 20px 40px; }
  .raf-cta__title { line-height: 1.35; }
  .raf-cta__sub { margin-top: 0; font-size: 16px; line-height: 26.4px; color: rgba(255,255,255,.9); }
  .raf-cta__actions { flex-direction: column; gap: 24px; margin-top: 60px; }
  .raf-cta-chat {
    width: 100%;
    height: 70px;
    padding: 10px 40px 10px 16px;
    gap: 8px;
  }
  .raf-cta-chat__icon { width: 40px; height: 40px; }
  .raf-cta-chat__text { flex: 1; }
  .raf-cta-chat__title { font-size: 16px; line-height: 26.4px; color: #333333; white-space: normal; }
  .raf-cta-chat__sub { font-size: 14px; line-height: 23.1px; }
  .raf-cta-chat__arrow { right: 16px; width: 24px; height: 24px; }

  .raf-footer__rule { margin-top: 40px; background: #a67b18; }
  .raf-footer__cols { flex-direction: column; gap: 40px; padding: 40px 0; }
  .raf-footer__brand, .raf-footer__col { width: 100%; }
  .raf-footer__about { color: rgba(255,255,255,.8); line-height: 26px; }
  .raf-footer__bottom {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding-top: 40px;
    text-align: center;
  }
  .raf-footer__copy { font-size: 14px; line-height: 23.1px; }

  .raf-sticky { right: 12px; bottom: 12px; gap: 10px; }
  .raf-sticky__btn { width: 48px; height: 48px; }
  .raf-sticky__btn img { width: 32px; height: 32px; }
  .raf-sticky__cta { width: 84px; min-height: 78px; padding: 8px 5px; border-radius: 20px; }
  .raf-sticky__cta img { width: 28px; height: 28px; }
  .raf-sticky__cta span { font-size: 11px; line-height: 13px; }
  .raf-section__title { font-size: 24px; line-height: 39.6px; }
}

@media (max-width: 380px) {
  .raf-btn--primary { padding-inline: 14px; font-size: 16px; }
  .raf-brand__name { font-size: 18px; }
}

/* ==========================================================================
   Rate Card block — ระยะเวลาโดยประมาณ / สิ่งที่ต้องเตรียม / เงื่อนไข
   ========================================================================== */
.raf-rate { padding-block: clamp(56px, 7vw, 100px); background: #fffdf7; }

/* จุดหมายของลิงก์ในเมนูต้องไม่ถูก header sticky บัง — #media เดิมตกหล่น */
#media { scroll-margin-top: 124px; }
@media (max-width: 1024px) { #media { scroll-margin-top: 96px; } }

.raf-rate__title {
  text-align: center;
  font-size: 40px;
  font-weight: 700;
  line-height: 52px;
  color: var(--black);
}
.raf-rate__sub {
  max-width: 820px;
  margin: 14px auto 44px;
  text-align: center;
  font-size: 17px;
  line-height: 28px;
  color: var(--body);
}

/* --- ระยะเวลา 2 กรณี --- */
.raf-rate__eta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 940px;
  margin: 0 auto;
}
.raf-rate__eta-card {
  padding: 32px 30px;
  border: 2px solid rgba(255,207,28,.45);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 4px 4px rgba(12,12,13,.04), 0 12px 24px rgba(12,12,13,.06);
}
.raf-rate__eta-card--full { background: linear-gradient(180deg, #fffbe9 0%, #ffffff 60%); }
.raf-rate__eta-tag {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 999px;
  background: rgba(255,207,28,.25);
  font-size: 14px;
  font-weight: 700;
  color: var(--secondary);
}
.raf-rate__eta-num {
  margin-top: 16px;
  font-size: 44px;
  font-weight: 700;
  line-height: 52px;
  color: var(--secondary);
}
.raf-rate__eta-num span { font-size: 20px; font-weight: 600; }
.raf-rate__eta-text {
  margin-top: 10px;
  font-size: 16px;
  line-height: 26px;
  color: #4a5565;
}

.raf-rate__note {
  max-width: 920px;
  margin: 26px auto 0;
  text-align: center;
  font-size: 15px;
  line-height: 26px;
  color: var(--body);
}
.raf-rate__note--writing {
  padding: 18px 24px;
  border-radius: 16px;
  border: 2px dashed rgba(255,207,28,.55);
  background: var(--white);
  font-size: 16px;
  color: #4a5565;
}
.raf-rate__note--writing b { color: var(--secondary); }

.raf-rate__prep {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 56px;
}
.raf-rate__prep-col {
  padding: 30px 28px;
  border-radius: 20px;
  background: var(--white);
  border: 2px solid rgba(255,207,28,.35);
}
.raf-rate__prep-head {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(255,207,28,.35);
  font-size: 19px;
  font-weight: 700;
  line-height: 28px;
  color: var(--secondary);
}
.raf-rate__prep-list { display: flex; flex-direction: column; gap: 10px; }
.raf-rate__prep-list li {
  position: relative;
  padding-left: 26px;
  font-size: 16px;
  line-height: 26px;
  color: #4a5565;
}
.raf-rate__prep-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 15px; height: 8px;
  border-left: 3px solid var(--primary);
  border-bottom: 3px solid var(--primary);
  transform: rotate(-45deg);
}

@media (max-width: 900px) {
  .raf-rate__sub { font-size: 16px; margin-bottom: 30px; }
  .raf-rate__eta, .raf-rate__prep { grid-template-columns: minmax(0, 1fr); }
  .raf-rate__eta-num { font-size: 36px; line-height: 44px; }
}

/* ==========================================================================
   Our reviews — คารูเซลรีวิวจริง เลื่อนแนวนอนแถวเดียว (ใช้ร่วมกันทุกหน้า)
   ========================================================================== */
.raf-reviews {
  scroll-margin-top: 124px;              /* กัน header sticky บังหัวข้อตอนกดลิงก์ #reviews */
  padding-block: clamp(56px, 7vw, 100px);
  overflow-x: clip;                      /* การ์ดที่ล้นออกนอก viewport ไม่ดันหน้าจอ */
}
.raf-reviews__title {
  text-align: center;
  font-size: 40px;
  font-weight: 700;
  line-height: 36px;
  color: var(--black);
}
.raf-reviews__stat {
  margin-top: 16px;
  text-align: center;
  font-size: 16px;
  line-height: 26px;
  color: var(--body);
}

/* viewport = แถบเลื่อน + ปุ่มลูกศรสองข้าง */
.raf-reviews__viewport {
  position: relative;
  margin-top: 40px;
}
.raf-reviews__track {
  display: flex;
  gap: 24px;
  /* ให้การ์ดใบแรกเริ่มตรงขอบ container เดียวกับหัวข้อ แต่เลื่อนต่อไปจนสุดจอได้ */
  padding: 8px var(--gutter);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;         /* mandatory จะสู้กับ smooth scroll ของปุ่มลูกศร */
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;                 /* ซ่อน scrollbar — ใช้ลากหรือกดลูกศรแทน */
  cursor: grab;
}
.raf-reviews__track::-webkit-scrollbar { display: none; }
.raf-reviews__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.raf-reviews__track.is-dragging .raf-review { pointer-events: none; }
.raf-reviews__track:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; border-radius: 24px; }

.raf-review {
  flex: none;
  width: 360px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  border: 2px solid rgba(255,207,28,.30);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 4px 4px rgba(12,12,13,.05), 0 8px 16px rgba(12,12,13,.06);
  scroll-snap-align: start;
}
.raf-review__stars { width: 118px; height: auto; }
.raf-review__quote {
  font-size: 16px;
  line-height: 26px;
  color: #4a5565;
}

/* ปุ่มลูกศร — JS จะเปิดให้เห็นเมื่อมีของให้เลื่อนจริง */
.raf-reviews__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 4px 6px rgba(0,0,0,.08), 0 10px 20px rgba(0,0,0,.12);
  cursor: pointer;
  transition: transform .18s ease, opacity .18s ease;
}
.raf-reviews__nav::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 14px;
  height: 14px;
  border-top: 3px solid var(--secondary);
  border-right: 3px solid var(--secondary);
}
.raf-reviews__nav.is-prev { left: calc(var(--gutter) - 68px); }
.raf-reviews__nav.is-next { right: calc(var(--gutter) - 68px); }
.raf-reviews__nav.is-prev::before { transform: translateX(3px) rotate(-135deg); }
.raf-reviews__nav.is-next::before { transform: translateX(-3px) rotate(45deg); }
.raf-reviews__nav:hover { transform: translateY(-50%) scale(1.06); }
.raf-reviews__nav[disabled] { opacity: .35; cursor: default; }
.raf-reviews__nav[disabled]:hover { transform: translateY(-50%); }

.raf-reviews__remark {
  margin-top: 28px;
  text-align: center;
  font-size: 16px;
  line-height: 26px;
  color: var(--body);
}
.raf-reviews__remark a {
  color: var(--secondary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1439px) {
  /* ลูกศรเบียดขอบจอ — ย้ายมาลอยทับขอบการ์ดแทน */
  .raf-reviews__nav.is-prev { left: 8px; }
  .raf-reviews__nav.is-next { right: 8px; }
}
@media (max-width: 900px) {
  .raf-reviews { scroll-margin-top: 96px; }
  .raf-review { width: 300px; padding: 24px; }
  /* มือถือปัดนิ้วได้อยู่แล้ว แต่ยังต้องมีปุ่มให้เห็นว่าเลื่อนต่อได้ */
  .raf-reviews__nav { width: 44px; height: 44px; }
  .raf-reviews__nav::before { width: 11px; height: 11px; border-width: 2px; }
  .raf-reviews__nav.is-prev { left: 4px; }
  .raf-reviews__nav.is-next { right: 4px; }
}

/* ==========================================================================
   Lead block — ฟอร์มขอใบเสนอราคา + FAQ  (เพิ่มเพื่อ CRO / Google Ads)
   ========================================================================== */
.raf-lead {
  scroll-margin-top: 124px;              /* กัน header sticky บังหัวข้อตอนกดลิงก์ #quote */
  padding: clamp(56px, 7vw, 100px) 0;
  background: linear-gradient(90deg, #fff9e5 0%, #ffffff 50%, #fff9e5 100%);
}
.raf-lead__inner {
  display: flex;
  align-items: flex-start;
  gap: 80px;
}
.raf-lead__copy { flex: 1 1 460px; min-width: 0; }
.raf-lead__title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--secondary);
}
.raf-lead__sub {
  margin-top: 20px;
  font-size: 20px;
  line-height: 32px;
  color: rgba(133, 92, 20, .85);
}
.raf-lead__points { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.raf-lead__points li {
  position: relative;
  padding-left: 34px;
  font-size: 18px;
  line-height: 28px;
  color: var(--secondary);
}
.raf-lead__points li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: inset 0 0 0 2px rgba(133,92,20,.35);
}
.raf-lead__points li::after {
  content: "";
  position: absolute;
  left: 7px; top: 10px;
  width: 9px; height: 5px;
  border-left: 2px solid var(--secondary);
  border-bottom: 2px solid var(--secondary);
  transform: rotate(-45deg);
}
.raf-lead__direct {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
  font-size: 18px;
  color: rgba(133, 92, 20, .8);
}
.raf-lead__direct a { font-weight: 700; color: var(--secondary); text-decoration: underline; text-underline-offset: 4px; }
.raf-lead__phone { font-size: 22px; }

/* CTA คุยกับทีมผ่าน LINE (แทนเบอร์โทรเดิม) — สีเขียว LINE ให้ต่างจากปุ่มเหลืองในฟอร์ม */
.raf-lead__line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding-inline: 28px;
  border-radius: 999px;
  background: var(--line-green);
  box-shadow: 0 4px 6px rgba(0,0,0,.10), 0 10px 20px rgba(0,217,0,.22);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  transition: transform .18s ease, filter .18s ease;
}
.raf-lead__direct a.raf-lead__line { color: var(--white); text-decoration: none; }
.raf-lead__line:hover { transform: translateY(-2px); filter: brightness(1.05); }
.raf-lead__line img { width: 28px; height: 28px; flex: none; }

.raf-form {
  flex: 0 0 470px;
  max-width: 470px;
  padding: 26px 24px;
  border-radius: 20px;
  background: var(--white);
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-drop-1);
}
/* 6 ช่องเรียงเดี่ยวจะยาวเกินไป — จอกว้างจัดเป็น 2 คอลัมน์ ลำดับอ่านยังเหมือนเดิม */
.raf-form__grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }
.raf-form__row { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; min-width: 0; }
.raf-form__row label { font-size: 14px; font-weight: 600; line-height: 20px; color: var(--secondary); }
.raf-form__row label span { color: #c0392b; }
.raf-form__row label .raf-form__opt { color: var(--body); font-weight: 400; }   /* ช่องที่ไม่บังคับ */
.raf-form__req { color: #c0392b; font-weight: 700; }
.raf-form input,
.raf-form select {
  width: 100%;
  min-width: 0;                 /* กันไม่ให้ตัวเลือกยาว ๆ ดันกริดจนล้นจอ */
  max-width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 2px solid rgba(133, 92, 20, .25);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  color: #1a1a1a;
  background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease;
}
/* --- ดรอปดาวน์ธีมเดียวกับฟอร์ม -------------------------------------------
   <select> เดิมยังอยู่ในหน้า (ซ่อนไว้) เป็นเจ้าของค่าจริง ฟอร์มและ validation
   จึงทำงานเหมือนเดิมทุกอย่าง ถ้า JS ไม่ทำงานก็ตกกลับไปใช้ select ปกติ
   -------------------------------------------------------------------------- */
.raf-select { position: relative; }
.raf-select.is-ready > select {          /* ซ่อนของเดิมเมื่อ JS สร้าง UI เสร็จแล้ว */
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  border: 0;
}
.raf-select__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  height: 44px;
  padding: 0 13px 0 14px;
  border: 2px solid rgba(133, 92, 20, .25);
  border-radius: 10px;
  background: var(--white);
  font-family: inherit;
  font-size: 15px;
  line-height: 22px;
  color: #1a1a1a;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.raf-select__btn:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 207, 28, .3);
}
.raf-select.is-open .raf-select__btn { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255, 207, 28, .3); }
.raf-select.is-invalid .raf-select__btn { border-color: #c0392b; background: #fff7f6; }
.raf-select__value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.raf-select.is-placeholder .raf-select__value { color: #8a8a8a; }
.raf-select__chev {
  flex: none;
  width: 14px; height: 9px;
  transition: transform .18s ease;
}
.raf-select.is-open .raf-select__chev { transform: rotate(180deg); }

.raf-select__list {
  position: absolute;
  z-index: 120;                         /* ต้องสูงกว่าปุ่มลอย (90) ไม่งั้นปุ่มบังตัวเลือก */
  left: 0; right: 0;
  top: calc(100% + 6px);
  max-height: min(280px, 45vh);
  overflow-y: auto;
  overscroll-behavior: contain;         /* เลื่อนในลิสต์แล้วหน้าไม่เลื่อนตาม */
  -webkit-overflow-scrolling: touch;
  padding: 6px;
  border: 2px solid var(--primary);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 6px 12px rgba(12, 12, 13, .08), 0 18px 36px rgba(133, 92, 20, .16);
}
.raf-select__list[hidden] { display: none; }
.raf-select.is-up .raf-select__list { top: auto; bottom: calc(100% + 6px); }
.raf-select__opt {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;                     /* พื้นที่กดบนจอสัมผัส */
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 22px;
  color: #1a1a1a;
  cursor: pointer;
}
.raf-select__opt[aria-selected="true"] { background: rgba(255, 207, 28, .30); font-weight: 700; }
.raf-select__opt.is-active { background: rgba(255, 207, 28, .18); }
.raf-select__opt::after {                /* ติ๊กถูกหน้าตัวเลือกที่เลือกอยู่ */
  content: "";
  width: 13px; height: 9px;
  margin-left: auto;
  border-left: 2.2px solid var(--secondary);
  border-bottom: 2.2px solid var(--secondary);
  transform: rotate(-45deg) translateY(-2px);
  opacity: 0;
}
.raf-select__opt[aria-selected="true"]::after { opacity: 1; }
.raf-select__opt.is-placeholder { color: #8a8a8a; }

@media (max-width: 767px) {
  .raf-select__btn { height: 48px; font-size: 16px; }
  .raf-select__opt { font-size: 16px; min-height: 48px; }
  .raf-select__list { max-height: min(300px, 50vh); }
}
@media (prefers-reduced-motion: reduce) {
  .raf-select__chev { transition: none; }
}

.raf-form input:focus,
.raf-form select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 207, 28, .3);
}
.raf-form input.is-invalid,
.raf-form select.is-invalid { border-color: #c0392b; background: #fff7f6; }
.raf-form__error { margin-bottom: 10px; font-size: 14px; line-height: 21px; color: #c0392b; }
/* ข้อความ validation ใต้ช่องที่กรอกผิด */
.raf-form__msg {
  display: block;
  font-size: 13px;
  line-height: 18px;
  color: #c0392b;
}
.raf-form.is-sending .raf-form__submit { opacity: .6; pointer-events: none; }

/* --- popup ยืนยันส่งฟอร์มสำเร็จ ------------------------------------------ */
.raf-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; }
.raf-modal[hidden] { display: none; }
.raf-modal__backdrop { position: absolute; inset: 0; background: rgba(20, 14, 0, .55); animation: rafFade .2s ease; }
.raf-modal__box {
  position: relative;
  width: min(460px, 100%);
  padding: 40px 32px 32px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
  text-align: center;
  animation: rafPop .24s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes rafFade { from { opacity: 0; } }
@keyframes rafPop { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@media (prefers-reduced-motion: reduce) {
  .raf-modal__backdrop, .raf-modal__box { animation: none; }
}
.raf-modal__x {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  border: 0; border-radius: 999px;
  background: transparent; cursor: pointer;
}
.raf-modal__x::before, .raf-modal__x::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 16px; height: 2px; background: var(--body);
}
.raf-modal__x::before { transform: rotate(45deg); }
.raf-modal__x::after { transform: rotate(-45deg); }
.raf-modal__x:hover { background: rgba(0,0,0,.06); }
.raf-modal__icon { width: 72px; height: 72px; margin: 0 auto 20px; }
.raf-modal__icon svg { width: 72px; height: 72px; }
.raf-modal__title { font-size: 26px; font-weight: 700; line-height: 36px; color: var(--secondary); }
.raf-modal__text { margin-top: 12px; font-size: 16px; line-height: 26px; color: var(--body); }
.raf-modal__actions { margin-top: 26px; display: flex; flex-direction: column; gap: 10px; }
.raf-modal__line {
  height: 56px;
  background: var(--line-green);
  color: var(--white);
  font-size: 18px;
  box-shadow: 0 4px 6px rgba(0,0,0,.10), 0 10px 15px rgba(0,0,0,.10);
}
.raf-modal__line img { width: 28px; height: 28px; }
.raf-modal__done {
  padding: 10px;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--body);
  cursor: pointer;
}
.raf-modal__done:hover { color: var(--secondary); text-decoration: underline; }
@media (max-width: 480px) {
  .raf-modal__box { padding: 32px 20px 24px; border-radius: 22px; }
  .raf-modal__title { font-size: 22px; line-height: 30px; }
}
.raf-form__submit {
  width: 100%;
  height: 60px;
  font-size: 20px;
  background: var(--primary);
  color: var(--secondary);
  box-shadow: 0 4px 6px rgba(0,0,0,.10), 0 10px 15px rgba(0,0,0,.10);
}
.raf-form__note { margin-top: 10px; font-size: 13px; line-height: 20px; text-align: center; color: var(--body); }
.raf-form__alt {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 217, 0, .12);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #0a7a0a;
  cursor: pointer;
  transition: background .15s ease;
}
.raf-form__alt:hover { background: rgba(0, 217, 0, .2); }
.raf-form__done {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 207, 28, .18);
  font-size: 15px;
  line-height: 24px;
  color: var(--secondary);
}

/* --- FAQ ----------------------------------------------------------------- */
.raf-faq { padding: clamp(52px, 6.3vw, 90px) 0 clamp(56px, 7vw, 100px); background: var(--white); }
.raf-faq__title {
  text-align: center;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--secondary);
  margin-bottom: 48px;
}
.raf-faq__list {
  max-width: 900px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.raf-faq__item {
  border: 2px solid rgba(255, 207, 28, .5);
  border-radius: 16px;
  background: #fffdf6;
  overflow: hidden;
}
.raf-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  cursor: pointer;
  list-style: none;
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
  color: var(--secondary);
}
.raf-faq__item summary::-webkit-details-marker { display: none; }
.raf-faq__item summary::after {
  content: "";
  flex: none;
  width: 12px; height: 12px;
  border-right: 3px solid var(--secondary);
  border-bottom: 3px solid var(--secondary);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .2s ease;
}
.raf-faq__item[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.raf-faq__item > div {
  padding: 0 28px 24px;
  font-size: 18px;
  line-height: 30px;
  color: rgba(133, 92, 20, .85);
}

@media (max-width: 1024px) {
  .raf-lead__inner { flex-direction: column; gap: 40px; }
  .raf-form { flex: none; width: 100%; max-width: none; }
}
@media (max-width: 560px) {
  /* จอแคบ 2 คอลัมน์จะบีบเกินไป — กลับไปเรียงเดี่ยว */
  .raf-form__grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .raf-lead { scroll-margin-top: 96px; }
  .raf-lead__title { font-size: 28px; }
  .raf-lead__sub { font-size: 17px; line-height: 28px; }
  .raf-lead__points li { font-size: 16px; }
  .raf-form { padding: 24px 20px; }
  .raf-faq__title { font-size: 26px; margin-bottom: 28px; }
  .raf-faq__item summary { padding: 18px 20px; font-size: 17px; line-height: 26px; }
  .raf-faq__item > div { padding: 0 20px 20px; font-size: 16px; line-height: 27px; }
}

/* --- lead block: badge / ขั้นตอน / ปุ่มหลักเป็น LINE --------------------- */
.raf-lead__badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 16px;
  border-radius: 999px;
  background: #1f8a3b;
  font-size: 15px;
  font-weight: 700;
  line-height: 24px;
  color: #ffffff;
}
.raf-lead__howtitle {
  margin-top: 28px;
  font-size: 18px;
  font-weight: 700;
  color: var(--secondary);
}
.raf-lead__steps {
  list-style: none;                      /* reset ตัวเลขของ <ol> ไม่ให้ซ้ำกับ counter */
  margin: 0;
  padding: 0;
  counter-reset: raf-step;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.raf-lead__steps li {
  counter-increment: raf-step;
  position: relative;
  padding-left: 38px;
  font-size: 17px;
  line-height: 28px;
  color: rgba(133, 92, 20, .9);
}
.raf-lead__steps li::before {
  content: counter(raf-step);
  position: absolute;
  left: 0; top: 3px;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: var(--primary);
  font-size: 14px;
  font-weight: 700;
  color: var(--secondary);
}
.raf-lead__steps b { color: var(--secondary); }
.raf-lead__points { margin-top: 24px; }

.raf-form__lead {
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 22px;
  color: var(--body);
}
.raf-form__submit {
  /* CI RAFLINK: เหลือง primary ไล่เฉดเข้มลง + ตัวหนังสือน้ำตาล secondary */
  background: linear-gradient(180deg, #ffd94a 0%, #ffcf1c 45%, #f5b800 100%);
  color: var(--secondary);
  font-size: 17px;
  line-height: 24px;
  height: 54px;
  padding-inline: 16px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(197, 148, 12, .30), 0 10px 24px rgba(255, 207, 28, .35);
}
.raf-form__submit:hover { filter: brightness(1.04); }

/* CTA รอง — คุยกับทีมผ่าน LINE ทันที */
.raf-form__line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  margin-top: 10px;
  border-radius: 999px;
  border: 2px solid var(--line-green);
  background: rgba(0, 217, 0, .08);
  font-size: 16px;
  font-weight: 700;
  color: #0a7a0a;
  transition: background .15s ease, transform .18s ease;
}
.raf-form__line:hover { background: rgba(0, 217, 0, .16); transform: translateY(-2px); }
.raf-form__line img { width: 24px; height: 24px; }
.raf-form__or {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  line-height: 18px;
  color: var(--body);
}
.raf-form__alt {
  background: transparent;
  color: var(--body);
  font-weight: 400;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.raf-form__alt:hover { background: transparent; color: var(--secondary); }
.raf-form select.is-invalid { border-color: #c0392b; }

/* ==========================================================================
   Responsive refinement — desktop / laptop / tablet / mobile
   รวมการปรับที่ใช้ร่วมกันทุกหน้าไว้ที่เดียว วางท้ายไฟล์เพื่อให้ทับของเดิมได้
   ช่วงที่ใช้: ≥1440 desktop · 1024–1439 laptop · 768–1023 tablet · ≤767 mobile
   ========================================================================== */

/* --- คำยาว/URL ยาว ไม่ให้ดันกล่องจนล้น ---------------------------------- */
body { overflow-wrap: break-word; }
p, li, td, th, summary, label, h1, h2, h3, h4 { overflow-wrap: anywhere; }

/* --- ปุ่ม/ลิงก์ให้กดง่ายบนจอสัมผัส -------------------------------------- */
@media (hover: none) {
  .raf-footer__col a,
  .raf-footer__contact a,
  .raf-menu__list a,
  .raf-contact__menu a,
  .raf-reviews__remark a { display: inline-flex; align-items: center; min-height: 40px; }
  .raf-lead__phone { display: inline-flex; align-items: center; min-height: 44px; }
  /* iPad Pro แนวนอน (1025-1366) ยังใช้เมนูเดสก์ท็อป แต่เป็นจอสัมผัส
     ลิงก์เดิมสูงแค่ 24px จึงกดยาก — ขยายพื้นที่กดโดยไม่เปลี่ยนหน้าตา */
  .raf-nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .raf-nav__group { display: inline-flex; align-items: center; }
  .raf-btn { min-height: 44px; }
  .pkg-grid__note a, .raf-rate__note a { display: inline-flex; align-items: center; min-height: 40px; }
  /* ไอคอนโซเชียลในเมนูมือถือเดิม 34px เล็กกว่าเกณฑ์พื้นที่กด */
  .raf-menu__cta .raf-social a { width: 44px; height: 44px; }
}

/* --- แท็บเล็ต 768–1023: เมนูเป็นเบอร์เกอร์ แต่ขอบยังโปร่งกว่ามือถือ ------ */
@media (min-width: 768px) and (max-width: 1024px) {
  :root { --gutter: 40px; }
  .raf-header, .raf-header__inner { height: 88px; }
  .raf-brand__mark { width: 52px; height: 52px; }
  .raf-brand__name { font-size: 24px; line-height: 32px; }
  .raf-footer { padding-inline: 40px; }
  .raf-footer__cols { flex-direction: row; flex-wrap: wrap; gap: 40px; }
  .raf-footer__brand { width: 100%; }
  .raf-footer__col { width: auto; min-width: 220px; }
}

/* --- แล็ปท็อป 1024–1279: เมนูเดสก์ท็อปเพิ่งกลับมา ต้องบีบระยะไม่ให้ชนกัน - */
@media (min-width: 1025px) and (max-width: 1279px) {
  .raf-header__inner { padding-inline: 32px; }
  .raf-nav { gap: 16px; }
  .raf-nav a { font-size: 17px; }
  .raf-nav__quote { padding: 5px 12px; font-size: 16px; }
  .raf-brand__mark { width: 64px; height: 64px; }
  .raf-brand__name { font-size: 24px; }
  .raf-btn--primary { height: 40px; padding-inline: 20px; font-size: 17px; }
  .raf-header__right { gap: 14px; }
}

/* --- จอใหญ่มาก: ไม่ปล่อยให้เนื้อหายืดจนอ่านยาก -------------------------- */
@media (min-width: 1600px) {
  .raf-header__inner { max-width: 1560px; }
}

/* --- ตัวอักษรยืดหยุ่นตามจอ ---------------------------------------------- */
.raf-lead__title { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.35; }
.raf-faq__title,
.raf-reviews__title,
.raf-rate__title { font-size: clamp(24px, 3.2vw, 40px); line-height: 1.35; }
.raf-cta__title { font-size: clamp(24px, 3.6vw, 48px); line-height: 1.3; }
.raf-lead__sub { font-size: clamp(15px, 1.4vw, 18px); }
.raf-rate__eta-num { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.2; }

/* --- มือถือ ≤767: ปรับระยะ ตัวอักษร และปุ่มให้กดง่าย --------------------- */
@media (max-width: 767px) {

  /* ตัวอักษรเล็กสุดบนมือถือไม่ควรต่ำกว่า 14px */
  .raf-form__note, .raf-form__or, .raf-form__msg,
  .raf-rate__note, .raf-reviews__stat { font-size: 14px; line-height: 22px; }

  /* ปุ่มหลักเต็มความกว้าง กดง่ายด้วยนิ้วโป้ง */
  .raf-form__submit, .raf-form__line { width: 100%; }
  .raf-lead__direct { margin-top: 24px; }
  .raf-lead__line { width: 100%; max-width: 420px; height: 52px; padding-inline: 16px; font-size: 17px; }   /* cap กันยืดยาวเกินบนแท็บเล็ตแคบ */
  .raf-modal__line { width: 100%; }
  .raf-cta-chat { width: 100%; }

  /* ฟอร์ม: ช่องกรอกสูงพอสำหรับนิ้ว และ label ยังอ่านชัด */
  .raf-form input, .raf-form select { height: 48px; font-size: 16px; }  /* 16px กัน iOS zoom ตอนโฟกัส */
  .raf-form__row label { font-size: 15px; }
  .raf-form { padding: 22px 18px; border-radius: 18px; }
}

/* --- popup: ไม่ล้นจอ และเลื่อนในตัวได้ถ้าเนื้อหายาว --------------------- */
.raf-modal__box { max-height: calc(100vh - 40px); overflow-y: auto; }
@media (max-width: 767px) {
  .raf-modal { padding: 16px; }
  .raf-modal__box { max-height: calc(100vh - 32px); }
  .raf-modal__x { width: 44px; height: 44px; top: 8px; right: 8px; }
}

/* --- ปุ่มลอย: มือถืออย่าทับปุ่ม CTA ในเนื้อหา --------------------------- */
@media (max-width: 767px) {
  /* มือถือ: เรียงแนวตั้งเหมือน desktop แต่ย่อขนาดลง เพื่อไม่ให้กินพื้นที่มาก */
  .raf-sticky { flex-direction: column; align-items: center; gap: 10px; right: 12px; bottom: 12px; }
  .raf-sticky__group { flex-direction: column; gap: 8px; }
  .raf-sticky__btn { width: 46px; height: 46px; }
  .raf-sticky__btn img { width: 28px; height: 28px; }
  .raf-sticky__cta { width: 74px; min-height: 68px; padding: 7px 5px; border-radius: 18px; }
  .raf-sticky__cta img { width: 24px; height: 24px; }
  .raf-sticky__cta span { font-size: 10px; line-height: 12px; }
  /* กันเนื้อหาสำคัญไม่ให้ถูกปุ่มลอยบัง */
  .raf-lead__inner, .raf-faq__list, .raf-rate .raf-container { padding-right: 8px; }
}

/* --- การ์ด/กริดที่ใช้ร่วมกัน: ให้ยืดตามที่ว่างแทน breakpoint ตายตัว ------ */
.raf-rate__eta,
.raf-rate__prep { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }

/* --- แท็บเล็ต: ระยะ section อยู่กึ่งกลางระหว่างเดสก์ท็อปกับมือถือ -------- */
@media (min-width: 768px) and (max-width: 1024px) {
  .raf-rate__title--flow { margin-top: 64px; }
}

/* --- แถวปุ่มในเนื้อหา: มือถือให้เต็มความกว้าง กดง่ายกว่าเรียงติดกัน ----- */
@media (max-width: 767px) {
  .duo-actions, .pr-actions, .mkt-band__actions, .seo-band__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .duo-actions__btn, .pr-btn, .mkt-band__btn, .seo-band__btn,
  .duo-plan__cta, .pkg-card__cta { width: 100%; }
  .duo-actions__btn, .pr-btn, .mkt-band__btn, .seo-band__btn { justify-content: center; }
}

/* --- ป้าย/หมายเหตุขนาดเล็กในหน้าแพ็กเกจ: มือถือไม่ให้ต่ำกว่า 14px ------- */
@media (max-width: 767px) {
  .pkg-card__badge,
  .duo-plan__badge,
  .duo-pricecard__unit { font-size: 14px; line-height: 22px; }
}

/* ==========================================================================
   Package hero — ปุ่มรองใต้การ์ดราคา + แถบโลโก้ Publisher
   ใช้ร่วมกันทั้ง 3 หน้า landing (Digital PR / Backlinks / English)
   ========================================================================== */

/* H2 คีย์เวิร์ดใต้ H1 ของหน้า package (ย้ายออกมาจากใน H1) */
.pr-hero__kw2, .seo-hero__kw2 {
  margin-top: 10px;
  font-size: clamp(19px, 1.6vw, 24px);
  font-weight: 600;
  line-height: 1.5;
  color: rgba(133, 92, 20, .82);
  overflow-wrap: anywhere;
}

/* ปุ่มรอง "ขอ Custom Package" ใต้การ์ดราคาใน hero ของทุกหน้าแพ็กเกจ */
.raf-hero-alt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  margin-top: 12px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--secondary);
  font-size: 18px;
  font-weight: 700;
  line-height: 26px;
  color: var(--white);
  text-decoration: none;
  transition: filter .2s ease, transform .2s ease;
}
.raf-hero-alt:hover { filter: brightness(1.1); transform: translateY(-2px); }
.raf-hero-alt img { width: 24px; height: 24px; flex: none; }

/* ==========================================================================
   ตารางเปรียบเทียบ RAFLink vs ผู้ให้บริการทั่วไป (partials/compare.html)
   ========================================================================== */
.raf-sr {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.raf-vs { padding-block: clamp(52px, 6.2vw, 88px); background: linear-gradient(180deg, #fffdf6 0%, var(--white) 100%); }
.raf-vs__title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--black);
  text-align: center;
}
.raf-vs__title span { color: var(--gold-deep, #d99a0b); }
.raf-vs__sub {
  margin-top: 12px;
  font-size: 17px;
  line-height: 28px;
  color: var(--body);
  text-align: center;
}
.raf-vs__wrap {
  margin-top: 40px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 4px 6px rgba(12,12,13,.05), 0 14px 30px rgba(12,12,13,.07);
  overflow: hidden;
}
.raf-vs__table { width: 100%; border-collapse: collapse; text-align: left; }
.raf-vs__table th,
.raf-vs__table td { padding: 18px 20px; vertical-align: top; }

.raf-vs__table thead th {
  font-size: 18px;
  font-weight: 700;
  line-height: 26px;
  color: var(--secondary);
  background: #fff8e3;
}
.raf-vs__table thead th.is-us { background: var(--primary); color: var(--secondary); }
.raf-vs__table thead th.is-them { background: #f4f4f5; color: #6a6a6a; }

.raf-vs__table tbody tr + tr th,
.raf-vs__table tbody tr + tr td { border-top: 1px solid rgba(12,12,13,.07); }

.raf-vs__table tbody th {
  width: 26%;
  font-size: 17px;
  font-weight: 700;
  line-height: 26px;
  color: var(--black);
}
.raf-vs__table tbody th span {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  color: var(--body);
}
.raf-vs__table tbody td {
  width: 37%;
  font-size: 16px;
  line-height: 26px;
}
/* ช่องของเรา: พื้นเหลืองอ่อน + ติ๊กถูก */
.raf-vs__table tbody td.is-us { background: #fffdf3; color: var(--black); font-weight: 600; }
.raf-vs__table tbody td.is-them { color: var(--body); }
.raf-vs__table tbody td::before {
  content: "";
  display: inline-block;
  width: 20px; height: 20px;
  margin-right: 10px;
  border-radius: 999px;
  vertical-align: -4px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px 9px;
}
.raf-vs__table tbody td.is-us::before {
  background-color: #16a34a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='9' viewBox='0 0 11 9'%3E%3Cpath d='M1 4.6 4 7.6 10 1.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.raf-vs__table tbody td.is-them::before {
  background-color: #c9ccd1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' viewBox='0 0 9 9'%3E%3Cpath d='M1.4 1.4 7.6 7.6M7.6 1.4 1.4 7.6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 9px 9px;
}

.raf-vs__note {
  margin-top: 16px;
  font-size: 13px;
  line-height: 20px;
  color: var(--body);
  text-align: center;
}
.raf-vs__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}
.raf-vs__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 700;
  line-height: 26px;
  text-decoration: none;
  transition: transform .2s ease, filter .2s ease, background .2s ease;
}
.raf-vs__btn:hover { transform: translateY(-2px); }
.raf-vs__btn--line { background: var(--secondary); color: var(--white); }
.raf-vs__btn--line:hover { filter: brightness(1.12); }
.raf-vs__btn--ghost { border: 2px solid var(--secondary); color: var(--secondary); }
.raf-vs__btn--ghost:hover { background: rgba(133, 92, 20, .08); }

/* มือถือ: แปลงแต่ละแถวเป็นการ์ด เพราะ 3 คอลัมน์แคบเกินอ่าน */
@media (max-width: 767px) {
  .raf-vs__wrap { border-radius: 20px; background: transparent; box-shadow: none; }
  .raf-vs__table, .raf-vs__table tbody, .raf-vs__table tr,
  .raf-vs__table tbody th, .raf-vs__table tbody td { display: block; width: auto; }
  .raf-vs__table thead { display: none; }
  .raf-vs__table tbody tr {
    margin-bottom: 14px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 2px 4px rgba(12,12,13,.05), 0 10px 20px rgba(12,12,13,.06);
    overflow: hidden;
  }
  .raf-vs__table tbody tr + tr th,
  .raf-vs__table tbody tr + tr td { border-top: 0; }
  .raf-vs__table tbody th { padding: 16px 18px 12px; background: #fff8e3; }
  .raf-vs__table tbody td { padding: 12px 18px; font-size: 15px; line-height: 24px; }
  .raf-vs__table tbody td + td { border-top: 1px solid rgba(12,12,13,.07); }
  .raf-vs__table tbody td::after {
    content: attr(data-label);
    display: block;
    margin-top: 4px;
    padding-left: 30px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--body);
  }
  .raf-vs__btn { width: 100%; max-width: 340px; }
}

/* ==========================================================================
   Hero แบบแบนเนอร์ — ใช้ร่วมกันทั้ง 4 หน้าแพ็กเกจ
   เป้าหมาย: ข้อความน้อยลง อ่านง่ายขึ้น และอ่านเป็น "แบนเนอร์" ชัดเจน
   ========================================================================== */
/* แบนเนอร์เต็มความกว้าง ใช้ไล่สีชุดเดียวกับ header จึงต่อกันสนิทไม่มีรอยต่อ */
.raf-banner {
  background:
    linear-gradient(180deg, rgba(60, 40, 6, 0) 0%, rgba(60, 40, 6, .30) 55%, rgba(60, 40, 6, .42) 100%),
    var(--brand-gradient);
  padding-block: clamp(40px, 5.5vw, 84px) clamp(44px, 6vw, 92px) !important;
}
.raf-banner > .raf-banner__inner {
  position: relative;
  z-index: 1;
  gap: clamp(24px, 3.5vw, 56px);     /* คุมช่องไฟเอง ไม่งั้นการ์ดราคาของหน้า SEO ล้น */
  background: none;
  border-radius: 0;
  box-shadow: none;
}
/* blob เดิมของแต่ละหน้าซ้อนกับพื้นไล่สีแล้วดูรก */
.raf-banner > [aria-hidden="true"] { display: none !important; }

/* คำที่ต้องการเน้นใน H1 */
.raf-banner .raf-hero-hl { color: var(--primary); }

/* --- สเกลตัวอักษรใน hero: H1 > H2 > H3 > เนื้อความ ให้เท่ากันทั้ง 4 หน้า ---
   ใช้ตัวเลือกลูกหลานของ .raf-banner เพื่อชนะ CSS เฉพาะหน้า ที่โหลดทีหลัง */
.raf-banner .raf-hero-h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.01em;
  color: var(--white);
}
.raf-banner .raf-hero-h2 {
  margin-top: 10px;
  font-size: clamp(19px, 1.7vw, 24px);
  font-weight: 700;
  line-height: 1.45;
  color: #ffe9a3;
}
.raf-banner .raf-hero-h3 {
  max-width: 34ch;
  margin-top: 22px;
  font-size: clamp(17px, 1.4vw, 21px);
  font-weight: 600;
  line-height: 1.55;
  color: rgba(255, 255, 255, .96);
}
.raf-banner .raf-hero-h3 b { font-weight: 700; color: var(--white); }
.raf-banner .raf-hero-lead {
  max-width: 46ch;
  margin-top: 10px !important;
  font-size: clamp(15px, 1.15vw, 17px) !important;
  font-weight: 400;
  line-height: 1.75 !important;
  color: rgba(255, 255, 255, .88) !important;
}
.raf-banner .raf-hero-lead b { font-weight: 600; color: var(--white); }

/* จอแคบ ข้อความกินเต็มความกว้างจึงไปทับโซนสีอ่อนของไล่สี ต้องเพิ่มม่านให้เข้มขึ้น */
@media (max-width: 1024px) {
  .raf-banner {
    background:
      linear-gradient(180deg, rgba(60, 40, 6, 0) 0%, rgba(60, 40, 6, .50) 38%, rgba(60, 40, 6, .62) 100%),
      var(--brand-gradient);
  }
}

.raf-banner .duo-hero__badge {
  background: rgba(255, 255, 255, .18);
  border: 1.5px solid rgba(255, 255, 255, .5);
  color: var(--white);
}

@media (max-width: 767px) {
  .raf-banner .raf-hero-h2 { margin-top: 8px; }
  .raf-banner .raf-hero-h3 { max-width: none; margin-top: 16px; }
  .raf-banner .raf-hero-lead { max-width: none; margin-top: 8px !important; }
}


@media (max-width: 1024px) {
}
@media (max-width: 767px) {
}

/* แถบโลโก้ Publisher ใต้ hero — เลื่อนแนวนอน รวมทุกสื่อที่มีในการ์ดของหน้านั้น */
.raf-pubstrip { padding-block: 8px 44px; }
.raf-pubstrip__label {
  margin-bottom: 16px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--secondary);
  text-align: center;
}
.raf-pubstrip__viewport {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}
.raf-pubstrip__track {              /* สองชุดเหมือนกัน เลื่อน -50% แล้ววนต่อเนียน ๆ */
  display: flex;
  width: max-content;
  animation: raf-marquee var(--raf-marquee, 60s) linear infinite;
}
.raf-pubstrip__viewport:hover .raf-pubstrip__track,
.raf-pubstrip__viewport:focus-within .raf-pubstrip__track { animation-play-state: paused; }
@keyframes raf-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .raf-pubstrip__track { animation: none; }
  .raf-pubstrip__viewport { overflow-x: auto; }
}
.raf-pubstrip__logos {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-inline: 6px;
}
.raf-pubstrip__logos li {   /* ไม่มีกรอบ ปล่อยให้เห็นแต่ตัวโลโก้ */
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 148px;
  height: 62px;
  padding: 6px 10px;
}
.raf-pubstrip__logos img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.raf-pubstrip__hint {
  margin-top: 12px;
  font-size: 13px;
  line-height: 20px;
  color: var(--body);
  text-align: center;
}
@media (max-width: 767px) {
  .raf-pubstrip { padding-block: 4px 32px; }
  .raf-pubstrip__logos li { width: 124px; height: 54px; }
}

/* ปุ่มรอง "Package details" ใน hero — โทนอ่อนกว่าปุ่มหลัก เพื่อไล่ลำดับความสำคัญ */
.raf-hero-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  margin-top: 10px;
  padding: 10px 24px;
  border: 2px solid var(--secondary);
  border-radius: 999px;
  background: transparent;
  font-size: 17px;
  font-weight: 700;
  line-height: 24px;
  color: var(--secondary);
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.raf-hero-ghost:hover { background: rgba(133, 92, 20, .08); transform: translateY(-2px); }
.raf-hero-ghost::after { content: "\2193"; font-size: 18px; }

/* ตารางโลโก้ในการ์ดราคา — ทุกโลโก้ได้กล่องขนาดเท่ากัน จึงดูสมดุลแม้สัดส่วนต่างกันมาก */
.raf-logogrid {
  display: flex;
  flex: 1 1 auto;            /* ยืดกินที่ว่าง เพื่อให้บล็อกราคาของทุกการ์ดอยู่ระดับเดียวกัน */
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;   /* แถวสุดท้ายที่ไม่เต็มจะอยู่กึ่งกลางเอง */
  gap: 8px;
  width: 100%;
}
.raf-logogrid li {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 calc((100% - 8px) / 2);
  height: 54px;
  padding: 6px 8px;
  border: 1px solid rgba(12, 12, 13, .07);
  border-radius: 10px;
  background: var(--white);
}
.raf-logogrid img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
/* ชื่อ Publisher แบบตัวอักษร สำหรับสื่อที่ยังไม่มีไฟล์โลโก้ */
.raf-logogrid .is-name {
  padding: 4px 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 15px;
  color: var(--secondary);
  text-align: center;
  overflow-wrap: anywhere;
}
@media (max-width: 767px) {
  .raf-logogrid li { height: 48px; }
}

/* ปุ่ม "ปรึกษาฟรี" ในการ์ดราคาของทุกหน้าแพ็กเกจ — ตรึงไว้ล่างสุดของการ์ด */
.raf-plan-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  margin-top: auto;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--secondary);
  font-size: 17px;
  font-weight: 700;
  line-height: 24px;
  color: var(--white);
  text-decoration: none;
  transition: filter .2s ease;
}
.raf-plan-cta:hover { filter: brightness(1.12); }
.raf-plan-cta img { width: 20px; height: 20px; flex: none; }

@media (max-width: 1024px) {
}
@media (max-width: 767px) {
}

/* คอลัมน์ขวาของ hero: การ์ดราคา + โลโก้สื่อ เรียงลงมาเป็นชุดเดียว */
.raf-hero-side {
  display: flex;
  flex-direction: column;
  flex: none;
  width: 432px;
  max-width: 100%;
}
.raf-hero-side > :first-child { width: 100%; max-width: none; }
@media (max-width: 1024px) {
  .raf-hero-side { width: 100%; max-width: 520px; margin-inline: auto; }
}

/* จอเตี้ยแนวนอน (มือถือหมุนข้าง): header 88px กินพื้นที่ไปเกือบ 1 ใน 5 ของจอ */
@media (orientation: landscape) and (max-height: 480px) {
  .raf-header, .raf-header__inner { height: 60px; }
  .raf-brand__mark { width: 34px; height: 34px; }
  .raf-brand__name { font-size: 20px; }
  #media, #quote, #reviews { scroll-margin-top: 68px; }
}
