:root {
  color-scheme: light;
  --blue-100: #d3e8ff;
  --blue-300: #6fb5fd;
  --blue-500: #0988fc;
  --blue-600: #0770d2;
  --blue-700: #0558a6;
  --blue-900: #03294f;
  --yellow: #feb942;
  --orange: #fc7a0a;
  --lime: #e8fc0a;
  --bg: #f5f9ff;
  --surface: #fff;
  --surface-2: #eef5ff;
  --fg: #0b1b33;
  --muted: #4e6385;
  --line: #d6e3f5;
  --danger: #d21208;
  --display: "Bai Jamjuree", "Be Vietnam Pro", sans-serif;
  --body: "Be Vietnam Pro", sans-serif;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 15px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--display); line-height: 1.15; text-wrap: balance; }
button, input, select, textarea { font: inherit; }
.wrap { width: min(1080px, calc(100% - 32px)); margin-inline: auto; }

.hero { position: relative; overflow: hidden; color: #fff; background: var(--blue-500); }
.wings { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-inner { position: relative; z-index: 1; display: grid; gap: 28px; padding-block: 56px 64px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow span { padding: 3px 10px; border-radius: 999px; color: var(--blue-900); background: var(--yellow); letter-spacing: .08em; }
.hero h1 { max-width: 900px; font-size: clamp(34px, 5.2vw, 56px); font-weight: 700; }
.hero h1 span { display: block; }.hero h1 em { color: var(--yellow); font-style: normal; }
.lead { max-width: 58ch; margin: 0; color: #dceeff; font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 12px 22px; border: 0; border-radius: 10px; font-family: var(--display); font-size: 16px; font-weight: 600; cursor: pointer; }
.button-yellow { color: var(--blue-900); background: var(--yellow); }.button-yellow:hover { background: #ffc860; }
.button-ghost { color: #fff; background: transparent; border: 1.5px solid rgba(255,255,255,.55); }.button-ghost:hover { background: rgba(255,255,255,.1); }
.facts { display: flex; flex-wrap: wrap; gap: 10px 24px; color: #dceeff; font-size: 14px; }.facts b { color: #fff; font-family: var(--display); }

.block { padding-block: 56px 8px; }
.section-heading { display: grid; gap: 8px; max-width: 62ch; margin-bottom: 24px; }.section-heading h2 { font-size: clamp(26px, 3.4vw, 34px); }.section-heading p { margin: 0; color: var(--muted); }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pillar { display: grid; align-content: start; gap: 8px; min-width: 0; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.pillar h3 { font-size: 18px; font-weight: 600; }.pillar p { margin: 0; color: var(--muted); font-size: 14px; }
.icon { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 2px; border-radius: 10px; }.icon svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-blue { color: var(--blue-700); background: var(--blue-100); }.icon-yellow { color: #9a5a00; background: #ffefd3; }.icon-orange { color: #a24a00; background: #ffe3cc; }.icon-lime { color: #5b6300; background: #f7ffc2; }

.process-block { padding-top: 56px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--blue-500); }
.steps li { display: grid; align-content: start; gap: 6px; padding: 18px 18px 4px 0; }.steps span { color: var(--blue-600); font-family: var(--display); font-size: 14px; font-weight: 700; letter-spacing: .06em; }.steps h3 { font-size: 17px; }.steps p { margin: 0; color: var(--muted); font-size: 14px; }

.form-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: start; gap: 32px; padding-block: 56px 72px; }
.toc { position: sticky; top: 20px; display: grid; gap: 4px; font-size: 14px; }.toc strong { margin-bottom: 6px; color: var(--muted); font-family: var(--display); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }.toc a { padding: 7px 10px; color: var(--muted); border-left: 2px solid transparent; border-radius: 8px; }.toc a:hover, .toc a.on { color: var(--blue-600); background: var(--surface-2); border-left-color: var(--blue-500); }.toc b { display: none; }
.form-area, form { min-width: 0; } form { display: grid; gap: 20px; }
fieldset { min-width: 0; display: grid; gap: 18px; margin: 0; padding: 24px; scroll-margin-top: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.fieldset-heading { display: grid; gap: 4px; }.fieldset-heading h3 { display: flex; align-items: baseline; gap: 10px; font-size: 20px; font-weight: 600; }.fieldset-heading h3 span { color: var(--blue-600); font-size: 13px; letter-spacing: .06em; }.fieldset-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.fields { display: grid; gap: 16px 18px; }.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }.full { grid-column: 1 / -1; }
label, .choice-group > span { min-width: 0; font-size: 14px; font-weight: 600; }.fields > label { display: grid; align-content: start; gap: 6px; }.fields small, .hint { color: var(--muted); font-size: 13px; font-weight: 400; } i { color: var(--orange); font-style: normal; }
input, select, textarea { width: 100%; min-width: 0; padding: 11px 12px; color: var(--fg); background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; outline: none; }
input:hover, select:hover, textarea:hover { border-color: var(--blue-300); } input:focus, select:focus, textarea:focus { border-color: var(--blue-500); }.field-invalid { border-color: var(--danger) !important; background: #fff8f7; box-shadow: 0 0 0 1px var(--danger); }
textarea { min-height: 110px; resize: vertical; }
.unit { position: relative; }.unit input { padding-right: 55px; }.unit span { position: absolute; top: 50%; right: 12px; color: var(--muted); font-size: 13px; font-weight: 400; transform: translateY(-50%); pointer-events: none; }
.choice-group { display: grid; gap: 8px; }.choices { display: flex; flex-wrap: wrap; gap: 8px; }.choices label { position: relative; }.choices input { position: absolute; width: 1px; height: 1px; opacity: 0; }.choices label > span { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--bg); font-size: 14px; font-weight: 400; cursor: pointer; user-select: none; }.choices label > span:hover { border-color: var(--blue-300); }.choices input:checked + span { color: #fff; background: var(--blue-500); border-color: var(--blue-500); font-weight: 600; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 400; cursor: pointer; }.consent input { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 3px; accent-color: var(--blue-500); }
.choice-group.invalid-group, .consent.invalid-group { padding: 12px; background: #fff3f1; border: 1px solid var(--danger); border-radius: 10px; }.choice-group.invalid-group > span, .consent.invalid-group { color: var(--danger); }.choice-group.invalid-group .choices label > span { border-color: #ef9a94; }
.submit-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }.submit-bar > div { display: grid; gap: 3px; }.button-primary { color: #fff; background: var(--blue-500); }.button-primary:hover { background: var(--blue-600); }.button-primary:disabled { cursor: wait; opacity: .6; }.form-error { color: var(--danger); font-size: 14px; font-weight: 500; }
.success-panel { display: grid; gap: 16px; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }.success-panel[hidden] { display: none; }.success-panel h2 { font-size: 28px; }.success-panel p { margin: 0; color: var(--muted); }.success-icon { width: 48px; height: 48px; display: grid; place-items: center; color: var(--blue-700); background: var(--blue-100); border-radius: 50%; font-size: 24px; font-weight: 700; }.application-code { padding: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }.success-panel .button { justify-self: start; }
footer { padding-block: 24px; color: var(--muted); border-top: 1px solid var(--line); font-size: 13px; } footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; } footer a { color: var(--blue-600); }

@media (max-width: 900px) {
  html { scroll-padding-top: 76px; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .form-shell { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 48px; }
  .toc { top: 0; z-index: 10; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(3,41,79,.08); }
  .toc strong { display: none; }.toc a { display: grid; place-items: center; padding: 10px 5px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; font-size: 11px; text-align: center; }.toc a.on { border-bottom-color: var(--blue-500); border-left-color: transparent; }.toc b { display: block; font-family: var(--display); }
  fieldset { scroll-margin-top: 76px; }
}

@media (max-width: 600px) {
  .wrap { width: min(100% - 28px, 1080px); }
  .hero-inner { gap: 22px; padding-block: 40px 48px; }.hero h1 { font-size: clamp(32px, 10.5vw, 44px); }.lead { font-size: 15px; }.hero-actions { align-items: stretch; flex-direction: column; }.hero-actions .button { width: 100%; }.wings { left: 28%; width: 100%; opacity: .8; }
  .block { padding-top: 44px; }.pillars, .steps { grid-template-columns: 1fr; }.pillar { padding: 18px; }.steps { row-gap: 8px; }.steps li { padding-right: 0; }
  .form-shell { width: 100%; padding: 44px 14px 56px; }.toc { width: calc(100% + 28px); margin-left: -14px; border-right: 0; border-left: 0; border-radius: 0; }.toc a { min-width: 0; font-size: 0; }.toc b { font-size: 12px; }
  fieldset { padding: 18px; border-radius: 10px; }.two-col { grid-template-columns: minmax(0, 1fr); }.full { grid-column: auto; }.fieldset-heading h3 { font-size: 19px; }.choices label > span { padding: 7px 11px; font-size: 13px; }
  .submit-bar { align-items: stretch; flex-direction: column; padding: 18px; }.submit-bar .button { width: 100%; }.success-panel { padding: 24px 20px; }
  footer .wrap { flex-direction: column; }
}

@media (prefers-reduced-motion: no-preference) { .button, input, select, textarea, .choices span { transition: background .15s, border-color .15s, color .15s; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
