.tbjb-wrap { max-width: 980px; margin: 0 auto; padding: 20px 16px; }
.tbjb-page-title { text-align:center; font-size: 44px; margin: 10px 0 18px; }

.tbjb-steps { display:flex; gap:18px; justify-content:center; border-bottom:1px solid #eee; }
.tbjb-step { background:none; border:none; padding:10px 12px; cursor:default; pointer-events:none; color:#666; border-bottom:2px solid transparent; }
.tbjb-step.is-active { color:#52b7b5; border-bottom-color:#52b7b5; font-weight:600; }

.tbjb-form { margin-top: 26px; }
.tbjb-panel { display:none; }
.tbjb-panel.is-active { display:block; }

.tbjb-title { font-size: 34px; margin: 8px 0; }
.tbjb-intro { color:#777; margin-bottom: 18px; }

.tbjb-grid { display:grid; grid-template-columns: 1fr 1fr; gap:18px 22px; }
.tbjb-grid--thirds { grid-template-columns: repeat(3, 1fr); }
.tbjb-field { position: relative; display:flex; flex-direction:column; gap:8px; }
.tbjb-field-full { grid-column: 1 / -1; }
.tbjb-field-third { grid-column: span 1; }
.tbjb-field-hint { font-size: 13px; color: #666; margin: 0 0 4px; line-height: 1.45; }

.tbjb-field input[type="text"],
.tbjb-field input[type="email"],
.tbjb-field input[type="url"],
.tbjb-field input[type="number"],
.tbjb-field select,
.tbjb-field textarea {
  width:100%;
  border:1px solid #e6e6e6;
  border-radius: 16px;
  padding: 12px 14px;
  outline:none;
  background:#fff;
}

.tbjb-field textarea {
  border-radius: 18px;
  height: 150px;
  min-height: 150px;
  resize: none;
}

.tbjb-file-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.tbjb-file-wrap.has-file .tbjb-file-fake{
    padding: 12px 14px;
}
.tbjb-file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  border: none;
  padding: 0;
  margin: 0;
}
.tbjb-file-fake {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 8px 14px;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  background: #fff;
  pointer-events: none;
}
.tbjb-file-btn {
  flex-shrink: 0;
  padding: 4px 16px;
  border-radius: 999px;
  background: #52b7b5;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}
.tbjb-file-name {
  font-size: 14px;
  color: #666;
}
.tbjb-file-wrap.has-file .tbjb-file-btn { display: none; }

.req { color:#e04; }

.tbjb-required-hint {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  font-size: 12px;
  color: #ff0000;
  line-height: 1.3;
}
.tbjb-field--error .tbjb-required-hint { display: block; }
.tbjb-field--error input[type="text"],
.tbjb-field--error input[type="email"],
.tbjb-field--error input[type="url"],
.tbjb-field--error input[type="tel"],
.tbjb-field--error input[type="number"],
.tbjb-field--error .tbjb-file-fake,
.tbjb-field--error select,
.tbjb-field--error textarea,
.tbjb-field--error .tbjb-select-trigger,
.tbjb-field--error .tbjb-radio-list,
.tbjb-field--error .tbjb-check-list { border-color: #ff0000 !important; }

.tbjb-radio-list, .tbjb-check-list {
  border:1px solid #eee;
  border-radius: 16px;
  padding: 10px 12px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.tbjb-check-list--row {
  flex-direction: row;
  flex-wrap: wrap;
}
.tbjb-check-list--plain {
  border: none;
  padding: 0;
  border-radius: 0;
  width: 100%;
}

.tbjb-radio, .tbjb-check, .tbjb-inline {
  display: flex;
  gap: 12px;
  align-items: center;
  cursor: pointer;
}
.tbjb-radio input, .tbjb-check input, .tbjb-inline input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.tbjb-radio::before,
.tbjb-check::before,
.tbjb-inline::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  background: #fff;
  transition: border-color 0.2s, background 0.2s;
}
.tbjb-check::before, .tbjb-inline::before { border-radius: 6px; }
.tbjb-radio._active::before,
.tbjb-check._active::before,
.tbjb-inline._active::before {
  border-color: #52b7b5;
  background: #52b7b5;
  box-shadow: inset 0 0 0 4px #fff;
}
.tbjb-radio:hover::before,
.tbjb-check:hover::before,
.tbjb-inline:hover::before { border-color: #52b7b5; }

.tbjb-help { color:#888; }

.tbjb-actions { display:flex; justify-content:flex-end; gap:12px; margin-top: 18px; }
.tbjb-actions--space-between { justify-content: space-between; }
.tbjb-btn {
  border:1px solid #ddd; background:#fff; padding:12px 22px; border-radius:999px; cursor:pointer;
}
.tbjb-btn.primary { background:#52b7b5; border-color:#52b7b5; color:#fff; }

.tbjb-note { color:#b55; }
.tbjb-result { margin-top:14px; padding:12px 14px; border:1px solid #eee; border-radius:12px; }

/* Submit button spinner (CF7-style) */
.tbjb-btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.tbjb-btn.is-loading .tbjb-spinner { opacity: 1; }
.tbjb-spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  opacity: 0;
  pointer-events: none;
}
.tbjb-spinner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: rgba(255,255,255,0.95);
  animation: tbjb-spin 0.7s linear infinite;
}
@keyframes tbjb-spin {
  to { transform: rotate(360deg); }
}

/* Custom select */
.tbjb-select-wrap { position: relative; }
.tbjb-select-native {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.tbjb-select-trigger {
  width: 100%;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  padding: 12px 14px;
  padding-right: 40px;
  background: #fff;
  cursor: pointer;
  outline: none;
  position: relative;
}
.tbjb-select-trigger::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
}
.tbjb-select-wrap.is-open .tbjb-select-trigger::after { transform: translateY(-50%) rotate(180deg); }
.tbjb-select-wrap.is-open .tbjb-select-trigger { border-color: #52b7b5; }
.tbjb-select-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 12px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 100;
  max-height: 200px;
  overflow-y: auto;
}
.tbjb-select-wrap.is-open .tbjb-select-dropdown { display: block; }
.tbjb-select-option {
  padding: 12px 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.tbjb-select-option:hover,
.tbjb-select-option.is-selected { background: rgba(82, 183, 181, 0.1); }

.tbjb-block { margin-bottom: 28px; }
.tbjb-block-title { font-size: 22px; margin: 0 0 14px; color: #333; }

.tbjb-salary-wrap,
.tbjb-experience-years-wrap {
  position: relative;
  padding: 18px 20px;
  background: rgba(82, 183, 181, 0.05);
  border: 1px solid rgba(82, 183, 181, 0.2);
  border-radius: 18px;
}
.tbjb-experience-years-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
  width: fit-content;
}
.tbjb-experience-years-wrap input[type="number"] {
  width: 100px;
  min-width: 100px;
  height: 48px;
  min-height: 48px;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  padding: 0 14px;
  outline: none;
  background: #fff;
  margin-bottom: 0 !important;
  box-sizing: border-box;
}
.tbjb-field .tbjb-required-hint { font-size: 12px; color: #ff0000; margin-top: 0px; }
.tbjb-recommended { font-size: 12px; color: #52b7b5; font-weight: 500; margin-bottom: 8px; display: inline-block; }
.tbjb-salary-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.tbjb-salary-row input[type="number"] {
  width: 100px;
  min-width: 100px;
  height: 48px;
  min-height: 48px;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  padding: 0 14px;
  outline: none;
  background: #fff;
  margin-bottom: 0 !important;
  box-sizing: border-box;
}
.tbjb-salary-row .tbjb-select-wrap { min-width: 120px; }
.tbjb-salary-row .tbjb-select-trigger {
  height: 48px;
  min-height: 48px;
  padding: 0 40px 0 14px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}
.tbjb-salary-period { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.tbjb-period-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 48px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #e6e6e6;
  border-radius: 999px;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}
.tbjb-period-btn input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
}
.tbjb-period-btn.is-active { border-color: #52b7b5; background: rgba(82, 183, 181, 0.08); color: #52b7b5; }

.tbjb-candidate-questions { display: flex; flex-direction: column; gap: 10px; }
.tbjb-question-input { width: 100%; }
.tbjb-add-question-btn {
  align-self: flex-start;
  padding: 8px 16px;
  font-size: 14px;
  background: transparent;
  border: 1px dashed #52b7b5;
  color: #52b7b5;
}
.tbjb-add-question-btn::before {
  content: "+";
  display: inline-block;
  margin-right: 6px;
  font-weight: 600;
  font-size: 16px;
}
.tbjb-add-question-btn:hover {
  background: rgba(82, 183, 181, 0.08);
}

.tbjb-success-panel {
  margin: 20px 0;
  padding: 40px 20px;
  /* background: linear-gradient(180deg, #e8f7f6 0%, #d4eef0 100%); */
  border-radius: 20px;
  text-align: center;
}
.tbjb-success-card {
  max-width: 520px;
  margin: 0 auto;
  padding: 40px 36px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  text-align: center;
  border: 1px solid #dcdcdc;
}
.tbjb-success-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
.tbjb-success-icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid #52b7b5;
  background: #fff;
  position: relative;
}
.tbjb-success-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 12px;
  margin: -7px 0 0 -3px;
  border: solid #52b7b5;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.tbjb-success-badge {
  font-size: 16px;
  font-weight: 500;
  color: #64748b;
}
.tbjb-success-title {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 20px;
  color: #4c9491;
  line-height: 1.3;
}
.tbjb-success-body {
  text-align: center;
  margin-bottom: 28px;
}
.tbjb-success-body p {
  margin: 0 0 12px;
  line-height: 1.6;
  color: #64748b;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.tbjb-success-body p:last-child { margin-bottom: 0; }
.tbjb-success-btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  background: #4c9491;
  border: none;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(82, 183, 181, 0.35);
  transition: box-shadow 0.2s, transform 0.2s;
}
.tbjb-success-btn:hover {
  color: #fff;
  box-shadow: 0 6px 20px rgba(82, 183, 181, 0.4);
  transform: translateY(-1px);
}

/* Mobile */
@media (max-width: 767px) {
  .tbjb-grid,
  .tbjb-grid--thirds {
    grid-template-columns: 1fr;
  }
  .tbjb-field-third { grid-column: span 1; }
  .tbjb-success-panel { padding: 0; }
  .tbjb-success-card { padding: 28px 24px; }
  .tbjb-success-title { font-size: 22px; }
  .tbjb-success-icon-wrap { flex-direction: column; gap: 8px; }
}