/* ============================================================
   Foundation Personnel -- Candidate Registration Form
   Prefix: fp-  (avoids Avada/WordPress conflicts)
   ============================================================ */

/* Brand colours (Foundation Personnel palette v2, Sept 2026).
   Reads the site's Avada tokens when present, falls back to the palette values. */
.fp-register-section {
  --fpf-red: var(--fp-red, #BD2434);            /* Foundation Red: buttons, links, rules, accents */
  --fpf-deep: var(--fp-deep-red, #6E0712);      /* Deep Red: hover / filled surfaces */
  --fpf-foundations: var(--fp-foundations, #55050E);
  --fpf-civils: var(--fp-civils, #3E040A);
  --fpf-infrastructure: var(--fp-infrastructure, #280306);
  --fpf-black: #111111;
  --fpf-grey: #6B6B6B;
  --fpf-ui: #F2F2F2;                            /* light neutral fill */
}

.fp-register-section *,
.fp-register-section *::before,
.fp-register-section *::after { box-sizing: border-box; }

.fp-register-section {
  background: transparent;
  padding: 80px 24px;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  color: #1A1A1A;
  -webkit-font-smoothing: antialiased;
}

.fp-register-section h2, .fp-register-section h3,
.fp-register-section p, .fp-register-section ul,
.fp-register-section li {
  margin: 0; padding: 0;
  font-family: inherit; font-weight: inherit;
  letter-spacing: normal; text-transform: none;
  text-shadow: none;
}
.fp-register-section button {
  margin: 0; padding: 0;
  font-family: inherit; font-weight: inherit;
  letter-spacing: normal; text-transform: none;
}

.fp-register-inner { max-width: 780px; margin: 0 auto; }
/* "You are applying for ..." banner (shown when the form is tied to a vacancy) */
.fp-applying-for { margin: 0 0 20px; padding: 12px 16px 12px 14px; border-radius: 10px; background: var(--fpf-ui); border: 0; border-left: 4px solid var(--fpf-red); font-size: 14px; line-height: 1.5; color: #333; }
.fp-applying-for p { margin: 0; }
.fp-applying-for strong { color: #111; }

/* Section header */
.fp-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--fpf-red); margin-bottom: 14px;
}
.fp-heading {
  font-size: 38px; font-weight: 400; line-height: 1.15;
  color: #1A1A1A; margin-bottom: 14px;
}
.fp-heading strong { font-weight: 700; }
.fp-intro {
  font-size: 16px; line-height: 1.65; color: #555;
  margin-bottom: 40px; max-width: 580px;
}

/* Stepper */
.fp-stepper { display: flex; align-items: flex-start; margin-bottom: 28px; }
.fp-step-item {
  display: flex; flex-direction: column; align-items: center;
  flex: none; width: 96px;
}
.fp-step-line {
  flex: 1; height: 2px; background: #D5D5D5;
  margin-top: 21px; transition: background 0.3s;
}
.fp-step-line.fp-line-done { background: var(--fpf-red); }
.fp-step-circle {
  width: 44px; height: 44px; border-radius: 50%;
  background: #E2E2E2; display: flex; align-items: center;
  justify-content: center; color: #ADADAD;
  transition: background 0.3s, color 0.3s; flex-shrink: 0;
}
.fp-step-item.fp-step-active .fp-step-circle,
.fp-step-item.fp-step-done .fp-step-circle { background: var(--fpf-red); color: white; }
.fp-step-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.7px;
  text-transform: uppercase; color: #ADADAD;
  margin-top: 9px; text-align: center; line-height: 1.35;
}
.fp-step-item.fp-step-active .fp-step-label,
.fp-step-item.fp-step-done .fp-step-label { color: var(--fpf-red); }

/* Form card */
.fp-form-card {
  background: #FFFFFF; border-radius: 16px;
  padding: 36px 36px 28px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.09);
}

/* Panels */
.fp-panel { display: none; }
.fp-success-panel { display: none; text-align: center; padding: 48px 16px; }

/* Panel title */
.fp-panel-title {
  font-size: 22px !important; font-weight: 700 !important;
  color: #1A1A1A !important; margin-bottom: 28px !important;
  display: block; line-height: 1.3;
}

/* Field label */
.fp-label {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: #3A3A3A; margin-bottom: 8px;
}

/* Inputs */
.fp-input, .fp-select, .fp-textarea {
  width: 100%; border: 1.5px solid #E2E2E2; border-radius: 8px;
  padding: 13px 16px; font-size: 15px; font-family: inherit;
  color: #1A1A1A; background: #FFFFFF; outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
  margin: 0; display: block;
}
.fp-input::placeholder, .fp-textarea::placeholder { color: #B8B8B8; }
.fp-input:focus, .fp-select:focus, .fp-textarea:focus { border-color: var(--fpf-red); }
.fp-input.fp-input-error, .fp-select.fp-input-error,
.fp-textarea.fp-input-error { border-color: var(--fpf-red); }

.fp-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 40px; cursor: pointer;
}
.fp-textarea { min-height: 96px; resize: vertical; }

.fp-error {
  display: none; color: var(--fpf-red); font-size: 12px;
  font-weight: 500; margin-top: 5px;
}

/* Layout */
.fp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fp-form-group { margin-bottom: 22px; }

/* Sector cards */
.fp-sector-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.fp-sector-card {
  border: 1.5px solid #E2E2E2 !important; border-radius: 10px !important;
  padding: 28px 20px !important; text-align: center; font-size: 15px;
  font-weight: 600; font-family: inherit; color: #333 !important;
  background: white !important; cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background-color 0.15s; outline: none; line-height: 1;
}
/* each sector card uses its own pillar colour (palette v2): outline on hover, solid when chosen */
.fp-sector-card[data-sector="foundations"]    { --fpf-sector: var(--fpf-foundations); }
.fp-sector-card[data-sector="civils"]         { --fpf-sector: var(--fpf-civils); }
.fp-sector-card[data-sector="infrastructure"] { --fpf-sector: var(--fpf-infrastructure); }
.fp-sector-card:hover { border-color: var(--fpf-sector, var(--fpf-red)) !important; color: var(--fpf-sector, var(--fpf-red)) !important; }
.fp-sector-card.fp-selected { border-color: var(--fpf-sector, var(--fpf-red)) !important; background: var(--fpf-sector, var(--fpf-red)) !important; color: #ffffff !important; }

/* Employment cards */
.fp-emp-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fp-emp-card {
  border: 1.5px solid #E2E2E2; border-radius: 10px;
  padding: 18px 16px; cursor: pointer; transition: border-color 0.15s;
  display: flex; gap: 12px; align-items: flex-start;
}
.fp-emp-card:hover { border-color: var(--fpf-red); }
.fp-emp-card.fp-selected { border-color: var(--fpf-red); }
.fp-emp-radio {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid #D0D0D0; flex-shrink: 0; margin-top: 2px;
  position: relative; transition: border-color 0.15s;
}
.fp-emp-card.fp-selected .fp-emp-radio { border-color: var(--fpf-red); }
.fp-emp-card.fp-selected .fp-emp-radio::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%); width: 10px; height: 10px;
  border-radius: 50%; background: var(--fpf-red);
}
.fp-emp-title {
  font-size: 15px !important; font-weight: 700 !important;
  color: #1A1A1A !important; margin-bottom: 5px !important;
  line-height: 1.3; display: block;
}
.fp-emp-desc {
  font-size: 13px !important; color: #777 !important;
  line-height: 1.45; display: block;
}

/* Rate row */
.fp-rate-row { display: flex; gap: 12px; }
.fp-rate-amount { flex: 1; }
.fp-rate-unit-field { width: 110px; flex-shrink: 0; text-align: center; }

/* Toggle switch */
.fp-toggle-row { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.fp-toggle {
  position: relative; display: inline-block;
  width: 48px; height: 28px; flex-shrink: 0; cursor: pointer;
}
.fp-toggle input { opacity: 0; position: absolute; width: 0; height: 0; }
.fp-toggle-track {
  position: absolute; inset: 0; background: #D0D0D0;
  border-radius: 14px; transition: background 0.2s;
}
.fp-toggle input:checked + .fp-toggle-track { background: var(--fpf-red); }
.fp-toggle-thumb {
  position: absolute; top: 4px; left: 4px; width: 20px; height: 20px;
  background: white; border-radius: 50%; transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.fp-toggle input:checked ~ .fp-toggle-thumb { transform: translateX(20px); }
.fp-toggle-label { font-size: 15px; color: #333; line-height: 1.4; }

/* Region pills */
.fp-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.fp-pill {
  border: 1.5px solid #D8D8D8 !important; border-radius: 100px !important;
  padding: 9px 18px !important; font-size: 14px; font-weight: 500;
  font-family: inherit; color: #444 !important; background: white !important; cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  outline: none; line-height: 1.4;
}
.fp-pill:hover { border-color: var(--fpf-red) !important; color: var(--fpf-red) !important; }
.fp-pill.fp-selected { border-color: var(--fpf-red) !important; color: #ffffff !important; background: var(--fpf-red) !important; }

.fp-optional { font-weight: 400; text-transform: none; letter-spacing: 0; color: #6B6B6B; }

/* Collapsible ticket list */
.fp-pills--collapsible:not(.is-expanded) .fp-pill--extra:not(.fp-selected) { display: none; }
.fp-pills-toggle {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px !important;
  background: none !important; border: 0 !important; padding: 0 !important;
  font-family: inherit; font-size: 14px; font-weight: 600; color: var(--fpf-red) !important;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.fp-pills-toggle[hidden] { display: none; }
.fp-pills-toggle::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.fp-pills-toggle[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }

/* Cert group */
.fp-cert-group {
  border: 1.5px solid #EBEBEB; border-radius: 10px;
  padding: 18px 20px; margin-bottom: 22px;
}
.fp-cert-group-label {
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: #555; margin-bottom: 14px; display: block;
}
.fp-cert-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.fp-cert-row:not(:last-child) { border-bottom: 1px solid #F2F2F2; }
.fp-cert-name { font-size: 14px; color: #333; line-height: 1.4; }

/* Nav bar */
.fp-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 28px; padding-top: 22px; border-top: 1px solid #F0F0F0;
}
.fp-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 8px; padding: 13px 24px; font-size: 15px;
  font-weight: 600; font-family: inherit; cursor: pointer;
  transition: all 0.15s; outline: none; line-height: 1;
  text-decoration: none;
}
.fp-btn-back { border: 1.5px solid #D5D5D5; background: white; color: #555; }
.fp-btn-back:hover { border-color: #999; color: #333; }
.fp-btn-next { border: none; background: var(--fpf-red); color: #ffffff; }
.fp-btn-next:hover { background: var(--fpf-deep); }
.fp-btn-submit { border: none; background: var(--fpf-red); color: #ffffff; }
.fp-btn-submit:hover { background: var(--fpf-deep); }

/* Progress dots */
.fp-dots { display: flex; gap: 6px; align-items: center; }
.fp-dot { height: 8px; border-radius: 4px; background: #D5D5D5; transition: all 0.25s; width: 8px; }
.fp-dot.fp-dot-done { background: var(--fpf-red); width: 8px; }
.fp-dot.fp-dot-active { background: var(--fpf-red); width: 20px; }

/* Success */
.fp-success-icon {
  width: 64px; height: 64px; border-radius: 50%; background: var(--fpf-red);
  margin: 0 auto 20px; display: flex; align-items: center;
  justify-content: center; color: white;
}
.fp-success-title {
  font-size: 24px !important; font-weight: 700 !important;
  color: #1A1A1A !important; margin-bottom: 12px !important; display: block;
}
.fp-success-msg {
  font-size: 16px !important; color: #666 !important;
  line-height: 1.65; max-width: 480px; margin: 0 auto !important; display: block;
}

/* Privacy */
.fp-privacy {
  text-align: center; font-size: 13px; color: #888;
  margin-top: 20px !important; line-height: 1.55;
}

/* ============================================================
   Timesheet Submission Form
   ============================================================ */

.fp-label-optional {
  font-weight: 500; text-transform: none; letter-spacing: 0;
  color: #999; font-size: 11px;
}

/* Upload zone */
.fp-upload-zone {
  border: 1.5px dashed #D0D0D0; border-radius: 10px;
  padding: 34px 24px; text-align: center; cursor: pointer;
  background: #FCFCFC; outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.fp-upload-zone:hover, .fp-upload-zone:focus { border-color: var(--fpf-red); background: #FFFFFF; }
.fp-upload-zone.fp-upload-drag { border-color: var(--fpf-red); background: var(--fpf-ui); }

.fp-upload-idle { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.fp-upload-icon { color: var(--fpf-red); display: block; line-height: 0; }
.fp-upload-title {
  font-size: 16px !important; font-weight: 600 !important;
  color: #1A1A1A !important; display: block; line-height: 1.3;
}
.fp-upload-hint { font-size: 13px; color: #999; line-height: 1.5; display: block; }

.fp-upload-selected { display: none; align-items: center; gap: 14px; text-align: left; }
.fp-upload-zone.fp-upload-has-file { border-style: solid; border-color: var(--fpf-red); background: #FFFFFF; cursor: default; padding: 20px 24px; }
.fp-upload-zone.fp-upload-has-file .fp-upload-idle { display: none; }
.fp-upload-zone.fp-upload-has-file .fp-upload-selected { display: flex; }
.fp-upload-file-icon { color: var(--fpf-red); line-height: 0; flex-shrink: 0; }
.fp-upload-file-meta { flex: 1; min-width: 0; }
.fp-upload-file-name {
  font-size: 15px !important; font-weight: 600 !important;
  color: #1A1A1A !important; display: block; line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fp-upload-file-size { font-size: 12px; color: #999; display: block; }
.fp-upload-remove {
  border: none !important; background: #F2F2F2 !important; color: #666 !important;
  width: 30px; height: 30px; border-radius: 50% !important;
  font-size: 18px; line-height: 1; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s; padding: 0 !important;
}
.fp-upload-remove:hover { background: var(--fpf-red) !important; color: white !important; }

/* Honeypot — visually removed, still in the DOM for bots */
.fp-hp-field {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

/* Full-width submit */
.fp-ts-nav { justify-content: center; border-top: none; padding-top: 4px; margin-top: 8px; }
.fp-btn-block { width: 100%; justify-content: center; }
/* Beat the .fp-register-section button reset (class+element) */
.fp-ts-nav .fp-btn-submit {
  padding: 15px 24px; font-weight: 600; font-size: 15px;
  border-radius: 8px; line-height: 1;
}

.fp-recaptcha-note a { color: #888; text-decoration: underline; }

/* Hide Google's floating reCAPTCHA badge (allowed when the notice
   above is shown — see Google's reCAPTCHA branding guidelines) */
.grecaptcha-badge { visibility: hidden; }

/* ============================================================
   Contact Form — candidate / employer role cards
   ============================================================ */

.fp-role-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fp-role-card {
  border: 1.5px solid #E2E2E2 !important; border-radius: 12px !important;
  padding: 30px 24px !important; text-align: center; cursor: pointer;
  background: white !important; font-family: inherit; outline: none;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.fp-role-card:hover { border-color: var(--fpf-red) !important; box-shadow: 0 2px 14px rgba(0,0,0,0.08); }
.fp-role-card.fp-selected { border-color: var(--fpf-red) !important; box-shadow: 0 2px 14px rgba(0,0,0,0.10); }
.fp-role-icon { color: var(--fpf-red); line-height: 0; }
.fp-role-title {
  font-size: 17px !important; font-weight: 700 !important;
  color: #1A1A1A !important; display: block; line-height: 1.3;
}
.fp-role-card:hover .fp-role-title, .fp-role-card.fp-selected .fp-role-title { color: var(--fpf-red) !important; }
.fp-role-desc {
  font-size: 13px !important; color: #777 !important;
  line-height: 1.5; display: block; max-width: 250px;
}

@media (max-width: 640px) {
  .fp-role-cards { grid-template-columns: 1fr; }
}

/* Responsive */
@media (max-width: 640px) {
  .fp-register-section { padding: 56px 18px; }
  .fp-heading { font-size: 28px !important; }
  .fp-step-item { width: auto; flex: 1; max-width: 80px; }
  .fp-step-label { font-size: 8.5px; }
  .fp-form-card { padding: 24px 20px 20px; }
  .fp-form-row { grid-template-columns: 1fr; gap: 0; }
  .fp-sector-cards { grid-template-columns: 1fr; }
  .fp-emp-cards { grid-template-columns: 1fr; }
  .fp-rate-row { flex-direction: column; }
  .fp-rate-unit-field { width: 100%; text-align: left; }
  .fp-btn { padding: 12px 16px; font-size: 14px; }
}
@media (max-width: 380px) {
  .fp-step-circle { width: 36px; height: 36px; }
  .fp-step-line { margin-top: 17px; }
  .fp-step-label { font-size: 7px; letter-spacing: 0; }
}

/* ===== Head Office roles ([fp_head_office_roles]) ===== */
.fp-ho { padding: 0 !important; }
.fp-ho-roles { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
.fp-ho-role { background: #fff; border-radius: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.06); overflow: hidden; }
.fp-ho-role summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 24px 64px 24px 28px; position: relative; }
.fp-ho-role summary::-webkit-details-marker { display: none; }
.fp-ho-role-title { font-size: 20px; font-weight: 700; color: var(--fpf-black); flex: 1 1 100%; }
.fp-ho-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.fp-ho-tag { display: inline-block; padding: 5px 12px; border-radius: 25px; background: var(--fpf-ui); color: #333; font-size: 13px; font-weight: 600; }
.fp-ho-tag--date { background: var(--fpf-deep); color: #fff; }
.fp-ho-toggle { position: absolute; right: 24px; top: 26px; width: 28px; height: 28px; border-radius: 50%; background: var(--fpf-red); }
.fp-ho-toggle::before, .fp-ho-toggle::after { content: ""; position: absolute; left: 8px; right: 8px; top: 13px; height: 2px; background: #fff; transition: transform .2s; }
.fp-ho-toggle::after { transform: rotate(90deg); }
.fp-ho-role[open] .fp-ho-toggle::after { transform: rotate(0); }
.fp-ho-role-body { padding: 0 28px 28px; border-top: 1px solid rgba(0,0,0,.08); font-size: 16px; line-height: 1.7; color: #222; }
.fp-ho-role-body > :first-child { margin-top: 22px; }
.fp-ho-role-body p, .fp-ho-role-body ul { margin: 0 0 14px; }
.fp-ho-role-body ul { padding-left: 20px; list-style: disc; }
.fp-ho-apply { margin-top: 8px; }
/* Beat the .fp-register-section button reset (class+element) */
.fp-ho-form .fp-ho-submit,
.fp-ho-role-body .fp-ho-apply,
.fp-ho-role-body .fp-ho-apply-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border: 0; border-radius: 8px;
  background: var(--fpf-red); color: #fff;
  font-size: 15px; font-weight: 600; line-height: 1; letter-spacing: .01em;
  box-shadow: 0 8px 20px rgba(189,36,52,.22);
  transition: background .15s, transform .15s, box-shadow .15s;
}
.fp-ho-form .fp-ho-submit { min-width: 220px; padding: 18px 34px; font-size: 16px; }
.fp-ho-form .fp-ho-submit::after,
.fp-ho-role-body .fp-ho-apply::after,
.fp-ho-role-body .fp-ho-apply-link::after { content: "\2192"; font-size: 1.1em; transition: transform .15s; }
.fp-ho-role-body .fp-ho-apply-link { margin-top: 8px; color: #fff !important; text-decoration: none !important; }
.fp-ho-form .fp-ho-submit:hover,
.fp-ho-role-body .fp-ho-apply:hover,
.fp-ho-role-body .fp-ho-apply-link:hover { background: var(--fpf-deep); transform: translateY(-1px); box-shadow: 0 12px 26px rgba(110,7,18,.28); }
.fp-ho-form .fp-ho-submit:hover::after,
.fp-ho-role-body .fp-ho-apply:hover::after { transform: translateX(3px); }
.fp-ho-form .fp-ho-submit:focus-visible,
.fp-ho-role-body .fp-ho-apply:focus-visible { outline: 3px solid rgba(189,36,52,.35); outline-offset: 2px; }
.fp-ho-form .fp-ho-submit:disabled { opacity: .65; cursor: wait; transform: none; box-shadow: none; }
.fp-ho-form .fp-ho-submit:disabled::after { content: none; }
.fp-ho-empty { background: #fff; border-radius: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.06); padding: 28px; margin-bottom: 32px; font-size: 16px; line-height: 1.6; }
.fp-ho-empty p { margin: 0 0 8px; }
.fp-ho-form-card { scroll-margin-top: 120px; }
.fp-ho-privacy { font-size: 13px; color: var(--fpf-grey); margin: 6px 0 16px; }
.fp-ho-privacy a { color: var(--fpf-red); }
.fp-ho-status { min-height: 1.2em; margin-bottom: 12px; font-size: 14px; font-weight: 600; color: var(--fpf-red); }
.fp-ho-done p { font-size: 16px; }
@media (max-width: 640px) { .fp-ho-form .fp-ho-submit { width: 100%; } .fp-ho-role summary { padding: 20px 56px 20px 20px; } .fp-ho-role-body { padding: 0 20px 22px; } }

/* Contact page office cards: long email addresses wrap instead of running off the card on phones */
.fp-office-list li > * { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) { body .fp-office-hq .fp-office-list li { font-size: 16px; } body .fp-office-list a[href^="mailto:"] { font-size: 14px; } }

/* "Your role" type-ahead */
.fp-combo { position: relative; }
.fp-combo-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); max-height: 300px; overflow-y: auto; margin: 0 !important; padding: 6px !important; list-style: none; background: #fff; border: 1px solid rgba(0,0,0,.1); border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.14); }
.fp-combo-list li { margin: 0 !important; padding: 11px 14px !important; border-radius: 8px; font-size: 15px; line-height: 1.35; color: #1A1A1A; cursor: pointer; }
.fp-combo-list li::before { display: none !important; }
.fp-combo-list li:hover, .fp-combo-list li[aria-selected="true"] { background: #f5f5f7; color: var(--fpf-red); }
.fp-combo-list mark { background: none; color: inherit; font-weight: 700; padding: 0; }
.fp-hint { display: block; margin-top: 6px; font-size: 13px; color: #6B6B6B; }

/* Head Office: Bullhorn jobs click straight through to the job page */
a.fp-ho-role--job { display: block; color: inherit !important; text-decoration: none !important; transition: transform .2s, box-shadow .2s; }
a.fp-ho-role--job:hover, a.fp-ho-role--job:focus-visible { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0,0,0,.1); outline: none; }
.fp-ho-role-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 24px 170px 24px 28px; position: relative; }
.fp-ho-go { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 8px; background: var(--fpf-red); color: #fff; font-size: 15px; font-weight: 600; line-height: 1; transition: background .15s; }
.fp-ho-go::after { content: "\2192"; font-size: 1.1em; transition: transform .15s; }
a.fp-ho-role--job:hover .fp-ho-go { background: var(--fpf-deep); }
a.fp-ho-role--job:hover .fp-ho-go::after { transform: translateX(3px); }
@media (max-width: 640px) {
  .fp-ho-role-head { padding: 20px 64px 20px 20px; }
  .fp-ho-go { right: 18px; padding: 0; width: 34px; height: 34px; border-radius: 50%; justify-content: center; }
  .fp-ho-go span { display: none; }
}
