/* ============================================================================
   สารบัญไฟล์ CSS - CHOICE CAR RENTAL (กด Ctrl+F ค้นหาเลขหมวดเพื่อแก้ไขได้ทันที)
   ----------------------------------------------------------------------------
00. ตัวแปรสีหลักและค่าเริ่มต้น (Variables & Global Reset)
1. แถบเมนูนำทางด้านบน (Navbar & Logo)
2. ส่วนแบนเนอร์หลักและกล่องค้นหารถว่าง (Hero Section & Search Box)
3. แถบจุดเด่นบริการ 4 ข้อ (Trust Bar)
4. ส่วนรถเช่าแนะนำหน้าแรก (Featured Cars Section)
5. Responsive พื้นฐานสำหรับ Navbar มือถือ, Hero, Trust Bar และ Cars
6. ส่วนเปรียบเทียบจุดเด่นบริการ (Compare Section)
7. ส่วนขั้นตอนการเช่า 3 ขั้นตอน (Steps Section)
8. ส่วนแนะนำแบรนด์เกี่ยวกับเรา (About Section - Homepage)
9. ส่วนแบนเนอร์กระตุ้นการจองท้ายหน้า (CTA Banner)
10. ส่วนท้ายเว็บไซต์ (Footer)
11. ส่วนรีวิวจากลูกค้า (Customer Reviews)
12. ส่วนข่าวสารและสาระน่ารู้หน้าแรก (News Section - Homepage)
13. หน้าเลือกรถเช่าและจองออนไลน์ - ส่วนที่ 1: เลือกรูปแบบและวันเวลา (cars.html)
14. หน้าเลือกรถเช่าและจองออนไลน์ - ส่วนที่ 2: ตัวกรองและรายการรถ (cars.html)
15. หน้าเลือกรถเช่าและจองออนไลน์ - ส่วนที่ 3: ฟอร์มกรอกข้อมูลและสรุปยอด (cars.html)
16. หน้าเงื่อนไขการเช่าและคำถามที่พบบ่อย (conditions.html)
17. ส่วนเสริมหน้าเลือกรถและหน้าต่างป๊อปอัป (Extra Info & Modals)
18. หน้ารายละเอียดรถเช่าและแกลเลอรี 7 มุม (car-detail.html)
19. หน้าเกี่ยวกับเราและติดต่อสอบถาม (about.html)
20. หน้าข่าวสารและหน้ารายละเอียดบทความ (news.html & news-detail.html)
21. Header & Footer กลางแบบใหม่ (Shared Components)
22. ส่วนช่องทางการชำระเงินและการมัดจำ (conditions.html)
23. การ์ดจองสำเร็จ, QR Code ชำระเงิน และแนบสลิป (cars.html)
24. หน้าตรวจสอบสถานะการจอง (check-booking.html)
25. ระบบจัดหน้าพิมพ์ใบยืนยันการจอง 1 หน้า A4 (@media print)
26. สถานะรถไม่ว่างในวันที่เลือก (Unavailable State)
27. ระบบสไลด์ Carousel หน้าแรก (รีวิว, รถเช่าแนะนำ, ข่าวสาร)
28. ส่วนภาพส่งมอบรถจริงจากลูกค้าและ Lightbox (Delivery Photos Gallery)
   ============================================================================ */


/* ============================================================================
00. ตัวแปรสีหลักและค่าเริ่มต้น (Variables & Global Reset)
   ============================================================================ */
:root {
  --navy: #091E3A;          /* น้ำเงินกรมท่าเข้มสำหรับหัวข้อและแถบหลัก */
  --primary: #0D56C6;       /* น้ำเงินสดหลักสำหรับปุ่มกดและไฮไลต์ */
  --primary-hover: #083B8E; /* น้ำเงินเข้มเมื่อนำเมาส์ชี้ */
  --slate-blue: #3B526B;    /* เทาอมน้ำเงินเข้มสำหรับข้อความรองให้อ่านชัด */
  --primary-light: #E0EEFF; /* ฟ้าอ่อนสำหรับพื้นหลังป้ายและไอคอน */
  --bg-soft: #DCE8F7;       /* ฟ้าอ่อนโทนเข้มขึ้นสำหรับสลับพื้นหลัง Section */
  --border-blue: #BFD5F0;   /* เส้นขอบฟ้าคมชัด */
  --white: #FFFFFF;
  --shadow: 0 12px 30px -5px rgba(9, 30, 58, 0.13);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Noto Sans Thai', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--white);
  color: var(--navy);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}


/* ============================================================================
01. แถบเมนูนำทางด้านบน (Navbar & Logo) - พื้นหลังเข้ม + โปร่งใสขุ่นเมื่อเลื่อนลง
   ============================================================================ */
#header-placeholder {
  display: contents;
}

#header-placeholder:empty {
  display: block;
  height: 112px;
  background: #091E3A;
}

.navbar {
  background: #091E3A;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 16px rgba(9, 30, 58, 0.18);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, -webkit-backdrop-filter 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

/* สถานะเมื่อเลื่อนหน้าจอลงมาเกิน 100px (โปร่งใสขุ่นแบบ Frosted Glass) */
.navbar.scrolled {
  background: rgba(9, 30, 58, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
}

.logo-icon {
  font-size: 26px;
  background: rgba(255, 255, 255, 0.12);
  padding: 6px 10px;
  border-radius: 10px;
}

.logo-text strong {
  color: #60A5FA;
  font-size: 22px;
  font-weight: 700;
}

.logo-text span {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
}

.nav-menu {
  display: flex;
  gap: 18px;
}

.nav-menu a {
  text-decoration: none;
  color: #E2E8F0;
  font-weight: 500;
  font-size: 15px;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch-btn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.lang-switch-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.btn-call {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  text-decoration: none;
  padding: 9px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
}

.btn-call:hover {
  background: var(--primary);
  color: var(--white);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--white);
  padding: 4px 8px;
}


/* ============================================================================
02. ส่วนแบนเนอร์หลักและกล่องค้นหารถว่าง (Hero Section & Search Box)
   ============================================================================ */
.hero {
  position: relative;
  width: 100%;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--white) 100%);
  padding: 64px 0 56px;
  overflow: hidden;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-content h1 {
  font-size: 42px;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--navy);
  font-weight: 700;
}

.hero-content .highlight {
  color: var(--primary);
}

.hero-desc {
  color: var(--slate-blue);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 560px;
}

.price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  background: var(--white);
  padding: 12px 24px;
  border-radius: 14px;
  border: 1.5px solid var(--border-blue);
  box-shadow: var(--shadow);
}

.price-label {
  font-size: 14px;
  color: var(--slate-blue);
}

.price-amount {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
}

.price-unit {
  font-size: 15px;
  color: var(--slate-blue);
}

/* ภาพรถยนต์ฝั่งขวา (กรณีใช้ Hero แบบ 2 คอลัมน์) */
.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-backdrop {
  position: absolute;
  width: 92%;
  height: 92%;
  background: #A8CCF0;
  border-radius: 28px;
  transform: rotate(-2.5deg);
  z-index: 1;
}

.hero-image img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 540px;
  border-radius: 22px;
  box-shadow: 0 20px 35px -10px rgba(9, 30, 58, 0.22);
  object-fit: cover;
}

/* กล่องค้นหารถว่าง */
.search-box {
  position: relative;
  z-index: 2;
  background: var(--white);
  padding: 24px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1.5px solid var(--border-blue);
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 16px;
  align-items: end;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}

.form-group select,
.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-blue);
  border-radius: 10px;
  font-size: 14px;
  color: var(--navy);
  background: #F4F8FE;
  outline: none;
  transition: border-color 0.2s;
}

.form-group select:focus,
.form-group input:focus {
  border-color: var(--primary);
  background: var(--white);
}

.btn-search {
  background: linear-gradient(135deg, var(--primary) 0%, #1672F0 100%);
  color: var(--white);
  border: none;
  padding: 13px 30px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(13, 86, 198, 0.28);
  transition: all 0.2s;
  height: 46px;
  white-space: nowrap;
}

.btn-search:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
}

/* แบนเนอร์หน้าแรกแบบภาพเต็มแถบ (โทนสีสำหรับภาพกลางคืนเทศกาลยี่เป็ง) */
.hero-panoramic {
  position: relative;
  width: 100%;
  background: url('../img/loy-krathong-bg.webp') center center / cover no-repeat;
  padding: 72px 0 60px;
  border-bottom: 4px solid #0D56C6;
}

.hero-panoramic::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 30, 58, 0.78) 0%, rgba(9, 30, 58, 0.42) 55%, rgba(9, 30, 58, 0.25) 100%);
  z-index: 1;
}

.hero-panoramic .container,
.hero-panoramic .hero-container {
  position: relative;
  z-index: 2;
  display: block;
}

.hero-panoramic .hero-content {
  max-width: 620px;
}

.hero-panoramic .badge {
  background: #F59E0B;
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45);
}

.hero-panoramic h1 {
  color: #FFFFFF !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}

.hero-panoramic h1 .highlight {
  color: #60A5FA !important;
}

.hero-panoramic .hero-desc {
  color: #F1F5F9 !important;
  font-weight: 400;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
}

.hero-panoramic .price-tag {
  background: rgba(9, 30, 58, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.hero-panoramic .price-amount {
  color: #FBBF24 !important;
  text-shadow: none;
}

.hero-panoramic .price-label,
.hero-panoramic .price-unit {
  color: #FFFFFF !important;
  font-weight: 500;
  text-shadow: none;
}

.hero-panoramic .search-box {
  position: relative;
  z-index: 3;
  margin-top: 38px;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 40px rgba(9, 30, 58, 0.32);
}

.hero-panoramic .search-box label {
  color: #091E3A !important;
  font-weight: 700;
  text-shadow: none;
}

.hero-panoramic .form-group select,
.hero-panoramic .form-group input {
  background: #FFFFFF !important;
  border: 1.5px solid #CBD5E1 !important;
  color: #091E3A !important;
}

.hero-panoramic .form-group select:focus,
.hero-panoramic .form-group input:focus {
  border-color: #0D56C6 !important;
}

@media (max-width: 900px) {
  .hero-panoramic {
    padding: 48px 0 42px;
  }
  .hero-panoramic::before {
    background: rgba(9, 30, 58, 0.65);
  }
  .hero-panoramic .hero-content {
    max-width: 100%;
  }
  .hero-panoramic .search-box {
    margin-top: 28px;
  }
}


/* ============================================================================
03. แถบจุดเด่นบริการ 4 ข้อ (Trust Bar - ปรับโทนกรมท่าเข้มตัดขอบทอง)
   ============================================================================ */
.trust-bar {
  padding: 28px 0;
  background: linear-gradient(135deg, #091E3A 0%, #0E3A75 100%);
  border-bottom: 3px solid #F59E0B;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  background: transparent;
  padding: 0;
  border: none;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 16px 18px;
  border-radius: 16px;
}

.trust-icon {
  font-size: 24px;
  background: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-text {
  display: flex;
  flex-direction: column;
}

.trust-text strong {
  font-size: 15px;
  color: var(--white);
  font-weight: 700;
}

.trust-text span {
  font-size: 13px;
  color: #C7E0FF;
}


/* ============================================================================
04. ส่วนรถเช่าแนะนำหน้าแรก (Featured Cars Section)
   ============================================================================ */
.cars-section {
  padding: 65px 0 80px;
  background: var(--bg-soft);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  gap: 20px;
  flex-wrap: wrap;
}

.section-subtitle {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
}

.car-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--white);
  color: var(--slate-blue);
  border: 1.5px solid var(--border-blue);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.cars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.car-card {
  background: var(--white);
  border: 1.5px solid var(--border-blue);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.car-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 18px 36px -6px rgba(13, 86, 198, 0.22);
}

.car-card.hidden {
  display: none;
}

/* ป้ายสถานะรถว่างสีเขียวมรกต */
.car-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: linear-gradient(135deg, #059669 0%, #10B981 100%);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
  z-index: 2;
}

.car-img-wrap {
  background: #DCE8F8;
  height: 210px;
  overflow: hidden;
}

.car-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.car-card:hover .car-img-wrap img {
  transform: scale(1.04);
}

.car-body {
  padding: 22px;
}

.car-type-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  display: block;
  margin-bottom: 4px;
}

.car-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}

.car-specs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-blue);
  font-size: 13px;
  color: var(--slate-blue);
}

/* ไอคอนสเปกรถ (.png) เฉพาะการ์ดรถหน้าแรก (index.html) */
.car-specs span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.car-specs .spec-png-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

.car-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.car-price .amount {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

.car-price .unit {
  font-size: 13px;
  color: var(--slate-blue);
}

.btn-book {
  background: linear-gradient(135deg, var(--primary) 0%, #1672F0 100%);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(13, 86, 198, 0.25);
  transition: all 0.2s;
}

.btn-book:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
}

.view-all-wrap {
  text-align: center;
  margin-top: 40px;
}

.btn-outline {
  display: inline-block;
  padding: 12px 28px;
  border: 2px solid var(--primary);
  background: var(--white);
  color: var(--primary);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.2s;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}


/* ============================================================================
05. Responsive พื้นฐานสำหรับ Navbar มือถือ, Hero, Trust Bar และ Cars
   ============================================================================ */
@media (max-width: 1024px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    width: 100%;
    background: rgba(9, 30, 58, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 20px;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 2px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
    z-index: 999;
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-menu a {
    padding: 10px 14px;
  }
  .menu-toggle {
    display: block;
  }
}

@media (max-width: 992px) {
  .hero {
    padding: 48px 0 44px;
  }
  .hero-container {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 32px;
  }
  .hero-content h1 {
    font-size: 34px;
  }
  .search-box {
    grid-template-columns: repeat(2, 1fr);
    padding: 20px;
  }
  .search-box .btn-search {
    grid-column: 1 / -1;
    width: 100%;
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 36px 0 40px;
  }
  .badge {
    font-size: 12.5px;
    padding: 5px 14px;
  }
  .hero-content h1 {
    font-size: 28px;
  }
  .hero-desc {
    font-size: 14.5px;
    margin-bottom: 20px;
  }
  .price-tag {
    padding: 10px 18px;
  }
  .price-amount {
    font-size: 26px;
  }
  .search-box {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px;
  }
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .cars-grid {
    grid-template-columns: 1fr;
  }
  .section-title {
    font-size: 26px;
  }
}


/* ============================================================================
06. ส่วนเปรียบเทียบจุดเด่นบริการ (Compare Section)
   ============================================================================ */
.section-header-center {
  text-align: center;
  margin-bottom: 42px;
}

.compare-section {
  padding: 75px 0;
  background: var(--white);
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.compare-card {
  padding: 36px;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.compare-card.light {
  background: var(--bg-soft);
  border: 1.5px solid var(--border-blue);
  color: var(--navy);
}

.compare-card.dark {
  background: linear-gradient(135deg, #091E3A 0%, #0E3A75 100%);
  color: var(--white);
}

.compare-badge {
  display: inline-block;
  background: var(--white);
  color: var(--primary);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.compare-badge.dark-badge {
  background: rgba(255, 255, 255, 0.16);
  color: #93C5FD;
}

.compare-card h3 {
  font-size: 24px;
  margin-bottom: 20px;
}

.compare-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 15px;
}

.compare-card.light .compare-list li {
  color: var(--slate-blue);
}

.compare-card.dark .compare-list li {
  color: #E9F4FF;
}


/* ============================================================================
07. ส่วนขั้นตอนการเช่า 3 ขั้นตอน (Steps Section)
   ============================================================================ */
.steps-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #091E3A 0%, #0E3A75 100%);
  border-top: 3px solid #F59E0B;
  border-bottom: 3px solid #F59E0B;
}

.steps-section .section-subtitle {
  color: #FBBF24;
}

.steps-section .section-title {
  color: var(--white);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step-card {
  background: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  padding: 32px 26px;
  border-radius: 20px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s, border-color 0.25s;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: #F59E0B;
}

.step-number {
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary) 0%, var(--navy) 100%);
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.step-card h3 {
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 10px;
}

.step-card p {
  font-size: 14px;
  color: var(--slate-blue);
}


/* ============================================================================
08. ส่วนแนะนำแบรนด์เกี่ยวกับเรา (About Section - Homepage)
   ============================================================================ */
.about-section {
  padding: 75px 0 80px;
  background: var(--white);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 45px;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: 22px;
  border: 2px solid var(--border-blue);
  box-shadow: var(--shadow);
  object-fit: cover;
  max-height: 400px;
}

.about-content h2 {
  margin-bottom: 18px;
}

.about-content p {
  color: var(--slate-blue);
  margin-bottom: 16px;
  font-size: 15px;
}

.btn-primary {
  display: inline-block;
  margin-top: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, #1672F0 100%);
  color: var(--white);
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 6px 16px rgba(13, 86, 198, 0.25);
  transition: all 0.2s;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
}


/* ============================================================================
09. ส่วนแบนเนอร์กระตุ้นการจองท้ายหน้า (CTA Banner)
   ============================================================================ */
.cta-section {
  padding: 70px 0;
  background: var(--white);
}

.cta-box {
  background: linear-gradient(135deg, #091E3A 0%, #0D56C6 65%, #1672F0 100%);
  color: var(--white);
  padding: 48px;
  border-radius: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 18px 40px rgba(9, 30, 58, 0.25);
}

.cta-text h2 {
  font-size: 30px;
  margin-bottom: 8px;
}

.cta-text p {
  color: #E0EEFF;
  font-size: 15px;
}

.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
}

.btn-outline-white {
  border: 2px solid var(--white);
  color: var(--white);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
}


/* ============================================================================
10. ส่วนท้ายเว็บไซต์ (Footer)
   ============================================================================ */
.footer {
  background: linear-gradient(180deg, #091E3A 0%, #051224 100%);
  color: #DCE7F2;
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 45px;
}

.footer-logo strong {
  color: #60A5FA;
  font-size: 24px;
}

.footer-logo span {
  color: var(--white);
  font-size: 20px;
}

.footer-brand p {
  margin-top: 14px;
  font-size: 14px;
  color: #BCD9F5;
  max-width: 340px;
}

.footer h4 {
  color: var(--white);
  font-size: 17px;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #BCD9F5;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-contact p {
  font-size: 14px;
  color: #BCD9F5;
  margin-bottom: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: #94A3B8;
}

@media (max-width: 968px) {
  .compare-grid,
  .steps-grid,
  .about-container,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .cta-box {
    padding: 32px 24px;
  }
}


/* ============================================================================
11. ส่วนรีวิวจากลูกค้า (Customer Reviews)
   ============================================================================ */
.reviews-section {
  padding: 75px 0;
  background: linear-gradient(135deg, #091E3A 0%, #0D3266 100%);
  border-top: 3px solid #F59E0B;
}

.reviews-section .section-subtitle {
  color: #FBBF24;
}

.reviews-section .section-title {
  color: var(--white);
}

.reviews-section .section-header-center p,
.reviews-section #reviewOverallStat {
  color: #DCE7F2;
}

.reviews-section #reviewOverallStat strong {
  color: #FBBF24;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.review-card {
  background: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.review-stars {
  font-size: 16px;
  letter-spacing: 2px;
}

.review-text {
  font-size: 15px;
  color: var(--navy);
  line-height: 1.7;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-blue);
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-author strong {
  display: block;
  font-size: 14px;
  color: var(--navy);
}

.review-author span {
  font-size: 12px;
  color: var(--slate-blue);
}

/* ปรับสีจุดไข่ปลาเลื่อนสไลด์รีวิวให้ตัดกับพื้นหลังสีเข้ม */
.reviews-section .rev-dot {
  background: rgba(255, 255, 255, 0.35);
}

.reviews-section .rev-dot:hover {
  background: rgba(255, 255, 255, 0.65);
}

.reviews-section .rev-dot.active {
  background: #F59E0B;
}


/* ============================================================================
12. ส่วนข่าวสารและสาระน่ารู้หน้าแรก (News Section - Homepage)
   ============================================================================ */
.news-section {
  padding: 80px 0;
  background: var(--bg-soft) !important;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  background: var(--white);
  border: 1.5px solid var(--border-blue);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 18px 36px -6px rgba(13, 86, 198, 0.22);
}

.news-img-wrap {
  position: relative;
  height: 200px;
  background: var(--bg-soft);
  overflow: hidden;
}

.news-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.news-card:hover .news-img-wrap img {
  transform: scale(1.04);
}

.news-category {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--navy);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 50px;
  z-index: 2;
}

.news-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-date {
  font-size: 12px;
  color: var(--slate-blue);
  margin-bottom: 8px;
}

.news-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 10px;
}

.news-excerpt {
  font-size: 14px;
  color: var(--slate-blue);
  margin-bottom: 18px;
  flex-grow: 1;
}

.news-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s;
}

.news-link:hover {
  color: var(--primary-hover);
}

@media (max-width: 968px) {
  .reviews-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .reviews-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================================================
13. หน้าเลือกรถเช่าและจองออนไลน์ - ส่วนที่ 1: เลือกรูปแบบและวันเวลา (cars.html)
   ============================================================================ */
/* 13.1 สไตล์พื้นฐานส่วนหัวหน้าย่อย (ใช้ร่วมกับหน้าเงื่อนไข, เกี่ยวกับเรา, ข่าวสาร, เช็กสถานะ) */
.breadcrumb {
  font-size: 13px;
  color: var(--slate-blue);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb span {
  margin: 0 6px;
}

.page-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 15px;
  color: var(--slate-blue);
  margin-bottom: 24px;
}

/* 13.2 แบนเนอร์ภาพวิวเชียงใหม่หน้าเลือกรถ (สูง 600px + ดันกล่องชิดระยะขอบล่าง 48px) */
.booking-hero {
  position: relative;
  width: 100%;
  min-height: 600px;
  box-sizing: border-box;
  background: url('../img/hero-chiangmai03.webp') center center / cover no-repeat;
  padding: 48px 0 48px;
  border-bottom: 3px solid #F59E0B;
  display: flex;
  flex-direction: column;
}

.booking-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(9, 30, 58, 0.82) 0%, rgba(9, 30, 58, 0.54) 55%, rgba(9, 30, 58, 0.25) 100%);
  z-index: 1;
}

.booking-hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.booking-hero .breadcrumb {
  color: #E2E8F0;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 10px;
}

.booking-hero .breadcrumb a {
  color: #93C5FD;
}

.booking-hero .page-title {
  color: #FFFFFF;
  font-size: 38px;
  line-height: 1.25;
  margin-bottom: 8px;
  text-shadow: 0 2px 12px rgba(9, 30, 58, 0.45);
}

.booking-hero .page-subtitle {
  color: #E2E8F0;
  font-size: 15.5px;
  line-height: 1.6;
  font-weight: 400;
  margin-bottom: 18px;
}

/* 13.3 แถบขั้นตอน (Stepper แบบแคปซูลกระจกสีเข้มอ่านชัด) */
.stepper {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 12px;
  background: rgba(9, 30, 58, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}

.step-indicator .step-num {
  font-weight: 700;
}

.step-indicator.active {
  color: #FBBF24;
  font-weight: 700;
}

.step-line {
  width: 24px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.35);
}

/* 13.4 กล่องเลือกรูปแบบบริการ (กระจกฝ้าสีขาวคมชัด) */
.service-box {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(9, 30, 58, 0.28);
  padding: 20px 24px;
  border-radius: 18px;
  margin-top: auto;
  margin-bottom: 0;
}

.service-box-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(9, 30, 58, 0.1);
}

.service-title-inline {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.service-box-top h2,
.service-title-inline h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
}

/* แท็บสลับรายวัน / รายเดือน */
.duration-tabs {
  display: inline-flex;
  background: var(--bg-soft);
  padding: 4px;
  border-radius: 12px;
  border: 1.5px solid var(--border-blue);
}

.duration-tab {
  background: transparent;
  border: none;
  padding: 6px 14px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--slate-blue);
  cursor: pointer;
  transition: all 0.2s;
}

.duration-tab.active {
  background: var(--primary);
  color: var(--white);
}

/* ปุ่มเลือกขับเอง / พร้อมคนขับ */
.service-type-grid {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.service-radio-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border: 1.5px solid var(--border-blue);
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s;
  background: #FFFFFF;
}

.service-radio-card input {
  display: none;
}

.radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-blue);
  flex-shrink: 0;
  position: relative;
}

.service-radio-card.active {
  border-color: var(--primary);
  background: #F0F6FF;
}

.service-radio-card.active .radio-dot {
  border-color: var(--primary);
}

.service-radio-card.active .radio-dot::after {
  content: '';
  position: absolute;
  width: 9px;
  height: 9px;
  background: var(--primary);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.service-radio-info strong {
  display: inline;
  font-size: 13.5px;
  color: var(--navy);
  margin: 0;
}

.service-radio-card.active .service-radio-info strong {
  color: var(--primary);
}

.service-radio-info span {
  display: none;
}

/* 13.5 แถวฟอร์มเลือกสถานที่และวันเวลา */
.filter-row-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.filter-row-bottom {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1.2fr 0.9fr auto;
  gap: 12px;
  align-items: end;
}

.booking-hero .form-group label {
  font-size: 12.5px;
  margin-bottom: 2px;
}

.booking-filter-form select,
.booking-filter-form input {
  background: #FFFFFF;
  height: 40px;
  min-height: 40px;
  padding: 6px 12px;
  font-size: 13.5px;
  border-radius: 9px;
}

.search-action-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.rental-days-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}

.booking-hero .btn-search {
  height: 40px;
  min-height: 40px;
  padding: 0 22px;
  font-size: 14px;
  border-radius: 9px;
}

.service-note {
  margin-top: 10px;
  margin-bottom: 0;
  font-size: 12px;
  color: var(--slate-blue);
}

@media (max-width: 968px) {
  .filter-row-top {
    grid-template-columns: 1fr;
  }
  .filter-row-bottom {
    grid-template-columns: 1fr 1fr;
  }
  .search-action-col {
    grid-column: span 2;
    align-items: stretch;
  }
  .rental-days-badge {
    text-align: right;
  }
}

@media (max-width: 768px) {
  .booking-hero {
    min-height: auto;
    padding: 36px 0 42px;
  }
  .booking-hero .page-title {
    font-size: 28px;
  }
  .stepper {
    border-radius: 14px;
    padding: 10px 14px;
  }
  .service-type-grid {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .service-box {
    padding: 18px 16px;
  }
  .page-title {
    font-size: 26px;
  }
  .filter-row-bottom {
    grid-template-columns: 1fr;
  }
  .search-action-col {
    grid-column: span 1;
  }
}


/* ============================================================================
14. หน้าเลือกรถเช่าและจองออนไลน์ - ส่วนที่ 2: ตัวกรองและรายการรถ (cars.html)
   ============================================================================ */
.car-selection-section {
  padding: 50px 0 60px;
  background: var(--white);
}

.selection-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  align-items: start;
}

/* แถบตัวกรองซ้าย */
.filter-sidebar {
  background: var(--white);
  border: 1.5px solid var(--border-blue);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 96px;
}

.filter-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1.5px solid var(--border-blue);
}

.filter-sidebar-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}

.btn-reset-filter {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.filter-block {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-blue);
}

.filter-block:last-of-type {
  border-bottom: none;
  margin-bottom: 12px;
}

.filter-block h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--slate-blue);
  margin-bottom: 10px;
  cursor: pointer;
}

.checkbox-item input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.price-range-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.price-range-head h4 {
  margin-bottom: 0;
}

.price-range-head span {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.price-slider {
  width: 100%;
  accent-color: var(--primary);
  cursor: pointer;
}

.price-range-bounds {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--slate-blue);
  margin-top: 4px;
}

.btn-apply-filter {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 12px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-apply-filter:hover {
  background: var(--primary-hover);
}

/* พื้นที่รายการรถด้านขวา */
.catalog-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.catalog-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
}

.catalog-subtitle {
  font-size: 13px;
  color: var(--slate-blue);
  margin-top: 4px;
}

.catalog-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--slate-blue);
}

.catalog-sort select {
  padding: 8px 12px;
  border: 1.5px solid var(--border-blue);
  border-radius: 10px;
  font-size: 13px;
  color: var(--navy);
  background: var(--white);
}

.quick-category-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.q-tab {
  background: var(--bg-soft);
  color: var(--slate-blue);
  border: 1.5px solid var(--border-blue);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.q-tab.active,
.q-tab:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.select-car-card {
  background: var(--white);
  border: 1.5px solid var(--border-blue);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}

.select-car-card.hidden {
  display: none;
}

.select-car-card.selected {
  border: 2.5px solid var(--primary);
  box-shadow: 0 12px 28px -5px rgba(13, 86, 198, 0.26);
}

.card-cat-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 26px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

/* ป้ายไฮไลต์ "เลือกอยู่" สีส้มทองเด่นชัด */
.selected-pill {
  display: none;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: var(--white);
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 50px;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.4);
  white-space: nowrap;
}

.select-car-card.selected .selected-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.select-car-img {
  position: relative;
  background: var(--bg-soft);
  border-radius: 12px;
  height: 150px;
  overflow: hidden;
  margin-bottom: 14px;
}

.select-car-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.select-car-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.select-car-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.select-car-spec {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  font-size: 12px;
  color: var(--slate-blue);
  margin-bottom: 14px;
}

/* จับคู่ไอคอนกับข้อความให้อยู่บรรทัดเดียวกันเสมอ ไม่ตัดแยกออกจากกัน */
.select-car-spec .spec-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

/* ไอคอนสเปกรถ (.png) เฉพาะหน้าเลือกรถ (cars.html) */
.select-car-spec .spec-png-icon {
  width: 15px;
  height: 15px;
  object-fit: contain;
  flex-shrink: 0;
}

.price-box-compare {
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 14px;
  margin-top: auto;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--navy);
}

.price-row em {
  font-style: normal;
}

.price-row strong {
  font-size: 18px;
  color: var(--navy);
}

.price-row.sub {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--border-blue);
  font-size: 12px;
  color: var(--slate-blue);
}

.btn-select-car {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 11px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-select-car:hover {
  background: var(--primary-hover);
}

.btn-select-car.active {
  background: var(--navy);
}

.no-car-msg {
  text-align: center;
  padding: 40px;
  background: var(--bg-soft);
  border-radius: 16px;
  color: var(--slate-blue);
  font-size: 15px;
}

.catalog-footnote {
  margin-top: 20px;
  font-size: 12px;
  color: var(--slate-blue);
}

/* แถบสรุปรถที่เลือกเชื่อมไปยังส่วนที่ 3 */
.step3-preview-bar {
  padding: 20px 0 60px;
  background: var(--bg-soft);
}

.selected-summary-box {
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: 18px;
  padding: 20px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}

.summary-car-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.summary-car-info img {
  width: 96px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--bg-soft);
}

.summary-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 4px;
}

.summary-car-info h3 {
  font-size: 18px;
  color: var(--navy);
}

.summary-car-info p {
  font-size: 13px;
  color: var(--slate-blue);
}

.summary-price-info {
  text-align: right;
}

.summary-price-info span {
  display: block;
  font-size: 13px;
  color: var(--slate-blue);
}

.summary-price-info strong {
  font-size: 26px;
  color: var(--primary);
}

@media (max-width: 1080px) {
  .selection-layout {
    grid-template-columns: 1fr;
  }
  .filter-sidebar {
    position: static;
  }
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  .summary-price-info {
    text-align: left;
  }
}

.car-detail-link {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

.car-detail-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}


/* ============================================================================
15. หน้าเลือกรถเช่าและจองออนไลน์ - ส่วนที่ 3: ฟอร์มกรอกข้อมูลและสรุปยอด (cars.html)
   ============================================================================ */
.step3-booking-section {
  padding: 60px 0 80px;
  background: var(--bg-soft);
  border-top: 2px solid var(--border-blue);
}

.step3-header {
  margin-bottom: 28px;
}

.step3-header h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.step3-header p {
  font-size: 14px;
  color: var(--slate-blue);
}

.step3-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 28px;
  align-items: start;
}

.booking-request-form {
  background: var(--white);
  border: 1.5px solid var(--border-blue);
  border-radius: 22px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.booking-request-form h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.booking-request-form input[type="text"],
.booking-request-form input[type="tel"],
.booking-request-form input[type="email"],
.booking-request-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-blue);
  border-radius: 10px;
  font-size: 14px;
  color: var(--navy);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}

.booking-request-form input:focus,
.booking-request-form select:focus {
  border-color: var(--primary);
}

/* กล่องบริการพร้อมคนขับ */
.driver-service-box {
  background: var(--primary-light);
  border: 1.5px solid #A8CCF0;
  border-radius: 16px;
  padding: 20px;
  transition: all 0.25s;
}

.driver-service-box.highlight-active {
  border: 2px solid var(--primary);
  box-shadow: 0 8px 20px -5px rgba(13, 86, 198, 0.22);
}

.driver-service-box h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.driver-box-desc {
  font-size: 12px;
  color: var(--slate-blue);
  margin-bottom: 14px;
}

.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--navy);
  margin-bottom: 10px;
  cursor: pointer;
}

.privacy-check input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.privacy-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  margin-bottom: 20px;
}

.btn-submit-booking {
  background: linear-gradient(135deg, var(--primary) 0%, #1672F0 100%);
  color: var(--white);
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(13, 86, 198, 0.28);
  transition: all 0.2s;
}

.btn-submit-booking:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
}

.submit-disclaimer {
  margin-top: 12px;
  font-size: 12px;
  color: var(--slate-blue);
}

/* การ์ดสรุปคำขอฝั่งขวา */
.booking-summary-card {
  background: var(--white);
  border: 1.5px solid var(--border-blue);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 96px;
}

.booking-summary-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.summary-car-photo {
  background: var(--bg-soft);
  border-radius: 14px;
  height: 170px;
  overflow: hidden;
  margin-bottom: 16px;
}

.summary-car-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.summary-model-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.summary-service-badge {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.summary-trip-details {
  border-top: 1px solid var(--border-blue);
  border-bottom: 1px solid var(--border-blue);
  padding: 14px 0;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trip-detail-block strong {
  display: block;
  font-size: 13px;
  color: var(--navy);
}

.trip-detail-block span {
  font-size: 13px;
  color: var(--slate-blue);
}

.summary-calc-box {
  margin-bottom: 18px;
}

.calc-formula {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.calc-total {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 6px;
}

.calc-note {
  font-size: 12px;
  color: var(--slate-blue);
  line-height: 1.5;
}

.driver-info-callout {
  background: var(--bg-soft);
  border: 1px solid var(--border-blue);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
}

.driver-info-callout strong {
  display: block;
  font-size: 13px;
  color: var(--navy);
  margin-bottom: 4px;
}

.driver-info-callout p {
  font-size: 12px;
  color: var(--slate-blue);
  line-height: 1.5;
}

.no-charge-note strong {
  display: block;
  font-size: 13px;
  color: var(--navy);
}

.no-charge-note span {
  font-size: 12px;
  color: var(--slate-blue);
}

@media (max-width: 968px) {
  .step3-grid {
    grid-template-columns: 1fr;
  }
  .booking-summary-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .booking-request-form {
    padding: 22px 18px;
  }
  .form-row-2 {
    grid-template-columns: 1fr;
  }
}


/* ============================================================================
16. หน้าเงื่อนไขการเช่าและคำถามที่พบบ่อย (conditions.html)
   ============================================================================ */
.conditions-hero,
.conditions-hero-content,
.cond-highlights-grid,
.conditions-hero .cond-hl-card {
  animation: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.conditions-hero {
  position: relative;
  width: 100%;
  min-height: 530px;
  box-sizing: border-box;
  background: #6EA1D4 url('../img/hero-chiangmai03.webp') center center / cover no-repeat;
  padding: 76px 0 64px;
  border-bottom: 4px solid #0D56C6;
  transition: none !important;
}

.conditions-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(9, 30, 58, 0.45) 0%, rgba(9, 30, 58, 0.12) 45%, rgba(9, 30, 58, 0.05) 100%);
  z-index: 1;
}

.conditions-hero .container {
  position: relative;
  z-index: 2;
}

.conditions-hero-content {
  max-width: 580px;
  margin-bottom: 56px;
  transition: none !important;
}

.conditions-hero .breadcrumb {
  color: #FFFFFF;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.conditions-hero .breadcrumb a {
  color: #93C5FD;
  text-decoration: none;
}

.conditions-hero .page-title {
  color: #FFFFFF;
  font-size: 40px;
  line-height: 1.2;
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.conditions-hero .page-subtitle {
  color: #FFFFFF;
  font-size: 16px;
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  font-weight: 500;
  margin-bottom: 0;
}

.cond-highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 0;
}

.conditions-hero .cond-hl-card {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 34px rgba(9, 30, 58, 0.18);
  padding: 24px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.conditions-hero .cond-hl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(9, 30, 58, 0.22);
  background: rgba(255, 255, 255, 0.95);
}

.conditions-hero .cond-hl-icon {
  font-size: 26px;
  margin-bottom: 10px;
  display: block;
}

.conditions-hero .cond-hl-card strong {
  display: block;
  color: #091E3A;
  font-size: 15.5px;
  font-weight: 700;
  margin-bottom: 6px;
  text-shadow: none;
}

.conditions-hero .cond-hl-card span {
  display: block;
  color: #3B526B;
  font-size: 13.5px;
  font-weight: 500;
  text-shadow: none;
  line-height: 1.45;
}

.cond-section-heading {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
}

.cond-steps-section {
  padding: 65px 0;
  background: var(--white);
}

.docs-box {
  background: var(--bg-soft);
  border: 1.5px solid var(--border-blue);
  border-radius: 20px;
  padding: 28px 32px;
}

.docs-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1.5px solid var(--border-blue);
}

.docs-box-header h3 {
  font-size: 19px;
  color: var(--navy);
}

.docs-box-header span {
  font-size: 13px;
  color: var(--primary);
  font-weight: 700;
}

.docs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.doc-item strong {
  display: block;
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 10px;
}

.doc-item ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--slate-blue);
}

/* ตารางเงื่อนไข */
.cond-table-section {
  padding: 65px 0;
  background: var(--bg-soft);
}

.cond-table-wrap {
  background: var(--white);
  border: 1.5px solid var(--border-blue);
  border-radius: 20px;
  overflow-x: auto;
  box-shadow: var(--shadow);
}

.cond-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.cond-table th {
  background: var(--navy);
  color: var(--white);
  text-align: left;
  padding: 16px 22px;
  font-size: 14px;
  font-weight: 600;
}

.cond-table td {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-blue);
  font-size: 14px;
  color: var(--slate-blue);
  vertical-align: top;
}

.cond-table td strong {
  color: var(--navy);
}

.cond-table tr:last-child td {
  border-bottom: none;
}

.cond-table tr:hover td {
  background: #F4F8FE;
}

/* คำถามที่พบบ่อย (FAQ Accordion) */
.faq-section {
  padding: 75px 0 80px;
  background: var(--white);
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border: 1.5px solid var(--border-blue);
  border-radius: 16px;
  background: var(--white);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  background: var(--primary);
  color: var(--white);
}

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--slate-blue);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  display: block;
}

@media (max-width: 992px) {
  .cond-highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .docs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .conditions-hero {
    min-height: auto;
    padding: 46px 0 48px;
  }
  .conditions-hero .page-title {
    font-size: 30px;
  }
  .conditions-hero-content {
    margin-bottom: 28px;
  }
}

@media (max-width: 480px) {
  .cond-highlights-grid {
    grid-template-columns: 1fr;
  }
  .docs-box {
    padding: 22px 18px;
  }
}


/* ============================================================================
17. ส่วนเสริมหน้าเลือกรถและหน้าต่างป๊อปอัป (Extra Info & Modals)
   ============================================================================ */
.cars-info-extra {
  padding: 50px 0 80px;
  background: var(--white);
}

.monthly-promo-banner {
  background: linear-gradient(135deg, #091E3A 0%, #0E3A75 100%);
  color: var(--white);
  border-radius: 20px;
  padding: 32px 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.monthly-promo-banner h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}

.monthly-promo-banner p {
  font-size: 14px;
  color: #BCD9F5;
}

.btn-monthly-inquire {
  background: var(--white);
  color: var(--primary);
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.btn-monthly-inquire:hover {
  background: var(--primary-light);
}

.mini-trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 26px 0 42px;
  border-bottom: 1.5px solid var(--border-blue);
  margin-bottom: 42px;
}

.mini-trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mini-trust-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.mini-trust-item strong {
  display: block;
  font-size: 15px;
  color: var(--navy);
}

.mini-trust-item span {
  font-size: 13px;
  color: var(--slate-blue);
}

.gtk-subtitle {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.gtk-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
}

.gtk-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.gtk-card {
  background: var(--white);
  border: 1.5px solid var(--border-blue);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.gtk-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.gtk-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.gtk-card p {
  font-size: 14px;
  color: var(--slate-blue);
  line-height: 1.65;
  margin-bottom: 18px;
}

.gtk-link-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  margin-top: auto;
}

.gtk-link-btn:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* หน้าต่างป๊อปอัป (Modal Popup) */
.custom-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.custom-modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 30, 58, 0.6);
  backdrop-filter: blur(2px);
}

.modal-dialog {
  position: relative;
  z-index: 2;
  background: var(--white);
  border: 1.5px solid var(--border-blue);
  border-radius: 22px;
  max-width: 580px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(9, 30, 58, 0.3);
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-header {
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--border-blue);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.modal-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 6px;
}

.modal-header h3 {
  font-size: 20px;
  color: var(--navy);
}

.modal-close {
  background: var(--bg-soft);
  border: 1px solid var(--border-blue);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 16px;
  color: var(--navy);
  cursor: pointer;
  flex-shrink: 0;
}

.modal-body {
  padding: 22px 28px;
}

.modal-info-block {
  background: var(--bg-soft);
  border: 1px solid var(--border-blue);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 14px;
}

.modal-info-block h4 {
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 8px;
}

.modal-info-block ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--slate-blue);
}

.modal-note {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
}

.modal-terms-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  color: var(--slate-blue);
}

.modal-terms-list li {
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border-blue);
}

.modal-terms-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.modal-terms-list strong {
  color: var(--navy);
}

.modal-footer {
  padding: 16px 28px 24px;
  border-top: 1px solid var(--border-blue);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.modal-footer .btn-outline,
.modal-footer .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 22px;
  margin: 0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

@media (max-width: 768px) {
  .mini-trust-row,
  .gtk-cards-grid {
    grid-template-columns: 1fr;
  }
  .monthly-promo-banner {
    padding: 24px 20px;
  }
}


/* ============================================================================
18. หน้ารายละเอียดรถเช่าและแกลเลอรี 7 มุม (car-detail.html)
   ============================================================================ */
.car-detail-section {
  background: var(--bg-soft);
  padding: 40px 0 80px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 30px;
  align-items: start;
}

.detail-gallery-box,
.detail-info-card,
.detail-price-card {
  background: var(--white);
  border: 1.5px solid var(--border-blue);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.detail-gallery-box {
  position: relative;
  margin-bottom: 24px;
}

.detail-cat-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.detail-main-img {
  position: relative;
  background: var(--bg-soft);
  border-radius: 16px;
  height: 360px;
  overflow: hidden;
  margin-bottom: 14px;
}

.detail-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-angle-caption {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(9, 30, 58, 0.88);
  color: #fff;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.detail-thumbs .thumb-btn {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px;
  border: 2px solid var(--border-blue);
  border-radius: 12px;
  background: var(--bg-soft);
  cursor: pointer;
  transition: 0.2s;
}

.detail-thumbs .thumb-btn.active,
.detail-thumbs .thumb-btn:hover {
  border-color: var(--primary);
  background: #EFF6FF;
}

.detail-thumbs .thumb-btn img {
  width: 100%;
  height: 68px;
  object-fit: cover;
  border-radius: 8px;
}

.detail-thumbs .thumb-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--navy);
  margin-top: 5px;
  text-align: center;
  line-height: 1.2;
}

.detail-car-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.detail-car-tagline {
  font-size: 15px;
  color: var(--slate-blue);
  margin-bottom: 24px;
}

.detail-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-blue);
}

.spec-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border-blue);
  padding: 14px 16px;
  border-radius: 14px;
}

/* ไอคอนสเปกรถเฉพาะหน้ารายละเอียดรถ (car-detail.html) รองรับทั้ง Emoji และไฟล์ .png */
.spec-icon {
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.spec-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.spec-box small {
  display: block;
  font-size: 12px;
  color: var(--slate-blue);
}

.spec-box strong {
  font-size: 14px;
  color: var(--navy);
}

.detail-sub-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}

.features-checklist {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  font-size: 14px;
  color: var(--slate-blue);
}

/* การ์ดราคาฝั่งขวา */
.detail-booking-sidebar {
  position: sticky;
  top: 96px;
}

.detail-price-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
}

.detail-rate-boxes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.rate-option-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border: 1.5px solid var(--border-blue);
  border-radius: 12px;
  background: var(--white);
}

.rate-option-box.soft {
  background: var(--bg-soft);
}

.rate-option-box span {
  font-size: 14px;
  color: var(--slate-blue);
}

.rate-option-box strong {
  font-size: 18px;
  color: var(--navy);
}

.rate-option-box strong small {
  font-size: 13px;
  font-weight: 400;
  color: var(--slate-blue);
}

.detail-deposit-note {
  border-top: 1px solid var(--border-blue);
  border-bottom: 1px solid var(--border-blue);
  padding: 14px 0;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-deposit-note div {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.detail-deposit-note span {
  color: var(--slate-blue);
}

.detail-deposit-note strong {
  color: var(--navy);
}

.btn-book-detail {
  display: block;
  width: 100%;
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, #1672F0 100%);
  color: var(--white);
  text-decoration: none;
  padding: 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  box-shadow: 0 6px 16px rgba(13, 86, 198, 0.28);
  transition: all 0.2s;
}

.btn-book-detail:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
}

.btn-call-detail {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--primary-light);
  color: var(--primary);
  text-decoration: none;
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
}

.detail-sidebar-footnote {
  margin-top: 14px;
  font-size: 12px;
  color: var(--slate-blue);
  line-height: 1.5;
}

@media (max-width: 968px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-booking-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .detail-main-img {
    height: 240px;
  }
  .detail-specs-grid,
  .features-checklist {
    grid-template-columns: 1fr;
  }
  .detail-car-title {
    font-size: 24px;
  }
}


/* ============================================================================
19. หน้าเกี่ยวกับเราและติดต่อสอบถาม (about.html)
   ============================================================================ */
.about-page-hero {
  background: var(--bg-soft);
  padding: 50px 0 70px;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 42px;
  align-items: center;
}

.about-lead {
  font-size: 16px;
  color: var(--slate-blue);
  line-height: 1.75;
  margin-bottom: 28px;
}

.about-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.stat-item {
  background: var(--white);
  border: 1.5px solid var(--border-blue);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.stat-item strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
}

.stat-item span {
  font-size: 12px;
  color: var(--slate-blue);
}

.about-hero-photo img {
  width: 100%;
  border-radius: 22px;
  border: 2px solid var(--border-blue);
  box-shadow: var(--shadow);
  object-fit: cover;
  max-height: 410px;
}

.care-values-section {
  padding: 75px 0;
  background: var(--white);
}

.why-choice-section {
  padding: 20px 0 80px;
  background: var(--white);
}

.why-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 28px;
  align-items: stretch;
}

.why-dark-panel {
  background: linear-gradient(135deg, #091E3A 0%, #0E3A75 100%);
  color: var(--white);
  border-radius: 22px;
  padding: 36px;
  box-shadow: var(--shadow);
}

.why-dark-panel h2 {
  font-size: 26px;
  margin-bottom: 12px;
}

.why-dark-panel p {
  font-size: 14px;
  color: #BCD9F5;
  margin-bottom: 22px;
}

.why-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  color: #E9F4FF;
}

.why-light-panel {
  background: var(--bg-soft);
  border: 1.5px solid var(--border-blue);
  border-radius: 22px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.why-light-panel h3 {
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 12px;
}

.why-light-panel p {
  font-size: 14px;
  color: var(--slate-blue);
  line-height: 1.7;
  margin-bottom: 20px;
}

.why-action-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 22px;
}

.mini-action-box {
  background: var(--white);
  border: 1px solid var(--border-blue);
  border-radius: 14px;
  padding: 16px;
}

.mini-action-box strong {
  display: block;
  font-size: 15px;
  color: var(--primary);
  margin-bottom: 4px;
}

.mini-action-box span {
  font-size: 12px;
  color: var(--slate-blue);
}

/* ส่วนติดต่อสอบถาม */
.contact-section {
  padding: 75px 0 80px;
  background: var(--bg-soft);
  border-top: 2px solid var(--border-blue);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  align-items: start;
}

.contact-info-card,
.contact-form-card {
  background: var(--white);
  border: 1.5px solid var(--border-blue);
  border-radius: 22px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.contact-info-card h3,
.contact-form-card h3 {
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 12px;
}

.contact-intro {
  font-size: 14px;
  color: var(--slate-blue);
  margin-bottom: 24px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-method-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.cm-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-method-item strong {
  display: block;
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 2px;
}

.contact-method-item span {
  font-size: 13px;
  color: var(--slate-blue);
}

.contact-form-card input[type="text"],
.contact-form-card input[type="tel"],
.contact-form-card select,
.contact-form-card textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-blue);
  border-radius: 10px;
  font-size: 14px;
  color: var(--navy);
  background: var(--white);
  outline: none;
  font-family: 'Noto Sans Thai', sans-serif;
}

.contact-form-card input:focus,
.contact-form-card select:focus,
.contact-form-card textarea:focus {
  border-color: var(--primary);
}

@media (max-width: 968px) {
  .about-hero-grid,
  .why-choice-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .about-stats-row,
  .why-action-cards {
    grid-template-columns: 1fr;
  }
  .why-dark-panel,
  .why-light-panel,
  .contact-info-card,
  .contact-form-card {
    padding: 24px 18px;
  }
}


/* ============================================================================
20. หน้าข่าวสารและหน้ารายละเอียดบทความ (news.html & news-detail.html)
   ============================================================================ */
.news-page-hero {
  background: var(--bg-soft);
  padding: 45px 0 60px;
}

.featured-article-card {
  background: var(--white);
  border: 1.5px solid var(--border-blue);
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  box-shadow: var(--shadow);
  margin-top: 28px;
}

.featured-article-img {
  height: 100%;
  min-height: 310px;
  background: var(--bg-soft);
}

.featured-article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-article-body {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--slate-blue);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.featured-article-body h2 {
  font-size: 26px;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 14px;
}

.featured-article-body p {
  font-size: 15px;
  color: var(--slate-blue);
  line-height: 1.7;
  margin-bottom: 22px;
}

.news-catalog-section {
  padding: 60px 0 80px;
  background: var(--white);
}

.news-filter-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  margin-bottom: 16px;
}

.news-cat-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.n-tab {
  background: var(--bg-soft);
  color: var(--slate-blue);
  border: 1.5px solid var(--border-blue);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.n-tab.active,
.n-tab:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.news-search-tools-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: var(--bg-soft);
  border: 1.5px solid var(--border-blue);
  border-radius: 16px;
  margin-bottom: 28px;
}

.popular-tags-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--slate-blue);
}

.tag-pill {
  background: var(--white);
  color: var(--primary);
  border: 1px solid var(--border-blue);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.tag-pill:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.news-search-box {
  position: relative;
  min-width: 300px;
}

.news-search-box input {
  width: 100%;
  background: var(--white);
  padding: 9px 16px 9px 38px;
  border: 1.5px solid var(--border-blue);
  border-radius: 10px;
  font-size: 14px;
  color: var(--navy);
  outline: none;
}

.news-search-box input:focus {
  border-color: var(--primary);
}

.news-search-box::before {
  content: '🔍';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: 0.7;
}

.news-card.hidden {
  display: none !important;
}

/* หน้ารายละเอียดบทความ (news-detail.html) */
.article-detail-section {
  background: var(--bg-soft);
  padding: 40px 0 80px;
}

.article-detail-layout {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 30px;
  align-items: start;
}

.article-main-card {
  background: var(--white);
  border: 1.5px solid var(--border-blue);
  border-radius: 22px;
  padding: 36px;
  box-shadow: var(--shadow);
}

.article-full-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 22px;
}

.article-cover-img {
  border-radius: 16px;
  overflow: hidden;
  max-height: 400px;
  margin-bottom: 26px;
  background: var(--bg-soft);
}

.article-cover-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-rich-content {
  font-size: 16px;
  color: var(--navy);
  line-height: 1.8;
}

.article-rich-content p {
  margin-bottom: 18px;
  color: var(--slate-blue);
}

.article-rich-content h3 {
  font-size: 20px;
  color: var(--navy);
  margin: 24px 0 10px;
}

.article-bottom-nav {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border-blue);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 96px;
}

.article-promo-card {
  background: linear-gradient(135deg, #091E3A 0%, #0E3A75 100%);
  color: var(--white);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.article-promo-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.article-promo-card p {
  font-size: 14px;
  color: #BCD9F5;
}

.related-articles-card {
  background: var(--white);
  border: 1.5px solid var(--border-blue);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.related-articles-card h4 {
  font-size: 17px;
  color: var(--navy);
  margin-bottom: 14px;
}

.related-item {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-blue);
  text-decoration: none;
}

.related-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.related-item span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.related-item strong {
  font-size: 14px;
  color: var(--navy);
  line-height: 1.45;
  display: block;
}

.related-item:hover strong {
  color: var(--primary);
}

@media (max-width: 968px) {
  .featured-article-card,
  .article-detail-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .featured-article-body,
  .article-main-card {
    padding: 24px 18px;
  }
  .article-full-title {
    font-size: 24px;
  }
  .news-search-box {
    width: 100%;
    min-width: 100%;
  }
}


/* ============================================================================
21. Header & Footer กลางแบบใหม่ (Shared Components)
   ============================================================================ */
.top-info-bar {
  background: #061529;
  color: #DCE7F2;
  font-size: 13px;
  padding: 8px 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.top-bar-contacts {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.top-bar-link {
  color: inherit;
  text-decoration: none;
}

.top-bar-link:hover {
  color: var(--white);
}

.header-brand-logo {
  height: 50px;
  width: auto;
  display: block;
  border-radius: 4px;
}

.brand-badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-logo-text strong {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.5px;
}

.brand-logo-text small {
  font-size: 10px;
  font-weight: 600;
  color: var(--slate-blue);
  margin-top: 2px;
}

.brand-logo-text.light strong {
  color: var(--white);
}

.brand-logo-text.light small {
  color: #93C5FD;
}

.btn-nav-book {
  background: linear-gradient(135deg, var(--primary) 0%, #1672F0 100%);
  color: var(--white);
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(13, 86, 198, 0.25);
  transition: all 0.2s;
}

.btn-nav-book:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
}

.footer-grid-modern {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}

.footer-logo-wrap {
  margin-bottom: 16px;
}

.footer-brand-logo {
  height: 85px;
  width: auto;
  display: block;
  border-radius: 6px;
  margin-left: -10px;
}

.footer-tagline {
  font-size: 14px;
  color: #BCD9F5;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-social-list {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.social-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.social-icon-btn:hover {
  transform: translateY(-3px);
  background: var(--primary);
  border-color: #60A5FA;
}

.social-icon-btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.footer-domain-link {
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.footer-contact a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
}

.footer-contact a:hover {
  color: #60A5FA;
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-legal-links a {
  color: #DCE7F2;
  text-decoration: none;
  font-size: 13px;
}

.footer-legal-links a:hover {
  color: var(--white);
}

.footer-staff-link {
  opacity: 0.45;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #BCD9F5;
  line-height: 1.6;
  margin-bottom: 12px;
}

.footer-contact-item:last-child {
  margin-bottom: 0;
}

.fc-icon {
  width: 20px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.fc-icon img {
  width: 17px;
  height: 17px;
  object-fit: contain;
  display: block;
}

/* จัดขนาดไอคอน PNG ที่แทรกในบรรทัดข้อความและกล่องติดต่อ */
.inline-icon {
  width: 17px;
  height: 17px;
  object-fit: contain;
  vertical-align: -3px;
  display: inline-block;
  margin-right: 4px;
}

.cm-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

@media (max-width: 968px) {
  .footer-grid-modern {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .top-info-bar {
    font-size: 12px;
  }
  .lang-switch-btn {
    display: none;
  }
}


/* ============================================================================
22. ส่วนช่องทางการชำระเงินและการมัดจำ (conditions.html)
   ============================================================================ */
.payment-info-section {
  padding: 60px 0;
  background: var(--white);
}

.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.pay-card {
  background: var(--bg-soft);
  border: 1.5px solid var(--border-blue);
  border-radius: 18px;
  padding: 24px;
}

.pay-card.highlight-bank {
  background: var(--primary-light);
  border: 2px solid var(--primary);
}

.pay-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.pay-card h3 {
  font-size: 17px;
  color: var(--navy);
  margin-bottom: 8px;
}

.pay-card p {
  font-size: 14px;
  color: var(--slate-blue);
  line-height: 1.65;
}

.bank-acc-num {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
}

@media (max-width: 968px) {
  .payment-methods-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================================================
23. การ์ดจองสำเร็จ, QR Code ชำระเงิน และแนบสลิป (cars.html)
   ============================================================================ */
.field-error {
  color: #DC2626;
  font-size: 12px;
  font-weight: 500;
  min-height: 16px;
  display: block;
}

.form-group input.input-invalid {
  border-color: #DC2626 !important;
  background-color: #FEF2F2 !important;
}

.booking-success-card {
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: 22px;
  padding: 36px 32px;
  box-shadow: var(--shadow);
  text-align: center;
}

.success-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #DCFCE7;
  color: #16A34A;
  font-size: 32px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.booking-success-card h2 {
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 8px;
}

.success-desc {
  font-size: 14px;
  color: var(--slate-blue);
  max-width: 500px;
  margin: 0 auto 22px;
}

.booking-ref-box {
  background: var(--primary-light);
  border: 1.5px dashed var(--primary);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 22px;
}

.booking-ref-box span {
  display: block;
  font-size: 13px;
  color: var(--slate-blue);
}

.booking-ref-box strong {
  display: block;
  font-size: 28px;
  color: var(--primary);
  letter-spacing: 1px;
  margin: 4px 0;
}

.booking-ref-box small {
  font-size: 12px;
  color: var(--slate-blue);
}

.success-summary-list {
  text-align: left;
  background: var(--bg-soft);
  border: 1px solid var(--border-blue);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--navy);
  line-height: 1.8;
}

.success-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ป้ายสถานะรถว่างมุมซ้ายบนของรูปภาพรถ (cars.html) */
.avail-status-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 50px;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.2;
}

.avail-status-tag.available {
  background: linear-gradient(135deg, #059669 0%, #10B981 100%);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.38);
}

/* กล่อง QR Code ชำระเงินและแนบสลิป */
.payment-upload-box {
  text-align: left;
  background: var(--white);
  border: 1.5px solid var(--border-blue);
  border-radius: 16px;
  padding: 20px;
  margin-top: 18px;
}

.payment-upload-box h4 {
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 14px;
}

.pay-qr-grid {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px dashed var(--border-blue);
}

.qr-box-sample {
  text-align: center;
  background: var(--bg-soft);
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border-blue);
}

.qr-box-sample img {
  width: 120px;
  height: 120px;
  display: block;
  margin: 0 auto 6px;
}

.qr-box-sample span {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
}

.bank-transfer-info p {
  font-size: 14px;
  color: var(--navy);
  margin: 4px 0;
}

.bank-transfer-info small {
  display: block;
  font-size: 12px;
  color: var(--slate-blue);
  margin-top: 6px;
}

.slip-upload-control label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}


/* ============================================================================
24. หน้าตรวจสอบสถานะการจอง (check-booking.html)
   ============================================================================ */
/* 24.1 แบนเนอร์ภาพวิวเชียงใหม่ + กล่องค้นหากระจกฝ้าชิดขอบล่าง */
#checkBookingPage.check-booking-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  box-sizing: border-box;
  background: #091E3A url('../img/hero-chiangmai02.webp') center center / cover no-repeat;
  padding: 48px 0 48px;
  border-bottom: 3px solid #F59E0B;
  display: flex;
  flex-direction: column;
}

#checkBookingPage.check-booking-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(9, 30, 58, 0.82) 0%, rgba(9, 30, 58, 0.54) 55%, rgba(9, 30, 58, 0.25) 100%);
  z-index: 1;
}

#checkBookingPage.check-booking-section .container {
  position: relative;
  z-index: 2;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

#checkBookingPage.check-booking-section .breadcrumb {
  color: #E2E8F0;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 10px;
}

#checkBookingPage.check-booking-section .breadcrumb a {
  color: #93C5FD;
}

#checkBookingPage.check-booking-section .page-title {
  color: #FFFFFF;
  font-size: 38px;
  line-height: 1.25;
  margin-bottom: 8px;
  text-shadow: 0 2px 12px rgba(9, 30, 58, 0.45);
}

#checkBookingPage.check-booking-section .page-subtitle {
  color: #E2E8F0;
  font-size: 15.5px;
  line-height: 1.6;
  font-weight: 400;
  margin-bottom: 24px;
}

/* กล่องค้นหารหัสการจองแบบกระจกฝ้า (ชิดขอบล่างระดับเดียวกับหน้า cars.html) */
#checkBookingPage .lookup-booking-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, 0.98);
  border-radius: 18px;
  padding: 22px 26px;
  box-shadow: 0 18px 40px rgba(9, 30, 58, 0.28);
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 16px;
  align-items: end;
  margin-top: auto;
  margin-bottom: 0;
}

#checkBookingPage .lookup-booking-card .form-group label {
  font-size: 13px;
  margin-bottom: 4px;
}

#checkBookingPage .lookup-booking-card .form-group input {
  height: 46px;
  background: #FFFFFF;
  border: 1.5px solid var(--border-blue);
  border-radius: 10px;
  font-size: 14.5px;
}

#checkBookingPage .lookup-booking-card .form-group input:focus {
  border-color: var(--primary);
}

#checkBookingPage .lookup-booking-card .btn-search {
  height: 46px;
  padding: 0 26px;
  border-radius: 10px;
}

/* 24.2 พื้นที่แสดงผลลัพธ์การจองและคำแนะนำด้านล่าง */
.check-result-section {
  background: var(--bg-soft);
  padding: 64px 0 80px;
}

.booking-result-wrapper {
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: 22px;
  padding: 28px;
  margin-bottom: 44px;
  box-shadow: var(--shadow);
}

.booking-status-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-blue);
}

.booking-status-banner h2 {
  font-size: 22px;
  color: var(--navy);
  margin-top: 4px;
}

.status-pill-badge {
  background: #FEF3C7;
  color: #B45309;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
}

.result-detail-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.result-info-box {
  background: var(--bg-soft);
  border: 1px solid var(--border-blue);
  border-radius: 16px;
  padding: 20px;
  min-width: 0;
}

.result-info-box h4 {
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 12px;
}

.result-info-box p {
  font-size: 14px;
  color: var(--slate-blue);
  margin-bottom: 8px;
}

/* จัดวางรายละเอียดผู้เช่า (ซ้าย) คู่กับกรอบรูปภาพรถขนาดพอดี (ขวา) */
#bookingResultWrapper .result-info-split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

#bookingResultWrapper .result-info-text {
  flex: 1;
  min-width: 0;
}

#bookingResultWrapper .result-car-photo {
  width: 195px;
  height: 135px;
  flex-shrink: 0;
  box-sizing: border-box;
  background: #FFFFFF;
  border: 1px solid var(--border-blue);
  border-radius: 12px;
  padding: 8px;
  overflow: hidden;
}

#bookingResultWrapper .result-car-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 6px;
}

/* 24.3 ส่วนแนะนำการใช้งาน 3 ขั้นตอน + กล่องบัญชีธนาคารและติดต่อแอดมิน */
.check-guide-header {
  text-align: center;
  margin-bottom: 32px;
}

.check-guide-header span {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.check-guide-header h2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--navy);
}

.check-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.check-guide-card {
  background: var(--white);
  border: 1.5px solid var(--border-blue);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.25s, border-color 0.25s;
}

.check-guide-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.check-guide-step {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--navy) 100%);
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.check-guide-card h3 {
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 8px;
}

.check-guide-card p {
  font-size: 14px;
  color: var(--slate-blue);
  line-height: 1.65;
}

.check-help-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.check-help-card {
  background: var(--white);
  border: 1.5px solid var(--border-blue);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.check-help-card h3 {
  font-size: 19px;
  color: var(--navy);
  margin-bottom: 8px;
}

.check-help-card p {
  font-size: 14px;
  color: var(--slate-blue);
  line-height: 1.65;
}

.bank-info-pill {
  background: #F0F6FF;
  border: 1.5px solid var(--border-blue);
  border-left: 4px solid #F59E0B;
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--navy);
}

.check-help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

@media (max-width: 900px) {
  .check-guide-grid,
  .check-help-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  #checkBookingPage.check-booking-section {
    min-height: auto;
    padding: 36px 0 32px;
  }
  #checkBookingPage.check-booking-section .page-title {
    font-size: 28px;
  }
  #checkBookingPage .lookup-booking-card {
    padding: 20px 18px;
    grid-template-columns: 1fr;
  }
  #checkBookingPage .lookup-booking-card .btn-search {
    width: 100%;
  }
  .result-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  #bookingResultWrapper .result-info-split {
    flex-direction: column;
    align-items: flex-start;
  }
  #bookingResultWrapper .result-car-photo {
    width: 100%;
    height: 160px;
  }
}


/* ============================================================================
25. ระบบจัดหน้าพิมพ์ใบยืนยันการจอง 1 หน้า A4 (@media print)
   ============================================================================ */
.print-receipt-header {
  display: none;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 12mm;
  }

  #header-placeholder,
  #footer-placeholder,
  #checkBookingPage,
  .check-booking-section,
  .check-guide-grid,
  .breadcrumb,
  .page-title,
  .page-subtitle,
  .lookup-booking-card,
  .no-print {
    display: none !important;
  }

  body,
  .check-result-section {
    background: #FFFFFF !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: auto !important;
    border: none !important;
  }

  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }

  .print-receipt-header {
    display: flex !important;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #091E3A;
    padding-bottom: 12px;
    margin-bottom: 16px;
  }

  .booking-result-wrapper {
    border: 1.5px solid #091E3A !important;
    box-shadow: none !important;
    padding: 20px !important;
    margin: 0 !important;
    border-radius: 12px !important;
  }

  .booking-status-banner {
    padding-bottom: 14px;
    margin-bottom: 14px;
  }

  .result-detail-grid {
    grid-template-columns: 1fr !important;
  }

  .result-info-box {
    padding: 16px !important;
  }

  #bookingResultWrapper .result-info-split {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 20px !important;
  }

  #bookingResultWrapper .result-car-photo {
    width: 210px !important;
    height: 145px !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 10px !important;
    padding: 8px !important;
    overflow: hidden !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  #bookingResultWrapper .result-car-photo img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    display: block !important;
    border-radius: 6px !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}


/* ============================================================================
26. สถานะรถไม่ว่างในวันที่เลือก (Unavailable State)
   ============================================================================ */
.avail-status-tag.unavailable {
  background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.38);
}

.select-car-card.is-booked {
  opacity: 0.72;
  border-color: #FECACA;
}

.btn-select-car:disabled {
  background: #94A3B8;
  cursor: not-allowed;
}


/* ============================================================================
27. ระบบสไลด์ Carousel หน้าแรก (รีวิว, รถเช่าแนะนำ, ข่าวสาร)
   ============================================================================ */
/* 27.1 Carousel รีวิวหน้าแรก */
.reviews-viewport {
  overflow: hidden;
  width: 100%;
  padding: 8px 4px 16px;
}

.reviews-track {
  display: flex;
  gap: 24px;
  transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.reviews-track .review-card {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: calc((100% - 48px) / 3);
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .reviews-track {
    gap: 18px;
  }
  .reviews-track .review-card {
    flex: 0 0 calc((100% - 18px) / 2);
    min-width: calc((100% - 18px) / 2);
  }
}

@media (max-width: 640px) {
  .reviews-track {
    gap: 16px;
  }
  .reviews-track .review-card {
    flex: 0 0 100%;
    min-width: 100%;
  }
}

.reviews-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

.reviews-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rev-dot {
  width: 9px;
  height: 9px;
  border-radius: 50px;
  border: none;
  background: #94A3B8;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.rev-dot:hover {
  background: #64748B;
}

.rev-dot.active {
  width: 26px;
  background: var(--primary);
}

/* 27.2 Carousel รถเช่าแนะนำและข่าวสารหน้าแรก */
.home-carousel-viewport {
  overflow: hidden;
  width: 100%;
  padding: 8px 4px 16px;
}

.home-carousel-track {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 24px;
  transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.home-carousel-track > * {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: calc((100% - 48px) / 3);
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .home-carousel-track {
    gap: 18px;
  }
  .home-carousel-track > * {
    flex: 0 0 calc((100% - 18px) / 2);
    min-width: calc((100% - 18px) / 2);
  }
}

@media (max-width: 640px) {
  .home-carousel-track {
    gap: 16px;
  }
  .home-carousel-track > * {
    flex: 0 0 100%;
    min-width: 100%;
  }
}

.home-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

.home-carousel-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-dot {
  width: 9px;
  height: 9px;
  border-radius: 50px;
  border: none;
  background: #94A3B8;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.home-dot:hover {
  background: #64748B;
}

.home-dot.active {
  width: 26px;
  background: var(--primary);
}


/* ============================================================================
28. ส่วนภาพส่งมอบรถจริงจากลูกค้าและ Lightbox (Delivery Photos Gallery)
   ============================================================================ */
.delivery-photos-section {
  padding: 75px 0 80px;
  background: var(--white);
}

.delivery-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.delivery-card {
  background: var(--white);
  border: 1.5px solid var(--border-blue);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.delivery-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 18px 36px -6px rgba(13, 86, 198, 0.22);
}

.delivery-card.hidden {
  display: none !important;
}

.delivery-img-wrap {
  position: relative;
  height: 250px;
  background: var(--bg-soft);
  overflow: hidden;
}

.delivery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.delivery-card:hover .delivery-img-wrap img {
  transform: scale(1.05);
}

.delivery-model-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(9, 30, 58, 0.88);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 50px;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.delivery-zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.delivery-card:hover .delivery-zoom-hint {
  opacity: 1;
}

.delivery-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.delivery-caption {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
}

.delivery-date {
  font-size: 12.5px;
  color: var(--slate-blue);
}

/* หน้าต่างขยายดูภาพเต็มจอ (Lightbox) */
.photo-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.photo-lightbox.open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 18, 36, 0.86);
  backdrop-filter: blur(4px);
}

.lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  width: 100%;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
  animation: modalFadeIn 0.2s ease-out;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(9, 30, 58, 0.82);
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  z-index: 3;
}

.lightbox-content img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: #091E3A;
  display: block;
}

.lightbox-caption-bar {
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--white);
}

.lightbox-caption-bar strong {
  font-size: 15px;
  color: var(--navy);
  flex: 1;
}

.lightbox-caption-bar small {
  font-size: 13px;
  color: var(--slate-blue);
}

@media (max-width: 900px) {
  .delivery-catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .delivery-catalog-grid {
    grid-template-columns: 1fr;
  }
  .delivery-img-wrap {
    height: 220px;
  }
}