/* 내 GX번호 찾기 (/find-gx): one card (form, then the result) in the site style; colours from the site tokens. */
body.ea-site.gx-site .fg-card {
  max-width: 520px;
  margin: 0 auto;
  padding: 24px;
  border: var(--ea-card-border);
  border-radius: var(--ea-radius);
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

/* hidden must win over the display rules below (form / result are swapped by find-gx.js). */
body.ea-site.gx-site .fg-card [hidden] {
  display: none !important;
}

body.ea-site.gx-site .fg-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.ea-site.gx-site .fg-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

body.ea-site.gx-site .fg-field span {
  color: var(--ea-ink);
  font-size: 0.95rem;
  font-weight: 700;
}

body.ea-site.gx-site .fg-field input {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: var(--ea-radius-sm);
  background: #fff;
  color: var(--ea-ink);
  font-size: 1rem;
}

body.ea-site.gx-site .fg-field input:focus {
  outline: none;
  border-color: var(--ea-blue);
  box-shadow: 0 0 0 3px var(--ea-blue-soft);
}

body.ea-site.gx-site .fg-msg {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--ea-radius-sm);
  background: var(--ea-blue-soft);
  color: var(--ea-ink);
  font-size: 0.92rem;
  line-height: 1.55;
}

body.ea-site.gx-site .fg-submit,
body.ea-site.gx-site .fg-copy {
  width: 100%;
  justify-content: center;
}

body.ea-site.gx-site .fg-submit[disabled] {
  opacity: 0.6;
}

body.ea-site.gx-site .fg-result {
  text-align: center;
}

body.ea-site.gx-site .fg-result__label {
  margin: 0;
  color: var(--ea-muted);
  font-weight: 700;
}

body.ea-site.gx-site .fg-result__code {
  margin: 8px 0 18px;
  padding: 14px 10px;
  border: 2px dashed var(--ea-blue);
  border-radius: var(--ea-radius-sm);
  background: var(--ea-blue-soft);
  color: var(--ea-ink);
  font-size: clamp(2rem, 9vw, 2.75rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

body.ea-site.gx-site .fg-copied {
  min-height: 1.4em;
  margin: 8px 0 0;
  color: var(--ea-blue);
  font-size: 0.9rem;
  font-weight: 700;
}

body.ea-site.gx-site .fg-result__note {
  margin: 10px 0 0;
  color: var(--ea-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  text-align: left;
}

body.ea-site.gx-site .fg-again {
  margin-top: 14px;
  padding: 6px 4px;
  border: 0;
  background: none;
  color: var(--ea-blue);
  font-weight: 700;
  text-decoration: underline;
}

body.ea-site.gx-site .fg-app {
  display: flex;
  justify-content: center;
  gap: 8px;
  max-width: 520px;
  margin: 16px auto 0;
  color: var(--ea-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

body.ea-site.gx-site .fg-app i {
  color: var(--ea-blue);
}

@media (max-width: 640px) {
  body.ea-site.gx-site .fg-card {
    padding: 18px 16px;
  }
}

/* App cards (styles in app-cta.css): before a lookup under the form, after one inside the result. */
body.ea-site.gx-site .fg-before {
  max-width: 520px;
  margin: 18px auto 0;
}

body.ea-site.gx-site .fg-before[hidden] {
  display: none;
}

body.ea-site.gx-site .fg-win {
  margin: 14px 0 6px;
}
