/* Preserve the original Divi surface; positioning stays with its existing module. */
.mdi-nocnok-search.custom-form-container {
  --mdi-ink: #362c44;
  --mdi-muted: #6d6780;
  --mdi-pale: #dad8df;
  --mdi-control-text: #fff;
  --mdi-field-border: #dad8df;
  --mdi-field-background: transparent;
  --mdi-button-background: #6d6780;
  --mdi-button-text: #fff;
  box-sizing: border-box;
  width: 100%;
  padding: 20px;
  border-radius: 8px;
  background: rgba(54, 44, 68, 0.86);
  color: var(--mdi-control-text);
  font-family: inherit;
  overflow: visible;
}
.mdi-nocnok-search.custom-form-container *,
.mdi-nocnok-search.custom-form-container *::before,
.mdi-nocnok-search.custom-form-container *::after { box-sizing: border-box; }
.mdi-nocnok-search.custom-form-container form { width: 100%; margin: 0; }
.mdi-nocnok-search.custom-form-container .search-title {
  width: 100%;
  margin: 0 0 10px;
  color: inherit;
  font-family: inherit;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.4;
  text-align: left;
}
/* Labels remain available to assistive technology; the original controls label themselves. */
.mdi-nocnok-search.custom-form-container .mdi-nocnok-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* Home retains its original operation row; the listing alone uses a select. */
.mdi-nocnok-search.custom-form-container .checkbox-group {
  min-width: 0;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
}
.mdi-nocnok-search.custom-form-container .mdi-nocnok-operation-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
}
.mdi-nocnok-search.custom-form-container .mdi-nocnok-operation-options > div {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}
.mdi-nocnok-search.custom-form-container .mdi-nocnok-operation-options label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.mdi-nocnok-search.custom-form-container .checkbox-group input[type="radio"] {
  appearance: none;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 0 !important;
  padding: 0;
  border: 1px solid #fff !important;
  border-radius: 4px;
  background: transparent !important;
  cursor: pointer;
}
.mdi-nocnok-search.custom-form-container .checkbox-group input[type="radio"]:checked { background: #fff !important; }
.mdi-nocnok-search.custom-form-container .checkbox-group input[type="radio"]::after { content: none; }
.mdi-nocnok-search.custom-form-container .checkbox-group:disabled { opacity: .55; }
.mdi-nocnok-search.custom-form-container .checkbox-group:disabled :is(input, label) { cursor: not-allowed; }
.mdi-nocnok-search.custom-form-container:not(.mdi-nocnok-search-listing) .search-fields .mdi-nocnok-label {
  position: static;
  display: block;
  width: auto;
  height: auto;
  margin: 0 0 6px;
  overflow: visible;
  clip-path: none;
  white-space: normal;
  font-size: 14px;
  line-height: 1.4;
}
.mdi-nocnok-search.custom-form-container .search-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  width: 100%;
  min-width: 0;
}
.mdi-nocnok-search.custom-form-container .search-fields > label,
.mdi-nocnok-search.custom-form-container .search-fields > .mdi-nocnok-location { display: block; min-width: 0; width: 100%; margin: 0; }
.mdi-nocnok-search.custom-form-container .mdi-nocnok-location { position: relative; overflow: visible; }
.mdi-nocnok-search.custom-form-container .search-fields input:not([type="hidden"]),
.mdi-nocnok-search.custom-form-container .search-fields select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--mdi-field-border) !important;
  border-radius: 6px;
  background: var(--mdi-field-background) !important;
  color: var(--mdi-control-text) !important;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  text-align: left;
}
.mdi-nocnok-search.custom-form-container:not(.mdi-nocnok-search-listing) .search-fields :is(input, select) { border-radius: 4px; }
.mdi-nocnok-search.custom-form-container .search-fields input::placeholder { color: var(--mdi-control-text); opacity: 1; }
.mdi-nocnok-search.custom-form-container .search-fields select option { background: #fff; color: var(--mdi-ink); }
.mdi-nocnok-search.custom-form-container .search-fields [aria-invalid="true"] { box-shadow: 0 0 0 2px var(--mdi-control-text); }
.mdi-nocnok-search.custom-form-container :is(input, select, button, a):focus-visible { outline: 3px solid var(--mdi-control-text); outline-offset: 3px; }
.mdi-nocnok-search.custom-form-container .mdi-nocnok-suggestions {
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow-y: auto;
  border-radius: 4px;
  background: #fff;
  color: var(--mdi-ink);
  box-shadow: 0 4px 8px #0003;
}
.mdi-nocnok-search.custom-form-container .mdi-nocnok-suggestions:empty,
.mdi-nocnok-search.custom-form-container .mdi-nocnok-suggestions[hidden] { display: none; }
.mdi-nocnok-search.custom-form-container .mdi-nocnok-suggestions [role="option"] {
  display: flex;
  align-items: center;
  min-height: 44px;
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: inherit;
  font-weight: normal;
  margin: 0;
  padding: 10px;
  color: var(--mdi-ink);
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}
.mdi-nocnok-search.custom-form-container .mdi-nocnok-suggestions [role="option"]:is(:hover, .is-active, [aria-selected="true"]) { background: var(--mdi-pale); }
.mdi-nocnok-search.custom-form-container .search-button {
  grid-column: 1 / -1;
  justify-self: start;
  min-width: 150px;
  min-height: 48px;
  margin: 0;
  padding: 10px 20px;
  border: 0;
  border-radius: 50px;
  background: var(--mdi-button-background);
  color: var(--mdi-button-text);
  font-family: inherit;
  font-size: 16px;
  font-weight: normal;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
}
.mdi-nocnok-search.custom-form-container .search-button:hover:not(:disabled) { background: #5a546c; }
.mdi-nocnok-search.custom-form-container .search-button:disabled,
.mdi-nocnok-search.custom-form-container .search-fields :is(input, select):disabled { opacity: 0.55; cursor: not-allowed; }
.mdi-nocnok-search.custom-form-container .mdi-nocnok-status { width: 100%; margin: 10px 0 0; color: inherit; font-size: 14px; line-height: 1.5; }
.mdi-nocnok-search.custom-form-container .mdi-nocnok-status:empty { display: none; }
.mdi-nocnok-search.custom-form-container .mdi-nocnok-reset { display: inline-flex; align-items: center; min-height: 44px; color: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.mdi-nocnok-search.custom-form-container .mdi-nocnok-reset[hidden] { display: none !important; }
/* Home keeps its identity; the wide search spans the hero/next-section boundary. */
.mdi-nocnok-search.custom-form-container:not(.mdi-nocnok-search-listing) {
  padding: 24px;
}
.mdi-nocnok-search.custom-form-container:not(.mdi-nocnok-search-listing) .search-title {
  margin-bottom: 16px;
}
.mdi-nocnok-search.custom-form-container:not(.mdi-nocnok-search-listing) .checkbox-group {
  margin-bottom: 16px;
}
.mdi-nocnok-search.custom-form-container:not(.mdi-nocnok-search-listing) .search-fields {
  gap: 16px;
}
@media (max-width: 767px) {
  body.home .mdi-nocnok-search.custom-form-container:not(.mdi-nocnok-search-listing) {
    width: min(100%, calc(100vw - 48px));
    margin-inline: auto;
  }
}
@supports selector(:has(*)) {
  @media (min-width: 768px) {
    /* Only the hero containing Home's search becomes the positioning reference. */
    body.home .et_pb_section:has(.mdi-nocnok-search:not(.mdi-nocnok-search-listing)) {
      position: relative;
      z-index: 3;
      padding-bottom: 150px;
      overflow: visible;
    }
    body.home .et_pb_section:has(.mdi-nocnok-search:not(.mdi-nocnok-search-listing)) + .et_pb_section {
      padding-top: 160px;
    }
    body.home :is(.et_pb_row, .et_pb_column, .et_pb_code, .et_pb_code_inner):has(.mdi-nocnok-search:not(.mdi-nocnok-search-listing)) {
      position: static;
    }
    body.home .mdi-nocnok-search.custom-form-container:not(.mdi-nocnok-search-listing) {
      position: absolute;
      z-index: 4;
      left: 50%;
      bottom: -100px;
      transform: translateX(-50%);
      width: min(1120px, calc(100% - 48px));
      padding: 32px;
    }
    body.home .mdi-nocnok-search.custom-form-container:not(.mdi-nocnok-search-listing) .search-title {
      font-size: 26px;
      margin-bottom: 20px;
    }
    body.home .mdi-nocnok-search.custom-form-container:not(.mdi-nocnok-search-listing) .mdi-nocnok-operation-options {
      gap: 0 24px;
      font-size: 16px;
    }
    body.home .mdi-nocnok-search.custom-form-container:not(.mdi-nocnok-search-listing) .search-fields {
      gap: 20px;
    }
    body.home .mdi-nocnok-search.custom-form-container:not(.mdi-nocnok-search-listing) .search-fields .mdi-nocnok-label {
      font-size: 16px;
      margin-bottom: 8px;
    }
    body.home .mdi-nocnok-search.custom-form-container:not(.mdi-nocnok-search-listing) .search-fields :is(input:not([type="hidden"]), select),
    body.home .mdi-nocnok-search.custom-form-container:not(.mdi-nocnok-search-listing) .search-button {
      min-height: 56px;
      font-size: 18px;
      padding: 12px;
    }
    body.home .mdi-nocnok-search.custom-form-container:not(.mdi-nocnok-search-listing) .search-button {
      min-width: 180px;
      padding-inline: 24px;
    }
  }
  @media (min-width: 768px) and (max-width: 980px) {
    body.home .mdi-nocnok-search.custom-form-container:not(.mdi-nocnok-search-listing) {
      padding: 28px;
    }
    body.home .mdi-nocnok-search.custom-form-container:not(.mdi-nocnok-search-listing) .search-title {
      font-size: 24px;
    }
  }
  @media (min-width: 768px) and (max-width: 1024px) {
    body.home .mdi-nocnok-search.custom-form-container:not(.mdi-nocnok-search-listing) {
      width: min(1120px, calc(100% - 80px));
    }
  }
  /* One gutter for the whole results row keeps filters, feedback and cards aligned. */
  @media (max-width: 1024px) {
    .et_pb_row:has(.mdi-nocnok-search-listing) {
      width: min(100%, calc(100vw - 80px));
    }
  }
  @media (max-width: 767px) {
    .et_pb_row:has(.mdi-nocnok-search-listing) {
      width: min(100%, calc(100vw - 48px));
    }
  }
}
/* Home's mobile menu keeps three bars even when Divi's icon font fails. */
@media (max-width: 980px) {
  body.home header.et-l--header .mobile_nav .mobile_menu_bar::before {
    content: "";
    display: inline-block;
    width: 32px;
    height: 32px;
    vertical-align: top;
    background:
      linear-gradient(currentColor, currentColor) center 10px / 20px 2px no-repeat,
      linear-gradient(currentColor, currentColor) center 16px / 20px 2px no-repeat,
      linear-gradient(currentColor, currentColor) center 22px / 20px 2px no-repeat;
  }
}
/* The original results filter had no panel background and used light controls. */
.mdi-nocnok-search.custom-form-container.mdi-nocnok-search-listing {
  --mdi-control-text: #362c44;
  --mdi-field-border: #362c44;
  --mdi-field-background: #fff;
  --mdi-button-background: #b5b3cd;
  --mdi-button-text: #362c44;
  background: none;
  padding: 0;
  border-radius: 0;
  margin: 0 0 24px;
}
/* Match the published list: compact white selects and a lavender search action. */
.mdi-nocnok-search-listing.custom-form-container .search-fields {
  grid-template-columns: 1fr 1fr 1fr 1.5fr auto;
  align-items: center;
  gap: 15px;
}
.mdi-nocnok-search-listing.custom-form-container .search-fields :is(input:not([type="hidden"]), select) {
  min-height: 44px;
  padding: 8px;
  font-size: 14px;
}
.mdi-nocnok-search-listing.custom-form-container .search-button {
  grid-column: auto;
  min-width: 100px;
  min-height: 44px;
  padding: 10px 15px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: bold;
}
.mdi-nocnok-search-listing.custom-form-container .search-button:hover:not(:disabled) { background: #b5b3cd; }
.mdi-nocnok-search-listing.custom-form-container .mdi-nocnok-reset { margin-top: 4px; }
.mdi-nocnok-results { margin-top: 0; }
.mdi-nocnok-results .mdi-nocnok-count { margin: 0 0 16px; color: #362c44; font-size: 14px; }
.mdi-nocnok-results .mdi-nocnok-count span { display: inline; margin-left: .5em; font-size: inherit; }
.mdi-nocnok-results .mdi-nocnok-pagination { margin-top: 24px; color: #362c44; text-align: center; }
.mdi-nocnok-results .mdi-nocnok-pagination > p { margin: 0 0 8px; padding: 0; font-size: 14px; }
.mdi-nocnok-results .mdi-nocnok-page-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.mdi-nocnok-results .mdi-nocnok-page-links a,
.mdi-nocnok-results .mdi-nocnok-page-links [aria-current],
.mdi-nocnok-results .mdi-nocnok-recovery {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 0;
  background: #6d6780;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
}
.mdi-nocnok-results .mdi-nocnok-page-links [aria-current],
.mdi-nocnok-results .mdi-nocnok-page-links a:hover,
.mdi-nocnok-results .mdi-nocnok-recovery:hover { background: #362c44; color: #fff; }
.mdi-nocnok-results a:focus-visible { outline: 2px solid #362c44; outline-offset: 3px; }
@media (max-width: 900px) {
  .mdi-nocnok-search-listing.custom-form-container .search-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mdi-nocnok-search-listing.custom-form-container .search-button { grid-column: 1 / -1; width: 100%; }
}
@media (max-width: 767px) {
  .mdi-nocnok-results .mdi-nocnok-page-links { flex-wrap: nowrap; gap: 4px; }
  .mdi-nocnok-results .mdi-nocnok-page-links .mdi-nocnok-page-distant { display: none; }
  .mdi-nocnok-results .mdi-nocnok-page-links a,
  .mdi-nocnok-results .mdi-nocnok-page-links [aria-current] { padding-inline: 6px; white-space: nowrap; }
}
@media (max-width: 599px) {
  .mdi-nocnok-search.custom-form-container .search-fields { grid-template-columns: minmax(0, 1fr); }
  .mdi-nocnok-search.custom-form-container .search-button { width: 100%; }
  .mdi-nocnok-search.custom-form-container .search-fields :is(input:not([type="hidden"]), select) { font-size: 16px; }
}

/* AJAX feedback stays outside the original form and occupies space only while needed. */
#mdi-nocnok-results-status:empty,
#mdi-nocnok-results-retry[hidden] { display: none; }
#mdi-nocnok-results-retry {
  min-height: 44px;
  padding: 10px 16px;
  margin-bottom: 16px;
  border: 0;
  background: #6d6780;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
#mdi-nocnok-results-retry:hover { background: #362c44; }
#mdi-nocnok-results-retry:focus-visible,
#mdi-nocnok-results-region:focus-visible { outline: 2px solid #362c44; outline-offset: 3px; }
