:root {
  --ink: #242b35;
  --title: #17213a;
  --muted: #5d6878;
  --line: #d8dee8;
  --field: #f8fafc;
  --blue: #2d55d8;
  --blue-deep: #203fa8;
  --green: #0aa14b;
  --cyan: #22b8e7;
  --white: #ffffff;
  --page: #f4f7fb;
  --danger: #c23934;
  --ok: #04844b;
  --max: 1040px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, #fff 0 96px, var(--page) 96px);
  font-family: "Noto Sans Thai", Arial, sans-serif;
  line-height: 1.55;
}

button,
input,
textarea {
  font: inherit;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 12px;
  top: 8px;
  z-index: 20;
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px 12px;
}

.page {
  min-height: 100vh;
  padding: 0 18px 56px;
}

.site-header {
  width: min(var(--max), 100%);
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #e6e9ef;
  padding-right: 104px;
}

.brand {
  color: inherit;
  text-decoration: none;
}

.brand-logo-img {
  display: block;
  width: 154px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #2b2f36;
  font-size: 0.86rem;
  white-space: nowrap;
}

.shell {
  width: min(var(--max), 100%);
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(380px, 520px);
  gap: 46px;
  align-items: start;
}

.intro {
  padding-top: 18px;
}

.eyebrow {
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 800;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.intro h1 {
  max-width: 560px;
  color: var(--title);
  font-size: clamp(2rem, 4.8vw, 3.35rem);
  line-height: 1.08;
  margin-bottom: 18px;
}

.intro-copy {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.04rem;
  margin-bottom: 26px;
}

.solution-list {
  display: grid;
  gap: 12px;
  max-width: 560px;
  list-style: none;
}

.solution-list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
}

.solution-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  background: var(--blue);
}

.panel-stack {
  width: 100%;
}

.form-card,
.state-card {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 2px;
  padding: 32px 30px 36px;
  box-shadow: 0 18px 48px rgba(23, 33, 58, 0.1);
}

.form-card h1,
.state-card h1 {
  color: var(--title);
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.contact-form {
  display: grid;
  gap: 15px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  color: var(--ink);
}

.req {
  color: #d33f3a;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--field);
  color: var(--title);
  padding: 10px 12px;
}

.contact-form textarea {
  min-height: 88px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(45, 85, 216, 0.2);
  border-color: var(--blue);
  background: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 22px;
  border: 0;
  border-radius: 2px;
  font-weight: 700;
  cursor: pointer;
}

.btn-submit {
  width: fit-content;
  background: var(--blue);
  color: #fff;
}

.btn-submit:hover {
  background: var(--blue-deep);
}

.btn-ghost {
  background: #eef2ff;
  color: var(--blue);
}

.btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.form-status {
  min-height: 1.3em;
  font-size: 0.9rem;
  font-weight: 600;
}

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

.form-status.ok {
  color: var(--ok);
}

.state-card p {
  color: var(--muted);
  margin-bottom: 18px;
}

.thanks-mail {
  text-align: left;
}

.thanks-logo-wrap {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid #edf0f5;
}

.thanks-logo {
  display: block;
  width: 136px;
  height: auto;
}

.thanks-kicker {
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 10px !important;
  text-transform: uppercase;
}

.thanks-summary {
  display: grid;
  gap: 10px;
  margin: 24px 0;
  padding: 18px;
  background: #f7f9ff;
  border: 1px solid #e0e7ff;
}

.thanks-summary div {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--ink);
  font-size: 0.92rem;
}

.thanks-summary strong {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  font-size: 0.78rem;
  line-height: 1;
}

.thanks-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 20px;
  background: var(--blue);
  color: #fff;
  border-radius: 2px;
  font-weight: 700;
  text-decoration: none;
}

.thanks-link:hover {
  background: var(--blue-deep);
}

.state-card .btn {
  margin: 0 8px 8px 0;
}

.hidden,
[hidden] {
  display: none !important;
}

@media (max-width: 860px) {
  .site-header {
    min-height: 74px;
    padding-right: 92px;
  }

  .site-nav {
    display: none;
  }

  .shell {
    margin-top: 26px;
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .intro {
    padding-top: 0;
  }

  .intro h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 640px) {
  .page {
    padding-inline: 14px;
  }

  .form-card,
  .state-card {
    padding: 24px 18px 28px;
  }

  .brand-logo-img {
    width: 130px;
  }

}
