/* ============================================================
   FREELANCER ACTIVATION - page design v2  (fta-*)
   ------------------------------------------------------------
   Loaded by first-time-freelancer-activation.html ONLY, and last,
   so it can safely restyle the shared editorial primitives
   (.ed-field, .ed-frow, .ed-cs-*, .ed-btn) WITHOUT leaking: every
   rule below is scoped under .fta-page.

   That scoping is load-bearing. The page controller injects work,
   education, certification and language rows at runtime using those
   same shared classes, so the new look has to reach markup this
   file never sees - but only on this page.

   Deliberately GONE from v1, at the owner's request:
     - the "Live preview" profile card (.ed-actv-preview)
     - its 3D hover tilt (rotateX(7deg) rotateY(-8deg) -> 0 on hover)
     - the decorative gridlines backdrop
   Replaced by a section index, which is navigation rather than
   decoration: on an eight-part form, knowing where you are and
   jumping straight to a part is worth more than a mock card.
   ============================================================ */

body.fp-ed .fta-page{
  --fta-bg:#f6f7f9;
  --fta-panel:#ffffff;
  --fta-ink:#0d1117;
  --fta-ink-2:#4a5464;
  --fta-ink-3:#7c8698;
  --fta-line:#e6e9f0;
  --fta-line-2:#eef1f6;
  --fta-accent:#2456e6;
  --fta-accent-2:#3b6ef6;
  --fta-accent-soft:#eef3ff;
  --fta-good:#0e9f6e;
  --fta-r:16px;
  --fta-r-sm:11px;
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  background:var(--fta-bg);
  color:var(--fta-ink);
  min-height:100vh;
  padding:34px 24px 96px;
}
body.fp-ed .fta-page *{box-sizing:border-box}
body.fp-ed .fta-shell{
  max-width:1180px;margin:0 auto;
  display:grid;grid-template-columns:280px minmax(0,1fr);
  align-items:start;gap:36px;
}

/* ---------------- left rail ---------------- */
body.fp-ed .fta-rail{position:sticky;top:88px;display:flex;flex-direction:column;gap:22px}
body.fp-ed .fta-step{
  display:inline-flex;align-items:center;gap:8px;align-self:flex-start;
  padding:6px 12px 6px 9px;border-radius:999px;
  background:var(--fta-accent-soft);border:1px solid #dbe6ff;
  font-size:11.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--fta-accent);
}
body.fp-ed .fta-step i{width:6px;height:6px;border-radius:50%;background:var(--fta-accent);display:block}
body.fp-ed .fta-h1{
  margin:0;font-size:clamp(26px,2.4vw,33px);font-weight:800;letter-spacing:-.032em;
  line-height:1.12;color:var(--fta-ink);text-wrap:balance;
}
body.fp-ed .fta-h1 em{font-style:normal;color:var(--fta-accent)}
body.fp-ed .fta-lead{margin:0;font-size:14px;line-height:1.6;color:var(--fta-ink-2);max-width:34ch}

/* the section index - a jump list, not a progress claim */
body.fp-ed .fta-index{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:1px}
body.fp-ed .fta-index a{
  display:grid;grid-template-columns:26px 1fr;align-items:center;gap:11px;
  padding:9px 11px;border-radius:10px;text-decoration:none;
  color:var(--fta-ink-2);font-size:13.5px;font-weight:600;line-height:1.25;
  transition:background .15s ease,color .15s ease;
}
body.fp-ed .fta-index a:hover{background:#eef1f6;color:var(--fta-ink)}
body.fp-ed .fta-index a:focus-visible{outline:2px solid var(--fta-accent);outline-offset:2px}
body.fp-ed .fta-index b{
  display:inline-flex;align-items:center;justify-content:center;
  width:26px;height:26px;border-radius:8px;background:#eef1f6;
  font-size:11.5px;font-weight:800;color:var(--fta-ink-3);
  font-variant-numeric:tabular-nums;transition:background .15s ease,color .15s ease;
}
body.fp-ed .fta-index a.is-here{background:var(--fta-accent-soft);color:var(--fta-accent)}
body.fp-ed .fta-index a.is-here b{background:var(--fta-accent);color:#fff}

/* completeness - the ONE progress model on this page, driven by the
   existing controller via [data-actv-progress-*]. No second meter. */
body.fp-ed .fta-meter{
  border:1px solid var(--fta-line);border-radius:14px;background:var(--fta-panel);padding:15px 16px;
}
body.fp-ed .fta-meter-top{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
body.fp-ed .fta-meter-top span{font-size:12px;font-weight:700;color:var(--fta-ink-2)}
body.fp-ed .fta-meter-top b{font-size:16px;font-weight:800;color:var(--fta-ink);font-variant-numeric:tabular-nums}
body.fp-ed .fta-meter-bar{margin-top:10px;height:6px;border-radius:99px;background:#eaeef4;overflow:hidden}
body.fp-ed .fta-meter-bar > span{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,var(--fta-accent-2),var(--fta-accent));transition:width .3s ease}
body.fp-ed .fta-meter p{margin:9px 0 0;font-size:11.5px;line-height:1.5;color:var(--fta-ink-3)}

/* ---------------- panels ---------------- */
body.fp-ed .fta-form{display:flex;flex-direction:column;gap:16px;min-width:0}
body.fp-ed .fta-panel{
  border:1px solid var(--fta-line);border-radius:var(--fta-r);background:var(--fta-panel);
  padding:24px 26px 26px;scroll-margin-top:96px;
  box-shadow:0 1px 2px rgba(16,24,40,.03);
}
body.fp-ed .fta-panel-private{background:linear-gradient(180deg,#fbfcfe,#ffffff)}
body.fp-ed .fta-head{display:grid;grid-template-columns:38px 1fr auto;align-items:start;gap:14px;margin-bottom:20px}
body.fp-ed .fta-n{
  width:38px;height:38px;border-radius:11px;display:inline-flex;align-items:center;justify-content:center;
  background:var(--fta-accent-soft);color:var(--fta-accent);
  font-size:13px;font-weight:800;font-variant-numeric:tabular-nums;border:1px solid #dde7ff;
}
body.fp-ed .fta-head-tx{min-width:0}
body.fp-ed .fta-kick{display:block;font-size:10.5px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--fta-accent)}
body.fp-ed .fta-head-tx h2{margin:5px 0 0;font-size:18px;font-weight:800;letter-spacing:-.022em;color:var(--fta-ink);line-height:1.2}
body.fp-ed .fta-head-tx p{margin:5px 0 0;font-size:13px;line-height:1.5;color:var(--fta-ink-3)}
body.fp-ed .fta-head .ed-btn{align-self:center;white-space:nowrap}

/* ---------------- shared form primitives, restyled IN SCOPE ----------------
   These reach the runtime-injected rows too, which is the whole point. */
body.fp-ed .fta-page .ed-field{display:flex;flex-direction:column;gap:7px;min-width:0}
body.fp-ed .fta-page .ed-field > span{font-size:12.5px;font-weight:700;color:var(--fta-ink-2);letter-spacing:-.005em}
body.fp-ed .fta-page .ed-field input[type="text"],
body.fp-ed .fta-page .ed-field input[type="tel"],
body.fp-ed .fta-page .ed-field input[type="email"],
body.fp-ed .fta-page .ed-field select,
body.fp-ed .fta-page .ed-field textarea,
body.fp-ed .fta-page .ed-cs-tagentry input{
  width:100%;border:1px solid var(--fta-line);border-radius:var(--fta-r-sm);background:#fbfcfe;
  color:var(--fta-ink);font:inherit;font-size:14.5px;padding:0 13px;height:44px;
  transition:border-color .15s ease,background .15s ease,box-shadow .15s ease;
}
body.fp-ed .fta-page .ed-field textarea{height:auto;min-height:96px;padding:11px 13px;line-height:1.55;resize:vertical}
body.fp-ed .fta-page .ed-field select{appearance:none;-webkit-appearance:none;cursor:pointer;padding-right:38px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%237c8698' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 13px center;background-size:12px}
body.fp-ed .fta-page .ed-field input:focus,
body.fp-ed .fta-page .ed-field select:focus,
body.fp-ed .fta-page .ed-field textarea:focus,
body.fp-ed .fta-page .ed-cs-tagentry input:focus{
  outline:none;background:#fff;border-color:var(--fta-accent-2);box-shadow:0 0 0 3.5px rgba(59,110,246,.13);
}
body.fp-ed .fta-page .ed-field input::placeholder,
body.fp-ed .fta-page .ed-field textarea::placeholder{color:#9aa4b4}
body.fp-ed .fta-page .ed-frow{display:grid;grid-template-columns:1fr 1fr;gap:16px;min-width:0}
body.fp-ed .fta-page .ed-cs-hint{display:block;margin-top:6px;font-size:11.5px;line-height:1.5;color:var(--fta-ink-3)}

/* chips + rows */
body.fp-ed .fta-page .ed-cs-tagentry{display:flex;gap:9px}
body.fp-ed .fta-page .ed-cs-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
body.fp-ed .fta-page .ed-cs-chips > *{
  display:inline-flex;align-items:center;gap:7px;padding:6px 10px;border-radius:9px;
  background:var(--fta-accent-soft);border:1px solid #dde7ff;color:#1e46b8;font-size:12.5px;font-weight:700;
}
body.fp-ed .fta-page .ed-cs-rows{display:flex;flex-direction:column;gap:12px}
body.fp-ed .fta-page .ed-cs-rows > *{
  border:1px solid var(--fta-line);border-radius:13px;background:#fbfcfe;padding:15px 16px;
}
body.fp-ed .fta-page .ed-cs-row-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
body.fp-ed .fta-page .ed-cs-row-head b{font-size:13px;font-weight:800;color:var(--fta-ink)}
body.fp-ed .fta-page .ed-cs-row-del{
  border:1px solid var(--fta-line);background:#fff;border-radius:8px;padding:5px 11px;
  font:inherit;font-size:11.5px;font-weight:700;color:#b4231f;cursor:pointer;transition:.15s;
}
body.fp-ed .fta-page .ed-cs-row-del:hover{background:#fff3f2;border-color:#f3c9c6}
body.fp-ed .fta-page .ed-set-empty{
  margin:0;padding:16px;border:1px dashed var(--fta-line);border-radius:12px;
  background:#fbfcfe;font-size:13px;color:var(--fta-ink-3);text-align:center;
}

/* radios as cards */
body.fp-ed .fta-page .ed-radio-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:11px;margin-top:2px}
body.fp-ed .fta-page .ed-radio-list label{
  position:relative;display:flex;flex-direction:column;gap:3px;cursor:pointer;
  border:1.5px solid var(--fta-line);border-radius:12px;background:#fbfcfe;padding:13px 15px;transition:.15s;
}
body.fp-ed .fta-page .ed-radio-list label:hover{border-color:#c9d6f5}
body.fp-ed .fta-page .ed-radio-list input{position:absolute;opacity:0;width:0;height:0}
body.fp-ed .fta-page .ed-radio-list strong{font-size:13.5px;font-weight:800;color:var(--fta-ink)}
body.fp-ed .fta-page .ed-radio-list span{font-size:12px;line-height:1.45;color:var(--fta-ink-3)}
body.fp-ed .fta-page .ed-radio-list label:has(input:checked){border-color:var(--fta-accent);background:var(--fta-accent-soft)}
body.fp-ed .fta-page .ed-radio-list label:has(input:checked) strong{color:var(--fta-accent)}

/* locked / private */
body.fp-ed .fta-readonly{
  display:flex;align-items:center;height:44px;padding:0 13px;border-radius:var(--fta-r-sm);
  border:1px solid var(--fta-line-2);background:#f2f4f8;color:var(--fta-ink-2);font-size:14px;
}
body.fp-ed .fta-lock{
  display:flex;align-items:flex-start;gap:8px;margin-top:16px;padding:12px 14px;border-radius:11px;
  background:#f6f8fc;border:1px solid var(--fta-line-2);font-size:12px;line-height:1.55;color:var(--fta-ink-3);
}
body.fp-ed .fta-lock svg{flex:none;width:14px;height:14px;margin-top:2px;color:var(--fta-ink-3)}
body.fp-ed .fta-lock a{color:var(--fta-accent);font-weight:700}

/* buttons */
body.fp-ed .fta-page .ed-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:10px;
  font:inherit;font-weight:700;cursor:pointer;transition:.16s;text-decoration:none;
}
body.fp-ed .fta-page .ed-btn-sm{height:36px;padding:0 14px;font-size:12.5px}
body.fp-ed .fta-page .ed-btn-line{border:1px solid var(--fta-line);background:#fff;color:var(--fta-ink)}
body.fp-ed .fta-page .ed-btn-line:hover{border-color:var(--fta-accent-2);color:var(--fta-accent);background:var(--fta-accent-soft)}
body.fp-ed .fta-page .ed-btn-fill{border:0;background:linear-gradient(135deg,var(--fta-accent-2),var(--fta-accent));color:#fff;box-shadow:0 10px 22px -12px rgba(36,86,230,.85)}
body.fp-ed .fta-page .ed-btn-fill:hover{transform:translateY(-1px)}

/* submit bar */
body.fp-ed .fta-submit{
  display:flex;align-items:center;gap:12px;flex-wrap:wrap;
  border:1px solid var(--fta-line);border-radius:var(--fta-r);background:var(--fta-panel);padding:18px 22px;
}
body.fp-ed .fta-submit .ed-btn-fill{height:48px;padding:0 26px;font-size:15px;font-weight:800}
body.fp-ed .fta-submit .ed-btn-line{height:48px;padding:0 20px;font-size:14px}
body.fp-ed .fta-submit-note{margin:0 0 0 auto;font-size:12px;color:var(--fta-ink-3);max-width:34ch;line-height:1.5}
body.fp-ed .fta-page .ed-auth-status{margin:0;font-size:13.5px;font-weight:600}
body.fp-ed .fta-page .ed-auth-status:empty{display:none}

/* ---------------- responsive ---------------- */
@media (max-width:1040px){
  body.fp-ed .fta-shell{grid-template-columns:1fr;gap:24px}
  body.fp-ed .fta-rail{position:static}
  body.fp-ed .fta-index{display:none}          /* jumping is pointless once it is one column */
}
@media (max-width:680px){
  body.fp-ed .fta-page{padding:22px 14px 72px}
  body.fp-ed .fta-panel{padding:20px 17px 22px;border-radius:14px}
  body.fp-ed .fta-head{grid-template-columns:32px 1fr;gap:11px}
  body.fp-ed .fta-head .ed-btn{grid-column:1 / -1;justify-self:start;margin-top:4px}
  body.fp-ed .fta-n{width:32px;height:32px;border-radius:9px}
  body.fp-ed .fta-page .ed-frow{grid-template-columns:1fr}
  body.fp-ed .fta-submit{padding:16px}
  body.fp-ed .fta-submit .ed-btn-fill,body.fp-ed .fta-submit .ed-btn-line{width:100%}
  body.fp-ed .fta-submit-note{margin:2px 0 0}
}
@media (prefers-reduced-motion:reduce){
  body.fp-ed .fta-page *,body.fp-ed .fta-page *::before,body.fp-ed .fta-page *::after{
    transition-duration:.01ms !important;animation-duration:.01ms !important;
  }
  body.fp-ed .fta-page .ed-btn-fill:hover{transform:none}
}
