/*
 * Scoped styles for the pk-standard-forms [pk_form] shortcode output on the
 * contact section. Maps the plugin's real markup (.pk-form / .pk-form__*)
 * onto the site's existing contact-form look (.contact-form-input / .button)
 * defined in xfit.css. Do not edit xfit.css; reuse its variables only.
 */

.pk-form {
  display: grid;
  grid-template-rows: auto auto;
  grid-template-columns: 1fr;
  grid-auto-columns: 1fr;
  grid-row-gap: 1.5rem;
  grid-column-gap: 1.5rem;
}

/* The original design shows no form title above the fields. */
.pk-form__title {
  display: none;
}

.pk-form__field {
  display: flex;
  flex-direction: column;
}

.pk-form__field label {
  color: var(--colors--white);
  margin-bottom: 0.5rem;
}

/*
 * These selectors intentionally mirror the specificity of pk-standard-forms'
 * front.css (which uses .pk-form__field input:not([type=radio]):not(...):not(...)
 * with a color-mix transparent fill). Matching that :not() chain AND prefixing
 * with .pk-form lets the site's solid-white input styling win cleanly, without
 * !important. If front.css changes its selector, revisit this.
 */
.pk-form .pk-form__field input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
.pk-form .pk-form__field textarea,
.pk-form .pk-form__field select {
  background: var(--colors--white);
  background-color: var(--colors--white);
  color: var(--colors--black);
  border: 1px solid transparent;
  border-radius: 0;
  min-height: 3rem;
  margin-bottom: 0;
  padding: .5rem 1rem;
  font-family: var(--fonts--body-font);
  font-size: 1rem;
  line-height: 1.4;
  width: 100%;
  max-width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.pk-form .pk-form__field input:not([type="radio"]):not([type="checkbox"]):not([type="file"]):focus,
.pk-form .pk-form__field textarea:focus,
.pk-form .pk-form__field select:focus {
  border-color: #bffcfc;
  box-shadow: none;
  outline: none;
}

.pk-form .pk-form__field--textarea textarea {
  border-width: 1px;
  min-height: 8rem;
  padding-top: .75rem;
  resize: vertical;
}

.pk-form__field-error {
  color: var(--colors--red);
  font-size: .875rem;
  margin-top: .25rem;
}

.pk-form__validation-summary {
  color: var(--colors--red);
}

.pk-form__submit {
  z-index: 1;
  grid-column-gap: .5rem;
  border: 2px solid var(--colors--white);
  color: #faf8f2cc;
  text-align: center;
  letter-spacing: 2px;
  text-transform: uppercase;
  background-color: transparent;
  background-image: radial-gradient(circle at 0 100%, #252525, #1a1a1a);
  align-items: center;
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  transition: all .4s;
  display: inline-block;
  position: relative;
  cursor: pointer;
  font-family: var(--fonts--body-font);
  justify-self: start;
}

.pk-form__submit:hover {
  border-color: var(--colors--red);
  color: var(--colors--white);
}

.pk-form__confirmation {
  background-color: var(--colors--white);
  color: #082126;
  font-weight: 600;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.pk-form__errors {
  background-color: var(--colors--red);
  color: var(--colors--white);
  margin-top: 1.5rem;
  padding: .875rem 1rem;
}
