/* NSP Contact Form — [nsp_contact_form]
   Every selector is scoped under form.nspcf so nothing leaks into the
   bid calculators or the theme, and theme input styles don't leak in. */

form.nspcf {
  color: #111111;
  font-family: inherit;
  margin: 0;
}

/* ── Grid: 12 columns so row 1 holds 4 fields and rows 2–3 hold 3 ── */
form.nspcf .nspcf-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 42px;
  row-gap: 32px;
}
form.nspcf .nspcf-col-3 { grid-column: span 3; }
form.nspcf .nspcf-col-4 { grid-column: span 4; }

/* ── Field: label above input ── */
form.nspcf .nspcf-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

form.nspcf .nspcf-field label {
  color: #111111;
  font-family: inherit;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 12px;
  padding: 0;
}

/* [nsp_contact_form_small]: smaller labels, shown beneath the field.
   Only the visual order changes — the label stays first in the markup for screen readers. */
form.nspcf.nspcf-small-labels .nspcf-field label {
  font-size: 12px;
  margin: 8px 0 0;
  order: 2;
}
form.nspcf.nspcf-small-labels .nspcf-field input[type],
form.nspcf.nspcf-small-labels .nspcf-field select {
  order: 1;
}

form.nspcf .nspcf-field abbr[title] {
  border: 0;
  cursor: help;
  text-decoration: underline dotted;
}

form.nspcf .nspcf-field input[type],
form.nspcf .nspcf-field select {
  appearance: none;
  -webkit-appearance: none;
  background-color: #ffffff;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  box-shadow: none;
  box-sizing: border-box;
  color: #111111;
  font-family: inherit;
  font-size: 16px;
  height: 50px;
  line-height: normal;
  margin: 0;
  outline: none;
  padding: 0 16px;
  transition: border-color 0.2s;
  width: 100%;
}

form.nspcf .nspcf-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23111111' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 18px center;
  background-repeat: no-repeat;
  cursor: pointer;
  padding-right: 44px;
}

form.nspcf .nspcf-field input[type]:focus,
form.nspcf .nspcf-field select:focus {
  border-color: #8a8a8a;
}

form.nspcf .nspcf-field.nspcf-invalid input[type] {
  border-color: #c3002f;
}

/* ── Honeypot ── */
form.nspcf .nspcf-hp {
  height: 1px;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

/* ── Consent copy ── */
form.nspcf .nspcf-consent {
  color: #111111;
  font-family: 'Nissan Brand', sans-serif;
  font-size: 11px;
  line-height: 1.85;
  margin: 26px 0 38px;
  padding: 0;
}

/* ── reCAPTCHA ── */
form.nspcf .nspcf-recaptcha {
  margin: 0 0 28px;
  min-height: 78px;
}

/* ── Submit ── */
form.nspcf .nspcf-submit {
  background: linear-gradient(to bottom, #3a3a3a 0%, #000000 100%);
  border: 0;
  border-radius: 4px;
  box-shadow: none;
  color: #ffffff;
  cursor: pointer;
  font-family: 'Nissan Brand', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  margin: 0;
  padding: 18px 40px;
  text-transform: none;
  transition: opacity 0.2s;
}
form.nspcf .nspcf-submit:hover    { opacity: 0.85; }
form.nspcf .nspcf-submit:disabled { cursor: default; opacity: 0.5; }

/* ── Messages ── */
form.nspcf .nspcf-error {
  color: #c3002f;
  font-size: 14px;
  margin: 12px 0 0;
  min-height: 1em;
}
form.nspcf .nspcf-error:empty { margin: 0; min-height: 0; }

form.nspcf .nspcf-success p {
  color: #111111;
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
}

/* ── Avada breakpoints: tablet ≤1024px, mobile ≤640px ── */
@media (max-width: 1024px) {
  form.nspcf .nspcf-col-3,
  form.nspcf .nspcf-col-4 { grid-column: span 6; }
}
@media (max-width: 640px) {
  form.nspcf .nspcf-grid { column-gap: 0; row-gap: 24px; }
  form.nspcf .nspcf-col-3,
  form.nspcf .nspcf-col-4 { grid-column: span 12; }
  form.nspcf .nspcf-submit { width: 100%; }
}
