/* ==========================================================================
   Contact and webinar forms, injected into the static pages by
   tools/make-site-forms.py.

   No colours or fonts are declared here: every page these appear on already
   loads assets/site.css, which defines --orange, --orange-text, --blue, --ink,
   --muted, --off, --line and the two font stacks on :root. Restating them
   would mean two places to change the brand.
   ========================================================================== */

.wbf { margin: 0; }
.wbf h3 { margin: 0 0 1rem; }

.wbf-form, .wbf-done {
  background: var(--off);
  border-left: 4px solid var(--orange);
  padding: 1.5rem;
  border-radius: 2px;
}

.wbf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.wbf-field { margin-bottom: .85rem; }

.wbf-field label, .wbf-modes legend {
  display: block;
  font-family: var(--body);
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .3rem;
  color: var(--ink);
}
.wbf-opt { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); }

.wbf-field input, .wbf-field select, .wbf-field textarea {
  width: 100%;
  padding: .6rem .7rem;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
}
.wbf-field textarea { resize: vertical; min-height: 6rem; }
.wbf-field input:focus, .wbf-field select:focus, .wbf-field textarea:focus {
  border-color: var(--blue);
  outline: none;
}
.wbf-field [aria-invalid="true"] { border-color: #b3261e; }

.wbf-err { display: block; min-height: 1rem; font-size: .8rem; color: #b3261e; }

.wbf-alert {
  border-left: 4px solid #b3261e;
  background: #fdecea;
  padding: .7rem .9rem;
  margin-bottom: 1rem;
  font-size: .9rem;
  border-radius: 2px;
}

.wbf-modes { border: 0; padding: 0; margin: 0 0 .85rem; }
.wbf-radio {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  font-size: .95rem;
  margin-bottom: .3rem;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 300;
}
.wbf-radio input { margin: 0; }

.wbf-turnstile { margin: .35rem 0 .9rem; min-height: 65px; }

.wbf-consent { font-size: .82rem; color: var(--muted); margin-bottom: 1rem; }

.wbf-send {
  display: inline-block;
  width: 100%;
  padding: .8rem 1.5rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #fff;
  background: var(--orange);
  border: 2px solid var(--orange);
  border-radius: 2px;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.wbf-send:hover:enabled, .wbf-send:focus-visible:enabled {
  background: transparent;
  color: var(--orange-text);
}
.wbf-send:disabled { opacity: .6; cursor: default; }

.wbf-ref { font-size: .9rem; color: var(--muted); }
.wbf-done strong { font-weight: 600; letter-spacing: .03em; }

@media (max-width: 700px) {
  .wbf-row { grid-template-columns: 1fr; gap: 0; }
}
