.sp-sf__tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.sp-sf__tab {
  padding: 32px;
  border-radius: 24px;
  border: 1px solid #E7E7E7;
  background: linear-gradient(180deg, #F1F3F4 0%, rgba(255, 255, 255, 0.00) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #1A2E3F;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.8em;
}

.sp-sf__tab.is-active {
  border: 2px solid #467EF8;
}

.sp-sf__grid {
  display: grid;
  grid-template-columns: 1.623fr 1fr;
  gap: 20px;
}

.sp-sf__desc {
  margin: 40px 0;
  color: #3C4C59;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.8em;
}

.instant-grid {
  grid-template-columns: 1fr 1.623fr;
}

.sp-sf__instant .sp-cf7-last-row .wpcf7-submit {
  width: unset;
}

.sp-sf__instant .sp-cf7-last-row .sp-btn {
  width: calc(50% - 6px);
}

.instant-grid .sp-sf__left {
  display: flex;
  flex-direction: column;
}

.instant-grid .sp-sf__left .sp-sf__instant-note {
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid #E7E7E7;
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
}

.instant-grid .sp-sf__left .sp-sf__instant-note div+div {
  margin-top: 0.5em;
}

@media (max-width: 900px) {
  .sp-sf__grid {
    grid-template-columns: 1fr;
  }
}

.sp-sf__dynamic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 20px;
}

.instant-grid .sp-sf__dynamic {
  display: block;
}

@media (max-width: 700px) {
  .sp-sf__dynamic {
    grid-template-columns: 1fr;
  }
}

.sp-sf__label {
  color: #1A2E3F;
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
  margin-bottom: 12px;
}

.sp-sf__select,
input.sp-sf__input,
.wpcf7-form-control {
  width: 100%;
  padding: 12px 20px !important;
  border: 1px solid #e7e7e7 !important;
  border-radius: 52px !important;
  background: #fff;
  height: 52px;
  color: #1A2E3F;
  font-family: 'Manrope';
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
}

textarea.wpcf7-form-control {
  height: 160px;
  border-radius: 12px !important;
}

.sp-cf7-grid p {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.sp-cf7-grid {
  margin-bottom: 20px;
}

.sp-sf__hr {
  height: 1px;
  background: #eee;
  margin: 40px 0;
}

.sp-sf__row {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}

.sp-sf__row:last-child {
  margin-bottom: 0;
}

.sp-sf__row--2 {
  grid-template-columns: 1fr 1fr;
}


.sp-sf__radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 14px;
}

.sp-sf__left,
.sp-sf__right {
  border-radius: 12px;
  border: 1px solid #A5CDF6;
  background: #FFF;
  padding: 40px;
}

.sp-sf__summary {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sp-sf__summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 14px 0;
}

.sp-sf__summary-label {
  font-size: 12px;
  margin-bottom: 6px;
}

.sp-sf__summary-value {
  color: #467EF8;
  font-size: 28px;
  font-weight: 500;
  line-height: 40px;
}

.sp-sf__pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 14px;
}

.sp-sf__pill {
  border-radius: 999px;
  border: 1px solid #467EF8;
  background: #FFF;
  padding: 8px 16px;
  font-size: 14px;
  color: #3C4C59;
}

.sp-sf__list {
  margin: 8px 0 0;
  padding-left: 18px;
}

.sp-sf__ref {
  margin-top: 14px;
  border-radius: 8px;
  border: 1px dashed #467EF8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  gap: 8px;
  font-size: 12px;
}

span[data-sp-ref],
span[data-sp-ref-instant] {
  color: #1A2E3F;
  font-size: 14px;
  font-weight: 600;
}

.sp-instant-title {
  /* display: none;
}

.instant-grid .sp-instant-title { */
  display: block;
  color: #1A2E3F;
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
}

.sp-sf__actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.sp-sf__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid #ddd;
  text-decoration: none;
  background: #fff;
}

.sp-sf__btn--primary {
  border-color: #2f6bff;
}

.sp-sf__btn--secondary {
  border-color: #f2c94c;
}

.sp-modal {
  display: none;
}

.sp-modal.is-open {
  display: block;
}

.sp-modal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  z-index: 9990;
}

.sp-modal__panel {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(670px, calc(100% - 32px));
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  z-index: 9991;
}

.sp-modal__close {
  position: absolute;
  right: 40px;
  top: 30px;
  border: 0;
  background: transparent;
  font-size: 44px;
  line-height: 1em;
  cursor: pointer;
  padding: 0;

}

.sp-modal__title {
  color: #1A2E3F;
  font-size: 28px;
  font-weight: 500;
  line-height: 40px;
  margin-bottom: 40px;
}

html.sp-modal-open {
  overflow: hidden;
}

.sp-sf__field .sp-sf__label {
  display: none;
}

.sp-cf7-last-row {
  margin-top: 40px;
}

.sp-cf7-last-row p {
  display: grid;
  grid-template-columns: 128px 1fr;
  align-items: center;
  gap: 20px;
}

.sp-cf7-last-row p span {
  color: #467EF8;
  font-size: 18px;
  font-weight: 400;
  line-height: 32px;
}

.sp-cf7-last-row p .wpcf7-spinner {
  display: none;
}

.sp-sf__common[data-sp-common-radios] {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.sp-sf__row--3 {
  display: grid;
  grid-template-columns: 1.75fr 1fr 1fr;
  margin-bottom: 28px !important;
}

.sp-sf__assumptions .sp-sf__summary-label,
.sp-sf__summary-title {
  color: #1A2E3F;
  font-size: 18px;
  font-weight: 700;
  line-height: 32px;
}

.sp-sf__summary-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

button.sp-btn {
  border: none;
  box-shadow: none;
  cursor: pointer;
}

.sp-sf__assumptions .sp-sf__summary-label {}

@media (max-width: 700px) {

  .sp-sf__row--2,
  .sp-sf__common[data-sp-common-radios],
  .sp-cf7-grid p,
  .sp-cf7-last-row p {
    grid-template-columns: 1fr;
  }

  .sp-sf__row--3 {
    grid-template-columns: 1fr !important;
  }

  .sp-sf__left,
  .sp-sf__right {
    padding: 20px;
  }

  .sp-modal__panel {
    padding: 20px;
  }

  .sp-modal__close {
    right: 20px;
    top: 20px;
  }

  .sp-cf7-last-row {
    margin-top: 20px;
  }

  .sp-cf7-last-row p {
    text-align: center;
  }

  .sp-sf__instant .sp-cf7-last-row .sp-btn {
    width: 100%;
  }
}

.sp-sf__radio span {
  font-size: 14px;
}

.sp-sf__radio {
  position: relative;
}

.sp-sf__radio:before {
  content: '';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  min-width: 16px;
  height: 16px;
  border-radius: 16px;
  border: 1px solid #467EF8;
}

.sp-sf__radio:has(:checked):after {
  content: '';
  display: block;
  width: 8px;
  min-width: 8px;
  height: 8px;
  border-radius: 16px;
  background: #467EF8;
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
}

.sp-sf__radio input {
  display: none;
}

.sp-sf__common[hidden] {
  display: none;
}

.sp-sf__instant .sp-cf7-last-row p {
  display: contents;
}