/* Thinkster HR Pro — frontend */

.thrp-wrap,
.thrp-form-shell {
  --thrp-p: #FF6B35;
  --thrp-s: #003d82;
  --thrp-ink: #1d2530;
  --thrp-muted: #667085;
  --thrp-line: #e4e7ec;
  --thrp-bg: #f8f9fb;
  box-sizing: border-box;
  font-family: inherit;
  color: var(--thrp-ink);
}
.thrp-wrap *,
.thrp-form-shell * { box-sizing: border-box; }

/* [hidden] must win over our display rules (.thrp-btn is inline-block, .thrp-steps is flex) */
.thrp-wrap [hidden],
.thrp-form-shell [hidden],
.thrp-form-shell[hidden] { display: none !important; }

.thrp-wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* ---------- Filters ---------- */
.thrp-filters {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 16px; background: var(--thrp-bg);
  border: 1px solid var(--thrp-line); border-radius: 10px;
  margin-bottom: 18px;
}
.thrp-filters input[type="search"] { flex: 1 1 220px; }
.thrp-filters input, .thrp-filters select {
  padding: 11px 13px; border: 1px solid var(--thrp-line);
  border-radius: 8px; font-size: 15px; background: #fff; color: var(--thrp-ink);
  min-width: 150px;
}
.thrp-filters input:focus, .thrp-filters select:focus {
  outline: none; border-color: var(--thrp-p);
  box-shadow: 0 0 0 3px rgba(255,107,53,.14);
}
.thrp-filters button {
  padding: 11px 22px; border: 0; border-radius: 8px;
  background: var(--thrp-s); color: #fff; font-weight: 600;
  font-size: 15px; cursor: pointer;
}
.thrp-filters button:hover { background: var(--thrp-p); }

.thrp-count { color: var(--thrp-muted); font-size: 14px; margin: 0 0 18px; }

/* ---------- Job grid ---------- */
.thrp-grid { display: grid; gap: 20px; }
.thrp-cols-1 { grid-template-columns: 1fr; }
.thrp-cols-2 { grid-template-columns: repeat(2, 1fr); }
.thrp-cols-3 { grid-template-columns: repeat(3, 1fr); }

.thrp-card {
  background: #fff; border: 1px solid var(--thrp-line);
  border-radius: 12px; padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.thrp-card:hover {
  border-color: var(--thrp-p);
  box-shadow: 0 8px 24px rgba(16,24,40,.08);
  transform: translateY(-2px);
}
.thrp-card-top h3 { margin: 8px 0 0; font-size: 19px; line-height: 1.35; font-weight: 700; }
.thrp-card-top h3 a { color: var(--thrp-s); text-decoration: none; }
.thrp-card-top h3 a:hover { color: var(--thrp-p); }

.thrp-tag {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: rgba(0,61,130,.07); color: var(--thrp-s);
  font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
}

.thrp-card-meta {
  display: flex; flex-wrap: wrap; gap: 14px;
  font-size: 13.5px; color: var(--thrp-muted);
}
.thrp-card-excerpt { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--thrp-muted); flex-grow: 1; }

.thrp-btn, .thrp-btn-ghost {
  display: inline-block; padding: 11px 20px; border-radius: 8px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  cursor: pointer; border: 1px solid transparent; text-align: center;
}
.thrp-btn { background: var(--thrp-p); color: #fff; }
.thrp-btn:hover { background: var(--thrp-s); color: #fff; }
.thrp-btn-ghost { background: #fff; color: var(--thrp-s); border-color: var(--thrp-line); align-self: flex-start; }
.thrp-btn-ghost:hover { border-color: var(--thrp-p); color: var(--thrp-p); }

/* Standalone single-job page wrapper */
.thrp-single-page {
  padding: 48px 0 64px;
  background: #fff;
}
.thrp-single-page .thrp-wrap { max-width: 1120px; }

.thrp-preview-bar {
  padding: 12px 16px; margin-bottom: 20px; border-radius: 8px;
  background: #fffaeb; border: 1px solid #fedf89; color: #b54708;
  font-size: 14px; line-height: 1.55;
}

.thrp-diag {
  margin: 10px auto 0; padding: 10px 14px; max-width: 620px;
  background: #fffaeb; border: 1px solid #fedf89; border-radius: 7px;
  color: #b54708; font-size: 13.5px; line-height: 1.6; text-align: left;
}

.thrp-empty, .thrp-notice {
  grid-column: 1 / -1; padding: 40px 20px; text-align: center;
  color: var(--thrp-muted); background: var(--thrp-bg);
  border: 1px dashed var(--thrp-line); border-radius: 12px;
}

/* ---------- Detail ---------- */
.thrp-back { display: inline-block; margin-bottom: 20px; color: var(--thrp-p); font-weight: 600; text-decoration: none; }
.thrp-back:hover { text-decoration: underline; }

.thrp-detail-head { padding-bottom: 24px; border-bottom: 1px solid var(--thrp-line); margin-bottom: 28px; }
.thrp-detail-head h1 { margin: 10px 0 14px; font-size: 34px; line-height: 1.22; color: var(--thrp-s); }
.thrp-detail-head .thrp-btn { margin-top: 20px; }

.thrp-detail-body { font-size: 16px; line-height: 1.75; color: #384250; margin-bottom: 44px; }
.thrp-detail-body h2, .thrp-detail-body h3 { color: var(--thrp-s); margin-top: 28px; }
.thrp-detail-body ul, .thrp-detail-body ol { padding-left: 22px; }
.thrp-detail-body li { margin-bottom: 8px; }

/* ---------- Form ---------- */
.thrp-form-shell {
  background: #fff; border: 1px solid var(--thrp-line);
  border-radius: 14px; padding: 32px; margin-top: 20px;
}
.thrp-form-head h2 { margin: 0 0 6px; font-size: 24px; color: var(--thrp-s); }
.thrp-form-head p { margin: 0 0 26px; color: var(--thrp-muted); font-size: 14.5px; }

.thrp-steps {
  display: flex; gap: 6px; list-style: none;
  margin: 0 0 14px; padding: 0; overflow-x: auto;
}
.thrp-step-pip {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 8px; border-radius: 999px;
  background: var(--thrp-bg); white-space: nowrap;
  font-size: 13px; color: var(--thrp-muted);
}
.thrp-step-pip.is-active { background: rgba(255,107,53,.1); color: var(--thrp-p); font-weight: 700; }
.thrp-step-pip.is-done { background: rgba(0,61,130,.08); color: var(--thrp-s); }
.thrp-pip-num {
  width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid currentColor; font-size: 12px; font-weight: 700;
}
.thrp-step-pip.is-active .thrp-pip-num { background: var(--thrp-p); color: #fff; border-color: var(--thrp-p); }
.thrp-step-pip.is-done .thrp-pip-num { background: var(--thrp-s); color: #fff; border-color: var(--thrp-s); }

.thrp-progress { height: 4px; background: var(--thrp-line); border-radius: 999px; overflow: hidden; margin-bottom: 28px; }
.thrp-progress-bar { height: 100%; background: var(--thrp-p); transition: width .3s ease; }

.thrp-panel { display: none; border: 0; padding: 0; margin: 0; }
.thrp-panel.is-active { display: block; animation: thrpIn .25s ease; }
@keyframes thrpIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.thrp-panel legend {
  font-size: 17px; font-weight: 700; color: var(--thrp-s);
  padding: 0 0 18px; margin: 0; width: 100%;
}

.thrp-fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.thrp-field.thrp-full, .thrp-field-heading, .thrp-field-para { grid-column: 1 / -1; }
.thrp-field.thrp-half { grid-column: span 1; }

.thrp-field label {
  display: block; margin-bottom: 7px;
  font-size: 14px; font-weight: 600; color: #344054;
}
.thrp-req { color: var(--thrp-p); }

.thrp-field input, .thrp-field select, .thrp-field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--thrp-line); border-radius: 8px;
  font-size: 15px; font-family: inherit; color: var(--thrp-ink);
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
.thrp-field textarea { resize: vertical; min-height: 96px; }

/* Selects: themes commonly strip these with appearance:none and their own
   dropdown JS, which leaves a bare unclickable label. Rebuild it ourselves. */
.thrp-form-shell .thrp-field select,
.thrp-wrap .thrp-field select {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  position: static !important;
  width: 100% !important;
  height: auto !important;
  min-height: 46px;
  margin: 0 !important;
  padding: 12px 40px 12px 14px !important;
  border: 1px solid var(--thrp-line) !important;
  border-radius: 8px !important;
  background-color: #fff !important;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23667085' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 14px 9px !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  color: var(--thrp-ink) !important;
  text-align: left !important;
  cursor: pointer !important;
  box-shadow: none;
}
.thrp-form-shell .thrp-field select:focus,
.thrp-wrap .thrp-field select:focus {
  border-color: var(--thrp-p) !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, .13) !important;
  outline: none !important;
}
.thrp-field select::-ms-expand { display: none; }
.thrp-field select option {
  color: #1d2530;
  background: #fff;
  font-weight: 400;
}
.thrp-field input:focus, .thrp-field select:focus, .thrp-field textarea:focus {
  outline: none; border-color: var(--thrp-p);
  box-shadow: 0 0 0 3px rgba(255,107,53,.13);
}
.thrp-field.has-error input, .thrp-field.has-error select, .thrp-field.has-error textarea { border-color: #d92d20; }
.thrp-err { display: none; margin-top: 6px; font-size: 12.5px; color: #d92d20; }
.thrp-field.has-error .thrp-err { display: block; }
.thrp-help { display: block; margin-top: 6px; font-size: 12.5px; color: var(--thrp-muted); }

.thrp-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.thrp-choice {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 15px; border: 1px solid var(--thrp-line);
  border-radius: 8px; cursor: pointer; font-weight: 500 !important;
  font-size: 14px; margin: 0 !important;
}
.thrp-choice:hover { border-color: var(--thrp-p); }
.thrp-choice input { width: auto !important; margin: 0; }

.thrp-field-heading { margin: 10px 0 0; font-size: 15px; color: var(--thrp-s); }
.thrp-field-para { margin: 0; font-size: 14px; color: var(--thrp-muted); }

.thrp-hp { position: absolute !important; left: -9999px !important; }

.thrp-form-error {
  display: none; margin-top: 20px; padding: 13px 16px;
  background: #fef3f2; border: 1px solid #fecdc9;
  border-radius: 8px; color: #b42318; font-size: 14px;
}
.thrp-form-error.is-visible { display: block; }

.thrp-nav {
  display: flex; align-items: center; gap: 14px;
  margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--thrp-line);
}
.thrp-step-count { margin-left: auto; font-size: 13.5px; color: var(--thrp-muted); }
.thrp-nav .thrp-btn, .thrp-nav .thrp-btn-ghost { margin: 0; }
.thrp-btn[disabled] { opacity: .6; cursor: not-allowed; }

.thrp-success { text-align: center; padding: 40px 20px; }
.thrp-success-icon {
  width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%;
  background: #ecfdf3; color: #039855;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.thrp-success h3 { margin: 0 0 8px; font-size: 22px; color: var(--thrp-s); }
.thrp-success p { margin: 0; color: var(--thrp-muted); font-size: 15px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .thrp-cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .thrp-cols-2, .thrp-cols-3 { grid-template-columns: 1fr; }
  .thrp-fields { grid-template-columns: 1fr; }
  .thrp-field.thrp-half { grid-column: 1 / -1; }
  .thrp-form-shell { padding: 22px 18px; }
  .thrp-detail-head h1 { font-size: 26px; }
  .thrp-nav { flex-wrap: wrap; }
  .thrp-step-count { width: 100%; margin-left: 0; order: -1; }
  .thrp-pip-label { display: none; }
}
