/* EuroHirePath Accounts: logo red #e8302c + logo blue #0b4f8c, light blue surfaces, Manrope headings, Inter body */
.ehpa {
  --red: #e8302c; --red-ink: #c4211d; --red-soft: #fde3e2; --blue: #0b4f8c; --blue-dark: #083d6d;
  --bg: #f6f9ff; --surface: #fff; --surface-2: #e1f0ff; --line: #d6e8f7; --fg: #021e2f; --muted: #475569;
  --good: #1d7a45; --good-bg: #e3f4ea; --warn: #9a6212; --warn-bg: #fdf3e1; --bad: #b83434; --bad-bg: #fbeaea; --info: #0b4f8c; --info-bg: #e1f0ff;
  --shadow: 0 1px 2px rgba(2,30,47,.06), 0 6px 18px rgba(2,30,47,.07);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif; font-size: 15px; line-height: 1.55; color: var(--fg);
  background: var(--bg); padding: 32px max(16px, env(safe-area-inset-left, 0px)) 64px; box-sizing: border-box;
}
.ehpa *, .ehpa *::before, .ehpa *::after { box-sizing: border-box; }
.ehpa h1, .ehpa h2, .ehpa h3 { font-family: "Manrope", "Segoe UI", sans-serif; color: var(--fg); line-height: 1.2; margin: 0; text-wrap: balance; }
.ehpa h1 { font-size: 1.8rem; font-weight: 800; } .ehpa h2 { font-size: 1.25rem; font-weight: 800; } .ehpa h3 { font-size: 1.02rem; font-weight: 700; }
.ehpa p { margin: 0; }
.ehpa a { color: var(--blue); }
.ehpa :focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.ehpa [hidden] { display: none !important; }
.ehpa-narrow { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.ehpa-reg { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.ehpa-dash { max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.ehpa-body { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ehpa-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.ehpa-pad { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.ehpa-eyebrow { font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; font-weight: 700; color: var(--red-ink); }
.ehpa-small { font-size: .86rem; } .ehpa-muted { color: var(--muted); } .ehpa-center { text-align: center; }
.ehpa-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ehpa-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .ehpa-between { justify-content: space-between; }
.ehpa-grow { flex: 1; min-width: 0; } .ehpa-break { overflow-wrap: anywhere; }
.ehpa-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ehpa-empty { padding: 18px; text-align: center; color: var(--muted); background: var(--bg); border-radius: 10px; }

/* buttons + pills */
.ehpa .ehpa-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--fg);
  padding: 9px 16px; border-radius: 8px; font: 600 .9rem/1.2 "Inter", sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap; }
.ehpa .ehpa-btn:hover { border-color: var(--blue); color: var(--blue); }
.ehpa .ehpa-btn--primary { background: var(--red); border-color: var(--red); color: #fff; }
.ehpa .ehpa-btn--primary:hover { background: var(--red-ink); border-color: var(--red-ink); color: #fff; }
.ehpa .ehpa-btn--ghost { border-color: transparent; background: none; color: var(--muted); }
.ehpa .ehpa-btn--sm { padding: 6px 11px; font-size: .82rem; }
.ehpa .ehpa-btn--lg { padding: 12px 24px; font-size: 1rem; }
.ehpa-pill { display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--blue); white-space: nowrap; }
.ehpa-pill--good { background: var(--good-bg); color: var(--good); } .ehpa-pill--warn { background: var(--warn-bg); color: var(--warn); }
.ehpa-pill--bad { background: var(--bad-bg); color: var(--bad); } .ehpa-pill--info { background: var(--info-bg); color: var(--info); }
.ehpa-notice { padding: 12px 16px; border-radius: 10px; border: 1px solid; font-weight: 500; }
.ehpa-notice--info { background: var(--info-bg); color: var(--info); border-color: #b9d7f2; }
.ehpa-notice--good { background: var(--good-bg); color: var(--good); border-color: #b7e0c7; }
.ehpa-notice--warn { background: var(--warn-bg); color: var(--warn); border-color: #f0d6a6; }
.ehpa-notice--bad { background: var(--bad-bg); color: var(--bad); border-color: #efc0c0; }
.ehpa-notice a { color: inherit; font-weight: 700; }

/* forms */
.ehpa-form { padding: 26px; }
.ehpa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; }
.ehpa-full { grid-column: 1 / -1; }
.ehpa-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; border: 0; padding: 0; margin: 0 0 6px; }
.ehpa-field > label, .ehpa-field > legend, .ehpa-lbl { font-weight: 600; font-size: .88rem; padding: 0; margin-bottom: 2px; }
.ehpa-req { color: var(--red); }
.ehpa .ehpa-input { width: 100%; min-height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 10px 12px; font: 400 .95rem "Inter", sans-serif; color: var(--fg); box-shadow: none; margin: 0; }
.ehpa .ehpa-input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(11,79,140,.18); }
.ehpa textarea.ehpa-input { min-height: 90px; resize: vertical; }
.ehpa-field.is-err .ehpa-input { border-color: var(--bad); }
.ehpa-msg { font-size: .8rem; color: var(--bad); min-height: 1.1em; }
.ehpa-hint { font-size: .8rem; color: var(--muted); }
.ehpa-phone { display: flex; gap: 6px; }
.ehpa .ehpa-phone select { width: 104px; flex: none; padding-right: 4px; }
.ehpa .ehpa-phone input { flex: 1; min-width: 0; width: auto; }
.ehpa-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ehpa-chip { position: relative; cursor: pointer; }
.ehpa-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ehpa-chip span { display: inline-block; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .86rem; }
.ehpa-chip input:checked + span { background: var(--red-soft); border-color: var(--red); color: var(--red-ink); font-weight: 700; }
.ehpa-chip input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.ehpa-check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; font-weight: 400 !important; }
.ehpa-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--red); flex: none; }
.ehpa-strength { height: 5px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.ehpa-strength i { display: block; height: 100%; width: 0; transition: width .25s; }
.ehpa-drop { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 2px dashed var(--line); border-radius: 10px; padding: 22px; text-align: center; cursor: pointer; background: var(--bg); font-weight: 400 !important; }
.ehpa-drop.is-over, .ehpa-drop.has-file { border-color: var(--red); background: var(--red-soft); border-style: solid; }
.ehpa-file { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ehpa-submit { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 10px; }
.ehpa-hp { position: absolute; left: -9999px; }
fieldset.ehpa-plain { border: 0; padding: 0; margin: 0; min-width: 0; }

/* register */
.ehpa-reg-head { text-align: center; display: flex; flex-direction: column; gap: 8px; }
.ehpa-reg-head p { color: var(--muted); }
.ehpa-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; max-width: 560px; width: 100%; margin: 0 auto; }
.ehpa .ehpa-seg a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 10px; border-radius: 9px; text-decoration: none; font-weight: 700; color: var(--muted); text-align: center; }
.ehpa-seg a small { font-weight: 500; font-size: .78rem; }
.ehpa .ehpa-seg a[aria-pressed="true"] { background: var(--blue); color: #fff; box-shadow: var(--shadow); }
.ehpa-seg a[aria-pressed="true"] small { color: #cfe3f7; }

/* login form from wp_login_form */
.ehpa #loginform p { display: flex; flex-direction: column; gap: 5px; margin: 0 0 12px; }
.ehpa #loginform label { font-weight: 600; font-size: .88rem; }
.ehpa #loginform input[type=text], .ehpa #loginform input[type=password] { min-height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: inherit; width: 100%; }
.ehpa #loginform .login-remember label { flex-direction: row; display: flex; gap: 8px; font-weight: 400; }
.ehpa #loginform input[type=submit] { background: var(--red); border: 0; color: #fff; border-radius: 8px; padding: 12px 24px; font: 700 1rem "Inter", sans-serif; cursor: pointer; width: 100%; }

/* dashboard */
.ehpa-dhead { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ehpa-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font: 800 1rem "Manrope", sans-serif; flex: none; }
.ehpa-avatar--red { background: var(--red); }
.ehpa-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.ehpa .ehpa-tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.ehpa .ehpa-tabs a:hover { color: var(--fg); }
.ehpa .ehpa-tabs a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--red); }
.ehpa-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.ehpa-radial { flex-direction: row; align-items: center; gap: 18px; }
.ehpa-radial svg { flex: none; }
.ehpa-radial > div { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.ehpa-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.ehpa-tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.ehpa-table { width: 100%; min-width: 640px; border-collapse: collapse; margin: 0; }
.ehpa-table th, .ehpa-table td { padding: 11px 14px; text-align: left; border: 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ehpa-table th { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--bg); }
.ehpa-table tr:last-child td { border-bottom: 0; }
.ehpa-bar { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.ehpa-bar i { display: block; height: 100%; background: var(--red); border-radius: 3px; }
.ehpa-jobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.ehpa-job { padding: 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; box-shadow: none; }
.ehpa-job .ehpa-btn { margin-top: auto; }
.ehpa-filerow { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ehpa-fileic { width: 40px; height: 46px; border-radius: 6px; background: var(--bad-bg); color: var(--bad); display: grid; place-items: center; font-size: .66rem; font-weight: 800; flex: none; }
.ehpa-fileic--docx { background: var(--info-bg); color: var(--info); }
.ehpa-fileic--jpg, .ehpa-fileic--jpeg, .ehpa-fileic--png { background: var(--good-bg); color: var(--good); }
.ehpa-upload { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; }
.ehpa-check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ehpa-check-list li { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.ehpa-check-list li > span:first-child { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: .8rem; flex: none; }
.ehpa-check-list li.is-done { color: var(--fg); font-weight: 600; }
.ehpa-check-list li.is-done > span:first-child { background: var(--good); border-color: var(--good); color: #fff; }
.ehpa-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.ehpa-dl dt { color: var(--muted); font-size: .86rem; } .ehpa-dl dd { margin: 0; overflow-wrap: anywhere; }

@media (max-width: 640px) {
  .ehpa { padding-top: 20px; }
  .ehpa-grid { grid-template-columns: 1fr; }
  .ehpa-form, .ehpa-pad { padding: 16px; }
  .ehpa .ehpa-phone select { width: 96px; }
  .ehpa h1 { font-size: 1.45rem; }
  .ehpa-radial { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .ehpa * { transition: none !important; } }

/* show / hide password */
.ehpa-pw { position: relative; display: block; width: 100%; }
.ehpa .ehpa-pw input { padding-right: 46px !important; width: 100%; }
.ehpa .ehpa-pw-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center;
  border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 6px; padding: 0; box-shadow: none; }
.ehpa .ehpa-pw-btn:hover { color: var(--blue); background: var(--surface-2); }

/* chat with the EuroHirePath team */
.ehpa-chat { display: flex; flex-direction: column; overflow: hidden; }
.ehpa-chat-head { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.ehpa-thread { display: flex; flex-direction: column; gap: 8px; padding: 18px; min-height: 260px; max-height: 480px; overflow-y: auto; background: var(--bg); }
.ehpa-bubble { max-width: 78%; padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: var(--surface); border: 1px solid var(--line); font-size: .93rem; overflow-wrap: anywhere; align-self: flex-start; }
.ehpa-bubble.is-mine { align-self: flex-end; background: var(--blue); border-color: var(--blue); color: #fff; border-radius: 14px 14px 4px 14px; }
.ehpa-bubble-who { display: block; font-size: .72rem; font-weight: 700; opacity: .75; margin-bottom: 2px; }
.ehpa-bubble time { display: block; font-size: .7rem; opacity: .7; margin-top: 3px; text-align: right; }
.ehpa-msg-day { align-self: center; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 6px 0; }
.ehpa-compose { display: flex; gap: 8px; align-items: flex-end; padding: 12px; border-top: 1px solid var(--line); }
.ehpa-compose textarea.ehpa-input { min-height: 46px; flex: 1; }
@media (max-width: 640px) { .ehpa-bubble { max-width: 90%; } .ehpa-thread { max-height: 60vh; } }

/* ---------- Admin dashboard, jobs and applicants (1.2.0) ---------- */
.ehpa-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.ehpa .ehpa-stat { display: flex; flex-direction: column; gap: 2px; padding: 18px; text-decoration: none; color: var(--fg); transition: transform .15s, box-shadow .15s; }
.ehpa .ehpa-stat:hover { transform: translateY(-2px); }
.ehpa-stat-n { font-family: "Manrope", sans-serif; font-size: 2rem; font-weight: 800; color: var(--blue); line-height: 1.1; font-variant-numeric: tabular-nums; }
.ehpa-stat-l { font-weight: 700; }
.ehpa-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
.ehpa-filters .ehpa-input { width: auto; flex: 1 1 180px; min-width: 0; }
.ehpa-subnav { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.ehpa .ehpa-subnav a { padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--muted); font-size: .88rem; font-weight: 600; }
.ehpa .ehpa-subnav a[aria-current="page"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.ehpa-acts { white-space: nowrap; font-size: .9rem; }
.ehpa-todo { margin: 8px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.ehpa-files { margin: 8px 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; overflow-wrap: anywhere; }
.ehpa-compose--team { flex-wrap: wrap; }
.ehpa-compose--team textarea.ehpa-input { flex-basis: 100%; }
.ehpa h2 .ehpa-pill { vertical-align: middle; margin-left: 6px; }
@media (max-width: 640px) { .ehpa-acts { white-space: normal; } .ehpa-stat-n { font-size: 1.6rem; } }
@media (prefers-reduced-motion: reduce) { .ehpa .ehpa-stat { transition: none; } .ehpa .ehpa-stat:hover { transform: none; } }

/* ---------- Stand-alone admin backend screen (1.2.3) ---------- */
body.ehpa-app { margin: 0; background: #f6f9ff; min-height: 100vh; }
.ehpa-appbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; padding: 10px max(16px, 3vw); background: #fff; border-bottom: 1px solid #d6e8f7; box-shadow: 0 1px 2px rgba(2,30,47,.05); }
.ehpa-appbar-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #021e2f; font-family: "Manrope", sans-serif; }
.ehpa-appbar-brand img { height: 36px; width: auto; display: block; }
.ehpa-appbar-brand span { font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: #0b4f8c; padding: 4px 10px; border-radius: 999px; }
body.ehpa-app .ehpa { padding-top: 24px; background: transparent; }
.ehpa-tabs { overflow-y: hidden; scrollbar-width: thin; }
.ehpa-dhead { flex-wrap: wrap; }
.ehpa h3.ehpa-gap { margin-top: 8px; }
