  :root {
    --cc-bg: rgba(0,0,0,.78);
    --cc-text: #fff;
    --cc-link: #d0e6ff;
    --cc-btn-bg: #fff;
    --cc-btn-text: #111;
  }

  .cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%) translateY(24px);
    opacity: 0;
    visibility: hidden;
    transition: all .35s ease;
    z-index: 9999;

    display: flex;
    align-items: center;
    gap: 12px;

    max-width: min(960px, 92vw);
    padding: 12px 14px;
    background: var(--cc-bg);
    color: var(--cc-text);
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
  }
  .cookie-banner.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .cookie-banner p {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
  }
  .cookie-banner a {
    color: var(--cc-link);
    text-decoration: underline;
  }
  .cookie-banner__btn {
    margin-left: auto;
    border: 0;
    cursor: pointer;
    white-space: nowrap;

    background: var(--cc-btn-bg);
    color: var(--cc-btn-text);
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 600;
  }
  .cookie-banner__btn:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
  }

  /* มือถือ: ให้เป็นกล่องมนแทน pill และปุ่มเต็มความกว้าง */
  @media (max-width: 600px) {
    .cookie-banner {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
      border-radius: 14px;
      padding: 14px;
    }
    .cookie-banner__btn {
      width: 100%;
      text-align: center;
    }
  }
html, body {
  height: 100%;
  margin: 0;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Noto Sans Thai', sans-serif;
  display: flex;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  background: #000;
  color: #fff;
  overflow-x: hidden;
}

.left {
  flex: 0 0 50%;
  min-width: 0;
  min-height: 50vh;
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: #000;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #000;
  padding: 0;
  box-sizing: border-box;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #000;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease;
}

.slider-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.slider-btn.prev {
  left: 18px;
}

.slider-btn.next {
  right: 18px;
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 10px;
}

.slider-dots .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: all 0.25s ease;
}

.slider-dots .dot.active {
  background: #fff;
  transform: scale(1.15);
}

.right {
  flex: 0 0 50%;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 12px;
  background: #000;
  box-sizing: border-box;
}

.form-box {
  width: 100%;
  max-width: 400px;
}

/* มือถือ: เรียงเป็นแนวตั้ง และล็อกความสูงฝั่งรูปให้เห็นแน่นอน */


/* Tag2 */
    h2 {
      font-size: 1.6rem;
      margin-bottom: 20px;
      font-weight: 600;
      line-height: 1.4;
    }
    form {
      margin-top: 20px;
    }
    form input, form select {
      width: 100%;
      padding: 12px 14px;
      margin-bottom: 16px;
      background: #000;
      border: 1px solid #666;
      border-radius: 4px;
      color: #fff;
      font-size: 1rem;
      font-family: 'Noto Sans Thai', sans-serif;
      transition: border-color 0.3s, background 0.3s;
      appearance: none;
    }
    form input:focus, form select:focus {
      border-color: #00aaff;
      outline: none;
      background: rgba(255,255,255,0.05);
    }
    form select option {
      background: #000;  /* พื้นหลัง dropdown */
      color: #fff;       /* ตัวหนังสือ dropdown */
    }

    /* ✅ Checkbox ใช้ Grid */
.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 0.9rem;
  line-height: 1.4;
  cursor: pointer;
}

.checkbox input {
  appearance: none;         /* ซ่อน default */
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #666;
  border-radius: 3px;
  background: #000;
  cursor: pointer;
  position: relative;
}

.checkbox input:checked {
  background-color: #0099cc;
  border-color: #0099cc;
}

.checkbox input:checked::after {
  content: "✔";               /* เครื่องหมายติ๊ก */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  font-size: 14px;
  color: #fff;
}

.checkbox label {
  cursor: pointer;
  white-space: normal;
  word-break: break-word;
}



    button {
      width: 100%;
      padding: 14px;
      background: #0099cc;
      color: white;
      border: none;
      border-radius: 4px;
      font-size: 1.1rem;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.3s;
      font-family: 'Noto Sans Thai', sans-serif;
    }
    button:hover {
      background: #00bbee;
    }
    footer {
      margin-top: 12px;
      font-size: 0.8rem;
      color: #aaa;
      text-align: center;
    }

/* Tag 3 */  
/*<!-- ===== [PATCH] Thai-safe text for select/option ===== -->*/

    .th-safe-text,
    .th-safe-text select,
    .th-safe-text option {
      font-family: 'Noto Sans Thai', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    }
    .th-safe-text select {
      line-height: 1.6 !important;
      height: auto !important;
      min-height: 2.5rem;
    }
    .th-safe-text option { 
      line-height: normal !important;
    }
    .th-safe-text { 
      overflow: visible !important;
    }

  /* === FIX: unify input/select height on desktop === */
.form-box input[type="text"],
.form-box input[type="tel"],
.form-box input[type="email"],
.form-box input[type="number"],
.form-box select {
  box-sizing: border-box;
  height: 46px !important;         /* ความสูงเดียวกัน */
  padding: 10px 14px !important;   /* ให้เนื้อในสมดุล */
  line-height: 26px !important;
  border-radius: 8px !important;
}

/* ถ้าตัวเลือกมีลูกศร ให้กันพื้นที่ขวาไว้หน่อย */
.form-box select { padding-right: 36px !important; }

/* class ที่ใช้กับอินพุตของคุณ (.half / .full) ให้สูงเท่ากัน */
.form-row .half,
.form-row .full {
  height: 46px !important;
}

/* ยกเลิก min-height ที่เคยตั้งใน th-safe-text ให้ select ไม่เพี้ยน */
.th-safe-text select {
  min-height: 0 !important;
  height: 46px !important;
  line-height: 26px !important;
}
/* <!-- ===== [PATCH END] ===== --> */

@media (max-width: 768px) {
  body {
    flex-direction: column;
  }

  .left {
    flex: none;
    width: 100%;
    min-height: 42vh;
  }

  .hero-slider {
    width: 100%;
    height: 42vh;
    min-height: 42vh;
    padding: 8px;
    box-sizing: border-box;
  }

  .hero-slide {
    background-size: contain;
    background-position: center top;
    background-repeat: no-repeat;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .slider-btn.prev {
    left: 12px;
  }

  .slider-btn.next {
    right: 12px;
  }

  .slider-dots {
    bottom: 10px;
    gap: 8px;
  }

  .slider-dots .dot {
    width: 10px;
    height: 10px;
  }

  .right {
    flex: none;
    width: 100%;
    padding: 14px 16px 28px;
    align-items: flex-start;
  }

  .form-box {
    width: 100%;
    max-width: 100%;
  }

  .form-box h2 {
    margin: 0 0 12px;
    font-size: 1.2rem;
    line-height: 1.35;
  }

  .form-box form {
    margin-top: 0;
  }

  form input,
  form select {
    margin-bottom: 14px;
    font-size: 16px;
  }

  button {
    font-size: 1rem;
  }
}
  