/* ============================================================
   VantageCraft Labs — "Work with us" qualifying form
   Sits on the aubergine band; inputs are plum surfaces.
   Text on plum is shell/orchid only (mauve fails AA on plum).
   ============================================================ */

.form-shell { max-width: 780px; }

.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.field-full { grid-column: 1 / -1; }

.field label,
.field .field-label {
  display: block;
  font-family: var(--body);
  font-weight: 500; font-size: 0.875rem;
  color: var(--shell);
  margin-bottom: var(--s-2);
}
.hint { display: block; font-size: 0.8125rem; color: var(--mauve); margin: -4px 0 var(--s-2); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  background: var(--plum);
  color: var(--shell);
  border: 1px solid var(--plum);
  border-radius: var(--r-btn);
  padding: 12px 14px;
  font-size: var(--fs-small);
}
.field textarea { min-height: 128px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--mauve); opacity: 1; }

.field [aria-invalid="true"] { border-color: var(--peach-deep); }

/* Selects: hide native arrow, draw a token-colored chevron */
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 40px; }
.select-wrap::after {
  content: ""; position: absolute; right: 16px; top: 50%;
  margin-top: -2px; pointer-events: none;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--orchid);
}

/* Phone: dial-code select + national number.
   min-width: 0 stops the country select's long option names from
   forcing the grid (and the whole page) wider than the viewport. */
.phone-row { display: grid; grid-template-columns: minmax(112px, 150px) minmax(0, 1fr); gap: var(--s-3); }
.phone-row > * { min-width: 0; }
.field select { max-width: 100%; }

/* Budget: currency segmented control + range select */
.currency-seg {
  display: inline-flex;
  border: 1px solid var(--plum);
  border-radius: var(--r-btn);
  overflow: hidden;
  margin-bottom: var(--s-3);
}
.seg-opt { cursor: pointer; }
.seg-opt input {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.seg-opt span {
  display: inline-block;
  font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.06em;
  color: var(--orchid);
  padding: 8px 16px;
}
.seg-opt input:checked + span { background: var(--plum); color: var(--shell); }
.seg-opt input:focus-visible + span { outline: 2px solid var(--orchid); outline-offset: -2px; }

/* Audience fieldset */
fieldset { border: 0; }
fieldset legend {
  font-family: var(--disp); font-weight: 600; font-size: var(--fs-h3);
  color: var(--shell); margin-bottom: var(--s-2);
}
.fieldset-lede { color: var(--mauve); font-size: 0.875rem; margin-bottom: var(--s-4); }
.aud-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }

.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2) var(--s-3); }
.check-grid label {
  display: flex; align-items: center; gap: var(--s-2);
  font-weight: 400; font-size: 0.875rem; color: var(--shell);
  margin: 0; cursor: pointer;
}
.check-grid input[type="checkbox"] {
  width: 18px; height: 18px; flex: none;
  accent-color: var(--orchid);
}

/* Inline errors */
.err {
  display: none;
  font-size: 0.8125rem; color: var(--peach-deep);
  margin-top: var(--s-1);
}
.field.invalid .err { display: block; }

/* Honeypot — visually removed, still in the DOM for bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Submit + status */
.form-actions { grid-column: 1 / -1; margin-top: var(--s-2); }
.form-actions .btn { min-width: 200px; }
.form-actions .btn[disabled] { opacity: 0.6; cursor: default; transform: none; pointer-events: none; }

.form-status {
  display: none;
  margin-top: var(--s-4);
  font-size: var(--fs-small); color: var(--peach-deep);
  max-width: 56ch;
}
.form-status.show { display: block; }

.form-success {
  display: none;
  background: var(--plum);
  border-radius: var(--r-lg);
  padding: var(--s-6);
}
.form-success.show { display: block; }
.form-success h3 {
  font-family: var(--disp); font-weight: 600; font-size: var(--fs-h3);
  color: var(--shell); margin-bottom: var(--s-2);
}
.form-success p { color: var(--orchid); font-size: var(--fs-small); max-width: 52ch; }

@media (max-width: 640px) {
  .lead-form { grid-template-columns: 1fr; }
  .aud-grid { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: repeat(2, 1fr); }
}
