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

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

.solve-form-first {
  width: 100%;
}

.solve-form select,
.solve-form ::picker(select) {
  appearance: base-select;
}

.solve-form h3 {
  font-size: 20px;
  font-weight: 500;
  color: #272121;
  margin-bottom: 48px;
}

/* Tabs Navigation */
.step {
  display: none; /* Hide all steps by default */
}

.step.active {
  display: block; /* Show active step */
  animation: fadeIn 0.5s ease;
}

/* Tabbed Interface Styles */
.tabbed-interface {
  width: 100%;
  margin: 0 auto;
  font-family: inherit;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tab {
  cursor: pointer;
  transition: all 0.3s ease;
  margin-right: 60px;
  font-weight: 600;
  line-height: 34px;
  font-size: 18px;
}

.tab:hover {
  color: #e93735;
}

.tab.active {
  border-bottom: 4px solid #e93735;
  color: #e93735;
}

/* Tab Contents */
.tab-contents {
  width: 100%;
}

.tab-content {
  display: none;
  padding: 0px;
}

.tab-content.active {
  display: flex;
  animation: fadeIn 0.5s ease;
}

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

.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;
}
.solve-form .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;
}

/* Responsive form grid */
@media (max-width: 768px) {
  .form-container form {
    grid-template-columns: 1fr;
  }
  .full-width {
    grid-column: span 1;
  }
  .form-container form span[data-name="your-message"] {
    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;
  }
  .solve-form .step-two {
    padding: 10px;
  }
  .solve-form .message-and-form-container {
    flex-direction: column;
  }
  .solve-form .form-container {
    padding-left: 0;
  }
  .solve-form .form-container:before {
    display: none;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .tabs {
    flex-direction: column;
    border-bottom: none;
  }

  .tab {
    padding: 8px 20px;
    border: none;
    background-color: #f7f7f7;
    font-size: 20px;
    font-weight: 600;
    color: #272121;
    border-radius: 30px;
    cursor: pointer;
    text-transform: none;
    margin-right: 0;
    margin-bottom: 5px;
    text-align: center;
  }

  .tab.active {
    border-bottom: 1px solid #ddd;
    color: white;
    background-color: #e93735;
  }

  .tab-content {
    border: 1px solid #ddd;
    border-radius: 5px;
  }
}
