.eberhardt-form-shell,
.eberhardt-form {
  width: 100%;
}

.eberhardt-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.eberhardt-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
}

.eberhardt-form label > span:first-child,
.eberhardt-form fieldset legend {
  font-weight: 500;
  color: #212121;
}

.eberhardt-form input,
.eberhardt-form select,
.eberhardt-form textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid #d7d7d7;
  border-radius: 3px;
  background: #fff;
  color: #212121;
  font: inherit;
  padding: 11px 12px;
  box-sizing: border-box;
}

.eberhardt-form textarea {
  min-height: 140px;
  resize: vertical;
}

.eberhardt-form input:focus,
.eberhardt-form select:focus,
.eberhardt-form textarea:focus {
  outline: none;
  border-color: #af2120;
  box-shadow: 0 0 0 2px rgba(175, 33, 32, 0.18);
}

.eberhardt-form-wide {
  grid-column: 1 / -1;
}

.eberhardt-form-check {
  display: grid !important;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 10px;
  line-height: 1.35;
}

.eberhardt-form-check input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.eberhardt-form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.eberhardt-form button[type="submit"] {
  border: 0;
  border-radius: 3px;
  background: #af2120;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  padding: 13px 28px;
}

.eberhardt-form button[type="submit"]:disabled {
  cursor: wait;
  opacity: 0.65;
}

.eberhardt-form-status {
  margin: 0;
  min-height: 1.4em;
  font-size: 16px;
}

.eberhardt-form-status.is-success {
  color: #166534;
}

.eberhardt-form-status.is-error {
  color: #af2120;
}

.eberhardt-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.eberhardt-funnel {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 18px rgba(225, 225, 225, 0.75);
  padding: 28px;
  font-family: Montserrat, Roboto, sans-serif;
}

.eberhardt-funnel-stage {
  display: none;
  min-height: 280px;
}

.eberhardt-funnel-stage.is-active {
  display: block;
}

.eberhardt-funnel-stage h3 {
  margin: 0 0 6px;
  color: #333;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
}

.eberhardt-funnel-stage > p {
  margin: 0 0 24px;
  color: #333;
  font-size: 20px;
  font-weight: 300;
}

.eberhardt-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.eberhardt-form-loading {
  grid-column: 1 / -1;
  margin: 0;
  color: #333;
}

.eberhardt-choice-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.eberhardt-choice-card {
  position: relative;
  min-height: 112px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 5px 5px 15px rgba(225, 225, 225, 1);
  color: #333;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.eberhardt-choice-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 14px rgba(175, 33, 32, 0.35), 5px 5px 15px rgba(225, 225, 225, 1);
}

.eberhardt-choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.eberhardt-choice-card span {
  color: inherit;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
}

.eberhardt-choice-card .eberhardt-job-title-main {
  font-weight: 700;
}

.eberhardt-choice-card .eberhardt-job-title-suffix {
  font-weight: 400;
}

.eberhardt-choice-card:has(input:checked),
.eberhardt-choice-card.is-selected {
  background: #af2120;
  color: #fff;
  box-shadow: 0 0 14px rgba(175, 33, 32, 0.45);
}

.eberhardt-funnel-bar {
  display: grid;
  grid-template-columns: 52px 1fr 52px auto;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.eberhardt-funnel-progress {
  height: 12px;
  border-radius: 999px;
  background: #e1e1e1;
  overflow: hidden;
}

.eberhardt-funnel-progress span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: #af2120;
  transition: width 0.2s ease;
}

.eberhardt-funnel-back,
.eberhardt-funnel-next {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 10px;
  background: #af2120;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  padding: 0;
  text-align: center;
}

.eberhardt-funnel-back:disabled,
.eberhardt-funnel-next:disabled {
  background: #e1e1e1;
  cursor: default;
}

.eberhardt-funnel-submit {
  display: none;
}

.eberhardt-funnel.is-last-step .eberhardt-funnel-next {
  display: none;
}

.eberhardt-funnel.is-last-step .eberhardt-funnel-submit {
  display: inline-flex;
  justify-content: center;
  grid-column: 1 / -1;
  justify-self: center;
  min-width: 180px;
}

@media (max-width: 767px) {
  .eberhardt-form-grid {
    grid-template-columns: 1fr;
  }

  .eberhardt-form-actions {
    align-items: stretch;
  }

  .eberhardt-form button[type="submit"] {
    width: 100%;
  }

  .eberhardt-funnel {
    padding: 20px;
  }

  .eberhardt-funnel-stage h3 {
    font-size: 20px;
    line-height: 1.35;
  }

  .eberhardt-funnel-stage > p {
    font-size: 16px;
  }

  .eberhardt-choice-grid,
  .eberhardt-choice-grid-3 {
    grid-template-columns: 1fr;
  }

  .eberhardt-choice-card {
    min-height: 72px;
  }

  .eberhardt-funnel-bar {
    grid-template-columns: 48px 1fr 48px;
  }

  .eberhardt-funnel-submit {
    grid-column: 1 / -1;
    justify-self: stretch;
  }
}
