/* Pearstec Flow Builder Basic frontend - sleek light style */

.scfb-form-wrapper,
.scfb-form-wrapper * {
  box-sizing: border-box;
}

.scfb-form-wrapper {
  width: min(100%, 610px);
  margin: 34px auto;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #2b3442;
}

.scfb-form-wrapper .scfb-tabs-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px;
  margin: 0 0 14px;
  background: #ffffff !important;
  border: 1px solid #ebeff5 !important;
  border-radius: 999px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.scfb-form-wrapper button.scfb-tab-btn {
  flex: 1;
  min-height: 50px;
  margin: 0 !important;
  padding: 12px 14px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #7b8798 !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.1;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

.scfb-form-wrapper button.scfb-tab-btn:hover {
  background: #f5f8fc !important;
  color: #2f3746 !important;
}

.scfb-form-wrapper button.scfb-tab-btn.active {
  background: #e7edf4 !important;
  color: #222b38 !important;
}

.scfb-form-wrapper .scfb-form-container {
  width: 100%;
  padding: 26px 24px 24px;
  background: #ffffff;
  border: 1px solid #ebeff5;
  border-radius: 28px;
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.1);
}

.scfb-tab-content,
.scfb-step-content {
  display: none;
}

.scfb-tab-content.active,
.scfb-step-content.active {
  display: block;
}

.scfb-form-wrapper .scfb-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 8px;
  color: #7b8798;
  font-size: 13px;
  font-weight: 600;
}

.scfb-form-wrapper .scfb-progress-track {
  width: 100%;
  height: 4px;
  margin: 0 0 22px;
  background: #edf1f5;
  border-radius: 999px;
  overflow: hidden;
}

.scfb-form-wrapper .scfb-progress-track span {
  display: block;
  height: 100%;
  background: #1f2329;
  border-radius: 999px;
}

.scfb-form-wrapper .scfb-step-title {
  margin: 0 0 8px;
  color: #141a24;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.scfb-form-wrapper .scfb-step-subtitle {
  margin: 0 0 22px;
  color: #8692a6;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

.scfb-form-wrapper .scfb-fields-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.scfb-form-wrapper .scfb-form-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.scfb-col-full { width: 100%; }
.scfb-col-half { width: calc(50% - 9px); }
.scfb-col-third { width: calc(33.333% - 12px); }

.scfb-form-wrapper .scfb-form-label {
  margin: 0;
  color: #2f3746;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.scfb-form-wrapper .scfb-req {
  color: #f04438;
}

.scfb-form-wrapper .scfb-form-control,
.scfb-form-wrapper input.scfb-form-control,
.scfb-form-wrapper select.scfb-form-control,
.scfb-form-wrapper textarea.scfb-form-control {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid #dbe3ec !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #2a3441 !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.4;
  letter-spacing: 0 !important;
  box-shadow: none !important;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.scfb-form-wrapper textarea.scfb-form-control {
  min-height: 112px;
  border-radius: 22px !important;
  resize: vertical;
}

.scfb-form-wrapper .scfb-form-control::placeholder {
  color: #a0acbd;
  opacity: 1;
}

.scfb-form-wrapper .scfb-form-control:focus,
.scfb-form-wrapper .scfb-postcode-input:focus {
  border-color: #c8d4e3 !important;
  box-shadow: 0 0 0 4px rgba(209, 224, 244, 0.65) !important;
}

.scfb-form-wrapper .scfb-invalid,
.scfb-form-wrapper .scfb-invalid:focus {
  border-color: #f04438 !important;
  background: #fffafa !important;
  box-shadow: 0 0 0 4px rgba(240, 68, 56, 0.1) !important;
}

.scfb-form-wrapper .scfb-postcode-error,
.scfb-form-wrapper .scfb-error-message {
  margin-top: 2px;
  color: #d92d20;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
}

.scfb-form-wrapper .scfb-radio-group,
.scfb-form-wrapper .scfb-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.scfb-form-wrapper .scfb-radio-label,
.scfb-form-wrapper .scfb-checkbox-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 18px;
  border: 1px solid #dbe3ec !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #667085 !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  box-shadow: none !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

.scfb-form-wrapper .scfb-radio-label:hover,
.scfb-form-wrapper .scfb-checkbox-label:hover {
  background: #f8fbff !important;
  color: #243041 !important;
}

.scfb-form-wrapper .scfb-radio-label input,
.scfb-form-wrapper .scfb-checkbox-label input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.scfb-form-wrapper .scfb-radio-label.scfb-pill-checked,
.scfb-form-wrapper .scfb-checkbox-label.scfb-pill-checked,
.scfb-form-wrapper .scfb-radio-label:has(input:checked),
.scfb-form-wrapper .scfb-checkbox-label:has(input:checked) {
  background: #1f2329 !important;
  border-color: #1f2329 !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.15) !important;
}

.scfb-form-wrapper .scfb-help-text {
  color: #95a1b2;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}

.scfb-form-wrapper .scfb-step-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #edf1f5;
}

.scfb-form-wrapper .scfb-nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 1;
}

.scfb-form-wrapper .scfb-btn,
.scfb-form-wrapper button.scfb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 24px !important;
  border-radius: 999px !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.scfb-form-wrapper .scfb-btn:hover {
  transform: translateY(-1px);
}

.scfb-form-wrapper .scfb-btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
}

.scfb-form-wrapper .scfb-btn-reset {
  min-width: 112px;
  border: 1px solid #dbe3ec !important;
  background: #ffffff !important;
  color: #6f7c90 !important;
  box-shadow: none !important;
}

.scfb-form-wrapper .scfb-btn-reset:hover {
  background: #f8fbff !important;
  color: #334155 !important;
}

.scfb-form-wrapper .scfb-btn-prev {
  min-width: 112px;
  border: 1px solid #dbe3ec !important;
  background: #ffffff !important;
  color: #243041 !important;
  box-shadow: none !important;
}

.scfb-form-wrapper .scfb-btn-prev:hover {
  background: #f8fbff !important;
}

.scfb-form-wrapper .scfb-btn-next,
.scfb-form-wrapper .scfb-btn-submit {
  flex: 1;
  min-width: 220px;
  border: 1px solid #5b8def !important;
  background: #5b8def !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.scfb-form-wrapper .scfb-btn-next:hover,
.scfb-form-wrapper .scfb-btn-submit:hover {
  background: #4b7ee6 !important;
  border-color: #4b7ee6 !important;
}

.scfb-form-wrapper .scfb-form-response {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  line-height: 1.5;
}

.scfb-form-wrapper .scfb-form-response.success {
  background: #ecfdf3;
  color: #027a48;
  border: 1px solid #abefc6;
}

.scfb-form-wrapper .scfb-form-response.error {
  background: #fef3f2;
  color: #b42318;
  border: 1px solid #fecdca;
}

.scfb-form-wrapper .scfb-counter-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 8px 12px 8px 18px;
  border: 1px solid #dbe3ec;
  border-radius: 999px;
  background: #ffffff;
}

.scfb-form-wrapper .scfb-counter-label {
  color: #2f3746;
  font-size: 14px;
  font-weight: 600;
}

.scfb-form-wrapper .scfb-counter-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scfb-form-wrapper .scfb-btn-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid #dbe3ec;
  border-radius: 50%;
  background: #f8fbff;
  color: #243041;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.scfb-form-wrapper .scfb-btn-count:hover {
  background: #edf4fe;
}

.scfb-form-wrapper .scfb-counter-wrapper input[type="number"] {
  width: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #243041;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}

.scfb-form-wrapper .scfb-counter-wrapper input[type="number"]::-webkit-outer-spin-button,
.scfb-form-wrapper .scfb-counter-wrapper input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.scfb-form-wrapper .scfb-html-content {
  color: #667085;
  font-size: 14px;
  line-height: 1.55;
}

.scfb-form-wrapper .scfb-section-title {
  width: 100%;
  margin: 8px 0 0;
  color: #1f2937;
  font-size: 16px;
  font-weight: 600;
}

.scfb-form-wrapper .scfb-divider {
  width: 100%;
  height: 1px;
  margin: 6px 0;
  border: 0;
  background: #edf1f5;
}

@media (max-width: 640px) {
  .scfb-form-wrapper {
    width: calc(100% - 22px);
    margin: 20px auto;
  }

  .scfb-form-wrapper .scfb-form-container {
    padding: 22px 18px 20px;
    border-radius: 24px;
  }

  .scfb-col-half,
  .scfb-col-third {
    width: 100%;
  }

  .scfb-form-wrapper .scfb-step-navigation {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .scfb-form-wrapper .scfb-nav-actions {
    width: 100%;
  }

  .scfb-form-wrapper .scfb-btn-prev,
  .scfb-form-wrapper .scfb-btn-next,
  .scfb-form-wrapper .scfb-btn-submit,
  .scfb-form-wrapper .scfb-btn-reset {
    min-width: 0;
    width: 100%;
  }

  .scfb-form-wrapper .scfb-tab-btn {
    min-height: 46px;
    font-size: 14px !important;
  }
}

.scfb-form-wrapper .scfb-recaptcha-wrap {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.scfb-form-wrapper .scfb-recaptcha-wrap .g-recaptcha {
  max-width: 100%;
}
