.ibf-funnel {
  --ibf-green: #85d001;
  --ibf-light-green: #b9ec60;
  --ibf-stripe: #cff290;
  --ibf-text: #909090;
  --ibf-border: #eeeeee;
  --ibf-error: #b00020;
  --ibf-button-hover: #8b8b8b;
  --ibf-chevron-hover: #85d001;
  --ibf-success-text: #4f7d00;
  font-family: Arial, sans-serif;
  color: var(--ibf-text);
  hyphens: auto;
  overflow-wrap: break-word;
}

.ibf-funnel * {
  box-sizing: border-box;
}

.ibf-viewport {
  position: relative;
  width: 770px;
  min-height: 520px;
  margin: 20px auto 0;
  overflow: hidden;
  border: 1px solid var(--ibf-border);
  border-radius: 5px;
  background: #fff;
}

.ibf-progress-wrap {
  width: 100%;
  padding: 18px 16px 0;
}

.ibf-funnel[data-ibf-step="start"] .ibf-progress-wrap {
  display: none;
}

.ibf-progress {
  padding: 2px;
  border-radius: 5px;
  background: #fff;
}

.ibf-progress-bar {
  width: 0;
  height: 7px;
  border-radius: 4px;
  background-color: var(--ibf-light-green);
  background-image: linear-gradient(45deg, var(--ibf-stripe) 25%, transparent 25%, transparent 50%, var(--ibf-stripe) 50%, var(--ibf-stripe) 75%, transparent 75%, transparent);
  background-size: 28px 28px;
  transition: width 0.35s linear;
}

.ibf-stage {
  min-height: 385px;
  padding: 12px 18px 112px;
  animation: ibf-slide-in 0.45s ease;
}

.ibf-funnel[data-ibf-step="start"] .ibf-stage {
  padding-top: 64px;
}

@keyframes ibf-slide-in {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.ibf-headline {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  margin: 0 auto 8px;
  text-align: center;
}

.ibf-headline h2 {
  margin: 0;
  color: var(--ibf-text);
  font-family: Arial, sans-serif;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.25;
  text-wrap: balance;
}

.ibf-headline h2 .green {
  color: var(--ibf-green);
  font-weight: 600;
}

.ibf-funnel[data-ibf-step="start"] .ibf-headline {
  min-height: 31px;
  margin-bottom: 18px;
}

.ibf-funnel[data-ibf-step="start"] .ibf-headline h2 {
  font-size: 27px;
}

.ibf-back {
  display: inline-flex;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ibf-green);
  cursor: pointer;
}

.ibf-back svg {
  display: block;
  width: 22px;
  height: 22px;
}

.ibf-funnel .ibf-back:hover,
.ibf-funnel .ibf-back:focus,
.ibf-funnel .ibf-back:focus-visible {
  border-color: transparent;
  background: transparent !important;
  background-color: transparent !important;
  color: var(--ibf-chevron-hover);
  box-shadow: none;
  outline: 0;
}

.ibf-intro {
  display: block;
  margin: 0 0 48px;
  color: var(--ibf-text);
  font-size: 14px;
  text-align: center;
  text-wrap: balance;
}

.ibf-card-grid {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  max-width: 720px;
  margin: 0 auto;
}

.ibf-funnel[data-ibf-step="houseKind"] .ibf-card-grid,
.ibf-funnel[data-ibf-step="singleSubtype"] .ibf-card-grid,
.ibf-funnel[data-ibf-step="commercialSpaceQuestion"] .ibf-card-grid,
.ibf-funnel[data-ibf-step="buildable"] .ibf-card-grid,
.ibf-funnel[data-ibf-step="houseOccupancy"] .ibf-card-grid,
.ibf-funnel[data-ibf-step="flatOccupancy"] .ibf-card-grid {
  min-height: 255px;
}

.ibf-card-grid.ibf-grid-2 {
  max-width: 390px;
}

.ibf-card-grid.ibf-grid-3 {
  max-width: 565px;
}

.ibf-card {
  display: flex;
  width: 23%;
  min-height: 180px;
  padding: 0;
  overflow: hidden;
  flex-direction: column;
  border: 0;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  cursor: pointer;
  text-align: center;
  user-select: none;
}

.ibf-funnel .ibf-card:hover,
.ibf-card:active,
.ibf-card:focus,
.ibf-card:focus-visible {
  border-color: transparent;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none;
  outline: 0;
}

.ibf-card:hover .ibf-card-image,
.ibf-card:active .ibf-card-image,
.ibf-card:focus .ibf-card-image,
.ibf-card:focus-visible .ibf-card-image {
  background-color: transparent !important;
  box-shadow: none;
  outline: 0;
}

.ibf-card-image {
  width: 100%;
  height: 130px;
  border: 1px solid var(--ibf-border);
  border-radius: 5px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.ibf-card-grid.ibf-grid-2 .ibf-card,
.ibf-card-grid.ibf-grid-3 .ibf-card {
  width: 170px;
}

.ibf-card:hover .ibf-card-image {
  border-radius: 5px 5px 0 0;
}

.ibf-card-title {
  height: 42px;
  overflow: hidden;
  background: #fff;
  color: var(--ibf-text);
  font-size: 15px;
  font-weight: 500;
  line-height: 42px;
  text-wrap: balance;
}

.ibf-card:hover .ibf-card-title,
.ibf-card.is-selected .ibf-card-title,
.ibf-card:focus-visible .ibf-card-title {
  border: 1px solid var(--ibf-border);
  border-top: 0;
  border-radius: 0 0 5px 5px;
  background: var(--ibf-green);
  color: #fff;
}

.ibf-card.is-selected .ibf-card-image {
  border-color: var(--ibf-green);
  border-radius: 5px 5px 0 0;
  box-shadow: 0 0 0 2px var(--ibf-green);
}

.ibf-two-col {
  display: grid;
  grid-template-columns: 30% 1fr;
  gap: 26px;
  align-items: center;
  max-width: 650px;
  margin: 18px auto 0;
}

.ibf-two-col > div:first-child {
  display: flex;
  justify-content: center;
  width: 100%;
}

.ibf-side-image {
  display: block;
  width: min(150px, 100%);
  aspect-ratio: 1 / 1;
  max-width: 150px;
  margin: 0 auto;
  object-fit: cover;
  object-position: center;
}

.ibf-form-panel {
  text-align: left;
}

.ibf-range-row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.ibf-range-wrap {
  position: relative;
  padding-top: 40px;
}

.ibf-range-value {
  position: absolute;
  top: 0;
  left: 50%;
  min-width: 26px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--ibf-green);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  transform: translateX(-50%);
  white-space: nowrap;
}

.ibf-range {
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 99px;
  background: linear-gradient(to right, var(--ibf-green) 0 var(--ibf-range-progress, 50%), #d9d9d9 var(--ibf-range-progress, 50%) 100%);
  appearance: none;
  cursor: pointer;
}

.ibf-range::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 99px;
  background: transparent;
}

.ibf-range::-webkit-slider-thumb {
  width: 28px;
  height: 28px;
  margin-top: -10px;
  border: 0;
  border-radius: 50%;
  background: var(--ibf-green);
  appearance: none;
}

.ibf-range::-moz-range-track {
  height: 8px;
  border-radius: 99px;
  background: #d9d9d9;
}

.ibf-range::-moz-range-progress {
  height: 8px;
  border-radius: 99px;
  background: var(--ibf-green);
}

.ibf-range::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: var(--ibf-green);
}

.ibf-range-hints {
  display: flex;
  justify-content: space-between;
  margin-top: 3px;
  color: var(--ibf-text);
  font-size: 12px;
}

.ibf-alt {
  margin-top: 42px;
  color: var(--ibf-text);
  font-size: 15px;
  font-weight: 600;
}

.ibf-input-row {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.ibf-value-box {
  display: flex;
  width: 190px;
  height: 56px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--ibf-border);
  border-radius: 5px;
  background: #fff;
}

.ibf-value-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ibf-green);
  font: 24px Arial, sans-serif;
  text-align: right;
}

.ibf-text-input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ibf-green);
  font: 18px Arial, sans-serif;
}

.ibf-value-box span {
  margin-left: 8px;
  color: var(--ibf-green);
  font-size: 22px;
}

.ibf-button {
  display: inline-flex;
  min-width: 160px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 5px;
  background: var(--ibf-green);
  color: #fff;
  font-size: 17px;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  cursor: pointer;
  text-wrap: balance;
}

.ibf-input-row .ibf-button {
  width: 100%;
  margin-top: 22px;
}

.ibf-actions {
  margin-top: 22px;
  text-align: left;
}

.ibf-button:hover,
.ibf-button:focus-visible {
  background: var(--ibf-button-hover);
}

.ibf-check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ibf-address-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.ibf-address-copy {
  margin: 0 0 14px;
  color: var(--ibf-text);
  font-size: 15px;
  line-height: 1.35;
}

.ibf-text-input {
  height: 40px;
  padding: 0 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  color: var(--ibf-text);
  font-size: 16px;
}

.ibf-text-input.ibf-field-invalid {
  border-color: var(--ibf-error);
}

.ibf-address-error {
  display: none;
  margin: -2px 0 4px;
  color: var(--ibf-error);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.ibf-address-error.is-visible {
  display: block;
}

.ibf-address-submit {
  width: 100%;
  margin-top: 14px;
}

.ibf-check-list {
  display: grid;
  gap: 5px;
  color: var(--ibf-text);
  font-size: 15px;
}

.ibf-check-list label {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 6px;
  align-items: center;
  min-height: 18px;
  font-weight: 400;
  line-height: 1.15;
  cursor: pointer;
}

.ibf-check-list input[type="checkbox"],
.ibf-mail-wrap input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
  border: 1px solid #9a9a9a;
  border-radius: 2px;
  accent-color: var(--ibf-green);
  cursor: pointer;
}

.ibf-check-list input[type="checkbox"]:focus-visible,
.ibf-mail-wrap input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--ibf-green);
  outline-offset: 2px;
}

.ibf-final-copy {
  max-width: 700px;
  margin: 4px auto 12px;
  text-align: center;
}

.ibf-final-copy h2 {
  margin: 0 0 8px;
  color: var(--ibf-green);
  font-size: 30px;
  font-weight: 700;
  text-wrap: balance;
}

.ibf-final-copy p {
  margin: 0;
  color: var(--ibf-text);
  font-size: 18px;
  text-wrap: balance;
}

.ibf-mail-wrap {
  width: 100%;
  min-width: 0;
  max-width: 700px;
  margin: 0 auto;
}

.ibf-final-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 34px;
  align-items: start;
  max-width: 850px;
  margin: 0 auto;
}

.ibf-final-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 310px;
  object-fit: cover;
  object-position: center;
}

.ibf-mail-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 10px;
  text-align: left;
}

.ibf-mail-field {
  margin: 0;
}

.ibf-hp-field {
  height: 0;
  left: -9999px;
  overflow: hidden;
  position: absolute;
  width: 0;
}

.ibf-mail-wrap input[type="text"],
.ibf-mail-wrap input[type="email"],
.ibf-mail-wrap input[type="tel"] {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  color: var(--ibf-text);
  font-size: 18px;
}

.ibf-mail-wrap .ibf-mail-radio-row,
.ibf-mail-wrap .ibf-mail-company-row,
.ibf-mail-wrap .ibf-mail-full,
.ibf-mail-wrap .ibf-mail-consent-row,
.ibf-mail-wrap .ibf-mail-submit-row,
.ibf-mail-wrap .ibf-mail-response {
  grid-column: 1 / -1;
}

.ibf-mail-wrap .ibf-mail-radio-row {
  display: flex;
  gap: 26px;
  align-items: center;
  font-size: 18px;
}

.ibf-mail-wrap .ibf-mail-radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  cursor: pointer;
}

.ibf-mail-wrap input[type="radio"] {
  width: 19px;
  height: 19px;
  margin: 0;
  accent-color: var(--ibf-green);
}

.ibf-mail-response {
  display: none;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--ibf-border);
  border-radius: 5px;
  color: var(--ibf-text);
  font-size: 13px;
  line-height: 1.35;
}

.ibf-mail-response.is-error,
.ibf-mail-response.is-success {
  display: block;
}

.ibf-mail-response.is-error {
  border-color: var(--ibf-error);
  color: var(--ibf-error);
}

.ibf-mail-response.is-success {
  border-color: var(--ibf-green);
  color: var(--ibf-success-text);
}

.ibf-mail-wrap .ibf-mail-consent-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: start;
  line-height: 1.3;
  cursor: pointer;
}

.ibf-mail-wrap input.ibf-field-invalid {
  border-color: var(--ibf-error);
}

.ibf-mail-wrap input[type="checkbox"].ibf-field-invalid {
  outline: 2px solid rgba(176, 0, 32, 0.35);
  outline-offset: 2px;
}

.ibf-mail-wrap button[type="submit"] {
  width: 100%;
  height: 60px;
  border: 0;
  border-radius: 5px;
  background: var(--ibf-green);
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  cursor: pointer;
}

.ibf-mail-wrap button[type="submit"]:hover {
  background: var(--ibf-button-hover);
}

.ibf-mail-wrap button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: wait;
}

.ibf-bottomline {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: 150px 1fr 1fr;
  gap: 8px;
  align-items: center;
  min-height: 55px;
  padding: 0 18px;
  border-top: 1px solid var(--ibf-border);
  color: var(--ibf-text);
  font-size: 12px;
  font-style: italic;
}

.ibf-made-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ibf-green);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.ibf-made-icon {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
}

.ibf-footer-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.ibf-footer-check {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  color: var(--ibf-green);
}

.ibf-version {
  width: 770px;
  max-width: 100%;
  margin: 5px auto 0;
  padding-right: 5px;
  color: #b0b0b0;
  font-size: 10px;
  font-style: normal;
  line-height: 1;
  text-align: right;
}

@media (max-width: 749px) {
  .ibf-viewport {
    width: 100%;
    min-height: 750px;
    margin: 0 auto;
    border: 0;
  }

  .ibf-stage {
    padding: 12px 14px 28px;
  }

  .ibf-funnel[data-ibf-step="start"] .ibf-stage {
    padding-top: 64px;
  }

  .ibf-headline h2 {
    font-size: 25px;
  }

  .ibf-headline {
    padding: 0 34px;
  }

  .ibf-back {
    position: absolute;
    top: 0;
    left: 0;
    margin-top: 0;
  }

  .ibf-card-grid,
  .ibf-card-grid.ibf-grid-2,
  .ibf-card-grid.ibf-grid-3 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
    width: 100%;
    max-width: 100%;
  }

  .ibf-card,
  .ibf-card-grid.ibf-grid-2 .ibf-card,
  .ibf-card-grid.ibf-grid-3 .ibf-card {
    width: 100%;
    min-width: 0;
    min-height: 175px;
  }

  .ibf-two-col {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 8px;
    justify-items: center;
  }

  .ibf-two-col > div,
  .ibf-form-panel {
    width: 100%;
  }

  .ibf-form-panel {
    max-width: 360px;
  }

  .ibf-value-box {
    width: 100%;
  }

  .ibf-side-image {
    max-width: min(150px, 100%);
    max-height: 115px;
  }

  .ibf-address-grid,
  .ibf-check-grid,
  .ibf-mail-form,
  .ibf-final-layout {
    grid-template-columns: 1fr;
  }

  .ibf-final-image {
    display: none;
  }

  .ibf-bottomline {
    display: none;
  }
}
