/* Wolf Leads — contact form. Inherits theme tokens, falls back cleanly. */

.wl {
  --wl-blue: var(--blue, #1B4FD8); --wl-hot: var(--blue-hot, #3B74F0);
  --wl-navy: var(--navy, #0B2A5B); --wl-ink: var(--ink, #152238);
  --wl-line: var(--line, #D5E0EE); --wl-surface: var(--surface, #F4F8FD);
  --wl-slate: var(--slate, #5B6B82); --wl-ok: var(--assay, #0B7355); --wl-bad: var(--flag, #C63A28);
  max-width: 720px !important; width: 100%;
  background: #fff; border: 1px solid var(--wl-line); border-radius: 18px;
  padding: 32px; box-shadow: 0 20px 48px -18px rgba(11, 42, 91, .18);
  font-family: var(--body, inherit); color: var(--wl-ink);
}
.wl * { box-sizing: border-box; }
.wl-title { margin: 0 0 18px; color: var(--wl-navy); font-family: var(--display, inherit); }

.wl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wl-field { margin-bottom: 16px; }
.wl-field label {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-weight: 600; font-size: .86rem; color: var(--wl-navy); margin-bottom: 7px;
}
.wl-req { color: var(--wl-bad); }
.wl-opt { font-weight: 400; font-size: .76rem; color: var(--wl-slate); }

.wl-field input, .wl-field select, .wl-field textarea {
  width: 100%; font: inherit; font-size: .96rem; color: var(--wl-ink);
  padding: 13px 15px; background: #fff; border: 1px solid var(--wl-line); border-radius: 11px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.wl-field textarea { resize: vertical; min-height: 130px; }
.wl-field input:focus, .wl-field select:focus, .wl-field textarea:focus {
  border-color: var(--wl-blue); outline: none; box-shadow: 0 0 0 4px rgba(27, 79, 216, .12);
}
.wl-field.is-bad input, .wl-field.is-bad textarea { border-color: var(--wl-bad); }
.wl-field.is-bad input:focus, .wl-field.is-bad textarea:focus { box-shadow: 0 0 0 4px rgba(198, 58, 40, .12); }
.wl-err { color: var(--wl-bad); font-size: .82rem; margin: 6px 0 0; }

/* honeypot — visually gone, still in the DOM for bots */
.wl-hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* captcha */
.wl-captcha {
  background: var(--wl-surface); border: 1px solid var(--wl-line);
  border-radius: 12px; padding: 16px 18px;
}
.wl-captcha label { margin-bottom: 10px; }
.wl-shield { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--wl-line); }
.wl-shield svg { width: 15px; height: 15px; stroke: var(--wl-blue); fill: none; stroke-width: 2; }
.wl-q {
  font-family: var(--mono, monospace); font-size: 1rem; color: var(--wl-navy);
  background: #fff; border: 1px solid var(--wl-line); border-radius: 7px; padding: 2px 9px; letter-spacing: .04em;
}
.wl-cap-input { max-width: 120px; text-align: center; font-family: var(--mono, monospace) !important; font-size: 1.05rem !important; }

.wl-check {
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
  background: var(--wl-surface); border: 1px solid var(--wl-line); border-radius: 12px;
  padding: 14px 16px; margin: 4px 0 6px;
}
.wl-check.is-bad { border-color: var(--wl-bad); }
.wl-check input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--wl-blue); }
.wl-check span { font-size: .86rem; color: var(--wl-slate); }

.wl-submit {
  margin-top: 14px; width: 100%; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--display, inherit); font-weight: 700; font-size: 1rem;
  padding: 16px 30px; border-radius: 999px; color: #fff;
  background: linear-gradient(180deg, var(--wl-hot), var(--wl-blue));
  box-shadow: 0 12px 28px -10px rgba(27, 79, 216, .5);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.wl-submit:hover { transform: translateY(-2px); }
.wl-submit[disabled] { opacity: .65; cursor: wait; transform: none; }
.wl-note { text-align: center; font-size: .78rem; color: var(--wl-slate); margin: 12px 0 0; }

.wl-alert {
  background: rgba(198, 58, 40, .06); border: 1px solid var(--wl-line); border-left: 4px solid var(--wl-bad);
  border-radius: 10px; padding: 14px 16px; margin-bottom: 20px; font-size: .92rem; color: var(--wl-navy);
}

.wl-done { text-align: center; padding: 26px 8px; }
.wl-done svg { width: 58px; height: 58px; margin: 0 auto 14px; display: block; stroke: var(--wl-ok); fill: none; stroke-width: 2; }
.wl-done h4 { font-size: 1.4rem; color: var(--wl-navy); margin: 0 0 8px; font-family: var(--display, inherit); }
.wl-done p { color: var(--wl-slate); margin: 0; }

@media (max-width: 640px) {
  .wl { padding: 22px; border-radius: 14px; }
  .wl-row { grid-template-columns: 1fr; gap: 0; }
}
