/* IPTM Member Club: the sign-up page (welcome.php).
 *
 * Desktop: a split screen. The brand panel on the left stays put while the form on the right scrolls.
 * Phone: one column, brand first, then the form card edge to edge with a 16px gutter.
 *
 * Gold text on cream uses --gold-ink, a darker gold, so small type keeps a readable contrast; the
 * bright --gold is for lines, borders and text on navy.
 */

:root {
  --navy: #0B1321;
  --navy-2: #111B2D;
  --navy-line: rgba(197, 160, 89, 0.22);
  --gold: #C5A059;
  --gold-ink: #8A6A2C;
  --gold-wash: rgba(197, 160, 89, 0.10);
  --cream: #FDFBF7;
  --cream-2: #F6F1E7;
  --ink: #0B1321;
  --ink-2: #3D4656;
  --muted: #6B7280;
  --line: #E6DECF;
  --line-strong: #D6CBB6;
  --danger: #A63A32;
  --danger-wash: #FBEFEC;
  --on-navy: rgba(253, 251, 247, 0.92);
  --on-navy-soft: rgba(253, 251, 247, 0.66);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Montserrat', 'Noto Sans Thai', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 14px;
  --field-h: 52px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Thai reads best in its own face, slightly larger, with more line height for the tone marks */
.cl--th { --sans: 'Noto Sans Thai', 'Montserrat', system-ui, sans-serif; }
.cl--th body, body.cl--th { font-size: 15.5px; line-height: 1.7; }
h1, h2, p, ol, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }

/* ------------------------------------------------------------------ layout */

.cl-shell { min-height: 100vh; min-height: 100dvh; }

.cl-brand {
  position: relative;
  color: var(--on-navy);
  background:
    radial-gradient(120% 70% at 0% 0%, rgba(197, 160, 89, 0.10), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  overflow: hidden;
}
/* a hairline frame with gold corners, echoing the printed QR sign */
.cl-brand::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid var(--navy-line);
  pointer-events: none;
}
.cl-brand-inner {
  position: relative;
  padding: max(28px, env(safe-area-inset-top)) 28px 36px;
}

.cl-main {
  padding: 0 16px max(28px, env(safe-area-inset-bottom));
  background: var(--navy);
}

@media (min-width: 1024px) {
  .cl-shell {
    display: grid;
    grid-template-columns: minmax(400px, 5fr) 7fr;
  }
  .cl-brand {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    border-right: 1px solid var(--navy-line);
  }
  .cl-brand::before { inset: 22px; }
  .cl-brand-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 46px clamp(40px, 5vw, 76px) 40px;
    overflow-y: auto;
    scrollbar-width: none;
  }
  .cl-brand-inner::-webkit-scrollbar { display: none; }
  .cl-main {
    padding: 56px clamp(32px, 5vw, 88px) 64px;
    background:
      radial-gradient(90% 50% at 100% 0%, rgba(197, 160, 89, 0.06), transparent 60%),
      var(--navy);
  }
}

/* ------------------------------------------------------------- brand side */

.cl-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cl-home, .cl-lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--navy-line);
  border-radius: 999px;
  color: var(--on-navy);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: border-color .2s, background-color .2s, color .2s;
}
.cl-home:hover, .cl-lang:hover { border-color: var(--gold); color: var(--gold); }
.cl-home:focus-visible, .cl-lang:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.cl-mark { margin-top: 34px; text-align: center; }
.cl-wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0.42em;
  padding-left: 0.42em;
  color: var(--gold);
}
.cl-club {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.cl-club::before, .cl-club::after { content: ""; width: 40px; height: 1px; background: var(--gold); }
.cl-club span {
  font-family: 'Montserrat', var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.32em;
  padding-left: 0.32em;
  text-transform: uppercase;
  color: var(--on-navy);
}

.cl-title {
  margin-top: 26px;
  text-align: center;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 10vw, 46px);
  line-height: 1.05;
  letter-spacing: 0.005em;
  color: var(--cream);
}
.cl--th .cl-title { font-family: 'Noto Sans Thai', var(--serif); font-weight: 500; font-size: clamp(30px, 8vw, 38px); line-height: 1.3; }
.cl-lead {
  margin: 14px auto 0;
  max-width: 34em;
  text-align: center;
  font-size: 14px;
  line-height: 1.7;
  font-weight: 400;
  color: var(--on-navy-soft);
}
.cl-unit {
  margin: 16px auto 0;
  width: fit-content;
  padding: 7px 16px;
  border: 1px solid var(--navy-line);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--gold);
}

.cl-perks { margin-top: 30px; }
.cl-perks-title {
  font-family: 'Montserrat', var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--navy-line);
}
.cl--th .cl-perks-title { letter-spacing: 0.06em; font-size: 13px; }
.cl-perks ol { list-style: none; }
.cl-perks li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(197, 160, 89, 0.12);
}
.cl-perk-no {
  font-variant-numeric: lining-nums;
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.2;
  color: var(--gold);
}
.cl-perk-text strong {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18.5px;
  line-height: 1.25;
  color: var(--cream);
}
.cl--th .cl-perk-text strong { font-family: 'Noto Sans Thai', sans-serif; font-weight: 500; font-size: 15px; }
.cl-perk-text span {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--on-navy-soft);
}

.cl-badge {
  margin: 26px auto 0;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-family: 'Montserrat', var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.cl--th .cl-badge { letter-spacing: 0.06em; font-size: 12.5px; }
.cl-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

.cl-brand-foot {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 12px;
  color: var(--on-navy-soft);
}
.cl-brand-foot a { text-decoration: none; border-bottom: 1px solid transparent; }
.cl-brand-foot a:hover { color: var(--gold); border-bottom-color: currentColor; }

/* phones: the brand block is an introduction, not a full page. Privileges become a compact 2x2. */
@media (max-width: 1023px) {
  .cl-perks li { grid-template-columns: 28px 1fr; padding: 12px 0; }
  .cl-perk-text strong { font-size: 17px; }
  .cl-perk-text span { font-size: 12.5px; }
  .cl-brand-foot { display: none; } /* the privacy line is repeated under the form */
  .cl-main { padding-top: 4px; }
}
/* small phones: someone who just scanned the sign wants the form, so the privileges become a
   2 x 2 grid of titles and the form starts within the first screen and a half */
@media (max-width: 599px) {
  .cl-brand-inner { padding-bottom: 30px; }
  .cl-mark { margin-top: 26px; }
  .cl-title { margin-top: 18px; }
  .cl-perks { margin-top: 22px; }
  .cl-perks ol { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }
  .cl-perks li { grid-template-columns: 1fr; gap: 2px; padding: 11px 0; }
  .cl-perk-no { font-size: 15px; }
  .cl-perk-text strong { font-size: 16px; }
  .cl--th .cl-perk-text strong { font-size: 13.5px; }
  .cl-perk-text span { display: none; }
  .cl-badge { margin-top: 20px; }
}
@media (min-width: 600px) and (max-width: 1023px) {
  .cl-brand-inner { padding: 32px 48px 40px; max-width: 760px; margin: 0 auto; }
  .cl-perks ol { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
}

/* desktop: brand content left-aligned and spread down the full height */
@media (min-width: 1024px) {
  .cl-mark { margin-top: clamp(24px, 4vh, 48px); text-align: left; }
  .cl-wordmark { padding-left: 0; }
  .cl-club { justify-content: flex-start; }
  .cl-club::before { display: none; }
  .cl-club span { padding-left: 0; }
  .cl-title { text-align: left; margin-top: clamp(18px, 3vh, 30px); font-size: clamp(48px, 4.2vw, 62px); }
  .cl--th .cl-title { font-size: clamp(38px, 3.4vw, 48px); }
  .cl-lead { text-align: left; margin-left: 0; font-size: 15px; max-width: 30em; }
  .cl-unit { margin-left: 0; }
  .cl-perks { margin-top: clamp(22px, 4vh, 38px); }
  .cl-perks li { padding: clamp(9px, 1.4vh, 14px) 0; }
  .cl-badge { margin: clamp(18px, 3vh, 30px) 0 0; }
  .cl-brand-foot { margin-top: auto; padding-top: 22px; justify-content: flex-start; }
}
/* shorter laptop screens: the privileges keep their titles and drop the descriptions so the whole
   panel, footer included, fits inside its frame without scrolling */
@media (min-width: 1024px) and (max-height: 860px) {
  .cl-perk-text span { display: none; }
  .cl-perks li { align-items: baseline; }
}

/* --------------------------------------------------------------- the card */

.cl-card {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  background: var(--cream);
  border: 1px solid rgba(197, 160, 89, 0.55);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.18);
  padding: 26px 20px 28px;
}
@media (min-width: 600px) { .cl-card { padding: 40px 44px 44px; } }
@media (min-width: 1024px) { .cl-card { max-width: 720px; padding: 48px 56px 52px; } }

.cl-alert {
  margin-bottom: 22px;
  padding: 12px 16px;
  border: 1px solid rgba(166, 58, 50, 0.35);
  border-left: 3px solid var(--danger);
  border-radius: 8px;
  background: var(--danger-wash);
  color: var(--danger);
  font-size: 13.5px;
  font-weight: 500;
}

.cl-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* sections inside the form */
.cl-section { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.cl-section--last { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.cl-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 20px;
}
.cl-section-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  color: var(--ink);
}
.cl--th .cl-section-title { font-family: 'Noto Sans Thai', sans-serif; font-weight: 500; font-size: 19px; }
.cl-section-title > span:first-child {
  font-variant-numeric: lining-nums;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 17px;
  color: var(--gold-ink);
}
.cl-section-title .cl-opt { font-family: var(--sans); font-size: 12px; }
.cl-required-note { font-size: 12px; color: var(--muted); }

/* ------------------------------------------------------------------ fields */

.cl-field { margin-top: 18px; }
.cl-section-head + .cl-field { margin-top: 0; }
.cl-field > label, .cl-field > legend {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-2);
}
.cl-req { color: var(--gold-ink); font-weight: 600; margin-left: 1px; }
.cl-opt { font-weight: 400; color: var(--muted); }

.cl input[type="text"],
.cl input[type="email"],
.cl input[type="tel"],
.cl input[type="number"],
.cl input[type="date"],
.cl select {
  display: block;
  width: 100%;
  height: var(--field-h);
  margin: 0;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px; /* 16px stops iOS zooming into the field */
  line-height: 1.2;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .18s, box-shadow .18s, background-color .18s;
}
.cl input::placeholder { color: #9AA0AA; opacity: 1; }
.cl input:hover, .cl select:hover { border-color: #BFB197; }
.cl input:focus, .cl select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.20);
}
.cl input[aria-invalid="true"], .cl select[aria-invalid="true"] {
  border-color: var(--danger);
  background: #FFFBFA;
}
.cl input[aria-invalid="true"]:focus, .cl select[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(166, 58, 50, 0.14); }
.cl input[type="date"] { min-height: var(--field-h); }
.cl input[type="date"]::-webkit-date-and-time-value { text-align: left; }

/* selects get one caret, drawn here, so they look the same on every phone */
.cl-select { position: relative; }
.cl-select::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -6px;
  border-right: 1.6px solid var(--ink-2);
  border-bottom: 1.6px solid var(--ink-2);
  transform: rotate(45deg);
  pointer-events: none;
}
.cl-select select { padding: 0 30px 0 14px; text-overflow: ellipsis; }
.cl-select::after { right: 13px; }

.cl-hint { margin-top: 7px; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.cl-hint--top { margin: -10px 0 14px; }
.cl-section-head + .cl-hint--top { margin-top: -10px; }
.cl-error {
  margin-top: 7px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--danger);
}
.cl-error::before { content: "!"; flex: 0 0 auto; width: 15px; height: 15px; margin-top: 2px; border-radius: 50%; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; line-height: 15px; text-align: center; }

/* phone: a compact code box (just "+66") joined to the number field */
.cl-phone { display: flex; }
.cl-cc {
  position: relative;
  flex: 0 0 96px;
  height: var(--field-h);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px 0 16px;
  border: 1px solid var(--line-strong);
  border-right: 0;
  border-radius: 10px 0 0 10px;
  background: var(--cream-2);
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 500;
}
.cl-cc-shown { flex: 1; }
.cl-cc-caret { color: var(--ink-2); flex: 0 0 auto; }
.cl-cc select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border: 0;
}
.cl-cc:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.20); z-index: 1; }
.cl-phone input[type="tel"] { flex: 1; min-width: 0; border-radius: 0 10px 10px 0; }

/* birthday: day / month / year */
.cl-birthday { display: grid; grid-template-columns: 1fr 1.45fr 1.15fr; gap: 8px; }
@media (min-width: 600px) { .cl-birthday { gap: 12px; } }
@media (max-width: 359px) {
  .cl-birthday { grid-template-columns: 1fr 1fr; }
  .cl-birthday .cl-select:last-child { grid-column: 1 / -1; }
}

.cl-row { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 600px) { .cl-row { grid-template-columns: 1.3fr 1fr; } }

/* --------------------------------------------------------- contact methods */

.cl-channels { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 600px) { .cl-channels { grid-template-columns: repeat(4, 1fr); } }
.cl-channel { position: relative; display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cl-channel input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cl-channel-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 92px;
  height: 100%;
  padding: 14px 14px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  transition: border-color .18s, background-color .18s, box-shadow .18s, transform .18s;
}
.cl-channel-ico { color: var(--ink-2); }
.cl-channel-name { font-size: 14.5px; font-weight: 600; line-height: 1.25; color: var(--ink); }
.cl-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  color: transparent;
  background: #fff;
  transition: background-color .18s, border-color .18s, color .18s;
}
.cl-channel:hover .cl-channel-box { border-color: #BFB197; }
.cl-channel input:checked + .cl-channel-box {
  border-color: var(--gold);
  background: linear-gradient(180deg, #FFFDF8, #FBF5E9);
  box-shadow: 0 0 0 1px var(--gold) inset;
}
.cl-channel input:checked + .cl-channel-box .cl-check { background: var(--gold); border-color: var(--gold); color: #fff; }
.cl-channel input:checked + .cl-channel-box .cl-channel-ico { color: var(--gold-ink); }
.cl-channel input:focus-visible + .cl-channel-box { box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.28); border-color: var(--gold); }
.cl-channel:active .cl-channel-box { transform: scale(0.985); }

/* SMS: visible, plainly not available */
.cl-channel--off { cursor: not-allowed; }
.cl-channel--off .cl-channel-box { background: var(--cream-2); border-style: dashed; border-color: var(--line-strong); }
.cl-channel--off:hover .cl-channel-box { border-color: var(--line-strong); }
.cl-channel--off:active .cl-channel-box { transform: none; }
.cl-channel--off .cl-channel-ico, .cl-channel--off .cl-channel-name { color: #9AA0AA; }
/* the tag sits under the name, in the flow, so it can never cover the icon or be cut off */
.cl-soon {
  margin-top: -4px;
  padding: 3px 8px;
  border: 1px solid rgba(197, 160, 89, 0.55);
  border-radius: 999px;
  background: #fff;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--gold-ink);
}
.cl--th .cl-soon { text-transform: none; letter-spacing: 0; font-size: 11px; }

/* ------------------------------------------------------ LINE ID and notes */

/* LINE ID opens beneath the channel tiles while LINE is ticked. grid-template-rows animates the
   height without measuring it; :has() means no script is needed for it to appear. */
.cl-lineid {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 0;
  opacity: 0;
  visibility: hidden;
  transition: grid-template-rows .32s ease, opacity .25s ease, margin-top .32s ease, visibility 0s linear .32s;
}
.cl-lineid-inner { min-height: 0; overflow: hidden; padding: 0 4px 4px; margin: 0 -4px -4px; }
.cl-form:has(input[name="preferred_channels[]"][value="line"]:checked) #lineid-field,
.cl-form:has(input[name="preferred_channels[]"][value="whatsapp"]:checked) #whatsapp-field,
.cl-lineid:has([aria-invalid="true"]) {
  grid-template-rows: 1fr;
  margin-top: 18px;
  opacity: 1;
  visibility: visible;
  transition: grid-template-rows .32s ease, opacity .25s ease .05s, margin-top .32s ease, visibility 0s;
}
.cl-lineid-inner > label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }

.cl-affix { position: relative; }
.cl-affix-ico { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: #06C755; pointer-events: none; }
.cl .cl-affix input { padding-left: 46px; }

.cl textarea {
  display: block;
  width: 100%;
  min-height: 120px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  resize: vertical;
  transition: border-color .18s, box-shadow .18s;
}
.cl textarea::placeholder { color: #9AA0AA; opacity: 1; }
.cl textarea:hover { border-color: #BFB197; }
.cl textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.20); }
.cl textarea[aria-invalid="true"] { border-color: var(--danger); background: #FFFBFA; }
.cl-count { margin-top: 6px; text-align: right; font-size: 11.5px; font-variant-numeric: tabular-nums; color: var(--muted); }
.cl-count--near { color: var(--gold-ink); font-weight: 600; }

/* --------------------------------------------------------------- consents */

.cl-consent {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color .18s, background-color .18s;
}
.cl-section-head + .cl-consent { margin-top: 0; }
.cl-consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cl-tick {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: transparent;
  transition: background-color .18s, border-color .18s, color .18s;
}
.cl-consent-text { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.cl-consent-text a { color: var(--gold-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.cl-consent:hover { border-color: #CFC2AA; }
.cl-consent input:checked ~ .cl-tick { background: var(--gold); border-color: var(--gold); color: #fff; }
.cl-consent input:focus-visible ~ .cl-tick { box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.28); }
.cl-consent input[aria-invalid="true"] ~ .cl-tick, .cl-consent--bad .cl-tick { border-color: var(--danger); }
.cl-consent--bad { border-color: rgba(166, 58, 50, 0.45); background: #FFFBFA; }

.cl-turnstile { margin-top: 18px; }

/* ----------------------------------------------------------------- submit */

.cl-submit {
  margin-top: 24px;
  width: 100%;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: var(--cream);
  font-family: 'Montserrat', var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 12px 24px -14px rgba(11, 19, 33, 0.7), inset 0 0 0 1px rgba(197, 160, 89, 0.55);
  transition: background-color .2s, transform .2s, box-shadow .2s;
}
.cl--th .cl-submit { font-family: 'Noto Sans Thai', sans-serif; letter-spacing: 0.04em; font-size: 15px; }
.cl-submit svg { color: var(--gold); transition: transform .2s; }
.cl-submit:hover { background: #16223A; }
.cl-submit:hover svg { transform: translateX(3px); }
.cl-submit:active { transform: translateY(1px); }
.cl-submit:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.45), inset 0 0 0 1px var(--gold); }
.cl-submit:disabled { opacity: 0.7; cursor: progress; }

.cl-fineprint { margin-top: 14px; text-align: center; font-size: 12px; line-height: 1.6; color: var(--muted); }

/* ------------------------------------------------- thank you / unknown unit */

.cl-done { text-align: center; }
.cl-done p { margin-top: 12px; font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.cl-done .cl-hint { font-size: 12.5px; color: var(--muted); }
.cl-done-ico {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--gold-wash);
  color: var(--gold-ink);
}
.cl-card-title { font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1.2; color: var(--ink); }
.cl--th .cl-card-title { font-family: 'Noto Sans Thai', sans-serif; font-weight: 500; font-size: 24px; }
.cl-member {
  margin: 20px auto 6px !important;
  width: fit-content;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px clamp(16px, 5vw, 28px);
  border: 1px dashed var(--gold);
  border-radius: 12px;
  background: #fff;
}
.cl-member span { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
/* The member number: letters and digits all the same height (lining) and the same width (tabular),
   so it reads as one even line. The serif face's old-style digits rise and fall, which suits prose
   but not a code someone has to read out to the concierge. */
.cl-member strong {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: clamp(19px, 6.2vw, 26px);
  font-weight: 600;
  letter-spacing: 0.14em;
  padding-left: 0.14em;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
  color: var(--ink);
  white-space: nowrap;
}
.cl-actions { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.cl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--cream);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(197, 160, 89, 0.55);
}
.cl-btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.cl-btn:hover { filter: brightness(1.08); }
.cl-btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--gold); }

@media (min-width: 1024px) {
  .cl-done { margin-top: 12vh; }
}

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

/* ======================================================= privacy notice page */

.pv { background:
  radial-gradient(70% 40% at 50% 0%, rgba(197, 160, 89, 0.10), transparent 70%),
  var(--navy); }
.pv-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(14px, env(safe-area-inset-top)) 16px 14px;
  background: rgba(11, 19, 33, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--navy-line);
}
@media (min-width: 768px) { .pv-bar { padding: 18px clamp(24px, 5vw, 64px); } }

.pv-main { max-width: 820px; margin: 0 auto; padding: 36px 16px max(48px, env(safe-area-inset-bottom)); color: var(--on-navy); }
@media (min-width: 768px) { .pv-main { padding: 64px 32px 88px; } }

.pv-hero { text-align: center; }
.pv-hero .cl-wordmark { font-size: 24px; }
.pv-hero .cl-title { margin-top: 22px; }
.pv-hero .cl-lead { max-width: 32em; }
.pv-updated { margin-top: 14px; font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(197, 160, 89, 0.85); }
.cl--th .pv-updated { letter-spacing: 0.02em; font-size: 13px; text-transform: none; }

.pv-glance {
  list-style: none;
  margin: 30px 0 22px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 680px) { .pv-glance { grid-template-columns: repeat(3, 1fr); margin-top: 40px; } }
.pv-glance li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--navy-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 13px;
  line-height: 1.45;
  color: var(--on-navy);
}
.pv-glance svg { flex: 0 0 auto; color: var(--gold); }

.pv-doc { max-width: none; margin: 0; }
@media (min-width: 1024px) { .pv-doc { padding: 52px 64px 48px; } }
.pv-section { padding: 26px 0; border-bottom: 1px solid var(--line); }
.pv-section:first-child { padding-top: 0; }
.pv-section .cl-section-title { margin-bottom: 12px; }
.pv-section p { font-size: 15px; line-height: 1.8; color: var(--ink-2); max-width: 62ch; }
.cl--th .pv-section p { font-size: 15.5px; line-height: 1.9; }
.pv-section p + p { margin-top: 10px; }

.pv-contact {
  margin-top: 28px;
  padding: 20px 22px;
  border: 1px solid rgba(197, 160, 89, 0.45);
  border-radius: 12px;
  background: linear-gradient(180deg, #FFFDF8, #FBF5E9);
}
.pv-contact h2 { font-family: var(--serif); font-weight: 600; font-size: 20px; color: var(--ink); }
.cl--th .pv-contact h2 { font-family: 'Noto Sans Thai', sans-serif; font-weight: 500; font-size: 17px; }
.pv-contact p { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.pv-contact-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.pv-contact-links a { color: var(--gold-ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(138, 106, 44, 0.35); }
.pv-contact-links a:hover { border-bottom-color: currentColor; }

.pv-cta { margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.pv-cta-btn {
  width: 100%;
  max-width: 460px;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 26px;
  border-radius: 999px;
  background: linear-gradient(180deg, #D3B06C, var(--gold) 55%, #B48E47);
  color: var(--navy);
  font-family: 'Montserrat', var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 16px 30px -16px rgba(197, 160, 89, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.cl--th .pv-cta-btn { font-family: 'Noto Sans Thai', sans-serif; letter-spacing: 0.02em; font-size: 15px; text-transform: none; }
.pv-cta-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.pv-cta-btn:hover svg { transform: translateX(3px); }
.pv-cta-btn svg { flex: 0 0 auto; transition: transform .2s; }
.pv-cta-btn:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.pv-home { font-size: 12.5px; color: var(--on-navy-soft); text-decoration: none; border-bottom: 1px solid transparent; }
.pv-home:hover { color: var(--gold); border-bottom-color: currentColor; }

/* phones: the long button label in sentence case fits on one line */
@media (max-width: 479px) {
  .pv-cta-btn { text-transform: none; letter-spacing: 0.02em; font-size: 14px; gap: 10px; padding: 0 20px; }
}

/* the privacy hero stays centred at every width (the sign-up page's desktop rules left-align these) */
.pv-hero .cl-wordmark { padding-left: 0.42em; }
.pv-hero .cl-club { justify-content: center; }
.pv-hero .cl-club::before { display: block; }
.pv-hero .cl-club span { padding-left: 0.32em; }
.pv-hero .cl-title, .pv-hero .cl-lead { text-align: center; margin-left: auto; margin-right: auto; }
@media (min-width: 1024px) { .pv-hero .cl-title { font-size: 60px; } }
