fieldset.custom-wp-form {
  margin: 0;
  padding: 0;
  border: none;
}

.custom-wp-form legend {
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 700;
}

.custom-wp-form .wpforms-container-full {
  margin: 0 !important;
}

.custom-wp-form .wpforms-field-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: var(--block-spacing) 0;
}

.custom-wp-form .wpforms-container-full .wpforms-form .wpforms-field {
  width: var(--form-field-width, 100%);
  max-width: var(--form-field-max-width, 100%);
  padding: 0;
  line-height: 1;
}

.custom-wp-form
.wpforms-container-full
.wpforms-form
.wpforms-field:not(.wpforms-field-phone):not(.wpforms-field-select-style-modern) {
  overflow: visible;
}

.custom-wp-form .wpforms-container-full .wpforms-form .wpforms-field-label {
  display: inline-block;
  flex-shrink: 0;
  font-weight: 400;
}

.custom-wp-form .wpforms-container input.wpforms-field-medium,
.custom-wp-form .wpforms-container select.wpforms-field-medium,
.custom-wp-form .wpforms-container .wpforms-field-row.wpforms-field-medium,
.custom-wp-form .wp-core-ui div.wpforms-container input.wpforms-field-medium,
.custom-wp-form .wp-core-ui div.wpforms-container select.wpforms-field-medium,
.custom-wp-form .wp-core-ui div.wpforms-container .wpforms-field-row.wpforms-field-medium {
  max-width: 100%;
}

.custom-wp-form .wpforms-container .wpforms-field .wpforms-field-row .wpforms-field-row-block:first-child {
  padding-inline-start: 0;
}

.custom-wp-form .wpforms-container .wpforms-field .wpforms-field-row .wpforms-field-row-block:last-child {
  padding-inline-end: 0;
}

.custom-wp-form .wpforms-container .wpforms-field .wpforms-field-row .wpforms-field-row-block {
  padding: 0 15px;
}

/* Form fields */
.custom-wp-form .wpforms-container-full .wpforms-form :is(input[type="text"], input[type="email"], select, textarea) {
  display: block;
  width: 100% !important;
  max-width: 100%;
  margin: 0;
  text-align: var(--form-field-text-align, left);
  font-family: inherit;
  box-shadow: none !important;
  appearance: none;
  transition: border-color 250ms linear;
}

.custom-wp-form .wpforms-container-full .wpforms-form textarea {
  --form-field-height: 144px;
  --form-field-padding-top: 16px;
  --form-field-padding-bottom: 16px;

  resize: vertical;
}

.custom-wp-form
.wpforms-container-full
.wpforms-form
:is(input[type="text"], input[type="email"], textarea)::placeholder {
  opacity: 1;
  color: var(--color-text-dimmed) !important;
}

.custom-wp-form
.wpforms-container-full
.wpforms-form
:is(input[type="text"], input[type="email"], select, textarea):focus {
  outline: none;
  border-color: var(--form-accent-color) !important;
}

/* Checkbox and Radio */
.custom-wp-form .wpforms-field-checkbox .wpforms-field-label,
.custom-wp-form .wpforms-field-radio .wpforms-field-label {
  margin-bottom: 14px !important;
}

.custom-wp-form .wpforms-field-checkbox ul,
.custom-wp-form .wpforms-field-radio ul {
  gap: 0 !important;
  margin: 0;
  padding: 0;
  list-style: none;
}

.custom-wp-form .wpforms-field-checkbox ul li,
.custom-wp-form .wpforms-field-radio ul li {
  display: flex;
  align-items: center;
}

.custom-wp-form .wpforms-field-checkbox ul li::before,
.custom-wp-form .wpforms-field-radio ul li::before {
  display: none;
}

.custom-wp-form .wpforms-container-full .wpforms-form ul li {
  margin-bottom: 17px !important;
}

.custom-wp-form .wpforms-container-full ul li:last-of-type {
  margin-bottom: 0 !important;
}

.custom-wp-form .wpforms-container-full .wpforms-form .wpforms-field-label-inline {
  padding-left: 34px;
  color: black;
  font-size: 16px;
}

.custom-wp-form input[type="checkbox"],
.custom-wp-form input[type="radio"] {
  display: block !important;
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0;
  margin: -1px !important;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.custom-wp-form input[type="checkbox"]:not(checked) + label::before,
.custom-wp-form input[type="radio"]:not(checked) + label::before {
  box-sizing: border-box;
  content: "";
  position: absolute;
  width: 23px;
  height: 23px;
  top: -1px;
  left: 0;
  border: 1px solid var(--color-grey-204);
  border-radius: 2px;
  background-color: white;
}

.custom-wp-form input[type="radio"]:not(checked) + label::before {
  border-radius: 50%;
}

.custom-wp-form input[type="checkbox"]:checked + label::before,
.custom-wp-form input[type="radio"]:checked + label::before {
  width: 23px;
  height: 23px;
  top: -1px;
  border-color: var(--form-accent-color);
}

.custom-wp-form input[type="checkbox"]:checked + label::after {
  left: 6px;
  width: calc(8px * 1.5);
  height: calc(4px * 1.5);
  border-color: var(--form-accent-color);
}

.custom-wp-form input[type="checkbox"]:checked + label::before {
  background: url("data:image/svg+xml,%3Csvg%20width%3D%2212%22%20height%3D%229%22%20viewBox%3D%220%200%2012%209%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M11.1261%200.956146C11.1921%201.02194%2011.2444%201.10011%2011.2801%201.18617C11.3158%201.27222%2011.3342%201.36448%2011.3342%201.45765C11.3342%201.55082%2011.3158%201.64307%2011.2801%201.72913C11.2444%201.81518%2011.1921%201.89335%2011.1261%201.95915L4.75109%208.33415C4.68529%208.40011%204.60713%208.45245%204.52107%208.48815C4.43502%208.52386%204.34276%208.54225%204.24959%208.54225C4.15642%208.54225%204.06417%208.52386%203.97811%208.48815C3.89206%208.45245%203.81389%208.40011%203.74809%208.33415L0.914759%205.50081C0.781753%205.36781%200.707031%205.18741%200.707031%204.99931C0.707031%204.81121%200.781753%204.63082%200.914759%204.49781C1.04777%204.36481%201.22816%204.29008%201.41626%204.29008C1.60436%204.29008%201.78475%204.36481%201.91776%204.49781L4.24959%206.83106L10.1231%200.956146C10.1889%200.890182%2010.2671%200.837846%2010.3531%200.802137C10.4392%200.766428%2010.5314%200.748047%2010.6246%200.748047C10.7178%200.748047%2010.81%200.766428%2010.8961%200.802137C10.9821%200.837846%2011.0603%200.890182%2011.1261%200.956146Z%22%20fill%3D%22%231E3955%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: 50% 50%;
}

.custom-wp-form input[type="radio"]:checked + label::after {
  content: "";
  border-radius: 50%;
  width: 11px;
  height: 11px;
  background: var(--form-accent-color);
  position: absolute;
  left: 6px;
  top: 5px;
}

.custom-wp-form input[type="checkbox"]:focus-visible ~ label::before,
.custom-wp-form input[type="radio"]:focus-visible ~ label::before {
  border-color: var(--form-accent-color) !important;
}

/* Submit Button */
.custom-wp-form .wpforms-submit-container {
  margin-top: 40px !important;
  padding: 0 !important;
}

.custom-wp-form .wpforms-container-full .wpforms-form :is(input[type="submit"], button[type="submit"]) {
  flex-shrink: 0;
  width: -moz-fit-content;
  width: fit-content;
  height: auto;
  margin: 0;
  padding: var(--button-v-padding) var(--button-h-padding);
  text-align: center;
  text-decoration: none;
  text-transform: none;
  font-family: inherit;
  font-weight: 500;
  line-height: inherit;
  -moz-appearance: button;
  appearance: button;
  -webkit-appearance: button;
  cursor: pointer;
}

.resource-control
.custom-wp-form
.wpforms-container-full
.wpforms-form
:is(input[type="submit"], button[type="submit"]),
.sidebar-form .custom-wp-form .wpforms-container-full .wpforms-form :is(input[type="submit"], button[type="submit"]) {
  border-color: var(--color-secondary);
  background: var(--color-secondary) !important;
  color: var(--form-accent-color) !important;
}

.custom-wp-form .wpforms-container-full .wpforms-form :is(input[type="submit"], button[type="submit"]):hover {
  /* border-color: var(--color-primary-hover);
  background: var(--color-primary-hover) !important; */
  filter: brightness(150%);
}

.resource-control
.custom-wp-form
.wpforms-container-full
.wpforms-form
:is(input[type="submit"], button[type="submit"]):hover,
.sidebar-form
.custom-wp-form
.wpforms-container-full
.wpforms-form
:is(input[type="submit"], button[type="submit"]):hover {
  border-color: var(--color-secondary-hover);
  background: var(--color-secondary-hover) !important;
}

.custom-wp-form .wpforms-container-full .wpforms-form :is(input[type="submit"], button[type="submit"]):focus-visible {
  outline: var(--keyboard-focus);
}

div.wpforms-container
.wpforms-form
.wpforms-field:not(.wpforms-field-phone):not(.wpforms-field-select-style-modern):not(.wpforms-field-radio):not(
    .wpforms-field-checkbox
  ):not(.wpforms-field-layout):not(.wpforms-field-repeater) {
  overflow: visible;
}