/* ==========================================================================
   SevScan QR MENU Landing Page v2 (style2.css)
   Designed according to the reference poster layout
   ========================================================================== */

:root {
  --font-main: 'Kanit', 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Core Brand Colors from Poster */
  --navy-dark: #0e3547;
  --navy-deeper: #082330;
  --teal-primary: #149b8b;
  --teal-light: #e6f7f5;

  --green-btn-start: #18a566;
  --green-btn-end: #0f8a52;
  --green-accent: #16a34a;

  --yellow-banner-start: #fde068;
  --yellow-banner-end: #f6c33b;
  --yellow-btn-start: #ffd83b;
  --yellow-btn-end: #f5b716;

  --red-price: #c81010;
  --red-danger: #dc2626;
  --red-soft-bg: #fff1f0;
  --red-soft-border: #ffd6d4;

  --green-soft-bg: #dcf5ec;
  --green-soft-border: #b8e8d7;

  --bg-body: #eef3f7;
  --bg-card: #ffffff;
  --bg-soft: #f5f8fa;

  --text-dark: #112a38;
  --text-muted: #526775;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-pill: 9999px;

  --shadow-soft: 0 8px 24px -4px rgba(14, 53, 71, 0.08);
  --shadow-card: 0 10px 30px -6px rgba(14, 53, 71, 0.12);
  --shadow-btn-green: 0 8px 20px -4px rgba(20, 155, 139, 0.45);
  --shadow-btn-yellow: 0 8px 20px -4px rgba(245, 183, 22, 0.4);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-dark);
  line-height: 1.45;
  padding: 20px 12px 40px;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input {
  font-family: inherit;
}

/* ==========================================================================
   MAIN PAGE CONTAINER
   ========================================================================== */
.page-container {
  max-width: 980px;
  margin: 0 auto;
  background-color: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 50px rgba(14, 53, 71, 0.14);
  overflow: hidden;
  border: 1px solid #dce6ed;
}

/* ==========================================================================
   1. TOP NAVBAR & HERO SECTION
   ========================================================================== */
.hero-wrapper {
  position: relative;
  background-image:
    linear-gradient(95deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.94) 44%,
      rgba(255, 255, 255, 0.35) 75%,
      rgba(255, 255, 255, 0.15) 100%),
    url('images/background.png');
  background-size: cover;
  background-position: center right;
  padding: 22px 32px 26px;
  border-bottom: 1px solid #e2ecf2;
}

/* Top Navbar */
.top-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.qr-logo-icon {
  width: 38px;
  height: 38px;
  background: var(--teal-light);
  color: var(--navy-dark);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-logo-icon svg {
  width: 26px;
  height: 26px;
  color: var(--teal-primary);
}

.brand-text {
  font-size: 28px;
  font-weight: 500;
  color: var(--teal-primary);
  letter-spacing: -0.02em;
}

.brand-text strong {
  font-weight: 800;
  color: var(--navy-dark);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy-dark);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--teal-primary);
}

.btn-nav-green {
  background: linear-gradient(135deg, var(--green-btn-start), var(--green-btn-end));
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-btn-green);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn-nav-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -4px rgba(20, 155, 139, 0.6);
}

/* Hero Main Grid */
.hero-main-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
  align-items: center;
  padding: 8px 0 24px;
}

.hero-left-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-heading {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
  color: var(--navy-dark);
  margin-bottom: 10px;
}

.heading-xl {
  font-size: 62px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.heading-lg {
  font-size: 46px;
  font-weight: 800;
}

.hero-sub-1 {
  font-size: 27px;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 4px;
}

.hero-sub-2 {
  font-size: 23px;
  font-weight: 700;
  color: var(--teal-primary);
  margin-bottom: 18px;
}

/* Yellow Price Box */
.hero-price-banner {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, var(--yellow-banner-start), var(--yellow-banner-end));
  padding: 12px 28px;
  border-radius: 20px;
  box-shadow: 0 10px 25px -5px rgba(246, 195, 59, 0.55);
  border: 2px solid #fff3b8;
  margin-bottom: 20px;
}

.price-left {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-prefix {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy-dark);
}

.price-amount {
  font-size: 60px;
  font-weight: 800;
  color: var(--red-price);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.6);
}

.price-unit {
  font-size: 24px;
  font-weight: 800;
  color: var(--red-price);
}

.price-divider {
  width: 2px;
  height: 48px;
  background-color: rgba(14, 53, 71, 0.25);
}

.price-right {
  display: flex;
  flex-direction: column;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.25;
}

/* Green Hero CTA Button */
.hero-cta-wrap {
  padding-left: 8px;
}

.btn-hero-green {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(180deg, #22b573 0%, #0d8a50 100%);
  color: #ffffff;
  font-size: 25px;
  font-weight: 700;
  padding: 12px 38px 12px 20px;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 25px -4px rgba(13, 138, 80, 0.55), inset 0 2px 2px rgba(255, 255, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-hero-green:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -4px rgba(13, 138, 80, 0.7);
}

.btn-arrow-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  color: #0d8a50;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Right Column: Acrylic Stand + Phone Mockup */
.hero-right-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual-composition {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  padding-top: 10px;
}

.hero-acrylic-stand {
  position: relative;
  width: 48%;
  max-width: 210px;
  z-index: 2;
  transform: perspective(600px) rotateY(8deg) rotateZ(-2deg);
  transition: transform 0.3s ease;
}

.hero-acrylic-stand:hover {
  transform: perspective(600px) rotateY(4deg) rotateZ(0deg) translateY(-4px);
}

.acrylic-frame {
  background: rgba(255, 255, 255, 0.92);
  padding: 6px;
  border-radius: 12px;
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.25);
}

.acrylic-img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.acrylic-base {
  height: 14px;
  width: 108%;
  margin-left: -4%;
  margin-top: -4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(203, 213, 225, 0.85));
  border-radius: 6px;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.22);
}

.hero-phone-mockup {
  position: relative;
  width: 54%;
  max-width: 235px;
  margin-left: -20px;
  z-index: 3;
  transform: rotate(3deg) translateY(6px);
  transition: transform 0.3s ease;
}

.hero-phone-mockup:hover {
  transform: rotate(1deg) translateY(0px);
}

.phone-bezel {
  background: #111827;
  padding: 10px 8px 12px;
  border-radius: 32px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45), 0 0 0 2px #374151;
  position: relative;
}

.phone-notch {
  width: 68px;
  height: 14px;
  background: #000000;
  border-radius: 10px;
  margin: 0 auto 6px;
}

.phone-screen {
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

.phone-screen img {
  width: 100%;
  height: auto;
  display: block;
}

.phone-home-bar {
  width: 70px;
  height: 4px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  margin: 8px auto 0;
}

/* ==========================================================================
   2. 4 QUICK FEATURES BAR
   ========================================================================== */
.quick-features-bar {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 16px 22px;
  box-shadow: 0 8px 28px rgba(14, 53, 71, 0.1);
  border: 1px solid #e2ecf2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.qf-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: center;
}

.qf-divider {
  width: 1.5px;
  height: 42px;
  background-color: #dce6ed;
  flex-shrink: 0;
}

.qf-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qf-icon.teal {
  background: var(--teal-light);
  color: var(--teal-primary);
}

.qf-icon.red-no-print {
  background: #fff1f0;
  color: var(--navy-dark);
}

.qf-icon.navy-qr {
  background: #eef4f8;
  color: var(--navy-dark);
}

.qf-icon svg {
  width: 26px;
  height: 26px;
}

/* Toggle Switch UI Icon */
.toggle-switch-ui {
  width: 52px;
  height: 28px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-radius: var(--radius-pill);
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

.toggle-knob {
  width: 22px;
  height: 22px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.qf-text {
  display: flex;
  flex-direction: column;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.25;
}

/* ==========================================================================
   2.5 STATS & CLIENT LOGOS MARQUEE
   ========================================================================== */
.stats-container {
  padding: 8px 16px 10px;
  background: #ffffff;
  border-bottom: 1px solid #e6eef4;
}

.marquee-container {
  overflow: hidden;
  position: relative;
  padding: 10px 0 6px;
  width: 100%;
}

.marquee-container::before,
.marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, #ffffff, rgba(255, 255, 255, 0));
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, #ffffff, rgba(255, 255, 255, 0));
}

.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: scrollMarquee 40s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.marquee-logo-card {
  width: 60px;
  height: 60px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.marquee-logo-card:hover {
  transform: scale(1.08);
}

.marquee-logo-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

/* ==========================================================================
   3. USE CASES: ร้านแบบไหนก็ใช้ SevScan ได้
   ========================================================================== */
.use-cases-section {
  padding: 36px 28px 38px;
  background: linear-gradient(180deg, #f3fafd 0%, #ffffff 50%, #f4fbf9 100%);
  border-bottom: 1px solid #e6eef4;
}

.uc-heading-block {
  text-align: center;
  margin-bottom: 26px;
}

.uc-title-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 8px;
}

.uc-sparkle {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.uc-main-title {
  font-size: 40px;
  font-weight: 800;
  color: var(--navy-dark);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.uc-brand-highlight {
  position: relative;
  display: inline-block;
  color: var(--navy-dark);
}

.uc-brand-highlight span {
  color: #fc3932;
}

.uc-brand-highlight::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #fde047, #facc15);
  border-radius: 6px;
  z-index: 0;
}

.uc-subtitle {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy-dark);
  line-height: 1.45;
  max-width: 760px;
  margin: 0 auto;
}

/* 6 Cards Grid (3x2) */
.uc-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.uc-card {
  background: #ffffff;
  border-radius: 22px;
  border: 1.5px solid #dce8f0;
  box-shadow: 0 10px 26px -6px rgba(14, 53, 71, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.uc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -6px rgba(14, 53, 71, 0.16);
}

/* Dark Navy Header with rounded bottom inside card */
.uc-card-header {
  background: linear-gradient(180deg, #0b3449 0%, #0d3b52 100%);
  color: #ffffff;
  padding: 12px 14px;
  text-align: center;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(11, 52, 73, 0.22);
}

.uc-card-header h3 {
  font-size: 18.5px;
  font-weight: 700;
  line-height: 1.28;
  color: #ffffff;
}

.uc-num {
  color: #ffffff;
  font-weight: 800;
}

.uc-hl {
  color: #fbbf24;
  font-weight: 800;
}

/* Card Scene Photo */
.uc-card-photo {
  margin-top: -12px;
  height: 175px;
  overflow: hidden;
  background: #eef4f8;
  position: relative;
  z-index: 1;
}

.uc-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Card Body: Problem, Solution, Result */
.uc-card-body {
  padding: 14px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.uc-point {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.uc-badge-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  color: #ffffff;
  flex-shrink: 0;
  margin-top: 2px;
}

.uc-badge-icon.red {
  background: #e11d48;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.35);
}

.uc-badge-icon.green {
  background: #16a34a;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.35);
}

.uc-point p {
  font-size: 14px;
  line-height: 1.35;
  color: var(--navy-dark);
  font-weight: 500;
}

.uc-point p strong {
  font-weight: 700;
  color: var(--navy-dark);
}

.uc-point p strong.red-text {
  color: #dc2626;
}

/* Bottom Result Pill Box */
.uc-result-box {
  margin-top: auto;
  background: linear-gradient(135deg, #dff5ee 0%, #d2f0e6 100%);
  border: 1px solid #bce6d8;
  border-radius: 14px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.uc-result-icon {
  width: 32px;
  height: 32px;
  color: var(--navy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.uc-result-icon svg {
  width: 28px;
  height: 28px;
}

.uc-result-box p {
  font-size: 13px;
  line-height: 1.32;
  color: var(--navy-dark);
  font-weight: 500;
}

.uc-result-box p strong {
  font-weight: 800;
  color: #064e3b;
}

/* ==========================================================================
   4. HOW IT WORKS: ใช้งานง่าย แค่ 3 ขั้นตอน
   ========================================================================== */
.steps-section {
  padding: 28px 32px;
  background: #ffffff;
  border-bottom: 1px solid #e6eef4;
}

.section-center-pill {
  text-align: center;
  margin-bottom: 22px;
}

.section-center-pill h2 {
  display: inline-block;
  background: var(--navy-dark);
  color: #ffffff;
  font-size: 23px;
  font-weight: 700;
  padding: 8px 34px;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 16px rgba(14, 53, 71, 0.2);
}

.steps-row-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}

.step-box {
  background: var(--bg-soft);
  border: 1.5px solid #e2ecf2;
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-badge-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--teal-primary);
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(20, 155, 139, 0.35);
}

.step-title-group h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy-dark);
  line-height: 1.2;
}

.step-title-group p {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.step-img-wrapper {
  height: 135px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #dce6ed;
}

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

.step-success-graphic {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: linear-gradient(135deg, #f0fdf9 0%, #e0f2fe 100%);
}

.success-check-circle {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(13, 148, 136, 0.35);
}

.thumbs-up-icon {
  font-size: 52px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.12));
}

.step-arrow {
  color: #8bb8c9;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   5. REAL CUSTOMERS: ร้านอาหารที่ใช้ SevScan จริง
   ========================================================================== */
.customers-section {
  padding: 28px 32px;
  background: #f8fbfd;
  border-bottom: 1px solid #e6eef4;
}

.customer-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.customer-review-card {
  background: #ffffff;
  border: 1.5px solid #e2ecf2;
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-soft);
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
}

.customer-review-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal-primary);
  box-shadow: 0 12px 28px -4px rgba(20, 155, 139, 0.22);
}

.customer-review-card:active {
  transform: translateY(-1px);
}

.click-hint-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--teal-primary);
  background: var(--teal-light);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-top: 4px;
  width: fit-content;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.customer-review-card:hover .click-hint-badge {
  background: var(--teal-primary);
  color: #ffffff;
}

.customer-thumb {
  width: 96px;
  height: 78px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.customer-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.customer-card-body h3 {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--navy-dark);
}

.customer-card-body p {
  font-size: 13.5px;
  color: var(--text-muted);
}

.star-rating {
  color: #fbbf24;
  font-size: 16px;
  letter-spacing: 2px;
  margin-top: 2px;
}

/* ==========================================================================
   RESTAURANT MENU PREVIEW MODAL
   ========================================================================== */
.restaurant-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.restaurant-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.restaurant-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 35, 48, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.restaurant-modal-dialog {
  position: relative;
  z-index: 10;
  background: transparent;
  max-width: 400px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.restaurant-modal.active .restaurant-modal-dialog {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: -46px;
  right: 4px;
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 20;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.45);
  transform: scale(1.08) rotate(90deg);
}

.modal-image-container {
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  justify-content: center;
  border-radius: 20px;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.6);
}

.modal-image-container img {
  width: 100%;
  height: auto;
  display: block;
  visibility: visible !important;
}

/* ==========================================================================
   6. MID-PAGE DARK PROMO BANNER
   ========================================================================== */
.promo-cta-banner {
  margin: 24px 32px;
  background: linear-gradient(95deg, #0b2938 0%, #123e52 55%, #0b2938 100%);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 16px 35px -8px rgba(11, 41, 56, 0.45);
}

.promo-col-left h2 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
}

.promo-col-left h2 span {
  color: #ffd83b;
}

.promo-divider {
  width: 1.5px;
  height: 70px;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.promo-col-center {
  text-align: center;
}

.promo-price-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

.promo-prefix {
  font-size: 22px;
  font-weight: 700;
}

.promo-num {
  font-size: 56px;
  font-weight: 800;
  color: #ffd83b;
  line-height: 0.95;
}

.promo-unit {
  font-size: 24px;
  font-weight: 700;
}

.promo-sub {
  font-size: 18px;
  font-weight: 600;
  color: #e2e8f0;
  margin-top: 4px;
}

.promo-col-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.btn-promo-yellow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(180deg, var(--yellow-btn-start), var(--yellow-btn-end));
  color: var(--navy-deeper);
  font-size: 22px;
  font-weight: 800;
  padding: 12px 32px 12px 18px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-btn-yellow);
  transition: transform 0.2s ease;
}

.btn-promo-yellow:hover {
  transform: translateY(-2px);
}

.btn-arrow-circle-dark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--navy-deeper);
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-guarantees {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: #cbd5e1;
  font-weight: 500;
}

/* ==========================================================================
   7. CHECKOUT SECTION (PromptPay Order Form)
   ========================================================================== */
.checkout-section {
  padding: 12px 32px 28px;
}

.alert-canceled {
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.alert-canceled.hidden {
  display: none;
}

.alert-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-close-btn {
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 700;
  color: #b45309;
  cursor: pointer;
}

.checkout-card-wrapper {
  background: #f8fbfd;
  border: 1.5px solid #d5e3ec;
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: center;
}

.checkout-badge {
  display: inline-block;
  background: #fee2e2;
  color: #dc2626;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}

.checkout-info-side h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 8px;
}

.checkout-info-side p {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.checkout-summary-box {
  background: #ffffff;
  border: 1px solid #dce6ed;
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cs-row {
  display: flex;
  justify-content: space-between;
  font-size: 14.5px;
  color: var(--text-muted);
  padding-bottom: 10px;
  border-bottom: 1px dashed #e2ecf2;
}

.cs-row strong {
  color: var(--navy-dark);
}

.cs-row strong.green-text {
  color: var(--teal-primary);
}

.cs-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 4px;
}

.cs-total>span {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-dark);
}

.cs-price {
  font-size: 34px;
  font-weight: 800;
  color: var(--red-price);
  line-height: 1;
}

.cs-price span {
  font-size: 16px;
  color: var(--navy-dark);
}

/* Order Form */
.checkout-form-side {
  background: #ffffff;
  border: 1px solid #dce6ed;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

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

.req {
  color: #ef4444;
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #cbd5e1;
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  border-color: var(--teal-primary);
  box-shadow: 0 0 0 3px rgba(20, 155, 139, 0.15);
}

.error-message-box {
  padding: 12px;
  border-radius: var(--radius-sm);
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 13px;
}

.error-message-box.hidden {
  display: none;
}

.btn-submit-payment {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--green-btn-start), var(--green-btn-end));
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  border: none;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-btn-green);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: 4px;
}

.btn-submit-payment:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -4px rgba(20, 155, 139, 0.6);
}

.btn-submit-payment:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.spinner-icon {
  animation: spin 1s linear infinite;
}

.spinner-icon.hidden,
.hidden {
  display: none;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.security-note {
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   8. FAQ SECTION: คำถามที่พบบ่อย
   ========================================================================== */
.faq-section {
  padding: 0 32px 26px;
}

.faq-main-box {
  background: #f8fbfd;
  border: 1.5px solid #d5e3ec;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-main-header {
  list-style: none;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.faq-main-header::-webkit-details-marker {
  display: none;
}

.faq-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.faq-q-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy-dark);
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-header-titles h2 {
  font-size: 19px;
  font-weight: 800;
  color: var(--navy-dark);
  line-height: 1.2;
}

.faq-header-titles p {
  font-size: 13.5px;
  color: var(--text-muted);
}

.faq-chevron {
  color: var(--navy-dark);
  transition: transform 0.25s ease;
}

.faq-main-box[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-list-content {
  padding: 6px 24px 22px;
  border-top: 1px solid #e2ecf2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: #ffffff;
}

.faq-qa-item {
  background: #f8fbfd;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid #e2ecf2;
}

.faq-qa-item h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 6px;
}

.faq-qa-item p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   9. BOTTOM FOOTER BAR
   ========================================================================== */
.bottom-footer-bar {
  background: var(--navy-deeper);
  color: #ffffff;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  color: #ffffff;
}

.qr-logo-icon.light {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.qr-logo-icon.light svg {
  color: #ffffff;
}

.footer-divider {
  width: 1.5px;
  height: 32px;
  background: rgba(255, 255, 255, 0.25);
}

.footer-center {
  flex: 1;
  text-align: center;
  font-size: 19px;
  color: #e2e8f0;
}

.footer-center strong {
  color: #ffffff;
  font-weight: 800;
}

.btn-footer-yellow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, var(--yellow-btn-start), var(--yellow-btn-end));
  color: var(--navy-deeper);
  font-size: 17px;
  font-weight: 800;
  padding: 9px 24px 9px 14px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-btn-yellow);
  transition: transform 0.2s ease;
  white-space: nowrap;
}

.btn-footer-yellow:hover {
  transform: translateY(-2px);
}

.btn-footer-cyan {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, rgb(40, 246, 253), rgb(15, 186, 197));
  color: var(--navy-deeper);
  font-size: 17px;
  font-weight: 800;
  padding: 9px 24px 9px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 12px 26px -4px rgba(0, 246, 253, 0.6);
  transition: transform 0.2s ease;
  white-space: nowrap;
}

.btn-footer-cyan:hover {
  transform: translateY(-2px);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Tablet & Mobile)
   ========================================================================== */
@media (max-width: 900px) {
  .hero-main-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-left-col {
    align-items: center;
  }

  .qf-divider {
    display: none;
  }

  .qf-item {
    flex: 1 1 45%;
    justify-content: flex-start;
  }

  .uc-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .promo-cta-banner {
    flex-direction: column;
    text-align: center;
  }

  .promo-divider {
    width: 80%;
    height: 1px;
  }

  .checkout-card-wrapper {
    grid-template-columns: 1fr;
  }

  .faq-list-content {
    grid-template-columns: 1fr;
  }

  .bottom-footer-bar {
    flex-direction: column;
    text-align: center;
  }

  .footer-divider {
    display: none;
  }
}

@media (max-width: 600px) {
  body {
    padding: 0;
  }

  .page-container {
    border-radius: 0;
    border: none;
  }

  .hero-wrapper,
  .use-cases-section,
  .steps-section,
  .customers-section,
  .checkout-section,
  .faq-section,
  .bottom-footer-bar {
    padding-left: 16px;
    padding-right: 16px;
  }

  .uc-main-title {
    font-size: 28px;
  }

  .uc-subtitle {
    font-size: 15px;
  }

  .uc-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .quick-features-bar {
    flex-wrap: wrap;
    gap: 16px;
  }

  .steps-row-container {
    grid-template-columns: 1fr;
  }

  .step-arrow {
    transform: rotate(90deg);
  }

  .customer-cards-grid {
    grid-template-columns: 1fr;
  }

  .promo-cta-banner {
    margin: 16px;
    padding: 20px 16px;
  }

  .nav-links {
    display: none;
  }

  .heading-xl {
    font-size: 46px;
  }

  .heading-lg {
    font-size: 34px;
  }

  .hero-sub-1 {
    font-size: 21px;
  }

  .hero-sub-2 {
    font-size: 18px;
  }

  .price-amount {
    font-size: 46px;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}