.nf-form-cont {
  --input-border-radius: 8px;
  --input-background-color: var(--wp--preset--color--secondary);
  --button-border-radius: var(--wp--custom--button--border-radius, 12px);
  --button-padding-block: 0.75rem;
  --button-padding-inline: 1.25rem;
  --border: 1px solid var(--wp--custom--color--border);
  --color: var(--wp--preset--color--black);
  --input-font-size: var(--wp--preset--font-size--large);
  --label-font-size: var(--wp--preset--font-size--large);
  --placeholder-color: var(--wp--preset--color--gray-500);
  --placeholder-font-size: var(--wp--preset--font-size--x-large);
  --error-color: var(--wp--preset--color--status-error);
}

input,
input[type="checkbox"] + label {
  font-size: var(--input-font-size);
}

input:not([type="submit"]),
select,
textarea {
  color: var(--color);
  border-radius: var(--input-border-radius);
  border: var(--border);
  overflow: hidden;
  width: 100%;
  background-color: var(--input-background-color);
}

textarea {
  resize: vertical;
}

input:not([type="submit"]),
select:not([multiple]),
select[multiple] option,
textarea {
  padding: 0.5em;
}

input[type="checkbox"],
input[type="image"],
input[type="radio"] {
  width: auto;
}

li:has(input:is([type="checkbox"], [type="radio"])) {
  display: grid;
  grid-template-columns: 1em auto;
  gap: 0.5em;
}

.list-checkbox-wrap .nf-field-element li input,
.list-image-wrap .nf-field-element li input,
.list-radio-wrap .nf-field-element li input {
  margin: 0;
}

.list-checkbox-wrap .nf-field-element li label,
.list-image-wrap .nf-field-element li label,
.list-radio-wrap .nf-field-element li label {
  margin-inline-start: 0.5em;
}

label {
  width: 100%;
  display: block;
}

::placeholder {
  color: var(--placeholder-color);
  font-size: var(--placeholder-font-size);
  opacity: 0.75;
}

.nf-form-fields-required {
  display: none;
}

/* buttons */
input[type="submit"],
.nf-field-element :is(button) {
  font-size: var(--input-font-size);
  background-color: transparent;
  color: var(--color);
  border-radius: 12px;
  padding-block: var(--button-padding-block);
  padding-inline: var(--button-padding-inline);
  margin-left: calc(var(--button-padding-inline) * -1);
  cursor: pointer;
  box-shadow: none;
  outline: none;
  border: none;
}

.ninja-forms-req-symbol {
  color: var(--wp--preset--color--black);
}

.nf-error-msg {
  color: var(--error-color);
}

.nf-error.listimage-wrap .nf-field-element ul,
.nf-error .ninja-forms-field {
  border-color: var(--error-color);
}

.nf-field-label .nf-label-span,
.nf-field-label label {
  font-size: var(--label-font-size);
  font-weight: 400;
}

#nf-form-4-cont .submit-container,
#nf-form-8-cont .submit-container,
#nf-form-9-cont .submit-container,
#nf-form-10-cont .submit-container,
#nf-form-11-cont .submit-container {
  background-color: var(--wp--preset--color--text);
  padding-block: var(--wp--preset--spacing--30);
  padding-inline: var(--wp--preset--spacing--20);
  border-radius: 8px;
}
#nf-form-4-cont .submit-container::before,
#nf-form-8-cont .submit-container::before,
#nf-form-9-cont .submit-container::before,
#nf-form-10-cont .submit-container::before,
#nf-form-11-cont .submit-container::before {
  content: "Let’s work together";
  display: block;
  font-size: var(--wp--preset--font-size--xxxx-large);
  margin-bottom: var(--wp--preset--spacing--30);
  line-height: 1.2;
}

/* Submit button */
.submit-container .nf-field-element {
  position: relative;
  display: inline-flex;
  align-items: center;
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-decoration-style: dotted;
  text-decoration-color: var(--wp--preset--color--gray-500);
}

.submit-container .nf-field-element::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  opacity: 1;
  background-repeat: no-repeat;
  margin-left: 0;
  transition: ease 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 30 30'%3E%3Cpath stroke='%231B1F38' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m15.896 19.333 4.583-4.583m0 0-4.583-4.583m4.583 4.583H9.021m19.479 0a13.75 13.75 0 1 1-27.5 0 13.75 13.75 0 0 1 27.5 0Z'/%3E%3C/svg%3E");
}

/* simple hover effect for the submit button in ninjaforms */
.submit-container .nf-field-element:hover::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 30 30'%3E%3Cpath fill='%23fff' d='m15.896 19.333 4.583-4.583Zm4.583-4.583-4.583-4.583Zm0 0H9.021Zm8.021 0a13.75 13.75 0 1 1-27.5 0 13.75 13.75 0 0 1 27.5 0Z'/%3E%3Cpath stroke='%231B1F38' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m15.896 19.333 4.583-4.583m0 0-4.583-4.583m4.583 4.583H9.021m19.479 0a13.75 13.75 0 1 1-27.5 0 13.75 13.75 0 0 1 27.5 0Z'/%3E%3C/svg%3E");
}

/* Button style checkboxes */
.listcheckbox-container.is-style-button ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  row-gap: 0.75em;
}

.listcheckbox-container.is-style-button li {
  list-style: none;
  position: relative;
  display: inline-flex;
}

.listcheckbox-container.is-style-button li label {
  padding-block: var(--button-padding-block);
  padding-inline: var(--button-padding-inline);
  border-radius: var(--button-border-radius);
  border: var(--border);
  background: var(--wp--preset--color--secondary);
  display: inline-flex;
  cursor: pointer;
  width: max-content;
  margin-inline: 0;
  align-items: center;
  line-height: 1;
}

.listcheckbox-container.is-style-button li input {
  opacity: 0;
  position: absolute;
  z-index: -1;
}
.listcheckbox-container.is-style-button li label {
  transition: all 200ms ease-in;
}
.listcheckbox-container.is-style-button
  li:nth-of-type(4n + 1):has(.nf-checked)
  label,
.listcheckbox-container.is-style-button li:nth-of-type(4n + 1):hover label {
  background-color: #3e5a74;
  color: white;
}
.listcheckbox-container.is-style-button
  li:nth-of-type(4n + 2):has(.nf-checked)
  label,
.listcheckbox-container.is-style-button li:nth-of-type(4n + 2):hover label {
  background-color: #f2cc8f;
}
.listcheckbox-container.is-style-button
  li:nth-of-type(4n + 3):has(.nf-checked)
  label,
.listcheckbox-container.is-style-button li:nth-of-type(4n + 3):hover label {
  background-color: #517b65;
  color: white;
}

.listcheckbox-container.is-style-button
  li:nth-of-type(4n + 4):has(.nf-checked)
  label,
.listcheckbox-container.is-style-button li:nth-of-type(4n + 4):hover label {
  background-color: #e07a5f;
}
/* .listcheckbox-container.is-style-button li:has(.nf-checked) label::before {
	content: '';
	display: inline-block;
	width: 18px;
	height: 18px;
	opacity: 1;
	background-repeat: no-repeat;
	margin-right: 8px;
	transition: ease 0.2s;
	color: white;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-width='1.5' class='w-6 h-6' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z'/%3E%3C/svg%3E");
} */

.listcheckbox-container.is-style-button input[type="checkbox"]:focus + label,
.nf-field-element:has(input[type="submit"]:focus) {
  outline-style: dotted;
  outline-width: 1px;
  outline-offset: 3px;
  outline-color: var(--wp--custom--color--ring);
}

/* quickfix ninjaform spacing issue when user is not logged in */
#ninja_forms_required_items,
.nf-field-container {
  clear: both;
  position: relative;
  margin-bottom: 25px;
}
