/* HireGummy – country picker popup */
.hg-cp[hidden] { display: none !important; }
.hg-cp, .hg-cp *, .hg-cp *::before, .hg-cp *::after { box-sizing: border-box; }
.hg-cp {
  --hg-plum: #2d0a4f;
  --hg-ink: #1A0033;
  --hg-mint: #00E5A0;
  --hg-muted: #64637A;
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 200px 16px 24px;
  overflow-y: auto;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.hg-cp__overlay {
  position: fixed; inset: 0;
  background: rgba(26, 0, 51, 0.55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .35s ease;
}
.hg-cp__wrap {
  position: relative; width: 100%; max-width: 720px; margin: auto;
  opacity: 0; transform: translateY(16px) scale(.97);
  transition: opacity .4s ease, transform .5s cubic-bezier(.22, 1, .36, 1);
}

/* Mr. Gummy peeking from behind the card */
.hg-cp__mascot {
  position: absolute; left: 50%; top: 0; z-index: 0;
  width: 290px; height: auto;
  transform: translate(-50%, -62%) translateY(70px);
  transition: transform .7s cubic-bezier(.34, 1.56, .64, 1) .15s;
  pointer-events: none;
}
.hg-cp__card {
  position: relative; z-index: 1;
  background: var(--hg-plum);
  border-radius: 36px;
  padding: 52px 44px 40px;
  box-shadow: 0 30px 80px rgba(26, 0, 51, .45);
  text-align: center;
}

.hg-cp.is-open .hg-cp__overlay { opacity: 1; }
.hg-cp.is-open .hg-cp__wrap { opacity: 1; transform: none; }
.hg-cp.is-open .hg-cp__mascot { transform: translate(-50%, -62%); }

.hg-cp__close {
  position: absolute; top: 24px; right: 24px;
  width: 52px; height: 52px; border-radius: 50%;
  border: 0; background: #fff; color: var(--hg-plum);
  font-size: 30px; line-height: 1; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
  transition: transform .2s ease, background .2s ease;
}
.hg-cp__close:hover { transform: rotate(90deg); background: var(--hg-mint); }

.hg-cp__title {
  margin: 0 0 32px;
  font-family: 'Outfit', sans-serif; font-weight: 800;
  font-size: 38px; line-height: 1.1; letter-spacing: -0.02em;
  color: #fff;
}

.hg-cp__options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hg-cp__opt {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  min-height: 160px; padding: 24px 16px;
  background: #fff; border: 3px solid transparent; border-radius: 28px;
  text-decoration: none; color: var(--hg-ink);
  transition: transform .25s cubic-bezier(.22, 1, .36, 1), border-color .2s ease, box-shadow .25s ease;
}
.hg-cp__opt:hover, .hg-cp__opt:focus-visible {
  transform: translateY(-6px);
  border-color: var(--hg-mint);
  box-shadow: 0 16px 36px rgba(0, 229, 160, .25);
  outline: none;
}
.hg-cp__opt.is-selected { border-color: var(--hg-mint); }
.hg-cp__flag { display: flex; align-items: center; justify-content: center; height: 44px; width: 56px; flex-shrink: 0; }
.hg-cp__flag img { display: block; width: 56px; height: 38px; object-fit: cover; border-radius: 6px; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.hg-cp__globe { font-size: 44px; line-height: 1; }
.hg-cp__opt-text { display: flex; flex-direction: column; gap: 6px; }
.hg-cp__opt-title { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 26px; color: var(--hg-plum); }
.hg-cp__opt-sub { font-size: 15px; color: var(--hg-muted); }

.hg-cp__divider { border: 0; border-top: 1px solid rgba(255, 255, 255, .15); margin: 32px 0 24px; }

.hg-cp__job {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 18px; border-radius: 16px;
  background: #fff; color: var(--hg-plum);
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 18px;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.hg-cp__job span { transition: transform .2s ease; }
.hg-cp__job:hover { background: var(--hg-mint); }
.hg-cp__job:hover span { transform: translateX(4px); }

html.hg-cp-lock, html.hg-cp-lock body { overflow: hidden; }

@media (max-width: 768px) {
  .hg-cp { padding: 160px 14px 20px; align-items: flex-start; }
  .hg-cp__mascot { width: 210px; }
  .hg-cp__card { padding: 56px 20px 24px; border-radius: 28px; }
  .hg-cp__close { top: 14px; right: 14px; width: 42px; height: 42px; font-size: 24px; }
  .hg-cp__title { font-size: 28px; margin-bottom: 24px; padding: 0 28px; }
  .hg-cp__options { grid-template-columns: 1fr; gap: 12px; }
  .hg-cp__opt { flex-direction: row; justify-content: flex-start; min-height: 0; padding: 18px 20px; gap: 16px; text-align: left; border-radius: 20px; }
  .hg-cp__opt:hover { transform: none; }
  .hg-cp__flag { display: flex; align-items: center; justify-content: center; height: 44px; width: 56px; flex-shrink: 0; }
.hg-cp__flag img { width: 44px; height: 30px; }
  .hg-cp__flag { width: 44px; height: 34px; }
  .hg-cp__globe { font-size: 32px; }
  .hg-cp__opt-title { font-size: 20px; }
  .hg-cp__opt-sub { font-size: 14px; }
  .hg-cp__divider { margin: 24px 0 20px; }
  .hg-cp__job { padding: 18px; font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .hg-cp__overlay, .hg-cp__wrap, .hg-cp__mascot, .hg-cp__opt, .hg-cp__close { transition: none !important; }
}

/* Lock styles against theme/Elementor link & button overrides */
#hg-country-picker .hg-cp__title { color: #fff !important; letter-spacing: -0.01em !important; }
#hg-country-picker .hg-cp__close {
  background: transparent !important; color: #fff !important; border: 0 !important; box-shadow: none !important;
  padding: 0 !important; margin: 0 !important; min-width: 0 !important; min-height: 0 !important;
  width: 44px !important; height: 44px !important; border-radius: 50% !important;
  display: flex !important; align-items: center; justify-content: center;
  font-size: 34px !important; font-weight: 300 !important; line-height: 1 !important; opacity: .85;
}
#hg-country-picker .hg-cp__close:hover,
#hg-country-picker .hg-cp__close:focus { background: transparent !important; color: #00E5A0 !important; opacity: 1; outline: none; }
#hg-country-picker .hg-cp__close:focus-visible { outline: 2px solid #00E5A0 !important; outline-offset: 2px; }

/* Location suggestion */
#hg-country-picker .hg-cp__opt { position: relative; }
#hg-country-picker .hg-cp__opt.is-suggested { border-color: #00E5A0 !important; box-shadow: 0 0 0 4px rgba(0,229,160,.25), 0 18px 40px -18px rgba(0,229,160,.6); }
.hg-cp__tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: #00E5A0; color: #1A0033; font: 700 12px/1 'Plus Jakarta Sans', sans-serif;
  letter-spacing: .04em; padding: 6px 10px; border-radius: 999px; white-space: nowrap; font-style: normal;
  box-shadow: 0 6px 14px -6px rgba(0,0,0,.35);
}
#hg-country-picker .hg-cp__job { position: relative; }
#hg-country-picker .hg-cp__job.is-suggested { background: #00E5A0 !important; box-shadow: 0 0 0 4px rgba(0,229,160,.25); }
#hg-country-picker .hg-cp__sep {
  display: flex; align-items: center; gap: 14px; margin: 28px 0 18px;
  color: #00E5A0; font: 700 13px/1 'Plus Jakarta Sans', sans-serif; letter-spacing: .06em; text-transform: uppercase;
}
#hg-country-picker .hg-cp__sep::before,
#hg-country-picker .hg-cp__sep::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.18); }
@media (max-width: 640px) {
  .hg-cp__tag { top: 50%; left: auto; right: 14px; transform: translateY(-50%); }
  #hg-country-picker .hg-cp__sep { margin: 22px 0 14px; font-size: 12px; }
}
#hg-country-picker .hg-cp__opt,
#hg-country-picker .hg-cp__opt:hover { background: #fff !important; color: #1A0033 !important; text-decoration: none !important; }
#hg-country-picker .hg-cp__opt-title { color: #2d0a4f !important; }
#hg-country-picker .hg-cp__job { background: #fff !important; color: #2d0a4f !important; text-decoration: none !important; }
#hg-country-picker .hg-cp__job:hover { background: #00E5A0 !important; color: #2d0a4f !important; }
