/* mise waitlist — shared styles. Most layout lives inline in the HTML (kept 1:1 with the prototype). */

@font-face {
  font-family: 'Anuphan';
  font-style: normal;
  font-display: swap;
  font-weight: 100 700;
  src: url(/assets/fonts/anuphan-thai-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Anuphan';
  font-style: normal;
  font-display: swap;
  font-weight: 100 700;
  src: url(/assets/fonts/anuphan-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/inter-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --accent: #17774D;
  --accent-dark: #0F5A39;
  --accent-soft: rgb(229, 240, 235);
  --ink: #1D1D1F;
  --muted: #5F6368;
  --line: #D8D8DE;
  --warn: #A84E09;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #FBFBFD;
  color: var(--ink);
  font-family: 'Inter', 'Anuphan', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
section[id], main[id] { scroll-margin-top: 72px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- calculator ---------- */
.calc-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid #F0F0F2; }
.calc-row--last { padding-bottom: 0; border-bottom: 0; }
.calc-amt { display: flex; align-items: center; gap: 6px; font-size: 15px; color: var(--muted); }
.calc-in {
  width: 88px; min-height: 44px; box-sizing: border-box; padding: 0 12px;
  border-radius: 12px; border: 1px solid var(--line); background: #FBFBFD;
  font: inherit; font-size: 16px; text-align: right; color: var(--ink);
}
.calc-in--price { border: 1.5px solid var(--accent); background: #FFFFFF; font-weight: 600; }

/* ---------- form ---------- */
.flabel { display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 600; }
.req { color: var(--warn); }
.field {
  min-height: 48px; box-sizing: border-box; padding: 0 14px; border-radius: 14px;
  border: 1px solid var(--line); background: #FFFFFF;
  font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); width: 100%;
}
.field--area { padding: 12px 14px; resize: vertical; min-height: 96px; }
.field[aria-invalid="true"] { border-color: var(--warn); }
.chipset { border: 0; margin: 0; padding: 0; min-width: 0; }
.chipset > legend { padding: 0; margin-bottom: 10px; display: block; }
.chipset[aria-invalid="true"] .chip { border-color: #E8913A; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #FFFFFF; color: var(--ink);
  font: inherit; font-size: 15px; cursor: pointer;
}
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: #FFFFFF; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.55; color: #45494E; cursor: pointer; position: relative; }
.consent-input { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: 0; opacity: 0; cursor: pointer; }
.consent-box {
  flex: none; width: 24px; height: 24px; box-sizing: border-box; border-radius: 7px;
  border: 1.5px solid #C7C7CC; background: #FFFFFF; color: #FFFFFF;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.consent-input:checked + .consent-box { background: var(--accent); border-color: var(--accent); }
.consent-input:focus-visible + .consent-box { outline: 3px solid var(--accent); outline-offset: 2px; }
.consent-input[aria-invalid="true"] + .consent-box { border-color: var(--warn); }

.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.btn-submit {
  min-height: 56px; border-radius: 999px; border: 0; background: var(--accent); color: #FFFFFF;
  font: inherit; font-size: 17px; font-weight: 600; cursor: pointer;
}
.btn-submit:hover { background: var(--accent-dark); }
.btn-submit[disabled] { opacity: .7; cursor: progress; }

.seats-pill.is-loading { visibility: hidden; }

/* ---------- FAQ ---------- */
.faq-q {
  width: 100%; min-height: 64px; padding: 18px 4px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: none; border: 0; cursor: pointer; text-align: left; font: inherit; font-size: 18px; font-weight: 600; color: var(--ink);
}
.faq-icon {
  flex: none; width: 32px; height: 32px; border-radius: 50%; background: #F0F0F2;
  display: flex; align-items: center; justify-content: center; color: var(--ink); transition: transform .25s ease;
}
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }

/* ---------- cookie banner ---------- */
.cookie {
  position: fixed; z-index: 50; left: 12px; right: 12px; bottom: 12px; margin: 0 auto; max-width: 560px;
  background: #FFFFFF; color: var(--ink); border-radius: 20px; padding: 16px 18px;
  box-shadow: 0 2px 6px rgba(0,0,0,.06), 0 18px 50px rgba(23,40,30,.18);
  display: flex; flex-direction: column; gap: 12px; font-size: 14px; line-height: 1.55;
}
.cookie p { margin: 0; color: #45494E; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.cookie button {
  min-height: 44px; padding: 0 18px; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  border: 1.5px solid var(--line); background: #FFFFFF; color: var(--ink);
}
.cookie button.primary { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }

/* ---------- simple content pages (privacy / terms / delete) ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 24px 96px; font-size: 16px; line-height: 1.8; color: #2B2D30; }
.doc h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.25; letter-spacing: -0.02em; margin: 0 0 8px; color: var(--ink); }
.doc h2 { font-size: 21px; line-height: 1.4; margin: 40px 0 8px; color: var(--ink); scroll-margin-top: 80px; }
.doc .meta { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.doc .draft { background: #FDF1E4; color: #7A3E06; border-radius: 12px; padding: 12px 16px; font-size: 14px; }
.doc ul { padding-left: 1.3em; }
.doc li { margin: 4px 0; }
.page-head { position: sticky; top: 0; z-index: 20; background: rgba(251,251,253,.9); border-bottom: 1px solid rgba(0,0,0,.06); }
.page-head nav { max-width: 1120px; margin: 0 auto; padding: 0 24px; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.pill-link { background: var(--accent); color: #FFFFFF; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; min-height: 44px; box-sizing: border-box; display: inline-flex; align-items: center; }
.pill-link:hover { color: #FFFFFF; background: var(--accent-dark); }
.site-foot { border-top: 1px solid #E5E5EA; padding: 28px 24px 40px; }
.site-foot > div { max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 13px; color: #6E6E73; }
.site-foot a { color: #6E6E73; }

/* keep focused fields clear of the sticky header */
.field, .chip, .consent-input, .calc-in { scroll-margin-top: 110px; }

/* phones: keep the sticky bar to one row (logo + จองสิทธิ์) */
@media (max-width: 640px) { .nav-text { display: none; } }

/* links inside running text are underlined (not colour-only) */
p a, li a, label a, .consent a, span > a:not([style]) { text-decoration: underline; text-underline-offset: 2px; }
