/* Two Halves contact modal — matches site type (IBM Plex) and CTA pill */
#th-contact-root {
  --th-ink: #000018;
  --th-cyan: #00c8ff;
  --th-white: #ffffff;
  --th-panel: rgba(0, 0, 24, 0.92);
  font-family: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
}

#th-contact-root[hidden] {
  display: none !important;
}

#th-contact-root {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 24, 0.55);
  backdrop-filter: blur(2px);
}

#th-contact-root .th-panel {
  width: min(440px, 100%);
  background: var(--th-panel);
  color: var(--th-white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 28px 28px 24px;
  box-shadow: none;
}

#th-contact-root h2 {
  margin: 0 0 6px;
  font-family: "IBM Plex Mono", "IBM Plex Sans", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

#th-contact-root .th-lead {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.78);
}

#th-contact-root label {
  display: block;
  margin: 0 0 6px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

#th-contact-root .th-field {
  margin: 0 0 14px;
}

#th-contact-root input,
#th-contact-root textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--th-white);
  font: 500 15px/1.4 "IBM Plex Sans", sans-serif;
  padding: 12px 14px;
  outline: none;
}

#th-contact-root input:focus,
#th-contact-root textarea:focus {
  border-color: var(--th-cyan);
}

#th-contact-root textarea {
  min-height: 120px;
  resize: vertical;
}

#th-contact-root .th-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#th-contact-root .th-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 8px;
}

#th-contact-root button {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 1000px;
  padding: 14px 28px;
}

#th-contact-root .th-cancel {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  padding-left: 12px;
  padding-right: 12px;
}

#th-contact-root .th-submit {
  background: var(--th-white);
  color: var(--th-ink);
}

#th-contact-root .th-submit:hover {
  background: var(--th-cyan);
}

#th-contact-root .th-submit:disabled {
  opacity: 0.55;
  cursor: wait;
}

#th-contact-root .th-status {
  min-height: 1.2em;
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--th-cyan);
}

#th-contact-root .th-status.th-error {
  color: #ff8f8f;
}
