:root {
  --brand: #af1015;
  --brand-dark: #8e0d11;
  --ink: #414042;
  --muted: #6c6d6f;
  --line: #e6e6e6;
  --card: #ffffff;
  --page: #f6f6f6;
  --icon-soft: #f8e8e9;
  --shadow: 0 1px 6px 1px rgba(0, 0, 0, 0.12);
  --font: Aksorn, Tahoma, "Leelawadee UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: var(--page);
  color: var(--muted);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
}

.card {
  width: min(460px, 100%);
  background: var(--card);
  border-radius: 8px;
  border-top: 4px solid var(--brand);
  box-shadow: var(--shadow);
  padding: 26px 32px 32px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.logo-mark {
  display: block;
  height: 36px;
  width: auto;
  max-width: 168px;
  object-fit: contain;
  object-position: left center;
}

.product-logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: 168px;
  object-fit: contain;
  object-position: right center;
}

.lang-switch {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 14px;
}

.lang-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 12px;
  cursor: pointer;
}

.lang-btn:first-child {
  border-radius: 50px 0 0 50px;
}

.lang-btn + .lang-btn {
  margin-left: -1px;
  border-radius: 0 50px 50px 0;
}

.lang-btn.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  position: relative;
  z-index: 1;
}

.lang-btn:focus-visible {
  outline: 3px solid rgba(175, 16, 21, 0.28);
  outline-offset: 2px;
}

html[lang="th"] [lang="en"],
html[lang="en"] [lang="th"] {
  display: none;
}

.divider {
  height: 1px;
  margin: 16px 0 28px;
  background: var(--line);
  border: 0;
}

.icon-wrap {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--icon-soft);
  color: var(--brand);
}

h1 {
  margin: 0 0 10px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
}

.message {
  margin: 0 auto 26px;
  max-width: 34em;
  text-align: center;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--muted);
}

.keep { white-space: nowrap; }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  margin: 0 auto;
  padding: 10px 28px;
  border: 1.5px solid var(--brand);
  border-radius: 50px;
  background: #fff;
  color: var(--brand);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}

.btn:focus-visible {
  outline: 3px solid rgba(175, 16, 21, 0.28);
  outline-offset: 2px;
}

.link-contact {
  display: block;
  width: fit-content;
  margin: 0 auto;
  color: var(--brand);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  cursor: default;
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

@media (max-width: 420px) {
  body { padding: 16px 12px; }
  .card { padding: 22px 16px 26px; }
  .message { font-size: 13px; }
  .logo-mark { height: 30px; max-width: 136px; }
  .product-logo { height: 36px; max-width: 132px; }
  h1 { font-size: 18px; }
}
