:root {
  --emerald-950: #031a12;
  --emerald-900: #062a1d;
  --emerald-800: #0a3d2a;
  --emerald-700: #0f5138;
  --gold-300: #f3dc9b;
  --gold-400: #e6c46a;
  --gold-500: #c9a043;
  --gold-600: #a37b26;
  --ink: #13251d;
  --muted: #5d6f66;
  --line: #e4e0d3;
  --paper: #fffdf7;
  --cream: #f7f2e4;
  --red: #b4232c;
  --ok: #157a4a;
  --radius: 18px;
  --gold-grad: linear-gradient(135deg, #f6e3a6 0%, #d8b158 42%, #b58a30 70%, #edd18a 100%);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'IBM Plex Sans Thai', 'Sarabun', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--emerald-950);
  min-height: 100vh;
}
.bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(230, 196, 106, .22), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(21, 122, 74, .35), transparent 60%),
    linear-gradient(180deg, var(--emerald-900), var(--emerald-950) 70%);
}
.bg::after {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(243, 220, 155, .35) 1px, transparent 1.4px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 55%);
}
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px 64px; }
h1, h2, h3, .display { font-family: 'Kanit', sans-serif; line-height: 1.2; margin: 0; }

/* top bar */
.brandbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 16px 0 0; padding: 8px 14px;
  background: #fff; border-radius: 999px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
}
.brandbar img { display: block; height: 34px; width: auto; }
.brandbar img.oly { height: 26px; }

/* hero */
.hero { text-align: center; color: #fff; padding: 40px 4px 28px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Kanit', sans-serif; font-weight: 500; font-size: 13px; letter-spacing: .14em;
  color: var(--gold-300); text-transform: uppercase;
  padding: 6px 14px; border: 1px solid rgba(243, 220, 155, .35); border-radius: 999px;
  background: rgba(243, 220, 155, .06);
}
.hero h1 {
  margin-top: 18px; font-size: clamp(42px, 11vw, 76px); font-weight: 700; letter-spacing: -.01em;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 18px rgba(201, 160, 67, .25));
}
.hero .gen {
  display: inline-flex; align-items: baseline; gap: 10px; margin-top: 6px;
  font-family: 'Kanit', sans-serif; font-weight: 300; font-size: 20px; color: #e9efe9;
}
.hero .gen b {
  font-weight: 700; font-size: 44px; line-height: 1;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .en { margin-top: 6px; font-family: 'Kanit', sans-serif; letter-spacing: .32em; font-size: 13px; color: rgba(255,255,255,.6); }
.hero p.lead { margin: 18px auto 0; max-width: 520px; color: rgba(255,255,255,.78); font-size: 16px; }

/* facts */
.facts {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: rgba(243, 220, 155, .22);
  border: 1px solid rgba(243, 220, 155, .28); border-radius: var(--radius); overflow: hidden;
  color: #fff;
}
.fact { background: rgba(6, 42, 29, .92); padding: 14px 16px; }
.fact .k { font-size: 12px; color: var(--gold-300); letter-spacing: .06em; }
.fact .v { font-family: 'Kanit', sans-serif; font-size: 18px; font-weight: 500; line-height: 1.35; }
.fact .s { font-size: 13px; color: rgba(255,255,255,.65); }
.fact.wide { grid-column: span 2; }
.price .v { font-size: 26px; color: var(--gold-300); }

.includes { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 18px 0 0; padding: 0; list-style: none; }
.includes li {
  font-size: 14px; color: #f1eadb; padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(243, 220, 155, .25); background: rgba(255,255,255,.04);
}

.topics { margin: 22px 0 0; color: rgba(255,255,255,.85); }
.topics h3 { font-size: 15px; color: var(--gold-300); font-weight: 500; margin-bottom: 8px; text-align: center; letter-spacing: .04em; }
.topics ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.topics li { display: flex; gap: 10px; align-items: baseline; font-size: 15px; }
.topics li span { font-family: 'Kanit', sans-serif; color: var(--gold-400); font-size: 13px; min-width: 22px; }

/* card */
.card {
  background: var(--paper); border-radius: 22px; padding: 26px 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35), 0 0 0 1px rgba(201, 160, 67, .35);
  position: relative; margin-top: 28px;
}
.card::before {
  content: ''; position: absolute; left: 20px; right: 20px; top: 0; height: 3px; border-radius: 0 0 3px 3px;
  background: var(--gold-grad);
}
.card h2 { font-size: 24px; font-weight: 600; color: var(--emerald-800); }
.card .sub { color: var(--muted); font-size: 14px; margin-top: 4px; }

.section-label {
  display: flex; align-items: center; gap: 10px; margin: 26px 0 12px;
  font-family: 'Kanit', sans-serif; font-weight: 500; font-size: 15px; color: var(--emerald-700);
}
.section-label .n {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--emerald-800); color: var(--gold-300); font-size: 13px;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.field { margin-bottom: 16px; }
.field > label, .field > .label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.req { color: var(--red); }
input[type=text], input[type=email], input[type=tel], input[type=password], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(201, 160, 67, .18); }
.field.bad input, .field.bad select, .field.bad .chips { border-color: var(--red); }
.field .err { display: none; color: var(--red); font-size: 13px; margin-top: 4px; }
.field.bad .err { display: block; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; border-radius: 12px; border: 1.5px solid transparent; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 54px; min-height: 44px;
  padding: 8px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff;
  font-weight: 500; font-size: 15px; transition: all .15s;
}
.chips input:checked + span { background: var(--emerald-800); border-color: var(--emerald-800); color: var(--gold-300); }
.chips input:focus-visible + span { box-shadow: 0 0 0 4px rgba(201, 160, 67, .3); }

/* bank */
.bank {
  border-radius: 16px; padding: 18px; color: #fff;
  background: linear-gradient(135deg, #0b4a33, #06291c);
  border: 1px solid rgba(243, 220, 155, .35);
}
.bank .amt { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-bottom: 1px dashed rgba(243,220,155,.3); padding-bottom: 12px; margin-bottom: 12px; }
.bank .amt b { font-family: 'Kanit', sans-serif; font-size: 30px; color: var(--gold-300); font-weight: 600; }
.bank .k { font-size: 13px; color: rgba(255,255,255,.65); }
.bank .acct { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bank .num { font-family: 'Kanit', sans-serif; font-size: 26px; letter-spacing: .06em; }
.bank .name { font-size: 15px; }
.btn-copy {
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  padding: 8px 14px; border-radius: 10px; border: 1px solid var(--gold-400);
  background: transparent; color: var(--gold-300); min-height: 40px;
}
.btn-copy.done { background: var(--gold-400); color: var(--emerald-900); }

.upload {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  border: 2px dashed #cfc6ad; border-radius: 16px; padding: 22px 16px; background: var(--cream); cursor: pointer;
  min-height: 140px;
}
.upload:hover { border-color: var(--gold-500); }
.upload .t { font-weight: 600; color: var(--emerald-800); }
.upload .s { font-size: 13px; color: var(--muted); }
.upload img { max-height: 260px; max-width: 100%; border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.upload input { display: none; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--emerald-800); flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 54px; padding: 12px 20px; border: 0; border-radius: 14px; cursor: pointer;
  font-family: 'Kanit', sans-serif; font-size: 19px; font-weight: 500; text-decoration: none;
  color: var(--emerald-950); background: var(--gold-grad);
  box-shadow: 0 10px 24px rgba(163, 123, 38, .35), inset 0 1px 0 rgba(255,255,255,.5);
}
.btn:disabled { opacity: .6; cursor: progress; }
.btn.ghost { background: transparent; color: var(--emerald-800); box-shadow: none; border: 1.5px solid var(--emerald-800); font-size: 17px; }
.btn.dark { background: var(--emerald-800); color: var(--gold-300); box-shadow: none; }
.alert { padding: 12px 14px; border-radius: 12px; font-size: 14px; margin-top: 14px; display: none; }
.alert.show { display: block; }
.alert.error { background: #fbe9ea; color: var(--red); border: 1px solid #f1c3c6; }
.alert.info { background: #eef6f1; color: var(--ok); border: 1px solid #cbe6d6; }
.link-row { text-align: center; margin-top: 18px; color: rgba(255,255,255,.75); font-size: 15px; }
.link-row a { color: var(--gold-300); }
.foot { text-align: center; color: rgba(255,255,255,.45); font-size: 13px; margin-top: 36px; }

@media (max-width: 420px) {
  .row2 { grid-template-columns: 1fr; gap: 0; }
  .brandbar img { height: 28px; }
  .brandbar img.oly { height: 22px; }
  .card { padding: 22px 16px; }
}
.field > label.consent { display: flex; font-weight: 400; font-size: 14px; }
.field > label.upload { display: flex; font-weight: 400; }
