:root {
  color-scheme: light;
  --brand: #1478c9;
  --brand-dark: #0c4f88;
  --ink: #172033;
  --muted: #5f6b7d;
  --line: #dce5ef;
  --surface: #ffffff;
  --soft: #f3f8fd;
  --danger: #b42318;
  --danger-soft: #fff1f0;
  --success: #137333;
  --success-soft: #e9f7ee;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(
      circle at 10% 0%,
      rgba(20, 120, 201, 0.16),
      transparent 32rem
    ),
    linear-gradient(180deg, #f8fbff 0%, #eef5fb 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Thai",
    Arial, sans-serif;
  line-height: 1.65;
}

a {
  color: var(--brand-dark);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(220, 229, 239, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.site-header__inner,
.page-shell,
.site-footer__inner {
  width: min(100% - 32px, 920px);
  margin: 0 auto;
}

.site-header__inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand__mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #2098ed, #0d5da0);
  color: #fff;
  box-shadow: 0 8px 18px rgba(20, 120, 201, 0.24);
}

.language-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
}

.language-switch button {
  border: 0;
  border-radius: 999px;
  padding: 7px 13px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--brand-dark);
  box-shadow: 0 2px 8px rgba(30, 55, 85, 0.12);
}

.page-shell {
  padding: 48px 0 64px;
}

.hero {
  margin-bottom: 24px;
  padding: clamp(24px, 5vw, 46px);
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, #0e5f9f 0%, #1b8bd5 100%);
  color: #fff;
  box-shadow: 0 20px 48px rgba(18, 91, 146, 0.2);
}

.eyebrow {
  margin: 0 0 9px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
}

.hero h1 {
  margin: 0;
  font-size: clamp(30px, 6vw, 48px);
  line-height: 1.2;
}

.hero p {
  max-width: 720px;
  margin: 16px 0 0;
  font-size: clamp(16px, 2vw, 19px);
  opacity: 0.94;
}

.effective-date {
  display: inline-block;
  margin-top: 20px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 700;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.hero__meta .effective-date {
  margin-top: 0;
}

.hero__link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 6px 13px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.hero__link:hover {
  background: rgba(255, 255, 255, 0.14);
}

.summary-grid,
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.summary-card,
.trust-item {
  display: flex;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 7px 18px rgba(28, 58, 88, 0.05);
}

.summary-card__icon,
.trust-item__icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--soft);
  color: var(--brand);
  font-size: 19px;
  font-weight: 900;
}

.summary-card h2 {
  margin: 0;
  color: var(--brand-dark);
  font-size: 16px;
  line-height: 1.35;
}

.summary-card p,
.trust-item p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.reading-note {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 16px 0 2px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--muted);
  font-size: 13px;
}

.reading-note > span:first-child {
  color: var(--brand);
  font-size: 17px;
  line-height: 1.35;
}

.trust-grid {
  margin-top: 16px;
}

.trust-grid .trust-item {
  background: var(--surface);
}

.trust-item strong {
  display: block;
  color: var(--brand-dark);
  font-size: 14px;
  line-height: 1.4;
}

.form-intro {
  margin-top: -5px;
  color: var(--muted);
}

.card {
  margin-top: 16px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 9px 26px rgba(28, 58, 88, 0.07);
}

.card h2,
.card h3 {
  margin-top: 0;
  line-height: 1.35;
}

.card h2 {
  font-size: 23px;
  color: var(--brand-dark);
}

.card p:last-child,
.card ul:last-child,
.card ol:last-child {
  margin-bottom: 0;
}

.card li + li {
  margin-top: 7px;
}

.notice {
  padding: 16px 18px;
  border-left: 4px solid var(--brand);
  border-radius: 10px;
  background: var(--soft);
}

.notice--danger {
  border-left-color: var(--danger);
  background: var(--danger-soft);
}

.steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: deletion-step;
}

.steps li {
  position: relative;
  min-height: 42px;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: center;
  counter-increment: deletion-step;
}

.steps li::before {
  content: counter(deletion-step);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 850;
}

.steps li + li::after {
  content: "";
  position: absolute;
  top: -14px;
  left: 16px;
  width: 2px;
  height: 14px;
  background: var(--line);
}

.form-grid {
  display: grid;
  gap: 18px;
}

label {
  display: block;
  margin-bottom: 7px;
  font-weight: 750;
}

input[type="email"] {
  width: 100%;
  min-height: 50px;
  padding: 11px 14px;
  border: 1px solid #bdcbd9;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

input:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(20, 120, 201, 0.16);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-row input {
  width: 19px;
  height: 19px;
  margin-top: 3px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  padding: 10px 18px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  filter: brightness(0.94);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.button--danger {
  background: var(--danger);
}

.button--secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand-dark);
}

.status {
  display: none;
  padding: 14px 16px;
  border-radius: 10px;
  font-weight: 650;
}

.status.is-visible {
  display: block;
}

.status--success {
  background: var(--success-soft);
  color: var(--success);
}

.status--error {
  background: var(--danger-soft);
  color: var(--danger);
}

.is-hidden {
  display: none !important;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 0;
  color: var(--muted);
  font-size: 14px;
}

[data-lang="en"] {
  display: none;
}

html[data-language="en"] [data-lang="th"] {
  display: none;
}

html[data-language="en"] [data-lang="en"] {
  display: revert;
}

@media (max-width: 600px) {
  .site-header__inner,
  .page-shell,
  .site-footer__inner {
    width: min(100% - 22px, 920px);
  }

  .brand__name {
    display: none;
  }

  .page-shell {
    padding-top: 22px;
  }

  .hero,
  .card {
    border-radius: 16px;
  }

  .summary-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .hero__meta {
    align-items: stretch;
    flex-direction: column;
  }

  .hero__link {
    justify-content: center;
  }

  .button-row .button {
    width: 100%;
  }
}
