/*
 * Registration CTA component
 *
 * This component intentionally does not style legacy CTA classes.
 * During migration, legacy and new CTA implementations can safely coexist.
 */
.enw-service-free {
  font-weight: 700;
}

.enw-entry-cta {
  --enw-entry-cta-background: #ffce27;
  --enw-entry-cta-color: #1b294b;
  --enw-entry-cta-free-background: #fff;
  --enw-entry-cta-free-border: transparent;
  --enw-entry-cta-free-color: #9a6500;
  --enw-entry-cta-radius: 8px;
  --enw-entry-cta-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-sizing: border-box;
  width: 80%;
  max-width: 520px;
  min-height: 76px;
  padding: 10px 18px 10px 24px;
  border: 0;
  border-radius: var(--enw-entry-cta-radius);
  background: var(--enw-entry-cta-background);
  box-shadow: var(--enw-entry-cta-shadow);
  color: var(--enw-entry-cta-color) !important;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none !important;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.enw-entry-cta:hover {
  opacity: 0.86;
}

.enw-entry-cta:focus-visible {
  outline: 3px solid #137af3;
  outline-offset: 3px;
}

.enw-entry-cta__label {
  min-width: 0;
}

.enw-entry-cta__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.enw-entry-cta__arrow {
  flex: 0 0 auto;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 12px solid currentColor;
}

.enw-entry-cta__free {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-sizing: border-box;
  padding: 5px 10px;
  border: 2px solid var(--enw-entry-cta-free-border);
  border-radius: 999px;
  background: var(--enw-entry-cta-free-background);
  color: var(--enw-entry-cta-free-color);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.enw-entry-cta-wrap {
  display: flex;
  justify-content: center;
}

.enw-entry-cta-wrap--interview {
  margin: 24px 0;
}

.enw-entry-cta-wrap--voice {
  padding-top: 40px;
}

/* Strong conversion CTA: service and registration pages. */
.enw-entry-cta--primary {
  --enw-entry-cta-background: #ffce27;
  --enw-entry-cta-color: #1b294b;
  --enw-entry-cta-free-background: #fff;
  --enw-entry-cta-free-color: #9a6500;
}

/* Editorial CTA: interviews, stories, features and company articles. */
.enw-entry-cta--editorial {
  --enw-entry-cta-background: linear-gradient(120deg, #171a3d 0%, #30335f 100%);
  --enw-entry-cta-color: #fff;
  --enw-entry-cta-free-background: transparent;
  --enw-entry-cta-free-border: #ffeb00;
  --enw-entry-cta-free-color: #ffeb00;
  --enw-entry-cta-radius: 12px;
}

.enw-entry-cta--editorial:hover {
  opacity: 0.85;
}

.enw-entry-cta--editorial .enw-entry-cta__free {
  width: 64px;
  height: 64px;
  padding: 0;
  border-width: 3px;
  border-radius: 50%;
  font-size: 20px;
}

/* Contextual CTA: actions tied to a specific job. */
.enw-entry-cta--job {
  --enw-entry-cta-background: linear-gradient(to right, #2a2a8e 0%, #4c4ccc 100%);
  --enw-entry-cta-color: #fff;
  --enw-entry-cta-free-background: #fff;
  --enw-entry-cta-free-color: #3030a0;
}

.enw-entry-cta--large {
  gap: 14px;
  max-width: 520px;
  min-height: 92px;
  padding: 8px 16px 8px 24px;
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
  font-size: 22px;
}

.enw-entry-cta--large .enw-entry-cta__arrow {
  border-top-width: 11px;
  border-bottom-width: 11px;
  border-left-width: 15px;
}

.enw-entry-cta--large.enw-entry-cta--editorial .enw-entry-cta__free {
  width: 72px;
  height: 72px;
  font-size: 22px;
}

.enw-entry-cta--medium {
  gap: 12px;
  width: 70%;
  max-width: 460px;
  min-height: 82px;
  padding: 7px 14px 7px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
  font-size: 20px;
}

.enw-entry-cta--medium .enw-entry-cta__arrow {
  border-top-width: 10px;
  border-bottom-width: 10px;
  border-left-width: 13px;
}

.enw-entry-cta--compact {
  max-width: 358px;
  min-height: 64px;
  padding: 8px 16px;
  font-size: 16px;
}

.enw-entry-cta--bottom {
  gap: 8px;
  width: 390px;
  max-width: 390px;
  height: 69px;
  min-height: 69px;
  padding: 0;
  border-radius: 3px;
  box-shadow: none;
  font-size: 1rem;
}

.enw-entry-cta--bottom .enw-entry-cta__label {
  white-space: nowrap;
}

.enw-entry-cta--bottom .enw-entry-cta__free {
  padding: 4px 12px;
  border: 0;
  color: #ffce26;
  font-size: 1rem;
}

/* Keep the established dimensions of the primary CTA in the top hero. */
.fv_menu_entry p a.enw-entry-cta--top {
  display: flex;
  gap: 8px;
  width: 400px;
  max-width: 400px;
  height: 69px;
  min-height: 69px;
  margin: 0 auto;
  padding: 8px 10px;
  border-radius: 3px;
  box-shadow: none;
  font-size: 1rem;
  line-height: 1.3;
}

.fv_menu_entry p a.enw-entry-cta--top .enw-entry-cta__label {
  white-space: nowrap;
}

.fv_menu_entry p a.enw-entry-cta--top .enw-entry-cta__free {
  padding: 4px 12px;
  border: 0;
  color: #ffce26;
  font-size: 1rem;
}

@media screen and (max-width: 768px) {
  .enw-entry-cta {
    gap: 8px;
    width: 100%;
    max-width: none;
    min-height: 64px;
    padding: 8px 12px;
    font-size: 16px;
  }

  .enw-entry-cta__label {
    white-space: nowrap;
  }

  .enw-entry-cta__arrow {
    border-top-width: 8px;
    border-bottom-width: 8px;
    border-left-width: 10px;
  }

  .enw-entry-cta-wrap--interview {
    margin: 20px 0;
  }

  .enw-entry-cta-wrap--voice {
    padding-top: 32px;
  }

  .enw-entry-cta--editorial,
  .enw-entry-cta--large.enw-entry-cta--editorial,
  .enw-entry-cta--medium.enw-entry-cta--editorial {
    gap: 10px;
    width: 100%;
    max-width: none;
    min-height: 72px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: clamp(14px, 3.75vw, 18px);
  }

  .enw-entry-cta--editorial .enw-entry-cta__arrow,
  .enw-entry-cta--large.enw-entry-cta--editorial .enw-entry-cta__arrow,
  .enw-entry-cta--medium.enw-entry-cta--editorial .enw-entry-cta__arrow {
    border-top-width: 9px;
    border-bottom-width: 9px;
    border-left-width: 12px;
  }

  .enw-entry-cta--editorial .enw-entry-cta__free,
  .enw-entry-cta--large.enw-entry-cta--editorial .enw-entry-cta__free {
    width: 54px;
    height: 54px;
    font-size: 18px;
  }

  .enw-entry-cta--bottom {
    width: 100%;
    max-width: none;
    font-size: min(3.75vw, 1rem);
  }

  .enw-entry-cta--bottom .enw-entry-cta__free {
    font-size: min(3.75vw, 1rem);
  }

  .fv_menu_entry p a.enw-entry-cta--top {
    width: 100%;
    max-width: none;
    font-size: 0.84rem;
  }

  .fv_menu_entry p a.enw-entry-cta--top .enw-entry-cta__free {
    font-size: min(3.75vw, 1rem);
  }
}
