/* CWC Contact Shortcode — [cwc_contact_form]
   Every selector is scoped under form.cwccs so nothing leaks into the rest of
   the site, and theme input styles don't leak in. */

form.cwccs {
  color: #222222;
  font-family: inherit;
  margin: 0;
}

/* ── Layout: two equal columns ── */
form.cwccs .cwccs-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 53px;
}
form.cwccs .cwccs-col {
  display: flex;
  flex-direction: column;
  gap: 36px;
  min-width: 0;
}

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

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

form.cwccs .cwccs-field input[type],
form.cwccs .cwccs-field select {
  appearance: none;
  -webkit-appearance: none;
  background-color: #ffffff;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  box-shadow: none;
  box-sizing: border-box;
  color: #222222;
  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.cwccs .cwccs-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23555555' stroke-width='1.5' 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;
}
/* Placeholder option ("Select Callback Time") shown in grey */
form.cwccs .cwccs-field select.cwccs-empty { color: #666666; }
form.cwccs .cwccs-field select option      { color: #222222; }

form.cwccs .cwccs-field input[type]:focus,
form.cwccs .cwccs-field select:focus {
  border-color: #888888;
}

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

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

/* ── Consent copy ── */
form.cwccs .cwccs-consent {
  color: #222222;
  font-family: inherit;
  font-size: 11px;
  line-height: 1.65;
  margin: 18px 0 0;
  padding: 0;
}

/* ── reCAPTCHA ── */
form.cwccs .cwccs-recaptcha {
  margin-top: 36px;
  min-height: 78px;
}

/* ── Submit ── */
form.cwccs .cwccs-submit {
  background: #222222;
  border: 0;
  border-radius: 4px;
  box-shadow: none;
  color: #ffffff;
  cursor: pointer;
  display: block;
  font-family: inherit;
  font-size: 18px;
  font-weight: 400;
  height: 49px;
  line-height: 49px;
  margin: 36px 0 0;
  padding: 0 36px;
  text-transform: none;
  transition: background-color 0.2s;
}
form.cwccs .cwccs-submit:hover    { background: #000000; }
form.cwccs .cwccs-submit:disabled { cursor: default; opacity: 0.5; }

/* ── Messages ── */
form.cwccs .cwccs-error {
  color: #c3002f;
  font-size: 14px;
  margin: 12px 0 0;
}
form.cwccs .cwccs-error:empty { margin: 0; }

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

/* ── Phones: one column (contact details + zip, then vehicle details + customer ID) ── */
@media (max-width: 640px) {
  form.cwccs .cwccs-cols   { grid-template-columns: minmax(0, 1fr); row-gap: 36px; }
  form.cwccs .cwccs-submit { width: 100%; }
}
