.ttj-profile-form {
  margin: 0 auto;
}

.ttj-profile-form h2 {
  margin-top: 30px;
}

.ttj-profile-form input,
.ttj-profile-form select {
  width: 100%;
  padding: 12px;
  margin-bottom: 14px;
}

.ttj-profile-form button {
  padding: 14px 22px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

/* =====================================
   PROFILE MAIN CONTAINER (MATCH POST JOB)
===================================== */

.ttj-profile-wrap {
  margin: 0 auto;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  padding: 0; /* muhimu kwa title bar */
}

/* inner padding */
.ttj-profile-inner {
  padding: 32px;
}

@media (max-width: 768px) {
  .ttj-profile-inner {
    padding: 20px;
  }
}

/* =========================
   PROFILE SECTION HEADINGS
========================= */

.ttj-profile-section-title {
    background: #e5e7eb;            /* silver */
    color: #000000;                 /* black text */
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 600;
    margin: 28px 0 16px;             /* space juu/chini */
    line-height: 1.3;
}

/* First section isiwe na margin kubwa juu */
.ttj-profile-section-title.is-first {
    margin-top: 0;
}


/* =====================================
   SELECT – CLEAN & VISIBLE
===================================== */

.ttj-profile-inner select {
  width: 100%;
  height: 46px;

  padding: 0 44px 0 14px; /* nafasi ya arrow */
  font-size: 15px;
  font-weight: 500;

  border-radius: 12px;
  border: 1px solid #d1d5db;
  background-color: #ffffff;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image:
    linear-gradient(45deg, transparent 50%, #6b7280 50%),
    linear-gradient(135deg, #6b7280 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

/* focus */
.ttj-profile-inner select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow:
    0 0 0 1px #2563eb,
    0 0 0 4px rgba(37,99,235,.15);
}

.ttj-profile-inner input,
.ttj-profile-inner textarea {
  width: 100%;
  height: 46px;
  padding: 12px 14px;

  font-size: 15px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
}

.ttj-profile-inner textarea {
  min-height: 120px;
  resize: vertical;
}

.ttj-profile-actions {
  display: flex;
  gap: 14px;
  margin-top: 32px;
}

.ttj-profile-save {
  background: #2563eb;
  color: #fff;
  padding: 12px 26px;
  border-radius: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.ttj-profile-save:hover {
  background: #1d4ed8;
}

.ttj-profile-cancel {
  background: #ffffff;
  border: 1px solid #d1d5db;
  padding: 12px 26px;
  border-radius: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* =========================================
   FILE UPLOAD ROW – CENTER ALIGN
========================================= */

.ttj-file-row {
  display: flex;
  align-items: center;   /* 🔥 HII NDIO MUHIMU */
  gap: 14px;
  flex-wrap: wrap;
}

/* Current file text */
.ttj-file-row .ttj-current-file {
  font-size: 14px;
  line-height: 1.4;
  color: #2563eb;
  word-break: break-word;
}

/* Replace / Choose file button */
.ttj-file-row button,
.ttj-file-row .ttj-file-btn {
  display: inline-flex;
  align-items: center;   /* 🔥 CENTER TEXT */
  justify-content: center;

  height: 44px;
  padding: 0 18px;

  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;

  line-height: 1;        /* 🔥 ZUIA TEXT KUSHUKA */
}

@media (max-width: 640px) {
  .ttj-file-row {
    align-items: flex-start;
  }

  .ttj-file-row button {
    width: 100%;
  }
}

.ttj-profile-progress {
  margin-bottom: 28px;
}

.ttj-profile-progress {
  position: relative;
  z-index: 5;
}

/* =========================
   PROFILE PROGRESS BAR
========================= */

.ttj-progress-bar {
  height: 10px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.ttj-progress-fill {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: #2563eb; /* default */
}

.ttj-uploaded-file {
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:8px;
}

.ttj-uploaded-status {
    font-size:13px;
    color:#16a34a;
}

.ttj-file-name {
    font-weight:500;
}

.ttj-portfolio-grid {
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.ttj-file-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    background: #111;
    color: #fff;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background .2s ease;
}

.ttj-file-btn:hover {
    background: #000;
}

.ttj-file-name {
    margin-left: 10px;
    font-size: 13px;
    color: #555;
    background: #f0f2f0;
    padding: 1px 10px 3px;
}

/* ===============================
   FILE INPUT – CUSTOM LOOK
   =============================== */

/* Wrapper (optional but recommended) */
.ttj-form-group input[type="file"] {
  position: relative;
  width: 100%;
  height: 48px;
  opacity: 0; /* hide native input */
  cursor: pointer;
  z-index: 2;
}

/* Fake input field */
.ttj-form-group .ttj-file-input {
  position: relative;
  height: 48px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  background: #fff;
  color: #6b7280;
  font-size: 14px;
}

/* Placeholder text */
.ttj-form-group .ttj-file-input span {
  pointer-events: none;
}

.ttj-file-input input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* Hover / focus effect */
.ttj-form-group:hover .ttj-file-input {
  border-color: #2563eb;
}

.ttj-photo-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ttj-profile-photo-preview {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.ttj-phone-row{
    display:flex;
    gap:10px;
    align-items:center;
}

.ttj-phone-badge{
    background:#dcfce7;
    color:#166534;
    padding:6px 12px;
    border-radius:20px;
    font-size:13px;
    font-weight:600;
}

.ttj-verify-btn,
.ttj-confirm-btn{
    background:#1f73e8;
    color:#fff;
    border:none;
    padding:8px 14px;
    border-radius:8px;
    cursor:pointer;
}

.ttj-name-row{
    display:flex;
    align-items:center;
    gap:8px;
}

.ttj-badge{
    margin-left:8px;
    font-size:12px;
    font-weight:600;
    padding:4px 10px;
    border-radius:999px;
    display:inline-flex;
    align-items:center;
    gap:6px;
    line-height:1;
}

.ttj-badge-verified{
    background:#e8f1ff;
    color:#1f73e8;
}

.ttj-badge-trusted{
    background:#fff5d6;
    color:#b7791f;
}

.ttj-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    animation: ttjSpin 0.7s linear infinite;
    vertical-align: middle;
}

@keyframes ttjSpin {
    to { transform: rotate(360deg); }
}

/* ================================
   REMOVE FILE ICON (CLEAN)
================================ */

.ttj-remove-file {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 0 0 8px !important;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  vertical-align: middle; /* muhimu */
  transform: translateY(-2px);

  cursor: pointer;
  color: inherit !important;
  opacity: 0.7;
  position: relative;
}

.ttj-remove-file:hover {
  opacity: 1;
}

.ttj-remove-file svg {
  width: 18px;
  height: 18px;
  display: block;
  pointer-events: none;
}

/* ================================
   LOADING STATE
================================ */

.ttj-remove-file.loading svg {
  opacity: 0;
}

.ttj-remove-file.loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;

  color: inherit !important;

  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;

  animation: ttj-spin 0.7s linear infinite;
}

@keyframes ttj-spin {
  to { transform: rotate(360deg); }
}