
body.modal-open {
    padding-right: 0 !important;
    overflow-y: scroll !important; /* บังคับให้มีแถบ scroll ค้างไว้ป้องกันจอเด้งซ้ายขวา */
}

.fixed-top, .sticky-top, header {
    padding-right: 0 !important;
}

.modal {
    padding-right: 0 !important;
}

/* ===============================
    🔸 CTA SECTION (Contact & Steps)
    Class: .cta-area
    ================================= */

/* --- 1. BASE STYLES (พื้นฐานใช้ทุกหน้าจอ) --- */
.cta-area {
  background-color: #F6F1E9;
  padding: 4rem 0;
  position: relative;
  padding-bottom: 158px;
}

.steps-area {
  background-color: #F6F1E9; 
  padding: 4rem 0;
  position: relative;
  padding-top: 80px;
  padding-bottom: 90px;   
}

/* หัวข้อ */
.cta-area h3 {
  color: #444;
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 62px;
  padding-top: 46px;
}

/* Wrapper ของปุ่ม (Link) */
.contact-btn-wrapper {
  display: block;
  cursor: pointer;
  border-radius: 10px;
  text-decoration: none;
}

/* ตัวรูปภาพปุ่ม */
.contact-btn-img {
  border-radius: 35px;
  width: 100%;             /* ให้ยืดหดตามกล่อง */
  height: auto;            /* สูงตามสัดส่วนภาพ */
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
  display: block;
  
  /* ✅ Transition ตรงนี้เพื่อให้เงาเด้งนุ่มๆ เหมือน Product Showcase */
  transition: filter 0.3s ease, transform 0.3s ease; 
}

/* Effect Hover */
.contact-btn-wrapper:hover .contact-btn-img {
  filter: drop-shadow(0 8px 2px rgba(0, 0, 0, 0.3));
  transform: translateY(-3px); /* ขยับลอยขึ้นนิดนึงเพิ่มมิติ */
} 


/* =================================================================
    💻 LAPTOP / MACBOOK (หน้าจอ 992px ถึง 1499px)
    ✅ คงค่าเดิมที่แก้ให้ MacBook แล้ว (เรียง 3 ไม่ตก)
    ================================================================= */
@media (min-width: 992px) and (max-width: 1499px) {
  
  .cta-area .container-fluid,
  .steps-area .container-fluid {
    padding-left: 30px !important;
    padding-right: 30px !important;
  }

  .cta-area .row,
  .steps-area .row {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap !important; /* ห้ามตัดบรรทัด */
    gap: 20px !important;
    
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .cta-area .col-lg-4,
  .steps-area .col-lg-4 {
    flex: 1 1 auto !important;
    width: 33.33% !important;
    max-width: 389px !important;
    padding: 0 !important; 
  }

  .contact-btn-img {
    width: 100% !important;
    max-width: 100% !important;
  }
}


/* =================================================================
    🖥️ LARGE DESKTOP (หน้าจอ 1500px ขึ้นไป)
    ✅ ใช้ Design เดิมของคุณ
    ================================================================= */
@media (min-width: 1500px) {
  
  .cta-area .container-fluid,
  .steps-area .container-fluid {
    max-width: 100% !important;
    padding-left: 73px !important;
    padding-right: 73px !important;
  }

  .cta-area .row,
  .steps-area .row {
    display: flex;
    justify-content: center;
    gap: 64px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .cta-area .col-lg-4,
  .steps-area .col-lg-4 {
    width: auto !important; 
    flex: 0 0 auto !important;
    padding: 0 !important; 
  }
  
  .contact-btn-img {
    max-width: 389px; 
  }
}


/* =================================================================
    📱 TABLET FIX (768px - 991px)
    ✅ แก้ปัญหา Tablet: บังคับเรียง 3 ปุ่มแนวนอน (เหมือน MacBook)
    ================================================================= */
@media (min-width: 768px) and (max-width: 991.98px) {
  
  .cta-area .container-fluid,
  .steps-area .container-fluid {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  .cta-area .row,
  .steps-area .row {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap !important; 
    gap: 10px !important;  
  }

  .cta-area .col-lg-4,
  .steps-area .col-lg-4 {
    flex: 1 1 auto !important;
    width: 33.33% !important; 
    padding: 0 !important;
  }

  .contact-btn-img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
  }
  
  .cta-area h3 {
     font-size: 30px; 
     margin-bottom: 40px;
  }
}



@media (max-width: 767.98px) {
  
  .cta-area .row,
  .steps-area .row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;       
    gap: 25px !important; 
  }

  .contact-btn-img {
    width: 100%;
    max-width: 300px !important; 
    height: auto !important;
  }
  
  .cta-area h3 {
     font-size: 26px; 
     margin-bottom: 30px;
  }
}