.tbf-shell {
  padding: 24px;
}

.tbf-card {
  max-width: 810px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
}

.tbf-form {
  min-height: 660px;
  display: flex;
  flex-direction: column;
}

.tbf-progress {
  height: 6px;
  background: transparent;
}

.tbf-progress-bar {
  height: 100%;
  width: 0%;
  background: #f95a10;
  transition: width .25s ease;
}

.tbf-step-area {
  flex: 1;
  position: relative;
  padding: 56px 70px 30px;
}

.tbf-step,
.tbf-success-screen {
  display: none;
}

.tbf-step.active,
.tbf-success-screen.active {
  display: block;
}

.tbf-title {
  margin: 24px 0 40px;
  text-align: center;
  color: #1f2a37;
  font-size: 34px;
  line-height: 1.25;
  font-weight: 500;
}

.tbf-options {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.tbf-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border: 1px solid #c8c8c8;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  transition: .2s ease;
}

.tbf-option:hover,
.tbf-option.is-active {
  border-color: #5ca3ff;
  background: #dcebff;
}

/* .tbf-option input {
  display: none;
} */

.tbf-box {
  width: 24px;
  height: 24px;
  border: 2px solid #8f8f8f;
  background: #fff;
  position: relative;
  flex: 0 0 24px;
}

.tbf-option input:checked + .tbf-box {
  border-color: #5ca3ff;
}

.tbf-option input:checked + .tbf-box::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: #5ca3ff;
}

.tbf-option-text {
  color: #2a2a2a;
  font-size: 18px;
  line-height: 1.5;
}

.tbf-field-wrap {
  margin-bottom: 22px;
}

.tbf-input {
  width: 100%;
  min-height: 24px;
  border: 1px solid #c8c8c8;
  border-radius: 4px;
  background: #fff;
  padding: 16px 22px;
  font-size: 18px;
  color: #333;
}

.tbf-input::placeholder,
.tbf-textarea::placeholder {
  color: #8d6e53;
}

.tbf-textarea {
  min-height: 160px;
  resize: vertical;
}

.tbf-error {
  min-height: 22px;
  margin-top: 12px;
  color: #c62828;
  font-size: 14px;
}

.tbf-success-text {
  font-size: 18px;
  text-align: center;
  color: #444;
}

.tbf-footer {
  display: flex;
  width: 100%;
  margin-top: 40px;
}

.tbf-footer button {
  flex: 1;
  border: none;
  height: 90px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 0 20px;
}

/* BACK */
.tbf-btn-back {
  background: #e0e0e0;
  color: #1d2d44;
  border-radius: 12px;
}

/* SUBMIT / NEXT */
.tbf-btn-submit,
.tbf-btn-next {
  background: #ff5a0a;
  color: #fff;
  border-radius: 12px;
}

/* Hover effect */
.tbf-back:hover {
  background: #d5d5d5;
}

.tbf-submit:hover,
.tbf-next:hover {
  background: #e14e05;
}

@media (max-width: 768px) {
  .tbf-shell {
    padding: 12px;
  }

  .tbf-card {
    max-width: 100%;
    border-radius: 14px;
  }

  .tbf-form {
    min-height: auto;
  }

  .tbf-step-area {
    padding: 28px 18px 20px;
  }

  .tbf-title {
    margin: 10px 0 24px;
    font-size: 26px;
    line-height: 1.3;
  }

  .tbf-options {
    gap: 10px;
  }

  .tbf-option {
    align-items: flex-start;
    padding: 14px 14px;
    gap: 12px;
  }

  .tbf-box {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    margin-top: 2px;
  }

  .tbf-option input:checked + .tbf-box::after {
    inset: 4px;
  }

  .tbf-option-text {
    font-size: 16px;
    line-height: 1.45;
  }

  .tbf-field-wrap {
    margin-bottom: 16px;
    overflow: hidden;
  }

  .tbf-input,
  .tbf-textarea {
    padding: 14px 10px;
    font-size: 16px;
    border-radius: 4px;
  }

  .tbf-textarea {
    min-height: 120px;
  }

  .tbf-error {
    margin-top: 10px;
    font-size: 13px;
  }

  .tbf-success-text {
    font-size: 16px;
    line-height: 1.5;
  }

  .tbf-footer {
    margin-top: 24px;
    flex-direction: column;
    gap: 0;
  }

  .tbf-footer button {
    margin: auto;
    width: 80%;
    height: 168px;
    font-size: 16px;
    padding: 20px;
  }
  .tbf-btn-next {
    height: 90px;
  }
  .tbf-back {
    order: 1;
  }

  .tbf-btn-next,
  .tbf-btn-submit {
    order: 2;
  }
}