/* EuroHirePath Vacancies — matches the homepage design tokens */
.ehp-vac {
  --navy: #003a59; --navy-2: #0e5278; --red: #b7131a; --red-2: #db322f;
  --bg: #f6f9ff; --bg-2: #ecf5ff; --bg-3: #e1f0ff; --white: #fff;
  --ink: #021e2f; --muted: #41474e; --faint: #71787f; --line: #c1c7cf; --line-2: #dfe5ec;
  --green: #15803d; --green-2: #116a32; --ok: #00593c;
  --radius: 12px; --shadow: 0 1px 2px rgba(2,30,47,.06), 0 8px 24px rgba(2,30,47,.06);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg);
  padding-bottom: 64px;
}
.ehp-vac *, .ehp-vac *::before, .ehp-vac *::after { box-sizing: border-box; }
.ehp-vac h1, .ehp-vac h2, .ehp-vac h3 { font-family: Manrope, Inter, sans-serif; color: var(--navy); letter-spacing: -.02em; margin: 0; }
.ehp-vac a { color: var(--navy-2); }
.ehp-vac svg { width: 1em; height: 1em; flex-shrink: 0; }

/* Let the plugin layout use the full width inside the Astra wrapper */
body.ehp-vac-page #content > .ast-container { max-width: none; padding: 0; display: block; }
body.ehp-vac-page .site-content { background: #f6f9ff; }

.ehp-wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* Hero */
.ehp-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 56px 0 88px; }
.ehp-hero h1 { color: #fff; font-size: clamp(30px, 4vw, 44px); line-height: 1.15; margin: 8px 0 12px; }
.ehp-hero p { max-width: 720px; font-size: 18px; color: #d6e8f7; margin: 0; }
.ehp-eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: rgba(255,255,255,.12); padding: 4px 10px; border-radius: 6px; }

/* Filters */
.ehp-filters { margin-top: -56px; position: relative; background: var(--white); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; display: grid; gap: 16px; grid-template-columns: 2fr 1fr 1fr 1fr; align-items: end; }
.ehp-filters__actions { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.ehp-filters__actions .ehp-check { margin-right: auto; }
.ehp-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ehp-field label { font-size: 14px; font-weight: 600; color: var(--muted); }
.ehp-vac input[type=text], .ehp-vac input[type=search], .ehp-vac input[type=email], .ehp-vac input[type=tel], .ehp-vac input[type=date], .ehp-vac input:not([type]),
.ehp-vac select, .ehp-vac textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 8px;
  padding: 11px 12px; min-height: 46px; transition: border-color .15s, box-shadow .15s; }
.ehp-vac textarea { min-height: 110px; resize: vertical; }
.ehp-vac input:focus, .ehp-vac select:focus, .ehp-vac textarea:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(14,82,120,.18); }
.ehp-check { display: inline-flex; gap: 8px; align-items: center; font-size: 15px; color: var(--muted); cursor: pointer; }
.ehp-check input { width: 18px; height: 18px; accent-color: var(--navy); }

/* Buttons */
.ehp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 16px/1.2 Inter, sans-serif; padding: 12px 20px; min-height: 46px;
  border-radius: 8px; border: 1px solid transparent; text-decoration: none !important; cursor: pointer; transition: background .15s, border-color .15s, transform .05s; white-space: nowrap; }
.ehp-btn:active { transform: translateY(1px); }
.ehp-btn--primary { background: var(--red); color: #fff !important; }
.ehp-btn--primary:hover { background: var(--red-2); }
.ehp-btn--wa { background: var(--green); color: #fff !important; }
.ehp-btn--wa:hover { background: var(--green-2); }
.ehp-btn--ghost { background: var(--white); color: var(--navy) !important; border-color: var(--line); }
.ehp-btn--ghost:hover { border-color: var(--navy); }
.ehp-btn--lg { padding: 14px 26px; font-size: 17px; min-height: 52px; }
.ehp-btn--disabled { background: var(--line-2); color: var(--faint) !important; cursor: not-allowed; }
.ehp-btn:disabled { opacity: .7; cursor: wait; }
.ehp-btn:focus-visible { outline: 3px solid rgba(14,82,120,.45); outline-offset: 2px; }
.ehp-wa-ico { width: 20px !important; height: 20px !important; }

.ehp-count { margin: 24px 0 16px; font-weight: 600; color: var(--muted); }

/* Cards */
.ehp-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ehp-card { background: var(--white); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.ehp-card:hover { border-color: var(--navy-2); transform: translateY(-2px); }
.ehp-card.is-closed { opacity: .75; }
.ehp-card__poster { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--bg-3); overflow: hidden; }
.ehp-card__poster img, .ehp-poster-frame img { position: relative; z-index: 1; }
.ehp-card__poster::before, .ehp-poster-frame::before { content: ""; position: absolute; inset: -24px; background: var(--ehp-bg, none) center / cover no-repeat; filter: blur(20px) saturate(1.1) brightness(.85); }
.ehp-card__poster img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ehp-card__poster .ehp-badge { z-index: 2; }
.ehp-badge { position: absolute; top: 12px; left: 12px; background: var(--red); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 6px; }
.ehp-badge--closed { background: var(--muted); }
.ehp-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ehp-card__loc { display: flex; gap: 6px; align-items: center; margin: 0; font-size: 15px; color: var(--muted); }
.ehp-card__loc svg { color: var(--red); }
.ehp-card__loc--lg { font-size: 17px; margin: 6px 0 0; }
.ehp-card__title { font-size: 21px; line-height: 1.3; }
.ehp-card__title a { color: var(--navy); text-decoration: none; }
.ehp-card__title a:hover { text-decoration: underline; }
.ehp-chip { display: inline-block; align-self: flex-start; background: var(--bg-3); color: var(--navy); font-size: 14px; font-weight: 600; padding: 3px 10px; border-radius: 6px; margin-right: 6px; }
.ehp-chip--closed { background: #f3d6d6; color: #8a1116; }
.ehp-facts { margin: 4px 0 0; display: grid; gap: 6px; }
.ehp-facts div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; border-top: 1px dashed var(--line-2); padding-top: 6px; }
.ehp-facts dt { color: var(--faint); margin: 0; }
.ehp-facts dd { margin: 0; font-weight: 600; text-align: right; }
.ehp-card__actions { margin-top: auto; padding-top: 8px; display: grid; grid-template-columns: 1fr auto; gap: 10px; }

/* Placeholder poster */
.ehp-poster-ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 70%, var(--red) 140%); color: #fff; }
.ehp-poster-ph svg { width: 56px; height: 56px; opacity: .85; }
.ehp-poster-ph strong { font-family: Manrope, sans-serif; font-size: 22px; line-height: 1.25; }
.ehp-poster-ph span { font-size: 15px; color: #d6e8f7; }

.ehp-pagination { margin-top: 32px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.ehp-pagination .page-numbers { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--navy); text-decoration: none; font-weight: 600; }
.ehp-pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }
.ehp-empty { background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius); padding: 48px 24px; text-align: center; }
.ehp-empty h2 { font-size: 24px; margin-bottom: 8px; }
.ehp-empty p { color: var(--muted); max-width: 520px; margin: 0 auto 20px; }
.ehp-note { margin-top: 32px; font-size: 14px; color: var(--faint); }

/* Single vacancy */
.ehp-single { padding-top: 24px; }
.ehp-crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 15px; color: var(--faint); margin-bottom: 20px; }
.ehp-crumbs a { color: var(--navy-2); text-decoration: none; }
.ehp-crumbs a:hover { text-decoration: underline; }
.ehp-detail { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start; }
.ehp-detail__poster { position: sticky; top: 100px; }
.ehp-poster-frame { position: relative; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 5; }
.ehp-poster-frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ehp-title { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; margin-top: 12px !important; }
.ehp-lead { font-size: 18px; color: var(--muted); margin: 14px 0 0; }
.ehp-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
.ehp-facts--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; background: var(--white); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 8px 20px 14px; }
.ehp-facts--grid div { padding: 10px 0 0; margin-top: 8px; }
.ehp-section { margin-top: 32px; }
.ehp-section h2 { font-size: 22px; margin-bottom: 12px; }
.ehp-prose p { margin: 0 0 12px; }
.ehp-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ehp-list li { position: relative; padding-left: 28px; }
.ehp-list li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; border-radius: 3px; background: var(--red); }

/* Brochure download */
.ehp-brochure { margin-top: 36px; display: flex; align-items: center; gap: 18px; background: var(--bg-2); border: 1px solid var(--bg-3); border-left: 4px solid var(--navy); border-radius: var(--radius); padding: 20px 22px; }
.ehp-brochure > svg { width: 44px; height: 44px; color: var(--navy); }
.ehp-brochure__text { flex: 1; min-width: 0; }
.ehp-brochure__text h2 { font-size: 20px; }
.ehp-brochure__text p { margin: 2px 0 0; color: var(--muted); font-size: 16px; }
.ehp-btn--navy { background: var(--navy); color: #fff !important; }
.ehp-btn--navy:hover { background: var(--navy-2); }
@media (max-width: 640px) { .ehp-brochure { flex-wrap: wrap; } .ehp-brochure .ehp-btn { flex: 1 1 100%; } }

/* Application form */
.ehp-apply { margin-top: 48px; background: var(--white); border: 1px solid var(--line-2); border-top: 4px solid var(--red); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; scroll-margin-top: 100px; }
.ehp-apply[hidden] { display: none; }
.ehp-apply__head h2 { font-size: 26px; }
.ehp-apply__head p { color: var(--muted); margin: 6px 0 0; }
.ehp-form fieldset { border: 0; padding: 0; margin: 28px 0 0; }
.ehp-form legend { font-family: Manrope, sans-serif; font-weight: 700; font-size: 18px; color: var(--navy); margin-bottom: 14px; padding: 0; }
.ehp-grid2 { display: grid; gap: 16px 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ehp-form > .ehp-field { margin-top: 24px; }
.ehp-req { color: var(--red); }
.ehp-uploads { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ehp-upload { border: 2px dashed var(--line); border-radius: 10px; padding: 16px; background: var(--bg); display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, background .15s; }
.ehp-upload.has-file { border-color: var(--ok); background: #effaf4; }
.ehp-upload label { display: flex; flex-direction: column; gap: 2px; }
.ehp-upload label strong { color: var(--ink); }
.ehp-upload label span { font-size: 14px; color: var(--faint); }
.ehp-upload input[type=file] { font-size: 14px; max-width: 100%; }
.ehp-upload output { font-size: 14px; color: var(--ok); font-weight: 600; word-break: break-word; }
.ehp-consent { margin-top: 24px; align-items: flex-start; color: var(--ink); }
.ehp-consent input { margin-top: 3px; flex-shrink: 0; }
.ehp-form__submit { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.ehp-progress { width: 100%; max-width: 420px; height: 8px; background: var(--bg-3); border-radius: 4px; overflow: hidden; }
.ehp-progress span { display: block; height: 100%; width: 0; background: var(--navy-2); transition: width .2s; }
.ehp-alert { background: #fdecec; border: 1px solid #f3c2c2; color: #8a1116; border-radius: 8px; padding: 12px 14px; margin-top: 20px; font-weight: 600; }
.ehp-vac .has-error input, .ehp-vac .has-error select, .ehp-vac .has-error textarea { border-color: var(--red); box-shadow: 0 0 0 3px rgba(183,19,26,.12); }
.ehp-upload.has-error, .ehp-check.has-error { border-color: var(--red); color: var(--red); }
.ehp-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ehp-success { text-align: center; padding: 24px 8px 8px; }
.ehp-success svg { width: 56px; height: 56px; color: var(--ok); }
.ehp-success h3 { font-size: 24px; margin: 8px 0; }
.ehp-success p { max-width: 560px; margin: 0 auto 20px; color: var(--muted); }

/* Responsive */
@media (max-width: 1024px) {
  .ehp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ehp-filters { grid-template-columns: 1fr 1fr; }
  .ehp-filters .ehp-field--search { grid-column: 1 / -1; }
  .ehp-detail { grid-template-columns: 1fr; gap: 24px; }
  .ehp-detail__poster { position: static; max-width: 460px; }
  .ehp-uploads { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ehp-hero { padding: 36px 0 76px; }
  .ehp-hero p { font-size: 17px; }
  .ehp-wrap { padding: 0 16px; }
  .ehp-grid, .ehp-filters, .ehp-grid2, .ehp-facts--grid { grid-template-columns: 1fr; }
  .ehp-filters__actions { justify-content: stretch; }
  .ehp-filters__actions .ehp-btn { flex: 1; }
  .ehp-filters__actions .ehp-check { width: 100%; }
  .ehp-apply { padding: 22px 16px; }
  .ehp-cta .ehp-btn { flex: 1 1 100%; }
  .ehp-card__actions { grid-template-columns: 1fr; }
}
