/* Datamatixx 2026 — winners email gate.
   Rides theme.css tokens: black ground, light text, BLUE structural accents.
   Metal words are the only warm colour, and only as small chips — same rule
   the roll of honour itself follows in winners.css. */

body.dmx-theme {
  --wg-gold:   #F0C64B;
  --wg-silver: #C7D0DA;
  --wg-bronze: #D68B52;
}

body.dmx-theme .wg-section {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 150px 0 90px;
}

/* ---------- the card ---------- */
body.dmx-theme .wg-card {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
  padding: 46px 44px 40px;
  text-align: center;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 34px 80px -40px rgba(59, 130, 246, 0.55);
  backdrop-filter: blur(6px);
  overflow: hidden;
}

/* Blue hairline along the top edge — the same accent the nav CTA uses. */
body.dmx-theme .wg-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-brand);
}

body.dmx-theme .wg-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--brand-blue-2);
}

body.dmx-theme .wg-title {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 4.4vw, 2.7rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
}

body.dmx-theme .wg-lede {
  margin: 0 auto 28px;
  max-width: 46ch;
  font-size: .98rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.68);
}

body.dmx-theme .wg-lede b { color: #fff; font-weight: 700; }

/* ---------- form ---------- */
body.dmx-theme .wg-form { margin: 0; }

body.dmx-theme .wg-label {
  display: block;
  margin-bottom: 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
  text-align: left;
  color: rgba(255, 255, 255, 0.55);
}

body.dmx-theme .wg-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

body.dmx-theme .wg-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 14px 17px;
  font-family: inherit;
  font-size: 15px;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

body.dmx-theme .wg-input::placeholder { color: rgba(255, 255, 255, 0.32); }

body.dmx-theme .wg-input:focus {
  border-color: rgba(59, 130, 246, 0.70);
  background: rgba(0, 0, 0, 0.60);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
}

body.dmx-theme .wg-input.is-error {
  border-color: rgba(248, 113, 113, 0.70);
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.14);
}

body.dmx-theme .wg-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 24px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  color: #fff;
  background: var(--grad-brand);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

body.dmx-theme .wg-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 18px 34px -18px rgba(59, 130, 246, 0.85);
}

body.dmx-theme .wg-btn:active { transform: translateY(0); }

body.dmx-theme .wg-btn:focus-visible {
  outline: 2px solid var(--brand-blue-2);
  outline-offset: 3px;
}

body.dmx-theme .wg-error {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  color: #FCA5A5;
}

body.dmx-theme .wg-note {
  margin: 16px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.40);
}

/* ---------- metal chips ---------- */
body.dmx-theme .wg-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin: 30px 0 0;
  padding: 24px 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.dmx-theme .wg-chips li {
  padding: 5px 14px;
  border-radius: var(--radius-pill, 999px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .4px;
  color: rgba(255, 255, 255, 0.70);
}

body.dmx-theme .wg-chips li.is-gold   { border-color: rgba(240,198,75,0.38); background: rgba(240,198,75,0.10); color: var(--wg-gold); }
body.dmx-theme .wg-chips li.is-silver { border-color: rgba(199,208,218,0.34); background: rgba(199,208,218,0.09); color: var(--wg-silver); }
body.dmx-theme .wg-chips li.is-bronze { border-color: rgba(214,139,82,0.34);  background: rgba(214,139,82,0.10);  color: var(--wg-bronze); }

/* ---------- narrow screens ---------- */
@media (max-width: 620px) {
  body.dmx-theme .wg-section { padding: 120px 0 70px; }
  body.dmx-theme .wg-card    { padding: 34px 22px 30px; border-radius: 18px; }
  body.dmx-theme .wg-row     { flex-direction: column; }
  body.dmx-theme .wg-btn     { justify-content: center; padding: 15px 20px; }
}
