.subsector-tabs-widget {
  --body-font-family: "Manrope", sans-serif;
  --opacity-animation-duration: 0.1s;
  --height-animation-duration: 0.2s;

  font-family: var(--body-font-family);
}

.subsector-tabs-widget .step {
  display: none;
}

.subsector-tabs-widget .step.active {
  display: flex;
  width: 100%;
}

.subsector-tabs-widget .step-one {
  flex-direction: row;
  gap: 56px;
}
.subsector-tabs-widget .image-container {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  position: relative;
}
.subsector-tabs-widget .step-one img {
  object-fit: cover;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.5s ease-in-out;
}
.subsector-tabs-widget .step-one img.active {
  opacity: 1;
}
.subsector-tabs-widget .tabs-and-content {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.subsector-tabs-widget .tab-content {
  margin-top: 20px;
  margin-bottom: 20px;
}
.subsector-tabs-widget .tab-content p {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  overflow: hidden;
  margin: 0;
  padding: 0;
}
.subsector-tabs-widget .tab-content .height-animator {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows var(--height-animation-duration) ease-in-out,
    opacity var(--opacity-animation-duration) ease-in-out;
  overflow: hidden;
}
.subsector-tabs-widget .tab-content .height-animator.active {
  grid-template-rows: 1fr;
  opacity: 1;
  transition: grid-template-rows var(--height-animation-duration) ease-in-out,
    opacity var(--opacity-animation-duration) var(--height-animation-duration)
      ease-in-out;
}
.subsector-tabs-widget .tabs {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.subsector-tabs-widget .tabs button {
  padding: 8px 20px;
  border: none;
  background-color: #f7f7f7;
  font-size: 20px;
  font-weight: 600;
  color: #272121;
  border-radius: 30px;
  cursor: pointer;
  font-family: var(--body-font-family);
  text-transform: none;
}
.subsector-tabs-widget .tabs button:focus {
  outline: none;
}
.subsector-tabs-widget .tabs button.active {
  background-color: #e93735;
  color: white;
}
.subsector-tabs-widget .links a {
  font-size: 16px;
  font-weight: 600;
  color: #e93735;
  text-decoration: none;
  display: none;
}
.subsector-tabs-widget .links a::after {
  content: "";
  display: inline-block;
  width: 15px;
  height: 10px;
  background-image: url("../images/arrow-long-right-red.svg");
  background-repeat: no-repeat;
  background-size: contain;
  margin-left: 6px;
}
.subsector-tabs-widget .links a.active {
  display: inline-block;
}
.subsector-tabs-widget .border {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, #bcbcbc, transparent);
  background-size: 100% 1px;
  background-position: center;
  background-repeat: no-repeat;
  flex: 1;
}
.question-list {
  display: none;
}
.question-list.active {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.subsector-tabs-widget input[type="submit"] {
  background-color: #e93735;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 40px;
  color: white;
  border: none;
  border-radius: 0px;
  cursor: pointer;
}

.subsector-tabs-widget input[type="submit"]:disabled {
  background-color: #ccc;
  cursor: unset;
}

form.solve-form-first {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: stretch;
}

p.solve-form-title {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.5;
  margin: 0;
}
.select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #d3cfcf;
  width: 100%;
  padding: 0rem 1rem;
  font-size: 16px;
}
.select-wrapper span.label {
  color: #777;
  white-space: nowrap;
  margin-right: 1rem;
  position: relative;
}
.select-wrapper span.label::after {
  content: "";
  width: 1px;
  height: 100%;
  background-color: #d3cfcf;
  position: absolute;
  right: -16px;
  top: 0;
}
.divider {
  width: 1px;
  height: 24px;
  background-color: #d0d0d0;
  margin-right: 1rem;
}
.select-wrapper select {
  border: none;
  outline: none;
  flex: 1;
  background: transparent;
  appearance: none;
  padding-right: 2rem;
  cursor: pointer;
}
.select-wrapper::after {
  content: "";
  position: absolute;
  right: 1rem;
  width: 8px;
  height: 4px;
  pointer-events: none;
  background-image: url("../images/arrow-down-black-select.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.select-wrapper select:focus {
  outline: none;
}

.step-two {
  flex-direction: column;
  background-color: #f6f6f6;
  padding: 80px;
}
.reason-container p {
  font-size: 18px;
  margin-bottom: 20px;
}
.hire-reason {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
  padding-left: 30px;
  position: relative;
}
.hire-reason::before {
  position: absolute;
  content: "";
  top: 11px;
  left: 0;
  height: 8px;
  width: 12px;
  background-image: url(../images/checkmark-red.svg);
  background-repeat: no-repeat;
  background-size: contain;
}
.reason-container {
  min-width: 275px;
  padding-right: 40px;
}

.form-container {
  display: flex;
  flex-direction: column;
  padding-left: 40px;
  position: relative;
}

.form-container p:first-child {
  font-size: 18px;
  margin-bottom: 20px;
}

.form-container:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    0deg,
    transparent 0% 20%,
    #bcbcbc 50%,
    transparent 80% 100%
  );
}
.back-container {
  display: flex;
  /* justify-content: flex-start; */
  margin-bottom: 40px;
}

.back-container .solve-form-back {
  color: #e93735;
}
.form-container .wpcf7-not-valid-tip {
  color: #dc3232;
  font-size: 12px;
  font-weight: normal;
  display: block;
  background-color: transparent;
  transform: translateY(-7px);
}
.back-container .solve-form-back:before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 17px;
  background-image: url(../images/arrow-back-red.svg);
  background-size: contain;
  background-repeat: no-repeat;
  transform: translateY(3px);
}

.message-and-form-container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

.form-container {
  align-items: flex-start;
}
/* Form Grid Layout */
.form-container form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
}

.full-width {
  grid-column: span 2;
}

.form-container input,
.form-container textarea {
  border: 1px solid #d3cfcf;
}

.form-container span.wpcf7-form-control-wrap:has(.full-width),
.form-container form span[data-name="your-message"] {
  grid-column: span 2;
}

.form-container .wpcf7-list-item {
  margin: 0;
}

/* Responsive form grid */
@media (max-width: 768px) {
  .form-container form {
    grid-template-columns: 1fr;
  }
  .full-width {
    grid-column: span 1;
  }
  .form-container span.wpcf7-form-control-wrap:has(.full-width),
  .form-container form span[data-name="your-message"] {
    grid-column: span 1;
  }
  .subsector-tabs-widget .step-one {
    flex-direction: column;
  }
  .subsector-tabs-widget .links {
    margin-bottom: 20px;
  }
  .subsector-tabs-widget .border {
    min-height: 1px;
    margin-bottom: 20px;
  }
  .subsector-tabs-widget .step-two {
    padding: 10px;
  }
  .subsector-tabs-widget .message-and-form-container {
    flex-direction: column;
  }
  .subsector-tabs-widget .form-container {
    padding-left: 0;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
