/* Shared launch form, with a palette that belongs to each site. */
.launch-contact {
  --form-accent: #62dce9;
  --form-ink: #06242a;
  --form-surface: #091520;
  --form-border: #365362;
  --form-muted: #afc5d2;
  width: 100%;
  max-width: 580px;
  margin-top: 30px;
  position: relative;
  text-align: left;
}

.launch-contact--teedial {
  --form-accent: #70e4b0;
  --form-ink: #05251a;
  --form-surface: #0a1b17;
  --form-border: #3c6050;
  --form-muted: #b4cbbd;
  margin-inline: auto;
}

.launch-form-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.launch-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.launch-field label {
  color: #edf6f1;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.launch-field input,
.launch-field select {
  appearance: none;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--form-border);
  border-radius: 7px;
  background: var(--form-surface);
  color: #f0f8f4;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  transition: border-color .2s, box-shadow .2s;
}

.launch-field select:hover,
.launch-field input:hover { border-color: #77998b; }
.launch-field select:focus-visible,
.launch-field input:focus-visible {
  outline: 2px solid var(--form-accent);
  outline-offset: 3px;
  border-color: var(--form-accent);
}
.launch-field select[aria-invalid="true"],
.launch-field input[aria-invalid="true"] { border-color: #f5ab9f; }
.launch-field input:autofill {
  box-shadow: 0 0 0 100px var(--form-surface) inset;
  -webkit-text-fill-color: #f0f8f4;
  caret-color: #f0f8f4;
}
.launch-field-error {
  color: #ffc4b9;
  font-size: 11px;
  line-height: 1.5;
}
.launch-field-error:empty { display: none; }

.launch-contact .launch-submit {
  grid-column: 1 / -1;
  min-height: 50px;
  width: 100%;
  margin-top: 3px;
  background: var(--form-accent);
  color: var(--form-ink);
  border: 1px solid transparent;
  font-size: 13px;
  cursor: pointer;
}
.launch-contact .launch-submit:hover { filter: brightness(1.08); }
.launch-contact .launch-submit:disabled {
  cursor: default;
  filter: none;
  transform: none;
  opacity: .72;
}
.launch-contact.is-submitting .launch-submit { cursor: progress; }
.launch-contact.is-submitting .launch-submit::after {
  content: "";
  width: 14px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: launch-send 1s linear infinite;
}
.launch-contact .launch-privacy,
.launch-contact .launch-noscript {
  margin: 14px 0 0;
  color: var(--form-muted);
  font-size: 11px;
  line-height: 1.75;
  text-align: center;
}
.launch-form-status {
  margin-top: 15px;
  color: var(--form-muted);
  font-size: 13px;
  line-height: 1.7;
}
.launch-form-status:empty { display: none; }
.launch-form-status[data-state="error"] { color: #ffc4b9; }
.launch-form-status[data-state="success"] {
  border: 1px solid var(--form-border);
  border-radius: 8px;
  padding: 22px;
  color: #dbf9e9;
  background: var(--form-surface);
  text-align: center;
}
.launch-contact.is-complete .launch-form-fields { display: none; }
.launch-contact .launch-trap { display: none !important; }

@keyframes launch-send { to { transform: rotate(360deg); } }
@media (max-width: 480px) {
  .launch-form-fields { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .launch-contact { margin-top: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .launch-field input { transition: none; }
  .launch-contact.is-submitting .launch-submit::after { animation: none; }
}
