* {
  box-sizing: border-box;
}

html {
  background-color: #fff;
  background-image:
    radial-gradient(circle at 78% 24%, rgba(219, 234, 254, .94), transparent 33rem),
    radial-gradient(circle at 14% 18%, rgba(232, 255, 244, .72), transparent 28rem),
    linear-gradient(90deg, rgba(59, 130, 246, .08) 1px, transparent 1px),
    linear-gradient(rgba(59, 130, 246, .08) 1px, transparent 1px);
  background-size: auto, auto, 50px 50px, 50px 50px;
  scroll-behavior: smooth;
}

body {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  color: #0f172a;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

.tgsa-page {
  min-height: 100vh;
}

.tgsa-stack {
  width: min(100%, 760px);
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  font-size: 0;
  line-height: 0;
}

.tgsa-stack img {
  width: 100%;
  height: auto;
  margin: 0;
  border: 0;
}

.tgsa-form-section {
  padding: clamp(48px, 8vw, 96px) 20px;
  background: #011aaa;
}

.tgsa-form-wrap {
  width: min(100%, 760px);
  margin: 0 auto;
}

.tgsa-form-head {
  margin: 0 auto 28px;
  text-align: center;
}

.tgsa-form-kicker {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .18em;
}

.tgsa-form-title {
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 8vw, 68px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.16;
}

.tgsa-form-note {
  max-width: 660px;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(18px, 2.4vw, 21px);
  line-height: 1.8;
}

.tgsa-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(22px, 4vw, 36px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.tgsa-field {
  display: grid;
  gap: 9px;
}

.tgsa-field span {
  color: rgba(255, 255, 255, .9);
  font-size: 17px;
  font-weight: 800;
}

.tgsa-field input {
  width: 100%;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  outline: none;
  padding: 0 18px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.tgsa-field input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.tgsa-submit {
  grid-column: 1 / -1;
  min-height: 60px;
  margin-top: 18px;
  border: 0;
  border-radius: 999px;
  background: #ff5700;
  color: #fff;
  font: inherit;
  font-size: 19px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: none;
}

.tgsa-submit:hover {
  background: #e94f00;
}

.tgsa-footer {
  display: grid;
  gap: 22px;
  justify-items: center;
  padding: 42px 20px 116px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  background: #011aaa;
  color: rgba(255, 255, 255, .72);
  text-align: center;
}

.tgsa-footer-logo {
  display: inline-flex;
  align-items: center;
}

.tgsa-footer-logo img {
  width: 168px;
  filter: brightness(0) invert(1);
}

.tgsa-footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
  font-size: 14px;
  line-height: 1.6;
}

.tgsa-footer a {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.tgsa-footer a:hover {
  text-decoration: underline;
}

.tgsa-floating-actions {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(calc(100vw - 32px), 520px);
  overflow: hidden;
  border-radius: 999px;
  transform: translate(-50%, 22px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease, transform .24s ease;
}

.tgsa-floating-actions.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.tgsa-float-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  text-decoration: none;
}

.tgsa-float-btn + .tgsa-float-btn {
  border-left: 1px solid rgba(255, 255, 255, .32);
}

.tgsa-float-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tgsa-float-home {
  background: #64748b;
}

.tgsa-float-line {
  background: #06c755;
}

.tgsa-float-line svg {
  fill: currentColor;
  stroke: #06c755;
}

.tgsa-float-line svg path + path {
  fill: none;
  stroke: #fff;
  stroke-width: 1.7;
}

@media (max-width: 720px) {
  .tgsa-form-section {
    padding: 44px 16px 56px;
  }

  .tgsa-form {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tgsa-floating-actions {
    bottom: 12px;
    width: calc(100vw - 24px);
  }

  .tgsa-float-btn {
    min-height: 50px;
    font-size: 16px;
  }
}
