:root {
  --bg: #0B0B10;
  --bg-2: #14141C;
  --card: #17171F;
  --field: #0E0E14;
  --line: rgba(255, 255, 255, .12);
  --ink: #fff;
  --mute: rgba(255, 255, 255, .66);
  --cyan: #22E8F8;
  --pink: #FF0A84;
  --f-d: "Archivo", "Noto Sans Thai", ui-sans-serif, system-ui, sans-serif;
  --f-b: "Lexend", "Noto Sans Thai", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --g: clamp(16px, 4vw, 48px);
  --r: 22px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(60% 50% at 100% 0%, rgba(255, 10, 132, .16), transparent 70%),
    radial-gradient(50% 40% at 0% 10%, rgba(34, 232, 248, .10), transparent 70%),
    var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--f-b);
}

/* Thai has no word spaces and taller glyphs: give it room and let it wrap. */
html:lang(th) body { line-height: 1.7; }
html:lang(th) h1, html:lang(th) h2 { line-height: 1.3; letter-spacing: 0; }
html:lang(th) h1 { font-size: clamp(30px, 3.6vw, 46px); }

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px var(--g);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { display: block; width: auto; }
/* The TikTok One file has a black background; screen blending drops it on the dark header. */
.logo-tiktok { height: 42px; mix-blend-mode: screen; margin-left: -6px; }
.logo-hda { height: 46px; }
.brand-sep { width: 1px; height: 28px; background: rgba(255, 255, 255, .28); }

.lang {
  display: flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
}
.lang button {
  appearance: none; border: 0; background: none; cursor: pointer;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--mute);
  font: 600 13px/1.2 var(--f-b);
  white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { background: var(--ink); color: #000; }

.wrap {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 64px) var(--g);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font: 600 12px/1.4 var(--f-b);
  letter-spacing: .16em;
  text-transform: uppercase;
}
html:lang(th) .eyebrow { letter-spacing: .04em; }

h1, h2 {
  margin: 0;
  font-family: var(--f-d);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.02em;
  line-height: 1.02;
  text-wrap: balance;
}
h1 { font-size: clamp(32px, 3.8vw, 50px); overflow-wrap: break-word; }
h2 { font-size: clamp(24px, 3.4vw, 30px); }
.hl { color: var(--pink); }
h1 span:first-child { white-space: nowrap; }

.lead { margin: 18px 0 0; max-width: 46ch; color: var(--mute); font-size: clamp(16px, 1.6vw, 18px); }

.facts { display: flex; flex-wrap: wrap; gap: 8px; max-width: 460px; margin: 24px 0 0; padding: 0; list-style: none; }
.facts li {
  flex: 1 1 auto;
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  color: var(--mute);
  font-size: 12.5px; line-height: 1.3;
  white-space: nowrap;
}
.facts b { color: var(--cyan); font: 900 18px/1.15 var(--f-d); letter-spacing: -.01em; }
.facts li:first-child { border-color: transparent; background: var(--cyan); color: rgba(0, 0, 0, .72); }
.facts li:first-child b { color: #000; }
html:lang(th) .facts b { font-weight: 800; line-height: 1.3; letter-spacing: 0; }

.card {
  background: var(--card);
  border: 2px solid #000;
  border-radius: var(--r);
  box-shadow: 6px 6px 0 var(--cyan);
  padding: clamp(20px, 4vw, 32px);
}
.card h2 { margin-bottom: 22px; }

.field { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
label, legend { display: block; margin-bottom: 8px; padding: 0; font-weight: 600; font-size: 14px; }
label i, legend i { color: var(--pink); font-style: normal; }

input[type="text"], input[type="email"], input[type="tel"], select {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--field);
  color: var(--ink);
  font: 400 16px/1.3 var(--f-b);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
input::placeholder { color: rgba(255, 255, 255, .38); }
select {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
select option { background: var(--card); color: var(--ink); }
input:focus-visible, select:focus-visible { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 232, 248, .22); }
[aria-invalid="true"] { border-color: var(--pink) !important; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--field);
  font-weight: 500; font-size: 14px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.chip span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dot, var(--mute)); }
.chip input:hover + span { border-color: rgba(255, 255, 255, .34); }
.chip input:checked + span { border-color: var(--cyan); background: rgba(34, 232, 248, .12); }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(34, 232, 248, .22); }

.hint { margin: 10px 0 0; font-size: 13px; color: var(--mute); }
.err { margin: 6px 0 0; font-size: 13px; color: #FF6FB5; }

.contact-row { display: flex; gap: 8px; }
.contact-row select { flex: 0 0 104px; }
.contact-row input { flex: 1; min-width: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  min-height: 54px;
  margin-top: 6px;
  padding: 14px 24px;
  border: 2px solid #000;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font: 600 16px/1.2 var(--f-b);
  cursor: pointer;
  box-shadow: 4px 4px 0 #000;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 #000; }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #000; }
.btn:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.btn.ghost { background: transparent; border-color: var(--line); box-shadow: none; }

.consent { margin: 14px 0 0; font-size: 12.5px; color: var(--mute); text-align: center; }

.done { text-align: center; padding: 24px 0 8px; outline: none; }
.done h2 { margin-bottom: 10px; }
.done p { margin: 0 0 24px; color: var(--mute); }
.tick {
  display: grid; place-items: center;
  width: 64px; height: 64px; margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--cyan); color: #000;
  font: 900 30px/1 var(--f-d);
}

.foot { padding: 20px var(--g) calc(20px + env(safe-area-inset-bottom)); color: var(--mute); font-size: 12.5px; text-align: center; }

[hidden] { display: none !important; }

@media (max-width: 1000px) {
  .wrap { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .card { box-shadow: 4px 4px 0 var(--cyan); }
}
@media (max-width: 520px) {
  .lang { width: 100%; }
  .lang button { flex: 1; padding: 9px 6px; }
  .facts { margin-top: 20px; }
  .facts li { padding: 10px 13px; }
  .facts b { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
